/* ============================================================
 * billingSkin1V2.css
 * V2 Cart Section styles — all classes use bs1v2- prefix
 * to avoid conflicts with v1 (billingSkin1.css).
 * Copied from cart-page-1.html lines 860-1580.
 * ============================================================ */

/* ======================== */
/* CART SECTION CONTAINER   */
/* ======================== */
.bs1v2-cart-section {
    flex: 4;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    overflow: hidden;
}

/* ======================== */
/* SEARCH + ADD BAR         */
/* ======================== */
.bs1v2-cart-search-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-bottom: 1px solid var(--border);
}

.bs1v2-cart-search-input {
    flex: 1;
    height: 30px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 0 10px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-input);
    outline: none;
}
.bs1v2-cart-search-input:focus { border-color: #10B48F; }
.bs1v2-cart-search-input::placeholder { color: var(--text-faint); }

.bs1v2-cart-qty-input {
    width: 45px;
    height: 30px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-input);
    outline: none;
    text-align: center;
}
.bs1v2-cart-qty-input:focus { border-color: #10B48F; }

.bs1v2-cart-add-btn {
    height: 30px;
    padding: 0 12px;
    border: none;
    border-radius: 6px;
    background: #10B48F;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
    white-space: nowrap;
}
.bs1v2-cart-add-btn:hover { background: #0D9A7A; }
.bs1v2-cart-add-btn:active { transform: scale(0.96); }
.bs1v2-cart-add-btn svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ======================== */
/* SHOW H/F ITEMS TOGGLE    */
/* ======================== */
.bs1v2-cart-hf-toggle {
    display: flex;
    justify-content: flex-end;
    padding: 6px 12px;
    border-bottom: 1px solid var(--border);
}

.bs1v2-hf-btn {
    padding: 5px 12px;
    border: 1.5px solid #4A90D9;
    border-radius: 6px;
    background: #4A90D9;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}
.bs1v2-hf-btn:hover { background: #3A7BC8; }
.bs1v2-hf-btn svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ======================== */
/* ORDER TABLE              */
/* ======================== */
.bs1v2-cart-order-area {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* KOT header row */
.bs1v2-kot-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 7px;
    background: rgba(134,95,194,0.10);
    border-bottom: 1px solid rgba(134,95,194,0.25);
    font-size: 11px;
    font-weight: 700;
    color: #6B3FA0;
}
.bs1v2-kot-header .kot-settings {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bs1v2-kot-header .kot-settings svg {
    width: 18px;
    height: 18px;
    stroke: #865FC2;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: bs1v2-spinGear 3s linear infinite;
}
@keyframes bs1v2-spinGear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.bs1v2-kot-header .kot-info {
    font-size: 10px;
    font-weight: 500;
    color: #6B3FA0;
    margin-left: 2px;
}

/* Order item row — flex layout */
.bs1v2-order-item-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
}
.bs1v2-order-item-row:hover { background: var(--bg-surface-hover); }

/* Remove button */
.bs1v2-order-remove-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: rgba(255,111,146,0.12);
    color: #FF6F92;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}
.bs1v2-order-remove-btn svg {
    width: 16px;
    height: 16px;
    stroke: #FF6F92;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.bs1v2-order-remove-btn:hover { background: rgba(255,111,146,0.25); }

/* Item number */
.bs1v2-order-item-num {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
    width: 36px;
}

/* Item icon (veg/non-veg indicator) */
.bs1v2-order-item-icon {
    width: 14px;
    height: 14px;
}
.bs1v2-order-item-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.5;
}

/* Item name */
.bs1v2-order-item-name {
    flex: 1 1 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--border);
    min-width: 90px;
    overflow-wrap: break-word;
    word-break: normal;
}

/* Qty controls: + number - */
.bs1v2-order-qty-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    width: 110px;
    justify-content: center;
}
.bs1v2-order-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    border-radius: 8px;
}
.bs1v2-order-qty-btn.qty-plus {
    background: rgba(16,180,143,0.12);
    color: #10B48F;
    border: 1.5px solid #10B48F;
}
.bs1v2-order-qty-btn.qty-plus:hover { background: rgba(16,180,143,0.25); }
.bs1v2-order-qty-btn.qty-minus {
    background: rgba(255,111,146,0.12);
    color: #FF6F92;
    border: 1.5px solid #FF6F92;
}
.bs1v2-order-qty-btn.qty-minus:hover { background: rgba(255,111,146,0.25); }
.bs1v2-order-qty-btn:active { transform: scale(0.9); }

.bs1v2-order-qty-value {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-surface);
    border-left: none;
    border-right: none;
}

/* Rate pill */
.bs1v2-order-rate-pill {
    font-size: 10px;
    color: var(--text-muted);
    background: var(--bg-surface-alt);
    padding: 3px 7px;
    border-radius: 4px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
    width: 70px;
    text-align: center;
}

/* Amount */
.bs1v2-order-amount {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
    width: 70px;
    text-align: right;
}

/* Dots / more-options button */
.bs1v2-order-dots-btn {
    width: 36px;
    height: 36px;
    border: 1.5px solid #4A90D9;
    border-radius: 8px;
    background: rgba(74,144,217,0.1);
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #4A90D9;
    transition: all 0.15s;
    flex-shrink: 0;
}
.bs1v2-order-dots-btn:hover { background: #4A90D9; color: #fff; }

/* ======================== */
/* ADDON / COMBO / DELETE   */
/* ======================== */

/* Indented addon rows */
.bs1v2-addon-row {
    padding-left: 10px;
    font-size: 11px;
    font-style: italic;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-right: 10px;
    border-bottom: 1px solid var(--border);
}

/* Combo sub-rows */
.bs1v2-combo-row {
    padding-left: 50px;
    padding-right: 20px;
    font-size: 11px;
    font-style: italic;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

/* Delete-history row (red tint) */
.bs1v2-delete-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255,111,146,0.12);
    background: rgba(255,111,146,0.05);
    border-left: 3px solid #FF6F92;
    font-size: 12px;
}
.bs1v2-delete-row .bs1v2-order-item-name {
    color: #CC3C5F;
    text-decoration: line-through;
}
.bs1v2-delete-row .bs1v2-order-qty-value,
.bs1v2-delete-row .bs1v2-order-amount {
    color: #FF6F92;
}
.bs1v2-delete-row .bs1v2-order-rate-pill {
    color: #CC3C5F;
    background: rgba(255,111,146,0.1);
    border-color: rgba(255,111,146,0.2);
}

/* ======================== */
/* BADGE / LABEL PILLS      */
/* ======================== */

/* Replacing Bootstrap label-warning */
.bs1v2-label-warning {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: #FFF0CC;
    color: #8A6400;
    border: 1px solid #FFE099;
}

/* Replacing Bootstrap label-info */
.bs1v2-label-info {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: #ECF3FE;
    color: #2E6CD9;
    border: 1px solid #A0C2F9;
}

/* Replacing Bootstrap label-danger */
.bs1v2-label-danger {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255,111,146,0.12);
    color: #FF6F92;
    border: 1px solid rgba(255,111,146,0.4);
}

/* Replacing Bootstrap label-default */
.bs1v2-label-default {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-surface-alt);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* ======================== */
/* COURSE HEADER ROW        */
/* ======================== */
.bs1v2-course-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-surface-alt);
    border-bottom: 1px solid var(--border);
    border-left: 3px solid #4A90D9;
}
.bs1v2-course-header.is-fired {
    border-left-color: #34B78F;
    background: rgba(52,183,143,0.06);
}
.bs1v2-course-header.is-selected {
    border-left-color: #4A90D9;
    background: rgba(74,144,217,0.06);
}
.bs1v2-course-name {
    flex: 1;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}
.bs1v2-course-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.bs1v2-course-badge-fire {
    background: #34B78F;
    color: #fff;
}
.bs1v2-course-badge-fire:hover { background: #2DA07D; }
.bs1v2-course-badge-fired {
    background: rgba(52,183,143,0.12);
    color: #34B78F;
    cursor: default;
}
.bs1v2-course-badge-selected {
    background: rgba(74,144,217,0.12);
    color: #4A90D9;
    cursor: default;
}
.bs1v2-course-badge-select {
    background: #FFF0CC;
    color: #8A6400;
    border: 1px solid #FFE099;
}
.bs1v2-course-badge-select:hover { background: #FFE099; }
.bs1v2-course-badge-delete {
    background: #FBE3E3;
    color: #B23A3A;
    border: 1px solid #F3C2C2;
}
.bs1v2-course-badge-delete:hover { background: #F3C2C2; }
.bs1v2-course-badge:disabled,
.bs1v2-course-badge[disabled] { opacity: 0.45; cursor: not-allowed; }
.bs1v2-course-badge-delete {
    padding: 3px 8px;
    line-height: 0;
}
.bs1v2-course-badge-delete svg {
    width: 13px;
    height: 13px;
    vertical-align: middle;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.bs1v2-move-select {
    font-size: 13px;
    border: 1px solid var(--border-strong, #ccc);
    border-radius: 6px;
    padding: 1px 4px;
    max-width: 70px;
    background: #fff;
}
.bs1v2-move-select:disabled { opacity: 0.45; cursor: not-allowed; }

/* ======================== */
/* BOTTOM PANEL             */
/* ======================== */
.bs1v2-cart-bottom {
    border-top: 1px solid var(--border-strong);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    max-height: 50vh;
}

/* Comment buttons row */
.bs1v2-comment-row {
    display: flex;
    gap: 6px;
    padding: 6px 10px;
    height: 46px;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.bs1v2-comment-btn {
    flex: 1;
    padding: 4px 8px;
    height: 32px;
    border: 1.5px solid transparent;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s;
}
/* Bill Comment — light blue */
.bs1v2-comment-btn.bill-comment {
    background: #ECF3FE;
    color: #2E6CD9;
    border-color: #A0C2F9;
}
.bs1v2-comment-btn.bill-comment:hover { background: #DCEAFD; }
.bs1v2-comment-btn.bill-comment svg { stroke: #2E6CD9; }
/* Make Assorted — light amber */
.bs1v2-comment-btn.make-assorted {
    background: #FFF8E7;
    color: #8A6400;
    border-color: #FFE099;
}
.bs1v2-comment-btn.make-assorted:hover { background: #FFF0CC; }
.bs1v2-comment-btn.make-assorted svg { stroke: #8A6400; }
/* KOT Comment — light green */
.bs1v2-comment-btn.kot-comment {
    background: #E7F7F4;
    color: #00815C;
    border-color: #87D9C7;
}
.bs1v2-comment-btn.kot-comment:hover { background: #D4F0EA; }
.bs1v2-comment-btn.kot-comment svg { stroke: #00815C; }
/* Table Summary — light purple */
.bs1v2-comment-btn.table-summary {
    background: #F3EEFA;
    color: #6B3FA0;
    border-color: #C3AFE1;
}
.bs1v2-comment-btn.table-summary:hover { background: #E8DAFA; }
.bs1v2-comment-btn.table-summary svg { stroke: #6B3FA0; }
.bs1v2-comment-btn svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ======================== */
/* ACTION BUTTON ROW (Estimate, Advance, Table Summary, etc.) */
/* ======================== */
.bs1v2-action-btn-row {
    display: flex;
    gap: 6px;
    padding: 6px 10px;
    flex-wrap: wrap;
    align-items: center;
}
.bs1v2-action-btn {
    flex: 1;
    min-width: 0;
    padding: 6px 6px;
    height: 36px;
    border: 1.5px solid transparent;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.15s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bs1v2-action-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* Estimate — teal */
.bs1v2-action-btn.estimate-btn {
    background: #E6F7F5;
    color: #0D7D6C;
    border-color: #7DD4C6;
}
.bs1v2-action-btn.estimate-btn:hover { background: #D0F0EC; }
.bs1v2-action-btn.estimate-btn svg { stroke: #0D7D6C; }
/* Advance — indigo */
.bs1v2-action-btn.advance-btn {
    background: #EBF0FE;
    color: #3B5FC0;
    border-color: #A3B8F0;
}
.bs1v2-action-btn.advance-btn:hover { background: #DCE5FD; }
.bs1v2-action-btn.advance-btn svg { stroke: #3B5FC0; }
/* Table Summary — purple */
.bs1v2-action-btn.table-summary-btn {
    background: #F3EEFA;
    color: #6B3FA0;
    border-color: #C3AFE1;
}
.bs1v2-action-btn.table-summary-btn:hover { background: #E8DAFA; }
.bs1v2-action-btn.table-summary-btn svg { stroke: #6B3FA0; }
/* Call Customer — green */
.bs1v2-action-btn.call-btn {
    background: #E7F7F4;
    color: #00815C;
    border-color: #87D9C7;
}
.bs1v2-action-btn.call-btn:hover { background: #D4F0EA; }
.bs1v2-action-btn.call-btn svg { stroke: #00815C; }
/* Mark Out Of Stock — red (destructive: edits a live Swiggy order) */
.bs1v2-action-btn.oos-btn {
    background: #FDECEC;
    color: #C0392B;
    border-color: #F0A9A0;
}
.bs1v2-action-btn.oos-btn:hover { background: #FBDAD7; }
.bs1v2-action-btn.oos-btn svg { stroke: #C0392B; }
/* Split Bill — amber */
.bs1v2-action-btn.split-btn {
    background: #FFF8E7;
    color: #8A6400;
    border-color: #FFE099;
}
.bs1v2-action-btn.split-btn:hover { background: #FFF0CC; }
.bs1v2-action-btn.split-btn svg { stroke: #8A6400; }

/* ======================== */
/* SECONDARY BUTTON ROW     */
/* ======================== */

/* Row of secondary action buttons */
.bs1v2-secondary-btn-row {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

/* Individual secondary button */
.bs1v2-secondary-btn {
    flex: 1;
    min-width: 80px;
    padding: 7px 10px;
    height: 36px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.15s;
    white-space: nowrap;
}
.bs1v2-secondary-btn:hover {
    border-color: #4A90D9;
    color: #4A90D9;
    background: rgba(74,144,217,0.07);
}

/* ======================== */
/* CUSTOMER + TOTALS ROW    */
/* ======================== */
.bs1v2-cart-details-row {
    display: flex;
    border-bottom: 1px solid var(--border);
}

/* Customer Info Panel */
.bs1v2-customer-panel {
    flex: 1;
    padding: 6px 10px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    overflow-y: auto;
}

.bs1v2-customer-search-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bs1v2-customer-search-input {
    flex: 1;
    /* width:100% + min-width:0 is needed because <input> has an intrinsic UA size (~180px) that
       acts as a floor in flex layouts — without these, flex:1 alone doesn't make the input fill
       the row, so shrinking the row (margin/padding/max-width on the row or input) produces no
       visible change because the input already had spare room around it. */
    width: 100%;
    min-width: 0;
    height: 28px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 0 8px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-input);
    outline: none;
}
.bs1v2-customer-search-input:focus { border-color: #10B48F; }
.bs1v2-customer-search-input::placeholder { color: var(--text-faint); }

/* Right-align mode (change_bill_page_align) — shrink the customer section by 5px on each side
   and narrow the search input by 5px so the panel keeps clearance from the screen edges. */
.bs1-main-content.bs1-right-align .bs1v2-customer-panel { margin: 0 5px; }
/* Shrink the whole customer-search-row by 5px (padding-right, border-box) so both the default
   flex:1 layout and the short-height width:75% layout compute against a 5px-smaller content box.
   This reliably narrows the visible input width in every responsive breakpoint. */
.bs1-main-content.bs1-right-align .bs1v2-customer-search-row {
    padding-right: 5px;
    box-sizing: border-box;
}

.bs1v2-customer-icon-btn {
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    background: var(--bg-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}
.bs1v2-customer-icon-btn:hover { border-color: var(--border-hover); }
.bs1v2-customer-icon-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-secondary);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.bs1v2-customer-icon-btn.info-btn {
    background: #4A90D9;
    border-color: #4A90D9;
}
.bs1v2-customer-icon-btn.info-btn svg { stroke: #fff; }

/* ============================================================
   Customer card — design-system card with header / info / actions
   ============================================================ */
.bs1v2-customer-card {
    background: linear-gradient(135deg, #f5f9ff 0%, #edf3fe 100%);
    border: 1.5px solid #A0C2F9;
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.bs1v2-customer-card-name {
    font-size: 12px;
    font-weight: 700;
    color: #1a2a45;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
    flex-wrap: nowrap;
    min-width: 0;
}
.bs1v2-customer-card-name .bs1v2-customer-card-name-link {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
}
.bs1v2-customer-card-name .bs1v2-customer-card-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bs1v2-customer-card-name .bs1v2-customer-card-loyalty-id {
    font-size: 10px;
    font-weight: 600;
    color: #6A6F77;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bs1v2-customer-card-name svg {
    width: 14px;
    height: 14px;
    stroke: #4A90D9;
    fill: none;
    stroke-width: 2;
}

.bs1v2-customer-card-close {
    margin-left: auto;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 1.5px solid #A0C2F9;
    border-radius: 50%;
    background: rgba(74,144,217,0.10);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #4A90D9;
    transition: all 0.15s;
    line-height: 1;
}
.bs1v2-customer-card-close:hover { background: #4A90D9; color: #fff; border-color: #4A90D9; }

.bs1v2-customer-card-phone {
    font-size: 11.5px;
    font-weight: 600;
    color: #373C44;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 0;
    border-top: 1px dashed rgba(74,144,217,0.18);
    margin-top: 2px;
    padding-top: 4px;
}
.bs1v2-customer-card-phone .fa-mobile { color: #4A90D9; }
.bs1v2-customer-card-phone .verified {
    width: 14px;
    height: 14px;
    color: #10B48F;
    font-size: 12px;
}

.bs1v2-customer-card-detail {
    font-size: 12px;
    font-weight: 500;
    color: #373C44;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 0;
}
.bs1v2-customer-card-detail .fa,
.bs1v2-customer-card-detail i { color: #6A6F77; font-size: 10px; }
.bs1v2-customer-card-detail .label {
    color: #1a2a45;
    font-weight: 700;
}
.bs1v2-customer-card-detail a { font-size: 10px; }

/* Address toggle — collapsible header */
.bs1v2-address-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 8px;
    margin-top: 3px;
    border-radius: 6px;
    background: rgba(74,144,217,0.08);
    border: 1px solid rgba(160,194,249,0.45);
    cursor: pointer;
    transition: background 0.15s;
}
.bs1v2-address-toggle:hover { background: rgba(74,144,217,0.14); }
.bs1v2-address-toggle .bs1v2-address-toggle-label {
    font-size: 11px;
    font-weight: 700;
    color: #1a2a45;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.bs1v2-address-toggle .bs1v2-address-toggle-label .fa { color: #4A90D9; }
.bs1v2-address-toggle .bs1v2-address-toggle-chevron {
    color: #4A90D9;
    font-size: 10px;
}
.bs1v2-address-toggle .bs1v2-address-toggle-type {
    margin-left: 4px;
    padding: 1px 6px;
    font-size: 9px;
    font-weight: 500;
    color: #fff;
    background: #4A90D9;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.bs1v2-address-toggle .bs1v2-address-toggle-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.bs1v2-address-toggle .bs1v2-address-toggle-change {
    border: 1px solid #4A90D9;
    background: rgba(74,144,217,0.10);
    color: #4A90D9;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background 0.15s;
}
.bs1v2-address-toggle .bs1v2-address-toggle-change:hover { background: #4A90D9; color: #fff; }

.bs1v2-customer-card-address {
    font-size: 11px;
    color: #6A6F77;
    line-height: 1.45;
    padding: 6px 8px;
    margin-top: 4px;
    background: #fff;
    border: 1px solid rgba(160,194,249,0.45);
    border-radius: 6px;
}
.bs1v2-customer-card-address .addr-label {
    color: #1a2a45;
    font-weight: 700;
    margin-right: 2px;
}

/* Favourite items + spend stats card */
.bs1v2-customer-card-fav {
    margin-top: 5px;
    padding: 5px 7px 6px;
    background: rgba(74,144,217,0.05);
    border: 1px solid rgba(160,194,249,0.40);
    border-radius: 8px;
}
.bs1v2-customer-card-fav-title {
    font-size: 9px;
    font-weight: 700;
    color: #1a2a45;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
}
.bs1v2-customer-card-fav-title .fa { color: #FFC860; }
.bs1v2-customer-card-fav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 2px 0;
    border-top: 1px dashed rgba(74,144,217,0.18);
    font-size: 10px;
    color: #373C44;
}
.bs1v2-customer-card-fav-row:first-of-type { border-top: none; }
.bs1v2-customer-card-fav-name {
    font-weight: 600;
    color: #1a2a45;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
}
.bs1v2-customer-card-fav-val {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-weight: 700;
    color: #4A90D9;
    font-size: 10px;
}
.bs1v2-customer-card-fav-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    padding: 1px 4px;
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    background: #4A90D9;
    border-radius: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.bs1v2-customer-card-fav-tag.last-bill { background: #FF9772; }

.bs1v2-customer-bottom-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed rgba(74,144,217,0.18);
}

.bs1v2-customer-action-btn {
    flex: 1 1 auto;
    min-width: 50px;
    padding: 3px 8px;
    border: 1px solid #A0C2F9;
    border-radius: 6px;
    background: #fff;
    color: #1a2a45;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    line-height: 1.2;
}
.bs1v2-customer-action-btn:hover { background: #4A90D9; color: #fff; border-color: #4A90D9; }
.bs1v2-customer-action-btn.more-btn { border-color: #c7cfd8; color: #373C44; }
.bs1v2-customer-action-btn.more-btn:hover { background: #373C44; color: #fff; border-color: #373C44; }

/* ======================== */
/* TOTALS PANEL             */
/* ======================== */
.bs1v2-totals-panel {
    flex: 1;
    flex-shrink: 0;
    padding: 4px 10px;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-surface);
    border-left: none;
    min-height: 0;
    overflow-y: auto;
}

.bs1v2-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #6A6F77;
    padding: 3px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.06);
}
.bs1v2-totals-row:first-child {
    padding-top: 0;
}

.bs1v2-totals-row .totals-value,
.bs1v2-totals-value {
    font-weight: 700;
    font-size: 14px;
    color: #373C44;
    text-align: right;
}

.bs1v2-totals-row.offers {
    border-bottom: 1px dashed rgba(0,0,0,0.06);
}
/* Offer pill — green rounded label (matches cart-page-1 reference) */
.bs1v2-totals-offer-pill {
    background: #10B48F;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    display: inline-block;
}
.bs1v2-totals-offer-pill:hover {
    background: #0DA07D;
}

.bs1v2-totals-row.tax {
    border-bottom: none;
}
/* Tax pill — pink rounded value (matches cart-page-1 reference) */
.bs1v2-totals-tax-pill {
    background: #FF6F92;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}
.bs1v2-totals-tax-pill:hover {
    background: #E85A7E;
}

.bs1v2-totals-qty-pill {
    background: #373C44;
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
}

.bs1v2-totals-row.net-amount {
    font-size: 13px;
    font-weight: 800;
    color: #373C44;
    padding: 6px 0 4px;
    border-top: 1px solid #373C44;
    border-bottom: none;
    margin-top: 2px;
}
.bs1v2-totals-row.net-amount .totals-value {
    font-size: 14px;
    font-weight: 800;
    color: #373C44;
}

.bs1v2-totals-outlet {
    margin-top: 3px;
    margin-bottom: 3px;
}

.bs1v2-totals-outlet select {
    width: 100%;
    height: 38px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 0 10px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-input);
    outline: none;
    cursor: pointer;
}
.bs1v2-totals-outlet select:focus {
    border-color: #10B48F;
}

/* ======================== */
/* PRINT KOT BUTTON         */
/* ======================== */
.bs1v2-printkot-btn {
    width: 100%;
    height: 80px;
    flex-shrink: 0;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #10B48F 0%, #0D9A7A 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    margin-top: auto;
    box-shadow: 0 4px 12px rgba(16,180,143,0.3);
}
.bs1v2-printkot-btn:hover {
    background: linear-gradient(135deg, #0D9A7A 0%, #0A8568 100%);
    box-shadow: 0 6px 16px rgba(16,180,143,0.4);
    transform: translateY(-1px);
}
.bs1v2-printkot-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16,180,143,0.3);
}
.bs1v2-printkot-btn svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ======================== */
/* RESPONSIVE — stack CRM below settlement on small screens */
/* ======================== */
@media (max-width: 1100px) {
    .bs1v2-cart-details-row {
        flex-direction: column-reverse;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }
    .bs1v2-customer-panel {
        border-right: none;
        border-top: 1px solid var(--border);
        flex: 0 0 auto;
        max-height: 90px;
        overflow-y: auto;
        padding: 6px 10px;
    }
    .bs1v2-totals-panel {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }
    .bs1v2-cart-bottom {
        max-height: 55vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .bs1v2-printkot-btn { flex-shrink: 0; }
    .bs1v2-action-btn-row { flex-shrink: 0; }
    .bs1v2-comment-row { flex-shrink: 0; }
}
@media (max-width: 1100px) and (max-height: 800px) {
    .bs1v2-customer-panel { max-height: 70px; padding: 4px 8px; }
    .bs1v2-cart-bottom { max-height: 52vh; }
}

/* Compact CRM — keep only customer name + phone on truly narrow widths (phones / small tablets).
   At 1024 × 665 and other short-height mid-width viewports, full CRM details stay visible. */
@media (max-width: 900px) {
    .bs1v2-customer-panel .bs1v2-customer-card-detail,
    .bs1v2-customer-panel .bs1v2-customer-card-address,
    .bs1v2-customer-panel .bs1v2-customer-bottom-btns,
    .bs1v2-customer-panel .bs1v2-customer-card table {
        display: none !important;
    }
}

/* Fixed bottom panel — settle button stays at predictable screen position.
   Cart items list (.bs1v2-cart-order-area) flexes and scrolls to fill remaining space. */
@media (max-width: 1400px) {
    .bs1v2-printkot-btn { height: 72px; font-size: 18px; }
    .bs1v2-comment-row { height: 42px; }
    .bs1v2-action-btn { height: 32px; font-size: 10px; }
    .bs1v2-action-btn-row { padding: 3px 0px; }
    .bs1v2-totals-row { font-size: 14px; }
    .bs1v2-totals-row .totals-value,
    .bs1v2-totals-value { font-size: 14px; }
    .bs1v2-customer-search-input { font-size: 14px; }
}
@media (max-width: 1100px) {
    .bs1v2-printkot-btn { height: 64px; font-size: 17px; }
    .bs1v2-comment-row { height: 38px; padding: 5px 8px; }
    .bs1v2-action-btn { height: 30px; font-size: 10px; }
    .bs1v2-totals-row { font-size: 10px; padding: 2px 0; }
    .bs1v2-totals-row .totals-value,
    .bs1v2-totals-value { font-size: 12px; }
}
@media (max-width: 850px) {
    .bs1v2-customer-panel { padding: 4px 8px; }
    .bs1v2-printkot-btn { height: 58px; font-size: 16px; }
    .bs1v2-comment-row { height: 34px; padding: 4px 6px; gap: 4px; }
    .bs1v2-comment-btn { height: 28px; font-size: 10px; padding: 3px 6px; }
    .bs1v2-action-btn { height: 28px; font-size: 9px; padding: 4px; }
    .bs1v2-action-btn-row { padding: 4px 6px; gap: 4px; }
    .bs1v2-totals-panel { padding: 3px 8px; }
}
@media (max-height: 700px) {
    .bs1v2-cart-bottom { max-height: 55vh; }
    .bs1v2-printkot-btn { height: 56px; }
}

/* Cart order items — shrink row/font so items stay visible on small screens */
@media (max-width: 1400px) {
    .bs1v2-order-item-row { padding: 6px 8px; gap: 5px; }
    .bs1v2-order-item-name { font-size: 13px; min-width: 80px; }
    .bs1v2-order-item-num { font-size: 11px; width: 28px; }
    .bs1v2-order-qty-btn { width: 28px; height: 28px; font-size: 14px; border-radius: 6px; }
    .bs1v2-order-qty-value { width: 26px; height: 28px; font-size: 13px; }
    .bs1v2-order-qty-controls { width: 86px; gap: 3px; }
    .bs1v2-order-rate-pill { display: none; }
    .bs1v2-order-amount { font-size: 13px; width: 56px; }
    .bs1v2-order-remove-btn,
    .bs1v2-order-dots-btn { width: 28px; height: 28px; }
    .bs1v2-addon-row { font-size: 10px; }
}
@media (max-width: 1100px) {
    .bs1v2-order-item-row { padding: 5px 6px; gap: 4px; }
    .bs1v2-order-item-name { font-size: 11px; min-width: 80px; }
    .bs1v2-order-item-num { font-size: 10px; width: 22px; }
    .bs1v2-order-qty-btn { width: 24px; height: 24px; font-size: 12px; }
    .bs1v2-order-qty-value { width: 22px; height: 24px; font-size: 10px; }
    .bs1v2-order-qty-controls { width: 72px; }
    .bs1v2-order-rate-pill { display: none; }
    .bs1v2-order-amount { font-size: 10px; width: 50px; }
    .bs1v2-order-remove-btn,
    .bs1v2-order-dots-btn { width: 24px; height: 24px; }
    .bs1v2-order-remove-btn svg,
    .bs1v2-order-item-icon,
    .bs1v2-order-item-icon svg { width: 12px; height: 12px; }
    .bs1v2-addon-row { font-size: 9px; padding-left: 8px; }
}
@media (max-width: 850px) {
    .bs1v2-order-item-row { padding: 4px 5px; gap: 3px; }
    .bs1v2-order-item-name { font-size: 11px; line-height: 1.2; min-width: 70px; }
    .bs1v2-order-item-num { width: 18px; }
    .bs1v2-order-qty-btn { width: 22px; height: 22px; font-size: 11px; border-radius: 5px; }
    .bs1v2-order-qty-value { width: 20px; height: 22px; font-size: 10px; }
    .bs1v2-order-qty-controls { width: 64px; gap: 2px; }
    .bs1v2-order-rate-pill { display: none; }
    .bs1v2-order-amount { font-size: 10px; width: 44px; }
    .bs1v2-order-remove-btn,
    .bs1v2-order-dots-btn { width: 22px; height: 22px; border-radius: 5px; }
    .bs1v2-addon-row { font-size: 9px; }
}
@media (max-height: 700px) {
    .bs1v2-order-item-row { padding: 4px 6px; }
    .bs1v2-order-item-name { font-size: 10px; }
    .bs1v2-order-qty-btn,
    .bs1v2-order-qty-value,
    .bs1v2-order-remove-btn,
    .bs1v2-order-dots-btn { width: 26px; height: 26px; }

    /* Settle / totals section — 10px font */
    .bs1v2-totals-row { font-size: 10px; }
    .bs1v2-totals-row .totals-value,
    .bs1v2-totals-value { font-size: 10px; }
    .bs1v2-totals-row.net-amount { font-size: 11px; }
    .bs1v2-totals-row.net-amount .totals-value { font-size: 11px; }
    .bs1v2-totals-offer-pill,
    .bs1v2-totals-tax-pill { font-size: 10px; padding: 3px 10px; }
    .bs1v2-totals-qty-pill { font-size: 10px; padding: 1px 6px; }
    .bs1v2-totals-outlet select { height: 30px; font-size: 11px; }
    .bs1v2-totals-panel { padding: 4px 4px; }
    /* Hold / Fire toggle + surrounding course strip — 10% smaller across all buttons */
    .bs1v2-cart-hf-toggle { padding: 4px 7px !important; gap: 4px !important; }
    .bs1v2-hf-btn { padding: 2px 6px !important; font-size: 9px !important; height: 22px !important; gap: 2px !important; }
    .bs1v2-hf-btn svg { width: 10px !important; height: 10px !important; }
    .bs1v2-cart-search-bar { padding: 4px 8px; font-size: 10px; gap: 4px; }
    .bs1v2-cart-search-bar a,
    .bs1v2-cart-search-bar button,
    .bs1v2-cart-search-bar select { font-size: 10px !important; height: 24px; padding: 3px 8px !important; }
    .bs1v2-cart-search-bar i { font-size: 10px; }
    .bs1v2-cart-search-input,
    .bs1v2-cart-qty-input,
    .bs1v2-cart-add-btn { height: 24px; font-size: 10px; }

    /* H/F toggle area — Fire Selected + Game Card + Course-wise buttons (10% smaller across the board) */
    .bs1v2-cart-hf-toggle a,
    .bs1v2-cart-hf-toggle button,
    .bs1v2-cart-hf-toggle select,
    .bs1v2-cart-hf-toggle .btn,
    .bs1v2-cart-hf-toggle input {
        font-size: 9px !important;
        padding: 2px 6px !important;
        height: 22px !important;
        line-height: 1 !important;
        border-radius: 6px !important;
    }
    .bs1v2-cart-hf-toggle a i,
    .bs1v2-cart-hf-toggle button i { font-size: 9px !important; }

    /* Bill / KOT / Assorted comment row — reduce height */
    .bs1v2-comment-row { height: 32px; padding: 4px 8px; gap: 4px; }
    .bs1v2-comment-btn { height: 26px; font-size: 10px; padding: 3px 6px; }
    .bs1v2-comment-btn svg { width: 12px; height: 12px; }

    /* Action buttons + print KOT — remove icons, shrink text */
    .bs1v2-action-btn svg,
    .bs1v2-action-btn.estimate-btn svg,
    .bs1v2-action-btn i,
    .bs1v2-printkot-btn svg,
    .bs1v2-printkot-btn i,
    .bs1v2-comment-btn svg,
    .bs1v2-comment-btn i { display: none !important; }
    .bs1v2-printkot-btn { font-size: 12px; }

    /* Customer card compaction */
    .bs1v2-customer-card { padding: 4px 4px; border: 1px solid #A0C2F9; gap: 3px; }
    .bs1v2-customer-card-name { font-size: 11px; font-weight: 600; gap: 5px; }
    .bs1v2-customer-card-name svg { width: 12px; height: 12px; }
    .bs1v2-customer-card-name .bs1v2-customer-card-loyalty-id { font-size: 9px; }
    .bs1v2-customer-action-btn { font-size: 9px; padding: 3px 6px; min-width: 44px; border-radius: 5px; }
    .bs1v2-address-toggle .bs1v2-address-toggle-type { font-size: 8px; padding: 1px 5px; }
    .bs1v2-address-toggle .bs1v2-address-toggle-change { font-size: 8px; padding: 1px 5px; }
    .bs1v2-customer-card-phone { font-size: 10px; padding-top: 3px; }
    .bs1v2-customer-card-phone .fa-mobile,
    .bs1v2-customer-card-phone .verified { font-size: 10px; }
    .bs1v2-customer-card-detail { font-size: 10px; padding: 1px 0; }
    .bs1v2-customer-card-detail .fa,
    .bs1v2-customer-card-detail i { font-size: 10px; }
    .bs1v2-customer-card-address { font-size: 10px; line-height: 1.35; padding-top: 3px; }
    .bs1v2-customer-bottom-btns { gap: 4px; margin-top: 4px; padding-top: 4px; }
    .bs1v2-customer-action-btn {
        font-size: 10px;
        padding: 4px 8px;
        min-width: 48px;
        border-radius: 6px;
    }
    .bs1v2-customer-card-close { width: 20px; height: 20px; }
    .bs1v2-customer-search-input { width: 75%; }

    /* Address toggle + collapsible address compaction */
    .bs1v2-address-toggle { padding: 4px 6px; margin-top: 2px; border-radius: 5px; }
    .bs1v2-address-toggle .bs1v2-address-toggle-label { font-size: 10px; }
    .bs1v2-address-toggle .bs1v2-address-toggle-chevron { font-size: 9px; }
    .bs1v2-customer-card-address { padding: 5px 7px; font-size: 10px; line-height: 1.35; margin-top: 3px; }

    /* Favourite items card compaction */
    .bs1v2-customer-card-fav { padding: 4px 6px 5px; margin-top: 4px; border-radius: 6px; }
    .bs1v2-customer-card-fav-title { font-size: 8px; margin-bottom: 2px; gap: 3px; }
    .bs1v2-customer-card-fav-row { font-size: 9px; padding: 1px 0; gap: 5px; }
    .bs1v2-customer-card-fav-name { font-size: 9px; }
    .bs1v2-customer-card-fav-val { font-size: 9px; gap: 3px; }
    .bs1v2-customer-card-fav-tag { font-size: 7px; padding: 1px 3px; min-width: 16px; }

    /* Comment / detail rows compaction */
    .bs1v2-customer-card-detail { font-size: 9px; gap: 3px; padding: 1px 0; }
    .bs1v2-customer-card-detail .fa,
    .bs1v2-customer-card-detail i { font-size: 9px; }
    .bs1v2-customer-card-detail a { font-size: 9px; }

    /* Applied offer / rule banner — keep only the offer name and action buttons,
       hide the verbose applicability details (time, day pills, dates, buy/get) */
    .rw-offer-banner { padding: 6px 10px !important; margin-bottom: 4px !important; }
    .rw-offer-banner .rw-offer-banner-head { margin-bottom: 0 !important; }
    .rw-offer-banner .rw-offer-banner-details { display: none !important; }

    /* Compact item-search-top — no border, tight 2px margins, 5px bottom pad, 36px input */
    .rw-item-search-top {
        padding: 0 0 5px !important;
        margin: 2px !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .rw-item-search-top .rw-item-search-input,
    .rw-item-search-top input.form-control {
        height: 36px !important;
        font-size: 11px !important;
        padding: 0 10px !important;
    }
    .rw-item-search-top .rw-item-search-input::placeholder,
    .rw-item-search-top input.form-control::placeholder { font-size: 11px !important; }
    .rw-item-search-top .btn { height: 36px !important; font-size: 11px !important; padding: 0 10px !important; }

    /* Combo child rows — consistent 10px font across all nested spans / divs */
    .bs1v2-combo-row,
    .bs1v2-combo-row span,
    .bs1v2-combo-row div,
    .bs1v2-combo-row em,
    .bs1v2-combo-row button { font-size: 10px !important; }
    .bs1v2-combo-row { padding-top: 2px; padding-bottom: 2px; padding-left: 38px; }
}

/* At 1024×665 (and wider short-height) — CRM + totals stay side-by-side, cart gets slightly more flex. */
@media (max-height: 700px) and (min-width: 1000px) {
    .bs1v2-cart-section { flex: 4.1; }
    .bs1v2-cart-details-row {
        flex-direction: row;
        flex: 0 0 auto;
        overflow: visible;
    }
    .bs1v2-customer-panel {
        border-top: none;
        border-right: 1px solid var(--border);
        max-height: none;
        flex: 1;
    }
    .bs1v2-totals-panel { flex: 1; }
}

/* Very small screens — stack menu on top, cart below (full width each).
   The whole page scrolls vertically; internal sections size to their content. */
@media (max-width: 700px) {
    .bs1-main-content,
    .bs1-main-content.bs1-right-align {
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .bs1-main-content .bs1-menu-section {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: 60vh;
        overflow: visible;
        border-right: none;
        border-left: none;
        border-bottom: 2px solid var(--border-strong);
    }
    .bs1-main-content .bs1v2-cart-section {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        overflow: visible;
    }
    .bs1v2-cart-section .bs1v2-cart-order-area {
        overflow: visible;
        max-height: none;
    }
    .bs1v2-cart-bottom { max-height: none; }
}

/* ============================================================
   Global — uniform 14px border-radius across V2 cart / settle /
   customer / combo sub-elements. Applies at every viewport.
   ============================================================ */
.bs1v2-cart-section,
.bs1v2-cart-bottom,
.bs1v2-printkot-btn,
.bs1v2-action-btn,
.bs1v2-comment-btn,
.bs1v2-order-qty-btn,
.bs1v2-order-qty-value,
.bs1v2-order-remove-btn,
.bs1v2-order-dots-btn,
.bs1v2-order-item-row,
.bs1v2-order-rate-pill,
.bs1v2-hf-btn,
.bs1v2-totals-offer-pill,
.bs1v2-totals-tax-pill,
.bs1v2-totals-qty-pill,
.bs1v2-totals-outlet select,
.bs1v2-customer-search-input,
.bs1v2-customer-icon-btn,
.bs1v2-customer-card,
.bs1v2-cart-search-input,
.bs1v2-cart-qty-input,
.bs1v2-cart-add-btn,
.bs1v2-cart-search-bar,
.bs1v2-label-warning,
.bs1v2-label-info,
.bs1v2-label-default {
    border-radius: 8px !important;
}
