/* ============================================================
   Checkout — app-style express layout (Nov 10, 2026)
   One white panel on a cool mist canvas. Product hero first, three
   collapsible steps, the pay button inside step 3 and pinned at the
   bottom on phones. Figtree everywhere (Cinzel only for the text logo).
   Every id / class that js/checkout.js and the inline translation use
   is unchanged: .field-input/.field-label, .phone-*, .billing-*,
   .shipping-*, .payment-iframe-wrap, .checkout-btn, .js-* hooks,
   .total-*, .tp-*, .review-*, #checkoutToast, the policy modal.
   Previous stylesheet: backups/2026-11-10_multistart_before/physical-checkout.css.before_ui
   ============================================================ */

:root {
  --canvas:        #eef2f7;
  --panel:         #ffffff;
  --panel-2:       #f6f8fb;
  --line:          #dfe4ec;
  --line-strong:   #c9d1dd;
  --ink:           #000000;
  --ink-2:         #3b4453;
  --ink-3:         #6b7484;
  --ink-4:         #98a1b0;
  --action:        #0f4c81;
  --action-hover:  #0c3f6b;
  --action-ring:   rgba(15, 76, 129, 0.22);
  --good:          #15803d;
  --good-soft:     #ecfdf3;
  --good-line:     #b7ebc6;
  --bad:           #c62828;
  --tp-green:      #00b67a;
  --tp-grey:       #dcdce6;
  --r-panel:       22px;
  --r-card:        16px;
  --r-field:       12px;
  --shadow-panel:  0 1px 2px rgba(16, 24, 40, 0.04), 0 18px 48px -24px rgba(16, 24, 40, 0.28);
  --shadow-float:  0 10px 30px -10px rgba(16, 24, 40, 0.35);
  --font:          'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--canvas); font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--ink); min-height: 100vh; -webkit-font-smoothing: antialiased; }
button, input, select { font-family: inherit; font-size: inherit; }
img { display: block; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ── Header ──────────────────────────────────────────────── */
.site-header { background: transparent; }
.site-header-inner { max-width: 1120px; margin: 0 auto; padding: 18px 20px 6px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.site-header-inner > * { grid-row: 1; }
.logo-wrap { grid-column: 2; display: flex; align-items: center; justify-content: center; min-width: 0; }
.brand-logo-img { max-height: 36px; max-width: 180px; object-fit: contain; }
.brand-logo-text { font-family: 'Cinzel', serif; font-size: 22px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink); white-space: nowrap; }
.header-cart-btn { grid-column: 1; justify-self: start; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.header-cart-btn svg { width: 18px; height: 18px; }
.header-cart-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.header-secure { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.header-secure svg { width: 14px; height: 14px; }
@media (max-width: 480px) { .header-secure span { display: none; } }

/* ── Shell: one panel, two columns on desktop ───────────── */
.shell { max-width: 1120px; margin: 10px auto 48px; padding: 0 12px; display: flex; flex-direction: column; gap: 14px; }
.order, .steps { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 960px) {
  .shell { padding: 0 20px; flex-direction: row; align-items: flex-start; gap: 24px; }
  .steps { flex: 1 1 0; order: 1; }
  .order { width: 400px; flex: 0 0 400px; order: 2; position: sticky; top: 16px; }
}

/* ── Hero: the product and what the customer pays ───────── */
.hero { background: var(--panel); border-radius: var(--r-panel); box-shadow: var(--shadow-panel); padding: 18px 18px 14px; }
.hero-product { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; }
.hero-img-wrap { position: relative; width: 76px; height: 76px; border-radius: 18px; background: var(--panel-2); overflow: visible; }
.hero-img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 6px 16px -8px rgba(0,0,0,0.25); }
.hero-img-wrap.is-empty .hero-img { display: none; }
.hero-qty { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--panel); }
.hero-text { min-width: 0; }
.hero-name { font-size: 15px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-stock { font-size: 12.5px; font-weight: 600; color: var(--good); display: flex; align-items: center; gap: 6px; }
.hero-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.hero-arrives { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.hero-arrives strong { color: var(--ink); font-weight: 600; }
.hero-price { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; align-self: start; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.hero-trust svg { width: 15px; height: 15px; color: var(--ink-3); flex-shrink: 0; }

/* phones: the product and the price first, then the steps, the reviews last */
@media (max-width: 959px) {
  .order { display: contents; }
  .hero { order: 0; } .price-details { order: 1; } .steps { order: 2; } .reviews-section { order: 3; }
}

/* urgency line (English visitors only: the translation script hides it elsewhere) */
.urgency-wrap { margin-top: 12px; }
.urgency-banner { border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; padding: 8px 12px; }
.urgency-inner { display: flex; align-items: center; gap: 8px; }
.urgency-dot { width: 8px; height: 8px; border-radius: 50%; background: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,0.18); flex-shrink: 0; }
.urgency-text { font-size: 12.5px; color: #7c2d12; }
.urgency-text strong { font-weight: 700; }

/* ── Price details (collapsible on phones, open on desktop) ─ */
.price-details { background: var(--panel); border-radius: var(--r-card); box-shadow: var(--shadow-panel); padding: 0 18px; }
.price-details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 14px; font-weight: 700; }
.price-details summary::-webkit-details-marker { display: none; }
.price-details summary svg { width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s; }
.price-details[open] summary svg { transform: rotate(180deg); }
.price-details[open] summary { border-bottom: 1px solid var(--line); }
.order-items { padding: 14px 0 4px; display: flex; flex-direction: column; gap: 12px; }
.product-row { display: flex; gap: 12px; align-items: center; }
.product-img-wrap { position: relative; width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; background: var(--panel-2); }
.product-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.product-qty-badge { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--ink-3); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.product-info { flex: 1; min-width: 0; }
.product-name-price { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.product-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.product-price { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals-wrap { padding: 10px 0 16px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 7px; }
.total-label, .total-value { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.total-value.js-shipping-value { color: var(--good); font-weight: 700; }
.total-row.is-discount .total-label, .total-row.is-discount .total-value { color: var(--good); font-weight: 700; }
.total-row.is-fee .total-label, .total-row.is-fee .total-value { color: var(--ink-3); }
.total-final { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); align-items: center; }
.total-label-big { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.total-value-big { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.currency-code { font-size: 11px; font-weight: 600; color: var(--ink-4); margin-right: 6px; vertical-align: 3px; }
.tax-note { font-size: 11.5px; color: var(--ink-4); text-align: right; margin-top: 2px; }
.save-pill { display: inline-block; font-size: 11px; font-weight: 700; color: var(--good); background: var(--good-soft); border: 1px solid var(--good-line); border-radius: 999px; padding: 2px 8px; }
@media (min-width: 960px) {
  .price-details summary { pointer-events: none; }
  .price-details summary svg { display: none; }
}

/* ── Reviews ─────────────────────────────────────────────── */
.reviews-section { background: var(--panel); border-radius: var(--r-card); box-shadow: var(--shadow-panel); padding: 16px 18px; }
.tp-header-top { display: flex; justify-content: space-between; align-items: center; }
.tp-logo { height: 20px; }
.tp-rating-word { font-size: 14px; font-weight: 800; }
.tp-header-bottom { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.tp-stars { display: inline-flex; gap: 2px; }
.tp-star { width: 14px; height: 14px; background: var(--tp-green); position: relative; }
.tp-star::after { content: ''; position: absolute; inset: 2px; background: #fff; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.tp-stars-lg .tp-star { width: 20px; height: 20px; }
.tp-star.half { background: linear-gradient(90deg, var(--tp-green) 50%, var(--tp-grey) 50%); }
.tp-rating-meta { font-size: 12.5px; color: var(--ink-3); }
.reviews-list { display: flex; gap: 10px; overflow-x: auto; margin: 12px -18px 0; padding: 2px 18px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reviews-list::-webkit-scrollbar { display: none; }
.review-card { flex: 0 0 240px; scroll-snap-align: start; background: var(--panel-2); border-radius: 12px; padding: 12px 14px; }
.review-header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.review-name { font-size: 13px; font-weight: 700; }
.review-date { font-size: 11.5px; color: var(--ink-4); white-space: nowrap; }
.review-card .tp-stars { margin: 2px 0 6px; }
.review-text { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
@media (min-width: 960px) {
  .reviews-list { flex-direction: column; overflow: visible; margin: 12px 0 0; padding: 0; }
  .review-card { flex: none; }
}

/* ── Steps ───────────────────────────────────────────────── */
.step { background: var(--panel); border-radius: var(--r-panel); box-shadow: var(--shadow-panel); overflow: hidden; }
.step-head { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px 18px; background: none; border: none; text-align: left; cursor: pointer; color: inherit; }
.step-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; transition: background .2s; }
.step-mark svg { width: 14px; height: 14px; display: none; }
.step.is-done:not(.is-open) .step-mark { background: var(--good); }
.step.is-done:not(.is-open) .step-mark .step-no { display: none; }
.step.is-done:not(.is-open) .step-mark svg { display: block; }
.step:not(.is-open):not(.is-done) .step-mark { background: var(--panel-2); color: var(--ink-3); }
.step-titles { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.step-title { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.step-summary { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-summary:empty { display: none; }
.step-edit { font-size: 13px; font-weight: 700; color: var(--action); display: none; }
.step.is-done:not(.is-open) .step-edit { display: inline; }
.step-body { display: none; padding: 0 18px 20px; }
.step.is-open .step-body { display: block; animation: stepIn .22s ease; }
@keyframes stepIn { from { transform: translateY(-4px); } to { transform: none; } }
.step-hint { font-size: 13.5px; color: var(--ink-3); margin: -6px 0 14px; }
.step-next { width: 100%; height: 50px; margin-top: 16px; border: none; border-radius: var(--r-field); background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s, transform .1s; }
.step-next:hover { background: #222; }
.step-next:active { transform: translateY(1px); }
.step-next:focus-visible, .step-head:focus-visible, .checkout-btn:focus-visible, .sticky-pay-btn:focus-visible { outline: 3px solid var(--action-ring); outline-offset: 2px; }

/* ── Fields (markup unchanged for js/checkout.js) ───────── */
.fields-col, .delivery-fields, .billing-fields { display: flex; flex-direction: column; gap: 10px; }
.fields-row { display: flex; gap: 10px; }
.fields-row > .field-wrap { flex: 1 1 0; min-width: 0; }
.field-wrap { width: 100%; }
.input-relative, .select-relative { position: relative; }
.field-input, .field-select {
  width: 100%; height: 52px; padding: 20px 14px 6px; font-size: 15px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-field);
  outline: none; color: var(--ink) !important; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.field-input:hover, .field-select:hover { border-color: var(--ink-4); }
.field-input:focus, .field-select:focus { border-color: var(--action); box-shadow: 0 0 0 3px var(--action-ring); }
.field-input.field-error, .field-select.field-error, .phone-input-v2.field-error { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15); }
.field-label, .select-label {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--ink-3); pointer-events: none; white-space: nowrap;
  transition: all .15s ease-out; transform-origin: top left;
}
.field-input:focus + .field-label, .field-input:not(:placeholder-shown) + .field-label, .field-input.has-value + .field-label, .field-label.active, .select-label.active {
  top: 8px; transform: translateY(0) scale(0.8); font-size: 14px; color: var(--ink-3);
}
.field-select { padding-right: 40px; }
.select-chevron { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-3); }
.select-chevron svg { width: 16px; height: 16px; }
.field-error-msg { font-size: 12.5px; color: var(--bad); margin-top: 5px; }
.field-error-msg:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* phone (classes unchanged) */
.phone-wrap-v2 { position: relative; display: flex; align-items: stretch; height: 52px; border: 1px solid var(--line-strong); border-radius: var(--r-field); background: var(--panel); transition: border-color .15s, box-shadow .15s; }
.phone-wrap-v2:focus-within { border-color: var(--action); box-shadow: 0 0 0 3px var(--action-ring); }
.phone-prefix-btn { display: flex; align-items: center; gap: 6px; padding: 0 12px; background: none; border: none; cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 600; }
.phone-prefix-btn svg { width: 12px; height: 12px; color: var(--ink-3); }
.flag-img { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; }
.phone-divider { width: 1px; background: var(--line); margin: 10px 0; }
.phone-input-wrap-v2 { position: relative; flex: 1; }
.phone-input-v2 { width: 100%; height: 100%; padding: 20px 14px 6px; border: none; background: transparent; outline: none; font-size: 15px; color: var(--ink); }
.phone-label-v2 { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--ink-3); pointer-events: none; transition: all .15s ease-out; transform-origin: top left; white-space: nowrap; }
.phone-input-v2:focus + .phone-label-v2, .phone-input-v2:not(:placeholder-shown) + .phone-label-v2 { top: 8px; transform: translateY(0) scale(0.8); }
.phone-dropdown-v2 { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; width: 300px; max-height: 260px; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-float); }
.phone-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; font-size: 14px; }
.phone-dropdown-item:hover, .phone-dropdown-item.selected { background: var(--panel-2); }
.phone-dropdown-item .dial-code { margin-left: auto; color: var(--ink-3); }

/* address suggestions (js/checkout.js) */
.address-suggestions { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-float); overflow: hidden; }
.address-suggestions.open { display: block; }
.address-suggestion-item { padding: 10px 14px; cursor: pointer; }
.address-suggestion-item:hover { background: var(--panel-2); }
.suggestion-main { font-size: 14px; font-weight: 600; }
.suggestion-secondary { font-size: 12.5px; color: var(--ink-3); }

/* billing toggle (ids unchanged) */
.billing-header { margin-top: 14px; }
.billing-toggle-label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.billing-checkbox-box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--panel); display: inline-flex; align-items: center; justify-content: center; }
.billing-checkbox-box svg { visibility: hidden; }
.billing-checkbox-box.checked { background: var(--ink); border-color: var(--ink); }
.billing-checkbox-box.checked svg { visibility: visible; }
.billing-fields { margin-top: 12px; }
.sub-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.checkbox-label[hidden] { display: none !important; }

/* delivery option */
.shipping-option { margin-top: 14px; border: 1.5px solid var(--ink); border-radius: var(--r-card); padding: 14px; background: var(--panel-2); }
.shipping-option-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.shipping-left { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.shipping-radio-wrap { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.shipping-radio-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.shipping-name { font-size: 14.5px; font-weight: 700; }
.shipping-estimate { font-size: 13px; color: var(--ink-3); }
.shipping-eta { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.shipping-eta strong { font-weight: 700; color: var(--ink); }
.shipping-free-badge { background: var(--good-soft); color: var(--good); border: 1px solid var(--good-line); font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.04em; flex-shrink: 0; }

/* ── Payment ─────────────────────────────────────────────── */
.payment-secure-notice { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.payment-secure-notice svg { width: 14px; height: 14px; color: var(--good); }
.payment-iframe-wrap { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel-2); margin-bottom: 14px; }
.payment-iframe-wrap p { color: var(--ink-3) !important; }
/* fee breakdown on the method card (filled in by the inline script): subtotal + processing fee = total with the method */
.method-fee-box { margin: 14px -16px -16px; padding: 12px 16px 14px; border-top: 1px dashed var(--line-strong); background: #eef4fb; border-radius: 0 0 var(--r-card) var(--r-card); text-align: left; }
.mf-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; color: var(--ink-2); padding: 3px 0; font-variant-numeric: tabular-nums; }
.mf-fee { color: #0f4c81; font-weight: 700; }
.mf-discount { color: var(--good); font-weight: 700; }
.mf-total { margin-top: 4px; padding-top: 8px; border-top: 1px solid #c7d9ee; color: var(--ink); font-weight: 800; font-size: 15px; }
.payment-iframe-wrap.has-discount .method-fee-box { background: var(--good-soft); }
.payment-iframe-wrap.has-discount .mf-total { border-top-color: var(--good-line); }
/* nothing under the pay button: fee and discount live on the payment card, shipping on the delivery card */
.pay-note.fee, .pay-note.shipping, .pay-note.discount { display: none !important; }
.checkout-btn {
  display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; height: 56px; border-radius: 14px; border: none; cursor: pointer;
  background: var(--action); color: #fff; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 12px;
  box-shadow: 0 8px 20px -8px rgba(15, 76, 129, 0.6); transition: background .15s, transform .1s, box-shadow .15s;
}
.checkout-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.checkout-btn:hover { background: var(--action-hover); }
.checkout-btn:active { transform: translateY(1px); }
.checkout-btn:disabled { opacity: .7; cursor: default; }
.spinner-ring { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* note under the pay button: one look per case (js/checkout.js sets the class
   fee / shipping / discount and the text; the icon comes from CSS) */
.pay-note { display: none; width: fit-content; max-width: 100%; margin: 0 auto 4px; padding: 7px 14px 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.3; align-items: center; gap: 7px; }
.pay-note.visible { display: flex; }
.pay-note::before { content: ''; width: 15px; height: 15px; flex-shrink: 0; background: no-repeat center / contain; }
.pay-note.discount { background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; box-shadow: 0 6px 14px -6px rgba(21, 128, 61, 0.6); }
.pay-note.discount::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L2 12V2h10l8.6 8.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7' cy='7' r='1.5'/%3E%3C/svg%3E"); }
.pay-note.fee { background: #eef4fb; color: #0f4c81; border: 1px solid #c7d9ee; }
.pay-note.fee::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f4c81' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.7 8.9a2 2 0 0 1-1.2 0C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.2-2.7a1.2 1.2 0 0 1 1.6 0C14.5 3.8 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3C/svg%3E"); }
.pay-note.shipping { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.pay-note.shipping::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a3412' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 3h15v13H1zM16 8h4l3 3v5h-7V8z'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E"); }

/* the same three looks on the price-details rows */
.total-row.is-discount .total-label::before, .total-row.is-shipping .total-label::before { content: ''; display: inline-block; width: 13px; height: 13px; margin-right: 6px; vertical-align: -2px; background: no-repeat center / contain; }
.total-row.is-discount .total-label::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L2 12V2h10l8.6 8.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7' cy='7' r='1.5'/%3E%3C/svg%3E"); }
.total-row.is-fee .total-label, .total-row.is-fee .total-value { color: #0f4c81; font-weight: 600; }
.total-row.is-shipping .total-label, .total-row.is-shipping .total-value.js-shipping-value { color: #9a3412; font-weight: 600; }
.total-row.is-shipping .total-label::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a3412' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 3h15v13H1zM16 8h4l3 3v5h-7V8z'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E"); }

/* ── Footer links ────────────────────────────────────────── */
.footer-section { padding: 6px 6px 0; }
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.footer-link { font-size: 12.5px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.footer-link:hover { color: var(--ink); }

/* ── Policy modal + toast ────────────────────────────────── */
.policy-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(16,24,40,0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 9999; align-items: center; justify-content: center; padding: 20px; }
.policy-modal-overlay.open { display: flex; }
.policy-modal { background: #fff; border-radius: 18px; max-width: 560px; width: 100%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: var(--shadow-float); }
.policy-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.policy-modal-title { font-size: 17px; font-weight: 800; }
.policy-modal-close { background: none; border: none; font-size: 26px; color: var(--ink-4); cursor: pointer; line-height: 1; }
.policy-modal-close:hover { color: var(--ink); }
.policy-modal-body { padding: 20px 24px 28px; overflow-y: auto; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.policy-modal-body h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 18px 0 6px; }
.policy-modal-body h3:first-child { margin-top: 0; }
.policy-modal-body p { margin: 0 0 12px; }
.policy-modal-body ul { margin: 0 0 12px; padding-left: 20px; }
@media (max-width: 600px) { .policy-modal { max-height: 85vh; border-radius: 18px 18px 0 0; align-self: flex-end; } }

/* ── Wait overlay (Nov 11, 2026): from the pay click until the payment page opens ── */
.wait-overlay { display: none; position: fixed; inset: 0; background: rgba(16,24,40,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 10001; align-items: center; justify-content: center; padding: 20px; }
.wait-overlay.open { display: flex; }
body.wait-open { overflow: hidden; }
.wait-card { background: var(--panel); border-radius: var(--r-panel); max-width: 400px; width: 100%; padding: 34px 28px 28px; text-align: center; box-shadow: var(--shadow-float); animation: waitIn .25s ease; }
@keyframes waitIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.wait-spinner { width: 48px; height: 48px; margin: 0 auto 20px; border: 4px solid var(--line); border-top-color: var(--action); border-radius: 50%; animation: spin .8s linear infinite; }
.wait-title { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 8px; }
.wait-text { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin: 0 0 18px; }
.wait-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--good); background: var(--good-soft); border: 1px solid var(--good-line); border-radius: 999px; padding: 5px 12px; }
.wait-secure svg { width: 13px; height: 13px; }
#checkoutToast { position: fixed; bottom: 92px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 10000; opacity: 0; transition: all .3s ease; pointer-events: none; max-width: 90vw; text-align: center; }
#checkoutToast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 768px) { #checkoutToast { bottom: 28px; } }

/* ── Sticky pay bar (phones) ─────────────────────────────── */
.sticky-pay { display: none; }
@media (max-width: 959px) {
  .sticky-pay { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(16,24,40,0.10); transform: translateY(110%); transition: transform .25s ease; }
  .sticky-pay.show { transform: translateY(0); }
  .sticky-pay-total { display: flex; flex-direction: column; line-height: 1.15; }
  .sticky-pay-total span { font-size: 11px; color: var(--ink-3); font-weight: 600; }
  .sticky-pay-total strong { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .sticky-pay-btn { flex: 1; max-width: 240px; height: 48px; border: none; border-radius: 12px; background: var(--action); color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(15,76,129,0.6); }
  .shell { margin-bottom: 96px; }
}
