/* ════ Cart Drawer ══════════════════════════════════════════════════ */

.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1100;
    opacity: 0; pointer-events: none;
    transition: opacity .25s;
}
.cart-overlay.show { opacity: 1; pointer-events: auto; }

.cart-drawer {
    position: fixed; top: 0; right: 0;
    width: min(380px, 100vw);
    height: 100%;
    background: var(--surface, #1e1e1e);
    border-left: 1px solid var(--border, #333);
    z-index: 1101;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border, #333);
}
.cart-drawer-header h3 { margin: 0; font-size: 1.1rem; }
.cart-close {
    background: none; border: none; color: var(--text-muted, #888);
    font-size: 1.2rem; cursor: pointer; padding: 4px 8px;
    border-radius: 6px; transition: color .2s;
}
.cart-close:hover { color: var(--text, #fff); }

.cart-drawer-body {
    flex: 1; overflow-y: auto;
    padding: 1rem;
    display: flex; flex-direction: column; gap: .75rem;
}

.cart-empty {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: .5rem;
    padding: 3rem 1rem; color: var(--text-dim, #555);
    font-size: .9rem;
}
.cart-empty i { font-size: 2rem; }

.cart-item {
    display: flex; flex-direction: row; align-items: stretch; gap: .75rem;
    background: var(--surface-2);
    border-radius: 10px; padding: .75rem;
}
.cart-item-img-link { display: block; flex-shrink: 0; align-self: center; }
.cart-item-img { width: 56px; height: 56px; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.cart-item-body {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; justify-content: space-between;
}
.cart-item-link {
    display: block; min-width: 0;
    text-decoration: none; color: inherit; cursor: pointer;
}
.cart-item-link:hover .cart-item-name { color: var(--primary, #f90); }
.cart-item-brand {
    font-size: .7rem; font-weight: 600; letter-spacing: .04em;
    color: #4ea8de; margin: 0 0 .1rem; text-transform: uppercase;
}
.cart-item-name {
    font-size: .85rem; font-weight: 500;
    margin: 0; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    margin-top: .35rem;
}
.cart-item-price { font-size: .8rem; color: var(--primary, #f90); margin: 0; flex-shrink: 0; white-space: nowrap; }
.cart-item-actions { display: flex; align-items: center; gap: .35rem; flex-shrink: 0; }
.cart-item-left { display: none; }
.cart-item-right { display: none; }

.cart-item-qty {
    display: flex; align-items: center; gap: .35rem;
}
.qty-btn {
    width: 24px; height: 24px;
    background: var(--surface-3);
    border: none; border-radius: 5px;
    color: var(--text); cursor: pointer;
    font-size: .9rem; display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.qty-btn:hover { background: var(--primary, #f90); color: #000; }
.cart-item-qty span { font-size: .85rem; min-width: 18px; text-align: center; }

.cart-item-remove {
    background: none; border: none;
    color: var(--text-dim, #555); cursor: pointer;
    font-size: .85rem; padding: 4px;
    transition: color .2s; flex-shrink: 0;
}
.cart-item-remove:hover { color: #f55; }

.cart-drawer-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border, #333);
    display: flex; flex-direction: column; gap: .75rem;
}
.cart-total-row {
    display: flex; justify-content: space-between;
    font-size: .95rem;
}
.cart-total-row strong { color: var(--primary, #f90); font-size: 1.1rem; }

/* Badge pop animation */
.cart-badge {
    display: none; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 4px;
    background: var(--primary, #f90); color: #000;
    font-size: .7rem; font-weight: 700; border-radius: 99px;
}
@keyframes badgePop { 0%,100%{ transform:scale(1) } 40%{ transform:scale(1.5) } }
.cart-badge.pop { animation: badgePop .35s ease; }

/* Toast */
.cart-toast {
    position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--primary, #f90); color: #000;
    padding: .5rem 1.2rem; border-radius: 99px;
    font-size: .85rem; font-weight: 600;
    opacity: 0; transition: opacity .25s, transform .25s;
    z-index: 2000; pointer-events: none; white-space: nowrap;
}
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ════ Checkout Modal ═══════════════════════════════════════════════ */

.checkout-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 1200;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    opacity: 0; pointer-events: none;
    transition: opacity .25s;
}
.checkout-overlay.open { opacity: 1; pointer-events: auto; }

.checkout-modal {
    background: var(--surface, #1e1e1e);
    border: 1px solid var(--border, #333);
    border-radius: 16px;
    width: 100%; max-width: 600px;
    margin: auto;
    overflow: hidden;
    transform: translateY(24px);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.checkout-overlay.open .checkout-modal { transform: translateY(0); }

.checkout-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border, #333);
}
.checkout-header h2 { margin: 0; font-size: 1.2rem; }
.checkout-close {
    background: none; border: none;
    color: var(--text-muted, #888); font-size: 1.2rem;
    cursor: pointer; padding: 4px 8px; border-radius: 6px;
    transition: color .2s;
}
.checkout-close:hover { color: var(--text, #fff); }

#checkout-step-form { padding: 1.5rem; }

/* Order summary inside modal */
.co-items {
    background: var(--surface2, #2a2a2a);
    border-radius: 10px; padding: .75rem 1rem;
    margin-bottom: 1.25rem;
    display: flex; flex-direction: column; gap: .4rem;
}
.co-item {
    display: flex; align-items: center; gap: .5rem;
    font-size: .875rem;
}
.co-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-item-qty  { color: var(--text-muted, #888); flex-shrink: 0; }
.co-item-price{ color: var(--primary, #f90); flex-shrink: 0; }

/* Form rows */
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .co-row { grid-template-columns: 1fr; } }

.checkout-total-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .75rem 0;
    border-top: 1px solid var(--border, #333);
    margin: .75rem 0;
    font-size: 1rem;
}
.checkout-total-row strong {
    color: var(--primary, #f90); font-size: 1.15rem; font-weight: 700;
}

.btn-full { width: 100%; justify-content: center; }

/* Success step */
.checkout-success {
    padding: 3rem 2rem;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.success-icon { font-size: 4rem; color: #4ade80; }
.checkout-success h3 { font-size: 1.4rem; margin: 0; }
.checkout-success p  { color: var(--text-muted, #aaa); max-width: 420px; }
.order-id-label      { font-size: .85rem; color: var(--text-dim, #666); }
.order-id-label code {
    background: var(--surface2, #2a2a2a);
    padding: 2px 8px; border-radius: 5px;
    font-family: monospace; font-size: .8rem;
    color: var(--text, #fff); margin-left: .35rem;
    word-break: break-all;
}

/* ══════════════════════════════════════════════════
   CHECKOUT PAGE (checkout.html)
   ══════════════════════════════════════════════════ */
.co-page-wrap {
    max-width: 1080px; margin: 0 auto; padding: 24px 20px 60px;
}
.co-page-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-muted, #8888A0); margin-bottom: 18px;
}
.co-page-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.co-page-breadcrumb a:hover { color: var(--primary); }
.co-page-breadcrumb i.fa-chevron-right { font-size: 10px; opacity: .5; }
.co-page-title {
    font-size: 22px; font-weight: 800; margin: 0 0 28px;
    display: flex; align-items: center; gap: 10px;
}
.co-page-title i { color: var(--primary); }

/* 2-column grid: cart left, form right */
.co-page-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: start; gap: 28px;
}
.co-cart-section,
.co-form-section {
    background: var(--surface, #16161D);
    border: 1px solid var(--border, rgba(255,255,255,.09));
    border-radius: 14px; padding: 24px;
}
.co-section-title {
    font-size: 15px; font-weight: 700; margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border, rgba(255,255,255,.08));
}
.co-subsection-title {
    font-size: 13px; font-weight: 600; margin: 20px 0 12px;
    color: var(--text-muted, rgba(255,255,255,.55));
    text-transform: uppercase; letter-spacing: .04em;
}
.co-subsection-title:first-child { margin-top: 0; }

/* DPD picker layout: selects left, map right */
.co-dpd-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}
.co-dpd-selects { display: flex; flex-direction: column; gap: 12px; }
.co-dpd-map {
    border-radius: 8px;
    overflow: hidden;
    min-height: 200px;
    background: var(--surface-2, rgba(255,255,255,.05));
    border: 1px solid var(--border, rgba(255,255,255,.1));
}
.co-dpd-map iframe {
    width: 100%;
    height: 240px;
    border: none;
    display: block;
}
.co-dpd-map-placeholder {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted, rgba(255,255,255,.4));
    font-size: 13px;
}
.co-dpd-map-placeholder i { font-size: 32px; opacity: .5; }
@media (max-width: 600px) {
    .co-dpd-layout { grid-template-columns: 1fr; }
    .co-dpd-map { min-height: 160px; }
}

/* Cart item rows */
.co-items-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.co-item-row {
    display: grid;
    grid-template-columns: 56px 1fr 96px 80px 28px;
    align-items: center; gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border, rgba(255,255,255,.06));
}
.co-item-row:last-child { border-bottom: none; }
.co-item-img {
    width: 56px; height: 56px; object-fit: contain; border-radius: 6px;
    background: var(--surface-2, #1D1D27);
}
.co-item-img--placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--text-dim, #555);
}
.co-item-info { min-width: 0; }
.co-item-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-item-unit-price { font-size: 12px; color: var(--text-muted, #8888A0); margin-top: 3px; }
.co-item-qty-wrap {
    display: flex; align-items: center; justify-content: center; gap: 2px;
    background: var(--surface-2, #1D1D27);
    border: 1px solid var(--border); border-radius: 8px;
    padding: 2px 4px;
}
.co-qty-btn {
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    font-size: 14px; padding: 4px 8px; line-height: 1;
    transition: color .15s;
}
.co-qty-btn:hover { color: var(--primary); }
.co-qty-val { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.co-item-subtotal { font-size: 14px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.co-item-remove {
    background: none; border: none; color: var(--text-dim, #555);
    cursor: pointer; font-size: 14px; padding: 4px;
    transition: color .15s; line-height: 1;
}
.co-item-remove:hover { color: #ff6b6b; }
.co-cart-total-row {
    display: flex; justify-content: flex-end; align-items: center; gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border, rgba(255,255,255,.09));
    font-size: 15px;
}
.co-cart-total-row strong { font-size: 20px; color: var(--primary); }

/* Form section */
.co-submit-total { margin-top: 20px; }
.co-submit-total-line {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 15px; margin-bottom: 14px;
}
.co-submit-total-line strong { font-size: 20px; color: var(--primary); }

/* Empty & Success states */
.co-empty-state {
    text-align: center; padding: 60px 20px;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.co-empty-state i { font-size: 48px; color: var(--text-dim); }
.co-empty-state p  { color: var(--text-muted); font-size: 16px; }
.co-page-success {
    max-width: 480px; margin: 60px auto; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.co-success-icon { font-size: 64px; color: var(--green, #22C880); }
.co-page-success h2 { font-size: 24px; }
.co-page-success p  { color: var(--text-muted); }
.co-order-id-label { font-size: .85rem; color: var(--text-dim); }
.co-order-id-label code {
    background: var(--surface2, #2a2a2a);
    padding: 2px 8px; border-radius: 5px;
    color: var(--text); margin-left: .35rem;
    font-family: monospace; font-size: .8rem;
}

/* Responsive */
@media (max-width: 780px) {
    .co-page-grid { grid-template-columns: 1fr; }
    .co-item-row  { grid-template-columns: 48px 1fr 96px auto; }
    .co-item-subtotal { display: none; }
    .co-page-wrap { padding: 14px 14px 50px; }
    .co-delivery-grid { grid-template-columns: 1fr; }
    .co-addr-grid--split { grid-template-columns: 1fr; }
}

/* ── Checkout: Delivery method selector ─────────────────────────── */
.co-delivery-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start;
    margin-bottom: 10px;
}
.co-delivery-methods { display: flex; flex-direction: column; gap: 8px; }
.co-method-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: 10px;
    border: 1.5px solid var(--border);
    cursor: pointer; transition: border-color .15s, background .15s;
    background: var(--surface-2, #1a1a2e);
}
.co-method-card:hover:not(.co-method-card--disabled) { border-color: var(--primary); }
.co-method-card:has(input:checked) {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb, 80,160,255), .08);
}
.co-method-card--disabled { opacity: .55; cursor: not-allowed; }
.co-method-card input[type=radio] {
    width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--primary);
}
.co-method-body { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.co-method-icon  { font-size: 18px; color: var(--primary); width: 22px; text-align: center; flex-shrink: 0; }
.co-method-text  { display: flex; align-items: center; justify-content: space-between; flex: 1; min-width: 0; gap: 8px; }
.co-method-title { font-size: .9rem; font-weight: 600; color: var(--text); }
.co-method-price { font-size: .85rem; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.co-method-free  { color: #22c880; }
.co-method-unavailable { font-size: .78rem; color: var(--text-dim); flex-shrink: 0; }
.co-method-info-link { color: var(--primary); text-decoration: underline; }

.co-delivery-info-wrap {
    border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.co-delivery-info-header {
    display: flex; align-items: center; gap: 8px;
    background: var(--surface-2, #1a1a2e);
    color: var(--text-muted); font-size: .85rem; font-weight: 500;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.co-delivery-info-content {
    padding: 16px; font-size: .82rem; line-height: 1.7; color: var(--text-muted);
    max-height: 340px; overflow-y: auto; min-height: 60px;
}

/* ── Checkout page: Address picker ───────────────────────────────── */
.co-addr-wrap { margin-top: 0; }
.co-addr-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.co-addr-grid--split { grid-template-columns: 1fr 1fr; }

.co-addr-section-title {
    display: flex; align-items: center; justify-content: space-between;
    font-size: .82rem; font-weight: 600; color: var(--text);
    padding: 9px 14px;
    background: var(--surface-2, #1a1a2e);
    border: 1px solid var(--border); border-radius: 8px 8px 0 0; border-bottom: none;
}
.co-addr-book-link {
    font-size: .76rem; color: var(--primary); font-weight: 400;
    text-decoration: none; white-space: nowrap;
}
.co-addr-book-link:hover { text-decoration: underline; }

.co-addr-radio-list {
    display: flex; flex-direction: column;
    border: 1px solid var(--border); border-radius: 0 0 8px 8px; overflow: hidden;
}
.co-addr-radio-item {
    display: flex; align-items: flex-start; gap: 10px;
    border-bottom: 1px solid var(--border); padding: 10px 14px;
    cursor: pointer; transition: background .15s;
}
.co-addr-radio-item:last-child { border-bottom: none; }
.co-addr-radio-item:hover { background: rgba(var(--primary-rgb), .04); }
.co-addr-radio-item:has(input:checked) { background: rgba(var(--primary-rgb), .09); }
.co-addr-radio-item input[type=radio] {
    margin-top: 3px; accent-color: var(--primary); flex-shrink: 0;
}
.co-addr-radio-label {
    display: flex; flex-direction: column; gap: 2px;
    font-size: .9rem; color: var(--text);
}
.co-addr-radio-label strong { font-weight: 600; }
.co-addr-radio-line { color: var(--text-dim); font-size: .82rem; }

.co-addr-new-panel {
    border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden;
    transition: border-color .15s;
}
.co-addr-new-panel--active { border-color: var(--primary); }
.co-addr-new-panel .co-addr-section-title {
    border: none; border-bottom: 1px solid var(--border); border-radius: 0;
}
.co-addr-manual { padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 80px; }
.co-addr-new-btn {
    display: flex; align-items: center; gap: 8px; justify-content: center;
    width: 100%; margin: auto 0;
    background: none; border: 1.5px dashed var(--border); border-radius: 8px;
    color: var(--primary); font-size: .88rem; font-weight: 500;
    padding: 18px 16px; cursor: pointer; transition: border-color .15s, background .15s;
}
.co-addr-new-btn:hover { border-color: var(--primary); background: rgba(var(--primary-rgb),.05); }
.co-addr-manual input {
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border);
    border-radius: 6px; padding: 8px 10px;
    color: var(--text); width: 100%; font-size: .9rem;
    box-sizing: border-box;
}
.co-addr-manual input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), .15);
}
.co-addr-manual .co-row { gap: 8px; margin: 0; }

/* ── Checkout: Step progress bar ─────────────────────────────────── */
.co-steps {
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
    padding: 0 0 24px; margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.co-step {
    display: flex; align-items: center; gap: 6px;
    font-size: .82rem; color: var(--text-dim); padding: 4px 8px;
    border-radius: 6px; white-space: nowrap;
}
.co-step-sep { color: var(--text-dim); font-size: .7rem; }
.co-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--border); color: var(--text-dim);
    font-size: .75rem; font-weight: 700; flex-shrink: 0;
}
.co-step-icon { font-size: .82rem; }
.co-step--active {
    color: var(--text); font-weight: 600;
}
.co-step--active .co-step-num {
    background: var(--primary); color: #000;
}
.co-step--done {
    text-decoration: none; color: var(--text-dim);
}
.co-step--done .co-step-num {
    background: rgba(var(--primary-rgb), .25); color: var(--primary);
}
a.co-step--done:hover { color: var(--primary); }

/* ── Checkout: Step panels ───────────────────────────────────────── */
.co-step-panel { animation: coFadeIn .18s ease; }
@keyframes coFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.co-panel-narrow { max-width: 880px; margin: 0 auto; }
.co-step-title {
    font-size: 1.2rem; font-weight: 700; margin: 0 0 20px;
    padding-bottom: 12px; border-bottom: 1px solid var(--border);
}

/* ── Checkout: Step navigation buttons ──────────────────────────── */
.co-step-nav {
    display: flex; gap: 12px; align-items: center;
    margin-top: 20px; flex-wrap: wrap;
}
.co-step-nav--right { justify-content: flex-end; }
.co-step-nav--between { justify-content: space-between; }

/* Clear cart inline confirm */
.co-clear-wrap { position: relative; }
.co-clear-confirm {
    display: none; align-items: center; gap: 8px;
    position: absolute; bottom: calc(100% + 8px); right: 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 8px 12px;
    white-space: nowrap; box-shadow: 0 4px 20px rgba(0,0,0,.4);
    font-size: 13px; color: var(--text);
    z-index: 10;
}
.co-clear-confirm.open { display: flex; }
.btn-danger {
    background: #c0392b; color: #fff; border: none;
}
.btn-danger:hover { background: #e74c3c; }

/* ── Checkout: Auth step ─────────────────────────────────────────── */
.co-auth-divider {
    text-align: center; position: relative; margin: 20px 0;
    color: var(--text-dim); font-size: .82rem;
}
.co-auth-divider::before, .co-auth-divider::after {
    content: ''; position: absolute; top: 50%; width: calc(50% - 28px);
    height: 1px; background: var(--border);
}
.co-auth-divider::before { left: 0; }
.co-auth-divider::after  { right: 0; }
.co-auth-divider span { background: var(--bg, #0f0f23); padding: 0 10px; }
.co-auth-hint {
    margin-top: 16px; text-align: center; font-size: .85rem;
    color: var(--text-dim);
}
.co-auth-hint a { color: var(--primary); }

/* ── Checkout: Review step ───────────────────────────────────────── */
.co-review-card {
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 10px; padding: 18px 20px; margin-bottom: 20px;
}
.co-review-details { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.co-review-row {
    display: flex; justify-content: space-between; gap: 12px;
    font-size: .88rem; flex-wrap: wrap;
}
.co-review-row span { color: var(--text-dim); flex-shrink: 0; }
.co-review-row strong { text-align: right; word-break: break-word; }
.co-review-edit-btn {
    background: none; border: none; cursor: pointer;
    color: var(--primary); font-size: .82rem; padding: 0;
    display: flex; align-items: center; gap: 5px; margin-top: 4px;
}
.co-review-edit-btn:hover { text-decoration: underline; }

/* ── Checkout: Payment step ──────────────────────────────────────── */
.co-payment-summary {
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 10px; padding: 18px 20px; margin-bottom: 20px;
}
.co-payment-items-mini { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.co-payment-item-row {
    display: flex; justify-content: space-between; gap: 12px;
    font-size: .88rem; color: var(--text);
}
.co-payment-item-qty { color: var(--text-dim); }
.co-payment-total-row {
    display: flex; justify-content: space-between;
    padding-top: 12px; border-top: 1px solid var(--border);
    font-size: 1rem;
}
.co-payment-total-row strong { font-size: 1.15rem; font-weight: 700; color: var(--primary); }

/* ── Checkout: Readonly item list (review step) ──────────────────── */
.co-items-list--readonly .co-item-row {
    grid-template-columns: 56px 1fr auto auto;
    cursor: default;
}
.co-item-qty-ro {
    font-size: .85rem; color: var(--text-dim);
    display: flex; align-items: center;
}

@media (max-width: 520px) {
    .co-steps { gap: 2px; font-size: .75rem; }
    .co-step-sep { display: none; }
    .co-step-lbl { display: none; }
    .co-step--active .co-step-lbl { display: inline; }
    .co-step-nav { flex-direction: column; }
    .co-step-nav .btn-app { width: 100%; justify-content: center; }
}

