/* MerchPOS - styles */

/* -------- Reset & basics -------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
    --bg:        #0b0b0d;
    --bg-elev:   #16161a;
    --bg-card:   #1c1c22;
    --line:      #2a2a31;
    --line-strong:#404049;
    --text:      #f4f4f5;
    --text-mute: #a1a1aa;
    --text-dim:  #6b6b73;
    --accent:    #ff2a3c;     /* rock red */
    --accent-2:  #ffcd1f;     /* alert yellow */
    --ok:        #21c97a;
    --warn:      #f7b32b;
    --danger:    #ff2a3c;
    --shadow-1:  0 1px 0 rgba(255,255,255,.04), 0 8px 24px rgba(0,0,0,.35);
    --radius:    14px;
    --radius-sm: 10px;

    /* Safe-area + dynamic viewport */
    --safe-top:    env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    /* Tap target sizes */
    --tap-min: 56px;
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overscroll-behavior: none;
}

/* Brand display font: condensed industrial feel via system fallbacks */
.brand, .brand-big {
    font-family: "Impact", "Haettenschweiler", "Arial Narrow Bold", "Helvetica Neue Condensed", sans-serif;
    letter-spacing: 0.04em;
    font-weight: 900;
}

button { font-family: inherit; }

/* -------- Utility / shared -------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--tap-min);
    padding: 0 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: var(--bg-elev);
    color: var(--text);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform .06s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn.ghost {
    background: transparent;
}
.btn.danger {
    background: transparent;
    border-color: var(--danger);
    color: var(--danger);
}
.btn.big {
    min-height: 64px;
    font-size: 18px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.alert {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin: 14px 0;
    background: var(--bg-elev);
    border-left: 4px solid var(--line-strong);
    font-size: 14px;
}
.alert.error { border-left-color: var(--danger); }
.alert.warn  { border-left-color: var(--warn); }
.alert.ok    { border-left-color: var(--ok); }
.alert ul    { margin: 6px 0 0 0; padding-left: 18px; }

.muted { color: var(--text-mute); }
.tiny  { font-size: 12px; color: var(--text-mute); }
.spacer { flex: 1; }

input, select, textarea {
    width: 100%;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 16px;
    min-height: 48px;
    font-family: inherit;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}
label {
    display: block;
    font-size: 13px;
    color: var(--text-mute);
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
label > input, label > select, label > textarea { margin-top: 6px; }

/* -------- Install / Login pages -------- */

.install-body, .login-body {
    min-height: 100dvh;
    background: radial-gradient(circle at 50% -20%, #2a0810 0%, var(--bg) 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(20px, var(--safe-top)) 16px max(20px, var(--safe-bottom));
}

.install-wrap, .login-wrap {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-1);
}

.install-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.brand {
    font-size: 22px;
    color: var(--text);
}
.brand span { color: var(--accent); }
.step-indicator {
    font-size: 12px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.install-form, .login-form { display: flex; flex-direction: column; gap: 8px; }
.install-form .btn, .login-form .btn { margin-top: 14px; width: 100%; }
.install-foot { margin-top: 24px; text-align: center; color: var(--text-dim); }
h1 { font-size: 24px; margin: 16px 0; }

.brand-big {
    font-size: 56px;
    text-align: center;
    line-height: 1;
    margin-bottom: 4px;
}
.brand-big span { color: var(--accent); }
.brand-sub {
    text-align: center;
    color: var(--text-mute);
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 12px;
}

/* -------- App shell (seller POS) -------- */

.app-body {
    /* Use dvh so address-bar show/hide doesn't clip content */
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    padding: max(8px, var(--safe-top)) 12px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.topbar .tour-selector {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    min-height: 44px;
}
.topbar .iconbtn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}
.topbar .iconbtn:active { transform: scale(0.95); }

.app-main {
    flex: 1;
    overflow-y: auto;
    /* Bottom space so floating cart button never covers content */
    padding: 12px 12px calc(100px + var(--safe-bottom));
    -webkit-overflow-scrolling: touch;
}

/* Grid of items */
.items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (min-width: 600px)  { .items-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .items-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .items-grid { grid-template-columns: repeat(5, 1fr); } }

.item-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color .15s ease, transform .08s ease;
}
.item-card:active { transform: scale(0.98); }
.item-card.soldout {
    opacity: 0.42;
    pointer-events: none;
    filter: grayscale(0.6);
}
.item-card.soldout::after {
    content: "AGOTADO";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    background: var(--danger);
    color: #fff;
    padding: 6px 14px;
    font-weight: 900;
    letter-spacing: 0.1em;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,.6);
}

.item-img {
    aspect-ratio: 1 / 1;
    background: #000;
    background-size: cover;
    background-position: center;
    position: relative;
}
.item-img.no-img {
    background:
        repeating-linear-gradient(45deg, #18181d 0 12px, #1d1d23 12px 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.item-stock-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.item-stock-badge.low { background: var(--warn); color: #000; border-color: transparent; }
.item-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.item-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.25;
    /* Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}
.item-price {
    font-weight: 700;
    font-size: 17px;
    color: var(--accent);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-mute);
}
.empty-state h2 { color: var(--text); margin-bottom: 8px; }

/* Floating "view cart" button */
.cart-fab {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + var(--safe-bottom));
    z-index: 50;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 14px;
    min-height: 64px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 12px 32px rgba(255,42,60,0.45);
    cursor: pointer;
    transition: transform .1s ease;
}
.cart-fab:active { transform: scale(0.98); }
.cart-fab[hidden] { display: none; }
.cart-fab .count {
    background: rgba(0,0,0,0.3);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 14px;
}

/* -------- Bottom sheet (size picker, cart, etc.) -------- */
.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }

.sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 101;
    background: var(--bg-elev);
    border-radius: 20px 20px 0 0;
    border-top: 1px solid var(--line);
    transform: translateY(100%);
    transition: transform .25s cubic-bezier(.2,.7,.2,1);
    max-height: 85dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: var(--safe-bottom);
}
.sheet.open { transform: translateY(0); }

.sheet-handle {
    width: 40px; height: 4px;
    background: var(--line-strong);
    border-radius: 4px;
    margin: 10px auto 0;
}
.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 8px;
}
.sheet-title {
    font-size: 18px;
    font-weight: 700;
}
.sheet-close {
    width: 36px; height: 36px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.sheet-body {
    padding: 8px 20px 20px;
    overflow-y: auto;
}

/* Size picker grid */
.sizes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.size-btn {
    background: var(--bg-card);
    border: 2px solid var(--line);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 14px 8px;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .08s;
}
.size-btn:active { transform: scale(0.96); }
.size-btn:hover { border-color: var(--accent); }
.size-btn .lbl {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.size-btn .stock {
    font-size: 11px;
    color: var(--text-mute);
    margin-top: 4px;
}
.size-btn:disabled, .size-btn.soldout {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
.size-btn.soldout .stock { color: var(--danger); }

/* Cart sheet */
.cart-lines { display: flex; flex-direction: column; gap: 8px; }
.cart-line {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}
.cart-line .info { flex: 1; min-width: 0; }
.cart-line .name {
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cart-line .sub {
    font-size: 12px;
    color: var(--text-mute);
}
.cart-line .price {
    font-weight: 700;
    color: var(--accent);
    font-size: 15px;
    min-width: 70px;
    text-align: right;
}
.cart-line .qty {
    display: flex;
    align-items: center;
    gap: 4px;
}
.cart-line .qty button {
    width: 32px; height: 32px;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
}
.cart-line .qty .n { min-width: 24px; text-align: center; font-weight: 700; }
.cart-line .remove {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
}

.cart-totals {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-totals .label {
    font-size: 14px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.cart-totals .total {
    font-size: 30px;
    font-weight: 900;
}

.cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
    padding: 0 20px 20px;
}
.cart-actions .btn { min-height: 72px; font-size: 17px; flex-direction: column; gap: 2px; }
.cart-actions .btn .sub { font-size: 11px; font-weight: 500; opacity: 0.8; }
.cart-actions .btn.cash {
    background: var(--ok);
    border-color: var(--ok);
    color: #000;
}
.cart-actions .btn.electronic {
    background: #2b6cff;
    border-color: #2b6cff;
    color: #fff;
}

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(96px + var(--safe-bottom));
    background: var(--bg-card);
    color: var(--text);
    padding: 12px 18px;
    border-radius: 999px;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    border: 1px solid var(--line);
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.ok    { border-color: var(--ok); }
.toast.error { border-color: var(--danger); }

/* -------- Admin panel -------- */
.admin-body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    padding: max(8px, var(--safe-top)) 16px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.admin-topbar .brand { font-size: 18px; }
.admin-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin: 0;
    padding: 0 8px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 56px;
    z-index: 9;
    /* Account for safe-top variance */
}
.admin-tab {
    background: transparent;
    border: none;
    color: var(--text-mute);
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.admin-tab.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.admin-main {
    flex: 1;
    padding: 20px 16px max(80px, calc(20px + var(--safe-bottom)));
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.admin-section { display: none; }
.admin-section.active { display: block; }

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 8px;
    flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: 20px; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.data-table th, .data-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.data-table th {
    background: var(--bg-elev);
    color: var(--text-mute);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table .row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.data-table .row-actions .btn { min-height: 36px; padding: 0 14px; font-size: 13px; }
.pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid var(--line-strong);
    color: var(--text-mute);
}
.pill.on  { color: var(--ok); border-color: var(--ok); }
.pill.off { color: var(--text-dim); }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.adm-item-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s;
    position: relative;
}
.adm-item-card:hover { border-color: var(--accent); }
.adm-item-card .img {
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-color: #000;
}
.adm-item-card .img.no-img {
    background: repeating-linear-gradient(45deg, #18181d 0 12px, #1d1d23 12px 24px);
}
.adm-item-card .body {
    padding: 10px 12px;
}
.adm-item-card .name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.adm-item-card .meta {
    font-size: 12px;
    color: var(--text-mute);
}
.adm-item-card.inactive { opacity: 0.5; }

/* Modal (admin forms) */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    max-width: 600px;
    width: 100%;
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
}
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 { margin: 0; font-size: 18px; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.size-stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}
.size-stock-row {
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 8px;
}
.size-stock-row .lbl {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-mute);
    margin-bottom: 4px;
}
.size-stock-row input {
    min-height: 38px;
    padding: 6px 10px;
    font-size: 14px;
}

.img-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 2px dashed var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg);
    cursor: pointer;
    min-height: 140px;
    justify-content: center;
    overflow: hidden;
}
.img-picker.has-image { padding: 0; border-style: solid; }
.img-picker img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    display: block;
}
.img-picker .ph {
    text-align: center;
    color: var(--text-mute);
    font-size: 14px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.kpi {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
}
.kpi .label {
    font-size: 12px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.kpi .value {
    font-size: 26px;
    font-weight: 800;
}

.row-flex {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: end;
    margin-bottom: 16px;
}
.row-flex > * { flex: 1; min-width: 140px; }
.row-flex .btn { flex: 0 0 auto; }

@media (max-width: 540px) {
    .data-table thead { display: none; }
    .data-table tr { display: grid; grid-template-columns: 1fr; padding: 8px; gap: 4px; border-bottom: 1px solid var(--line); }
    .data-table td { display: flex; justify-content: space-between; gap: 8px; border: none; padding: 4px 8px; }
    .data-table td::before {
        content: attr(data-label);
        color: var(--text-mute);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 600;
    }
    .data-table .row-actions { justify-content: flex-start; padding-top: 6px; }
}

/* -------- Format variant grid (admin item modal) -------- */
.format-stock-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.format-stock-row {
    display: grid;
    grid-template-columns: 90px 1fr 1fr;
    gap: 6px;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 8px 10px;
}
.format-stock-row .fmt-lbl {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-mute);
}
.format-stock-row .fmt-sub {
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.format-stock-row input {
    min-height: 36px;
    padding: 6px 8px;
    font-size: 13px;
}

/* Confirmation sheet in seller POS */
.confirm-sheet-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.confirm-method {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-mute);
    font-weight: 700;
}
.confirm-total {
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
    margin: 8px 0;
}
.confirm-lines {
    width: 100%;
    font-size: 13px;
    color: var(--text-mute);
    border-top: 1px solid var(--line);
    padding-top: 12px;
    text-align: left;
    max-height: 140px;
    overflow-y: auto;
}
.confirm-line {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    gap: 8px;
}
.confirm-line .lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    padding: 0 20px 20px;
}
.confirm-actions .btn { min-height: 64px; font-size: 16px; }
.confirm-actions .btn.go { font-size: 18px; font-weight: 800; text-transform: uppercase; }

/* Format variant picker in seller POS (reuses size-btn style, adds price) */
.variant-btn .price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 2px;
}
