/* DeviceGo: shopping bag, checkout and customer accounts. Colors and type come from the tokens in store.css.
   The bag and account are neutral like the store header: black type and a black main button, gray fields and hover
   backgrounds, hairline rules, underline hovers on text links. Checkout and its confirmation stay just as light and
   use the store's green (--co-* below) only for the Pay button, what's chosen and money saved. Red only marks errors
   and sale prices. */
[hidden] { display:none !important; }
button,input,textarea,select { font:inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
/* shop pages of their own (sign-in, checkout), and the account inside the store's header and footer */
.shop-page,.account-layout { color:var(--ink); font-size:15px; }
.shop-page h1,.account-layout h1 { font-size:clamp(28px,2.6vw,34px); line-height:1.15; letter-spacing:-.025em; }
.shop-page h2,.account-layout h2 { font-size:19px; line-height:1.35; }
.shop-page p,.account-layout p { line-height:1.6; }
.shop-brand { display:inline-flex; align-items:center; flex-shrink:0; }
.shop-brand img { width:164px; height:auto; }

/* Buttons: black for the main action, gray for the rest, text links underlined on hover. */
.shop-btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:52px; padding:0 24px; border:1px solid transparent; border-radius:14px; background:var(--ink); color:#fff; font:600 16px/1.2 var(--font-button); text-align:center; cursor:pointer; transition:background .15s,color .15s,transform .15s; }
.shop-btn svg { flex-shrink:0; width:18px; height:18px; }
.shop-btn:hover { background:#2e3230; }
.shop-btn:active { transform:scale(.985); }
.shop-btn:disabled { background:var(--gray-field); color:var(--ink-3); cursor:not-allowed; transform:none; }
.shop-btn-light { background:var(--gray-field); color:var(--ink); }
.shop-btn-light:hover { background:var(--gray-field-hover); }
.shop-icon-btn { display:inline-grid; place-items:center; flex-shrink:0; width:40px; height:40px; padding:0; border:0; border-radius:50%; background:transparent; color:inherit; cursor:pointer; transition:background .15s; }
.shop-icon-btn svg { width:22px; height:22px; }
.shop-icon-btn:hover { background:var(--gray-field); }
.shop-text-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:0 4px; border:0; background:transparent; color:var(--ink-2); font-size:14px; font-weight:500; text-decoration:underline 1.5px transparent; text-underline-offset:4px; cursor:pointer; transition:color .15s,text-decoration-color .15s; }
.shop-text-btn svg { width:16px; height:16px; }
.shop-text-btn:hover { color:var(--ink); text-decoration-color:currentColor; }
.shop-text-btn:disabled { color:var(--ink-3); text-decoration:none; cursor:wait; }
.shop-link { display:inline-flex; align-items:center; gap:6px; color:var(--ink); font-weight:600; text-decoration:underline 1.5px; text-decoration-color:var(--gray-control); text-underline-offset:4px; transition:text-decoration-color .15s; }
.shop-link svg { width:16px; height:16px; }
.shop-link:hover { text-decoration-color:currentColor; }
.shop-back { display:inline-flex; align-items:center; gap:8px; color:var(--ink-2); font-size:14px; font-weight:500; text-decoration:underline 1.5px transparent; text-underline-offset:4px; transition:color .15s,text-decoration-color .15s; }
.shop-back svg { width:18px; height:18px; }
.shop-back:hover { color:var(--ink); text-decoration-color:currentColor; }
.shop-eyebrow { display:block; font-size:12px; font-weight:600; letter-spacing:.08em; line-height:1.5; text-transform:uppercase; }
.shop-muted { color:var(--ink-2); }
.shop-small { font-size:13px; }

/* Fields: white with a gray outline that darkens under the pointer and turns black while typing. */
.shop-field { display:flex; flex-direction:column; gap:6px; min-width:0; margin:14px 0; color:var(--ink); font-size:14px; font-weight:500; }
.shop-field input,.shop-field select,.shop-field textarea { width:100%; min-height:52px; padding:13px 16px; border:1px solid var(--gray-control); border-radius:12px; background:#fff; color:var(--ink); font-size:16px; font-weight:400; line-height:1.4; transition:border-color .15s,box-shadow .15s; }
.shop-field textarea { min-height:0; resize:vertical; }
.shop-field input::placeholder,.shop-field textarea::placeholder { color:var(--ink-3); }
.shop-field input:hover,.shop-field select:hover,.shop-field textarea:hover { border-color:var(--gray-control-hover); }
.shop-field input:focus,.shop-field select:focus,.shop-field textarea:focus { border-color:var(--ink); box-shadow:0 0 0 3px rgba(18,22,20,.08); outline:none; }
.shop-field input[readonly] { border-color:var(--gray-line); background:var(--tile); color:var(--ink-2); }
.shop-field small { color:var(--ink-3); font-size:13px; font-weight:400; }
.shop-field [aria-invalid=true] { border-color:var(--danger); box-shadow:0 0 0 3px color-mix(in srgb,var(--danger) 14%,transparent); }
/* dropdowns look like the fields, with the store's chevron */
.shop-select { position:relative; display:block; }
.shop-field .shop-select select { padding-right:40px; appearance:none; -webkit-appearance:none; cursor:pointer; }
.shop-select svg { position:absolute; top:50%; right:14px; width:18px; height:18px; margin-top:-9px; color:var(--ink-2); pointer-events:none; }
.shop-field select:invalid { color:var(--ink-3); }
.shop-field select option { color:var(--ink); }
/* A US address: city, state and ZIP code share a row; the street field can list Google's suggestions under it,
   white with rounded corners like the header's search panel, Google's credit at the foot. */
.address-row { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,.8fr); gap:0 14px; }
.address-field { position:relative; }
.address-suggest { position:absolute; top:calc(100% + 6px); left:0; right:0; z-index:30; overflow:hidden; border-radius:14px; background:#fff; box-shadow:0 0 0 1px var(--gray-line),0 18px 40px -12px rgba(15,15,20,.28); }
.address-suggest ul { margin:0; padding:6px; list-style:none; }
.address-suggest li { display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:10px; cursor:pointer; }
.address-suggest li > svg { flex-shrink:0; color:var(--ink-3); }
.address-suggest li > span { display:flex; flex-direction:column; min-width:0; }
.address-suggest strong { overflow:hidden; font-size:15px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.address-suggest small { overflow:hidden; color:var(--ink-3); font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.address-suggest li.is-active { background:var(--gray-field); }
.address-suggest-credit { display:flex; justify-content:flex-end; padding:8px 14px; border-top:1px solid var(--gray-line); }
.address-suggest-credit img { width:auto; height:15px; }
.shop-check { display:flex; align-items:flex-start; gap:10px; margin:14px 0; color:var(--ink-2); font-size:14px; line-height:1.5; cursor:pointer; }
.shop-check input { flex-shrink:0; width:18px; height:18px; margin:2px 0 0; accent-color:var(--ink); }
.shop-grid-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 14px; }
.shop-form-error { margin:12px 0; padding:12px 14px; border-radius:12px; background:color-mix(in srgb,var(--danger) 9%,#fff); color:#a62d24; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.shop-form-error:empty { display:none; }
.shop-panel { margin:16px 0; padding:24px; border:1px solid var(--gray-line); border-radius:16px; background:#fff; }
.shop-panel h2 { margin-bottom:10px; }
.shop-empty { padding:48px 24px; text-align:center; }
.shop-empty p { max-width:380px; margin:10px auto 24px; color:var(--ink-2); }
.shop-empty-icon { display:inline-grid; place-items:center; width:64px; height:64px; margin-bottom:18px; border-radius:50%; background:var(--gray-field); color:var(--ink); }
.shop-empty-icon svg { width:28px; height:28px; }
.shop-status { display:inline-flex; align-items:center; padding:3px 9px; border-radius:6px; background:var(--gray-field); color:var(--ink); font-size:12px; font-weight:600; line-height:1.5; white-space:nowrap; }
.shop-multiline { white-space:pre-wrap; overflow-wrap:anywhere; }
.shop-toast { position:fixed; bottom:24px; left:50%; z-index:100; max-width:calc(100% - 32px); padding:14px 20px; border-radius:14px; background:var(--ink); color:#fff; font-size:14px; box-shadow:0 12px 40px rgba(0,0,0,.2); transform:translateX(-50%); }
.shop-toast.is-error { background:#9f3229; }

/* Shopping bag: a white panel from the right over the page, dimmed and blurred like behind the header's menus.
   Delivery on a gray strip at the top, each device on a gray tile with a gray quantity pill, the subtotal and the
   black Checkout button pinned at the bottom. */
body.bag-open { overflow:hidden; }
.bag-drawer { position:fixed; inset:0; width:440px; max-width:100%; height:100dvh; max-height:100dvh; margin:0 0 0 auto; padding:0; border:0; background:#fff; color:var(--ink); box-shadow:-24px 0 60px rgba(15,15,20,.12); }
.bag-drawer[open] { display:flex; flex-direction:column; animation:bag-enter .35s var(--ease); }
.bag-drawer::backdrop { background:rgba(15,15,20,.22); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); animation:bag-fade .25s ease; }
.bag-head { display:flex; flex-shrink:0; align-items:center; justify-content:space-between; gap:16px; min-height:72px; padding:0 16px 0 24px; border-bottom:1px solid var(--gray-line); }
.bag-head h2 { display:flex; align-items:center; gap:10px; font-size:20px; font-weight:600; letter-spacing:-.02em; }
.bag-head h2:focus { outline:none; }
.bag-count { display:inline-grid; place-items:center; min-width:24px; height:24px; padding:0 7px; border-radius:12px; background:var(--gray-field); color:var(--ink); font-size:13px; font-weight:600; letter-spacing:0; }
.bag-content { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:0 24px; }
.bag-shipping { display:flex; align-items:center; gap:12px; margin:16px 0 4px; padding:13px 16px; border-radius:14px; background:var(--tile); font-size:14px; line-height:1.4; color:var(--ink-2); }
.bag-shipping-icon { display:grid; flex-shrink:0; color:var(--ink); }
.bag-shipping-text { flex:1; min-width:0; }
.bag-shipping strong { color:var(--ink); font-weight:600; }
.bag-progress { height:4px; margin-top:8px; overflow:hidden; border-radius:2px; background:var(--gray-field-hover); }
.bag-progress span { display:block; height:100%; border-radius:2px; background:var(--ink); transition:width .4s var(--ease); }
.bag-loading { padding:24px 0; color:var(--ink-3); font-size:14px; }
.bag-line { display:grid; grid-template-columns:84px minmax(0,1fr); gap:16px; padding:20px 0; border-bottom:1px solid var(--gray-line); }
.bag-line:last-child { border-bottom:0; }
.bag-line-image { display:grid; place-items:center; width:84px; height:84px; border-radius:14px; background:var(--tile); color:var(--ink-3); }
.bag-line-image img { width:100%; height:100%; padding:8px; object-fit:contain; mix-blend-mode:multiply; }
.bag-line-body { min-width:0; }
.bag-line-top { display:flex; justify-content:space-between; gap:12px; }
.bag-line-title { font-size:15px; font-weight:600; line-height:1.35; text-decoration:underline 1.5px transparent; text-underline-offset:3px; transition:text-decoration-color .15s; }
a.bag-line-title:hover { text-decoration-color:currentColor; }
.bag-line-total { font-family:var(--font-price); font-size:15px; font-weight:600; white-space:nowrap; }
.bag-line-meta { display:block; margin-top:3px; color:var(--ink-3); font-size:13px; }
.bag-line-price { display:flex; gap:8px; margin-top:2px; color:var(--ink-2); font-family:var(--font-price); font-size:13px; }
.bag-line-price s { color:var(--ink-3); }
.bag-line-actions { display:flex; align-items:center; justify-content:space-between; margin-top:12px; }
.bag-quantity { display:flex; align-items:center; height:36px; padding:3px; border-radius:18px; background:var(--gray-field); }
.bag-quantity button { display:grid; place-items:center; width:30px; height:30px; padding:0; border:0; border-radius:50%; background:transparent; color:var(--ink); font-size:17px; line-height:1; cursor:pointer; transition:background .15s,box-shadow .15s; }
.bag-quantity button:hover:not(:disabled) { background:#fff; box-shadow:0 1px 3px rgba(15,15,20,.12); }
.bag-quantity button:disabled { color:var(--ink-3); opacity:.5; cursor:not-allowed; }
.bag-quantity input { width:32px; height:100%; padding:0; border:0; border-radius:6px; outline-offset:-2px; background:transparent; color:var(--ink); font-size:14px; font-weight:600; text-align:center; appearance:textfield; -moz-appearance:textfield; }
.bag-quantity input::-webkit-inner-spin-button,.bag-quantity input::-webkit-outer-spin-button { margin:0; appearance:none; }
.bag-remove { padding:6px 0; border:0; background:none; color:var(--ink-3); font-size:13px; text-decoration:underline; text-decoration-color:var(--gray-control); text-underline-offset:3px; cursor:pointer; transition:color .15s,text-decoration-color .15s; }
.bag-remove:hover { color:var(--ink); text-decoration-color:currentColor; }
.bag-footer { flex-shrink:0; max-height:50dvh; overflow:auto; padding:18px 24px calc(18px + env(safe-area-inset-bottom)); border-top:1px solid var(--gray-line); background:#fff; }
.bag-total { display:flex; align-items:baseline; justify-content:space-between; font-size:16px; font-weight:600; }
.bag-total strong { font-family:var(--font-price); font-size:22px; font-weight:700; letter-spacing:-.02em; }
.bag-discount { display:flex; justify-content:space-between; margin:8px 0 0; color:var(--sale); font-size:14px; font-weight:500; }
.bag-footer p { margin:4px 0 0; color:var(--ink-3); font-size:13px; }
.bag-footer .shop-btn { width:100%; min-height:54px; margin-top:16px; }
/* the Checkout button takes its color from admin → Website → Product page (store.css --buy-checkout: black unless set) */
.bag-footer .shop-btn:not(:disabled) { background:var(--buy-checkout); color:var(--buy-checkout-ink); transition:filter .15s,transform .2s,box-shadow .2s; }
.bag-footer .shop-btn:not(:disabled):hover { background:var(--buy-checkout); filter:brightness(.9); box-shadow:0 8px 20px -10px rgba(15,15,20,.45); transform:translateY(-1px); }
.bag-footer .shop-btn:not(:disabled):active { transform:scale(.985); }
.bag-footer .shop-text-btn { display:flex; width:100%; margin-top:6px; }
.bag-content .shop-empty { padding-top:72px; }
.bag-line-error { margin:8px 0; color:#ac362c; font-size:13px; }
/* "Complete your setup": extras for what's in the bag (lib/extras.php), each with a gray Add button */
.bag-extras { padding:18px 0 24px; }
.bag-extras h3 { margin:0 0 6px; font-size:15px; font-weight:600; }
.bag-extra { display:grid; grid-template-columns:52px minmax(0,1fr) auto auto; align-items:center; gap:12px; padding:8px 0; }
.bag-extra-image { display:grid; place-items:center; width:52px; height:52px; overflow:hidden; border-radius:12px; background:var(--tile); color:var(--ink-3); }
.bag-extra-image img { width:100%; height:100%; padding:5px; object-fit:contain; mix-blend-mode:multiply; }
.bag-extra-text { display:flex; flex-direction:column; min-width:0; font-size:14px; line-height:1.35; }
.bag-extra-text strong { font-weight:600; }
.bag-extra-text small { color:var(--ink-3); font-size:12.5px; }
.bag-extra-price { display:flex; flex-direction:column; align-items:flex-end; font-family:var(--font-price); font-size:14px; font-weight:600; white-space:nowrap; }
.bag-extra-price s { color:var(--ink-3); font-size:12px; font-weight:400; }
.bag-extra-add { display:inline-flex; align-items:center; gap:4px; height:34px; padding:0 12px 0 9px; border:0; border-radius:10px; background:var(--gray-field); color:var(--ink); font:600 13.5px var(--font-button); cursor:pointer; transition:background .15s; }
.bag-extra-add:hover { background:var(--gray-field-hover); }
.bag-extra-add:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
@keyframes bag-enter { from { transform:translateX(100%); } to { transform:translateX(0); } }
@keyframes bag-fade { from { opacity:0; } to { opacity:1; } }

/* Sign in: the logo and the form alone, centered on a white page. Google's button is outlined, the email one black;
   a busy button keeps its size and turns a spinner beside its words. The code is six boxes over one real input (so
   pasting and the phone's code suggestion work); the terms note sits under it all in small gray type. */
.auth-center { display:grid; place-items:center; min-height:100dvh; padding:48px 20px; }
.auth-card { width:100%; max-width:400px; text-align:center; }
.auth-brand { display:flex; justify-content:center; margin-bottom:32px; }
.auth-card h1 { font-size:26px; line-height:1.2; letter-spacing:-.02em; }
.auth-lead { margin:8px 0 28px; color:var(--ink-2); font-size:15px; text-wrap:pretty; }
.auth-lead strong { color:var(--ink); font-weight:600; overflow-wrap:anywhere; }
.auth-card form { text-align:left; }
.auth-card .shop-field { margin-top:0; }
.auth-step { animation:auth-in .4s cubic-bezier(.2,.7,.2,1); }
.auth-notice { margin:-12px 0 20px; text-align:left; }
.auth-google { display:flex; align-items:center; justify-content:center; gap:12px; width:100%; min-height:52px; padding:0 20px; border:1px solid var(--gray-control); border-radius:14px; background:#fff; color:var(--ink); font:600 16px/1.2 var(--font-button); transition:border-color .15s,background .15s; }
.auth-google:hover { border-color:var(--ink); }
.auth-google:active { background:var(--tile); }
.auth-or { display:flex; align-items:center; gap:14px; margin:20px 0; color:var(--ink-3); font-size:13px; }
.auth-or::before,.auth-or::after { content:''; flex:1; height:1px; background:var(--gray-line); }
.auth-submit { position:relative; width:100%; min-height:52px; margin-top:6px; }
.auth-submit[aria-busy=true],.auth-submit.is-done { cursor:default; }
.auth-submit[aria-busy=true]:disabled,.auth-submit.is-done:disabled { background:var(--ink); color:#fff; }
.auth-submit[aria-busy=true]::before { content:''; width:16px; height:16px; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; animation:auth-spin .7s linear infinite; }
/* Continue with email is gray like the product page's See more, and stays gray while it sends */
.auth-submit.shop-btn-light[aria-busy=true]:disabled { background:var(--gray-field); color:var(--ink); }
.auth-submit.shop-btn-light[aria-busy=true]::before { border-color:rgba(18,22,20,.18); border-top-color:var(--ink); }
.auth-submit.is-done svg { width:18px; height:18px; }
.auth-hint { margin:10px 0 0; color:var(--ink-3); font-size:13px; line-height:1.5; text-align:center; text-wrap:pretty; }
.auth-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:0 10px; margin:14px 0 0; color:var(--gray-control); }
.auth-actions .shop-text-btn { padding:0 2px; }
.auth-turnstile { margin-top:16px; }
.auth-turnstile:empty { display:none; }
.auth-legal { max-width:340px; margin:28px auto 0; color:var(--ink-3); font-size:12.5px; line-height:1.55; text-wrap:pretty; }
.auth-legal a { color:var(--ink-2); text-decoration:underline 1px; text-decoration-color:var(--gray-control); text-underline-offset:2px; transition:color .15s,text-decoration-color .15s; }
.auth-legal a:hover { color:var(--ink); text-decoration-color:currentColor; }
/* the six code boxes: the input lies over them, see-through; the box for the next digit shows a caret */
.auth-otp { position:relative; }
.auth-otp-input { position:absolute; inset:0; z-index:1; width:100%; height:100%; padding:0; border:0; background:transparent; color:transparent; caret-color:transparent; font-size:16px; opacity:0; cursor:text; }
.auth-otp-boxes { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; }
.auth-otp-boxes span { display:grid; place-items:center; height:58px; border:1px solid var(--gray-control); border-radius:12px; background:#fff; color:var(--ink); font-size:24px; font-weight:600; font-variant-numeric:tabular-nums; transition:border-color .15s,box-shadow .15s; }
.auth-otp:hover .auth-otp-boxes span { border-color:var(--gray-control-hover); }
.auth-otp.is-focused .auth-otp-boxes span.is-next { border-color:var(--ink); box-shadow:0 0 0 3px rgba(18,22,20,.08); }
.auth-otp.is-focused .auth-otp-boxes span.is-next:empty::after { content:''; width:2px; height:26px; border-radius:1px; background:var(--ink); animation:auth-caret 1s steps(1) infinite; }
.auth-otp-input[aria-invalid=true] + .auth-otp-boxes span { border-color:var(--danger); }
.auth-otp.is-shaking { animation:auth-shake .4s; }
@keyframes auth-in { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@keyframes auth-spin { to { transform:rotate(360deg); } }
@keyframes auth-caret { 50% { opacity:0; } }
@keyframes auth-shake { 20%,60% { transform:translateX(-6px); } 40%,80% { transform:translateX(6px); } }
@media(max-width:400px) { .auth-otp-boxes { gap:6px; } .auth-otp-boxes span { height:52px; font-size:22px; } }

/* Checkout and its confirmation: light and quiet. White, hairline rules and gray type, the order summary on a pale
   gray panel that runs to the window's edge; black for progress and settled sections. The store's orange is kept for
   what the shopper acts on: the Pay button, the chosen option, focused fields (Stripe's payment form reads the same
   tokens), and money saved (in the deeper orange that reads well as small words). No tinted backgrounds or colored shadows. */
.checkout-page,.confirmation-page {
  --co-accent:#f4501d; --co-accent-hover:#d9410f; --co-accent-ink:#c63c10;
  --co-tint:#ffffff; --co-panel:#fafafa; --co-line:#ebebef; --co-ring:rgba(244,80,29,.16);
  background:#fff;
}
.checkout-page :focus-visible,.confirmation-page :focus-visible { outline-color:var(--co-accent); }
.checkout-page .shop-field input:focus,.checkout-page .shop-field select:focus,.checkout-page .shop-field textarea:focus { border-color:var(--co-accent); box-shadow:0 0 0 3px var(--co-ring); }
.checkout-page .shop-field [aria-invalid=true]:focus { border-color:var(--danger); box-shadow:0 0 0 3px color-mix(in srgb,var(--danger) 14%,transparent); }
.checkout-page .shop-check input { accent-color:var(--co-accent); }
.checkout-header { border-bottom:1px solid var(--gray-line); background:#fff; }
.checkout-header-inner { display:flex; align-items:center; justify-content:space-between; gap:16px; max-width:1200px; min-height:72px; margin:auto; padding:0 32px; }
.checkout-header-end { display:flex; align-items:center; gap:18px; }
.checkout-secure { display:inline-flex; align-items:center; gap:7px; color:var(--ink-2); font-size:14px; font-weight:500; }
.checkout-secure-icon { display:grid; place-items:center; color:var(--ink-3); }
.checkout-secure-icon svg { width:16px; height:16px; }
.checkout-bag { position:relative; display:inline-grid; place-items:center; width:44px; height:44px; margin-right:-10px; border-radius:50%; color:var(--ink); transition:background .15s; }
.checkout-bag svg { width:22px; height:22px; }
.checkout-bag:hover { background:var(--gray-field); }
.checkout-bag:focus-visible { outline-offset:-2px; }
/* progress: a dot per step on a line, black up to where the shopper is */
.checkout-steps { display:flex; align-items:center; margin:0 0 26px; padding:0; list-style:none; color:var(--ink-3); font-size:13px; font-weight:500; }
.checkout-steps li { display:flex; align-items:center; gap:8px; }
.checkout-steps li + li::before { content:""; width:clamp(18px,4vw,52px); height:1px; margin:0 12px; background:var(--gray-control); }
.checkout-steps li.is-done + li::before { background:var(--ink); }
.checkout-step-dot { display:grid; place-items:center; flex-shrink:0; width:22px; height:22px; border-radius:50%; background:#fff; box-shadow:inset 0 0 0 1px var(--gray-control); color:var(--ink-3); font-size:11.5px; font-weight:600; }
.checkout-step-dot svg { width:13px; height:13px; stroke-width:2.6; }
.checkout-steps .is-done { color:var(--ink-2); }
.checkout-steps .is-done .checkout-step-dot { background:var(--ink); box-shadow:none; color:#fff; }
.checkout-steps .is-current { color:var(--ink); font-weight:600; }
.checkout-steps .is-current .checkout-step-dot { box-shadow:inset 0 0 0 1.5px var(--ink); color:var(--ink); }
.checkout-steps a { color:inherit; text-decoration:underline 1.5px transparent; text-underline-offset:3px; transition:text-decoration-color .15s; }
.checkout-steps a:hover { text-decoration-color:currentColor; }
.checkout-layout { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); max-width:1200px; min-height:calc(100dvh - 73px); margin:auto; }
.checkout-main { padding:36px 56px 72px 32px; }
.checkout-main > .shop-muted { margin:8px 0 4px; font-size:16px; }
.checkout-section { margin-top:28px; padding-top:28px; border-top:1px solid var(--gray-line); }
.checkout-section-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 16px; margin-bottom:6px; }
.checkout-section-head h2 { display:flex; align-items:center; gap:12px; font-size:20px; font-weight:600; letter-spacing:-.015em; }
.checkout-section-head p { color:var(--ink-2); font-size:14px; }
.checkout-section-head .shop-link { font-size:14px; }
/* section numbers: a gray ring, a black circle with a white tick once the section is settled */
.checkout-n { display:inline-grid; place-items:center; flex-shrink:0; width:26px; height:26px; border-radius:50%; background:#fff; box-shadow:inset 0 0 0 1px var(--gray-control); color:var(--ink-2); font-size:13px; font-weight:600; letter-spacing:0; transition:background .2s,color .2s,box-shadow .2s; }
.checkout-n svg { display:none; width:14px; height:14px; stroke-width:2.6; }
.checkout-section.is-done .checkout-n { background:var(--ink); box-shadow:none; color:#fff; }
.checkout-section.is-done .checkout-n > span { display:none; }
.checkout-section.is-done .checkout-n svg { display:block; }
.checkout-signed { display:flex; align-items:center; gap:14px; margin-top:14px; padding:14px 16px; border-radius:12px; background:#fff; box-shadow:inset 0 0 0 1px var(--gray-line); overflow-wrap:anywhere; }
.checkout-signed-icon { display:grid; place-items:center; flex-shrink:0; width:38px; height:38px; border-radius:50%; background:var(--gray-field); color:var(--ink); font-size:15px; font-weight:600; }
.checkout-signed strong { font-weight:600; }
.checkout-signed small { display:block; margin-top:2px; color:var(--ink-3); font-size:13px; }
/* choices: outlined cards; the delivery option in use gets a thin black outline and a black radio (no green) */
.checkout-section > .checkout-option { margin-top:14px; }
.checkout-option { display:flex; align-items:center; gap:14px; padding:16px 18px; border-radius:12px; background:#fff; box-shadow:inset 0 0 0 1px var(--gray-control); font-size:15px; cursor:pointer; transition:box-shadow .15s,background .15s; }
.checkout-option:hover { box-shadow:inset 0 0 0 1px var(--gray-control-hover); }
.checkout-option.is-selected,.checkout-option:has(input:checked) { background:#fff; box-shadow:inset 0 0 0 1px var(--ink); cursor:default; }
.checkout-option.is-selected > .checkout-radio,.checkout-option .checkout-radio:checked { border-color:var(--ink); }
.checkout-option-icon { display:grid; place-items:center; flex-shrink:0; width:40px; height:40px; border-radius:10px; background:var(--tile); color:var(--ink-2); }
.checkout-option-icon svg { width:20px; height:20px; }
.checkout-option-text { flex:1; min-width:0; }
.checkout-option-text strong { font-weight:600; }
.checkout-option small { display:block; margin-top:2px; color:var(--ink-3); font-size:13px; font-weight:400; line-height:1.5; }
.checkout-option-price { color:var(--ink); font-family:var(--font-price); font-weight:600; white-space:nowrap; }
.checkout-radio { display:block; flex-shrink:0; width:20px; height:20px; margin:0; border:1.5px solid var(--gray-control-hover); border-radius:50%; background:#fff; appearance:none; -webkit-appearance:none; cursor:pointer; transition:border-width .15s,border-color .15s; }
.checkout-radio:checked,.is-selected > .checkout-radio { border:6px solid var(--co-accent,var(--ink)); }
.checkout-radio:disabled { border-color:var(--gray-control); background:var(--gray-field); cursor:not-allowed; }
.checkout-radio:focus-visible { outline:2px solid var(--co-accent,var(--ink)); outline-offset:3px; }

/* Address book (lib/storefront/addresses.php). The chosen address folded into a "Deliver to" card; Change opens the
   saved ones as choices with their labels, plus "Add a new address". The same tags, chips and dialog serve the
   account's Addresses page, black there (no --co-* colors outside checkout: a chosen address or chip is outlined in
   green at checkout). */
.address-card { display:flex; align-items:flex-start; gap:14px; margin-top:14px; padding:18px; border-radius:12px; background:#fff; box-shadow:inset 0 0 0 1px var(--gray-line); }
.address-card-icon { display:grid; place-items:center; flex-shrink:0; width:40px; height:40px; border-radius:50%; background:var(--gray-field); color:var(--ink); }
.address-card-icon svg { width:19px; height:19px; }
.address-card-body { flex:1; min-width:0; font-size:15px; line-height:1.5; overflow-wrap:anywhere; }
.address-card-body p { margin:0; }
.address-card-body .address-card-to { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; margin-bottom:4px; color:var(--ink-2); }
.address-card-to strong { color:var(--ink); font-weight:600; }
.address-card-body .address-card-phone { margin-top:4px; color:var(--ink-2); font-size:14px; }
.address-change { flex-shrink:0; min-height:36px; padding:0 14px; border:0; border-radius:10px; background:#fff; box-shadow:inset 0 0 0 1px var(--gray-control); color:var(--ink); font-size:14px; font-weight:600; cursor:pointer; transition:box-shadow .15s; }
.address-change:hover { box-shadow:inset 0 0 0 1px var(--ink); }
.address-tag,.address-default { display:inline-flex; align-items:center; gap:5px; padding:2px 8px; border-radius:6px; font-size:12px; font-weight:600; line-height:1.5; white-space:nowrap; }
.address-tag { padding-left:6px; background:var(--gray-field); color:var(--ink-2); }
.address-tag svg { width:13px; height:13px; }
.address-tag.is-plain,.address-default { background:var(--gray-field); color:var(--ink-2); }
.address-options { display:grid; gap:10px; margin-top:14px; }
.address-option { display:flex; align-items:flex-start; gap:8px; padding:16px 12px 16px 18px; border-radius:12px; background:#fff; box-shadow:inset 0 0 0 1px var(--gray-control); transition:box-shadow .15s,background .15s; }
.address-option:hover { box-shadow:inset 0 0 0 1px var(--gray-control-hover); }
.address-option.is-selected,.address-option:has(input:checked) { background:#fff; box-shadow:inset 0 0 0 1.5px var(--co-accent,var(--ink)); }
.address-option.is-incomplete { background:var(--tile); box-shadow:inset 0 0 0 1px var(--gray-line); }
.address-option-main { display:flex; flex:1; align-items:flex-start; gap:14px; min-width:0; cursor:pointer; }
.address-option.is-incomplete .address-option-main { cursor:default; }
.address-option-main .checkout-radio { margin-top:2px; }
.address-option-text { display:grid; gap:2px; min-width:0; color:var(--ink-2); font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.address-option-name { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; color:var(--ink); font-size:15px; }
.address-option-name strong { font-weight:600; }
.address-option .shop-text-btn { flex-shrink:0; min-height:30px; color:var(--ink); }
.address-warn { color:#8a5300; font-size:13px; font-weight:500; }
.address-add { display:flex; align-items:center; justify-content:center; gap:8px; min-height:54px; border:1px dashed var(--gray-control); border-radius:12px; background:transparent; color:var(--ink); font-size:15px; font-weight:600; cursor:pointer; transition:background .15s,border-color .15s; }
.address-add:hover { border-color:var(--ink); background:var(--tile); }
.address-add svg { width:18px; height:18px; }
.address-keep { margin-top:6px; }
/* labels as chips: Home, Work, Other (which asks for the customer's own words) */
.address-labels { display:flex; flex-wrap:wrap; gap:8px; min-width:0; margin:14px 0 4px; padding:0; border:0; }
.address-labels legend { width:100%; margin-bottom:8px; padding:0; color:var(--ink); font-size:14px; font-weight:500; }
.address-chip { position:relative; cursor:pointer; }
.address-chip input { position:absolute; opacity:0; pointer-events:none; }
.address-chip span { display:inline-flex; align-items:center; gap:8px; min-height:42px; padding:0 16px; border-radius:12px; background:#fff; box-shadow:inset 0 0 0 1px var(--gray-control); color:var(--ink-2); font-size:14px; font-weight:600; transition:box-shadow .15s,background .15s,color .15s; }
.address-chip span svg { width:18px; height:18px; }
.address-chip:hover span { box-shadow:inset 0 0 0 1px var(--gray-control-hover); }
.address-chip input:checked + span { background:#fff; box-shadow:inset 0 0 0 1.5px var(--co-accent,var(--ink)); color:var(--ink); }
.address-chip input:focus-visible + span { outline:2px solid var(--co-accent,var(--ink)); outline-offset:2px; }
.address-dialog { width:min(560px,calc(100% - 32px)); }
.address-dialog-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:-6px -10px 2px 0; }
.address-dialog .shop-check { margin-bottom:0; }
.checkout-page .address-dialog [type="submit"] { background:var(--co-accent); }
.checkout-page .address-dialog [type="submit"]:hover { background:var(--co-accent-hover); }

/* Payment: Stripe's Payment Element dressed in these same colors (shop.js reads them), a skeleton while it loads,
   the test-mode hint, an order note behind a link, and the green Pay button with a spinner while a payment goes through. */
.checkout-pay-secure { display:inline-flex; align-items:center; gap:6px; color:var(--ink-3); font-size:13px; font-weight:500; }
.checkout-pay-secure svg { width:15px; height:15px; }
.checkout-test { margin:14px 0 2px; padding:12px 14px; border-radius:12px; background:#fdf6e3; color:#5c4708; font-size:13.5px; line-height:1.5; }
.checkout-test strong { display:inline-block; margin-right:8px; padding:1px 8px; border-radius:6px; background:#f3dc92; color:#4a3700; font-size:12px; font-weight:600; }
.pay-box { position:relative; min-height:236px; margin-top:16px; }
.pay-box.is-ready,.pay-box.is-failed { min-height:0; }
.pay-box:not(.is-ready) .pay-element { opacity:0; }
.pay-element { transition:opacity .2s; }
.pay-loading { position:absolute; inset:0; display:grid; align-content:start; gap:12px; }
.pay-box.is-ready .pay-loading { display:none; }
.pay-box.is-failed .pay-loading { position:static; justify-items:start; gap:4px; }
.pay-skeleton { display:block; height:62px; border-radius:12px; background:linear-gradient(90deg,var(--tile) 20%,var(--gray-field) 50%,var(--tile) 80%) 0 0/250% 100%; animation:pay-shimmer 1.3s ease-in-out infinite; }
.pay-skeleton.is-short { width:58%; height:52px; }
@keyframes pay-shimmer { from { background-position:100% 0; } to { background-position:0 0; } }
.pay-error { margin:0; padding:12px 14px; border-radius:12px; background:color-mix(in srgb,var(--danger) 9%,#fff); color:#a62d24; font-size:14px; line-height:1.5; }
.pay-free { display:flex; align-items:center; gap:10px; margin-top:14px; padding:14px 16px; border-radius:12px; background:var(--tile); color:var(--ink); font-size:14px; font-weight:500; }
.pay-free svg { flex-shrink:0; width:18px; height:18px; color:var(--co-accent); }
.checkout-note { margin-top:18px; }
.checkout-note summary { display:inline-flex; align-items:center; gap:8px; min-height:36px; color:var(--ink-2); font-size:14px; font-weight:500; cursor:pointer; list-style:none; }
.checkout-note summary::-webkit-details-marker { display:none; }
.checkout-note summary svg { width:16px; height:16px; }
.checkout-note summary:hover { color:var(--ink); text-decoration:underline; text-underline-offset:4px; }
.checkout-note .shop-field { margin:6px 0 0; }
.checkout-submit { width:100%; min-height:56px; margin-top:26px; border-radius:12px; background:var(--co-accent); font-size:16px; }
.checkout-submit:hover { background:var(--co-accent-hover); }
.checkout-submit.is-busy,.checkout-submit.is-busy:disabled { background:var(--co-accent); color:#fff; cursor:progress; }
.checkout-submit.is-busy svg { display:none; }
.checkout-submit.is-busy::before { content:""; width:18px; height:18px; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; animation:pay-spin .7s linear infinite; }
@keyframes pay-spin { to { transform:rotate(360deg); } }
/* a field only scripts fill in (shop_checkout_pay() refuses a payment with it filled) */
.checkout-trap { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }

/* the order summary: a pale gray panel behind a hairline, white picture tiles with a gray count, savings in green */
.checkout-summary { padding:36px 32px 72px 48px; border-left:1px solid var(--co-line); background:var(--co-panel); box-shadow:0 0 0 100vmax var(--co-panel); clip-path:inset(0 -100vmax 0 0); }
.checkout-summary-inner { position:sticky; top:32px; }
.checkout-summary-toggle { display:none; }
.checkout-summary h2 { display:flex; align-items:center; gap:10px; margin-bottom:8px; font-size:18px; font-weight:600; }
.checkout-summary h2 > span { display:inline-grid; place-items:center; min-width:22px; height:22px; padding:0 7px; border-radius:11px; background:var(--gray-field); color:var(--ink-2); font-size:12px; font-weight:600; letter-spacing:0; }
.summary-line { display:grid; grid-template-columns:64px minmax(0,1fr) auto; align-items:center; gap:16px; padding:14px 0; font-size:14px; }
.summary-line + .summary-line { border-top:1px solid var(--co-line,var(--gray-line)); }
.summary-image { position:relative; width:64px; height:64px; border-radius:10px; background:#fff; box-shadow:inset 0 0 0 1px var(--co-line,var(--gray-line)); }
.summary-image img { width:100%; height:100%; padding:6px; object-fit:contain; mix-blend-mode:multiply; }
.summary-image > span { position:absolute; top:-7px; right:-7px; min-width:21px; height:21px; padding:0 6px; border-radius:11px; background:#6e6e76; color:#fff; font-size:11.5px; font-weight:600; line-height:21px; text-align:center; box-shadow:0 0 0 2px var(--co-panel,var(--tile)); }
.summary-line strong { font-size:14px; font-weight:600; line-height:1.4; overflow-wrap:anywhere; }
.summary-line > strong:last-child { font-family:var(--font-price); white-space:nowrap; }
.summary-line small { display:block; margin-top:3px; color:var(--ink-3); font-size:13px; line-height:1.5; }
.summary-line .summary-was { margin-top:1px; font-family:var(--font-price); }
.discount-form { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:10px; margin:16px 0 20px; padding:20px 0; border-block:1px solid var(--co-line); }
.discount-form .shop-field { margin:0; }
.discount-form .shop-btn { min-height:52px; padding:0 20px; border-radius:12px; background:#fff; color:var(--ink); box-shadow:inset 0 0 0 1px var(--gray-control); }
.discount-form .shop-btn:hover { box-shadow:inset 0 0 0 1px var(--ink); }
.discount-form .shop-form-error { grid-column:1/-1; margin:0; }
.summary-totals { display:grid; gap:12px; margin:20px 0; font-size:15px; }
.summary-totals > div { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.summary-totals dt { color:var(--ink-2); }
.summary-totals dd { margin:0; font-family:var(--font-price); font-weight:500; text-align:right; }
.summary-totals dd.is-free { color:var(--ink); }
.summary-discount dd { color:var(--co-accent-ink); font-weight:600; }
.summary-totals dd.is-pending { color:var(--ink-3); font-family:inherit; font-size:14px; font-weight:400; }
.summary-totals .summary-total { margin-top:4px; padding-top:18px; border-top:1px solid var(--co-line,var(--gray-line)); }
.summary-total dt { color:var(--ink); font-size:17px; font-weight:600; }
.summary-total dd { font-size:24px; font-weight:600; letter-spacing:-.025em; }
.summary-total dd small { margin-right:8px; color:var(--ink-3); font-size:12px; font-weight:500; letter-spacing:0; }
.summary-save { margin:-8px 0 16px; color:var(--ink-2); font-size:13.5px; text-align:right; }
.summary-save strong { color:var(--co-accent-ink); font-family:var(--font-price); font-weight:600; }
.summary-refund dt,.summary-refund dd { color:var(--accent-ink); font-weight:600; }
.shop-status-refund { margin-top:6px; background:var(--brand-tint); color:var(--accent-ink); }
.checkout-summary-note { display:flex; gap:10px; margin:24px 0 8px; color:var(--ink-2); font-size:13px; line-height:1.6; }
.checkout-summary-note svg { flex-shrink:0; width:18px; height:18px; color:var(--ink-3); }
.checkout-summary-note a { color:var(--ink); text-decoration:underline; text-decoration-color:var(--gray-control); text-underline-offset:3px; }
.checkout-summary-note a:hover { text-decoration-color:currentColor; }
.checkout-summary .shop-text-btn { color:var(--ink-2); }
/* nothing in the bag: one centered message instead of the form and summary */
.checkout-layout.is-empty { display:block; }
.checkout-empty { max-width:460px; margin:0 auto; padding:clamp(56px,12vh,120px) 24px 72px; text-align:center; }
.checkout-empty h1 { margin-top:4px; font-size:clamp(26px,2.4vw,30px); }
.checkout-empty p { margin:10px 0 28px; }

/* the confirmation: a green tick, the order on a pale gray panel */
.confirmation-wrap { max-width:560px; margin:0 auto; padding:32px 24px 72px; text-align:center; }
.confirmation-wrap .checkout-steps { justify-content:center; }
.confirmation-icon { display:grid; place-items:center; width:60px; height:60px; margin:28px auto 20px; border-radius:50%; background:var(--co-accent); color:#fff; }
.confirmation-icon svg { width:28px; height:28px; stroke-width:2.2; }
.confirmation-wrap .shop-eyebrow { color:var(--ink-3); }
.confirmation-wrap h1 { margin-top:10px; }
.confirmation-wrap > .shop-muted { margin-top:10px; font-size:16px; }
.confirmation-wrap .shop-panel { margin:28px 0 20px; border:1px solid var(--co-line); background:var(--co-panel); text-align:left; }
.confirmation-wrap > .shop-btn { width:100%; border-radius:12px; }
.confirmation-wrap > .shop-text-btn { margin-top:12px; }
.confirmation-icon.is-cancelled { background:var(--gray-field); color:var(--ink); }
.confirmation-cancel { margin-top:28px; padding-top:20px; border-top:1px solid var(--gray-line); color:var(--ink-3); font-size:14px; }
.confirmation-cancel .shop-text-btn { min-height:0; padding:0; color:var(--ink); text-decoration-color:var(--gray-control); }
@media(max-width:1000px) {
  .checkout-main { padding-right:32px; }
  .checkout-summary { padding-left:28px; }
}
@media(max-width:760px) {
  /* checkout: the summary folds up above the form, its total on the toggle */
  .checkout-header-inner { min-height:60px; padding:0 20px; }
  .checkout-secure { font-size:13px; }
  .checkout-layout { display:flex; flex-direction:column; min-height:0; }
  .checkout-summary { order:-1; padding:0 20px; border-left:0; box-shadow:none; clip-path:none; border-bottom:1px solid var(--co-line); }
  .checkout-summary-inner { position:static; }
  .checkout-summary-toggle { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:56px; padding:0; border:0; background:transparent; color:var(--ink); font-size:15px; font-weight:500; cursor:pointer; }
  .checkout-summary-toggle span { display:inline-flex; align-items:center; gap:8px; text-decoration:underline 1.5px transparent; text-underline-offset:4px; }
  .checkout-summary-toggle span::after { content:""; width:7px; height:7px; margin-top:-4px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); transition:transform .2s; }
  .checkout-summary.is-expanded .checkout-summary-toggle span::after { margin-top:3px; transform:rotate(-135deg); }
  .checkout-summary-toggle:hover span { text-decoration-color:currentColor; }
  .checkout-summary-toggle strong { color:var(--ink); font-family:var(--font-price); font-size:18px; }
  .checkout-summary:not(.is-expanded) .checkout-summary-inner { display:none; }
  .checkout-summary.is-expanded .checkout-summary-inner { padding:4px 0 20px; }
  .checkout-summary h2 { display:none; }
  .checkout-summary-note { display:none; }
  .checkout-main { padding:24px 20px 56px; }
  .checkout-section { margin-top:24px; padding-top:24px; }
  .checkout-steps { margin-bottom:20px; }
  .address-card { padding:16px 14px; gap:12px; }
  .address-card-icon { width:36px; height:36px; }
  .address-card-icon svg { width:18px; height:18px; }
}
@media(max-width:450px) {
  .address-card { flex-wrap:wrap; }
  .address-card-body { flex-basis:calc(100% - 54px); }
  .address-change { width:calc(100% - 48px); margin-left:48px; }
  .address-option { flex-wrap:wrap; padding-right:14px; }
  .address-option .shop-text-btn { margin-left:34px; }
  .checkout-option { flex-wrap:wrap; }
  .checkout-option-icon { display:none; }
}
/* Cancelling an order: the offer on the account's order page and the dialog (a centered native <dialog>). */
.order-cancel { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px; }
.order-cancel h2 { margin:0 0 4px; }
.order-cancel p { margin:0; max-width:52ch; }
.shop-btn-danger { background:var(--danger); color:#fff; }
.shop-btn-danger:hover { background:color-mix(in srgb,var(--danger) 86%,#000); }
.shop-dialog { width:min(460px,calc(100% - 32px)); max-height:calc(100dvh - 32px); padding:28px; border:0; border-radius:20px; background:#fff; color:var(--ink); box-shadow:0 24px 60px rgba(15,15,20,.2); text-align:left; }
.shop-nowrap { white-space:nowrap; }
.shop-dialog[open] { animation:bag-fade .2s ease; }
.shop-dialog::backdrop { background:rgba(15,15,20,.32); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }
.shop-dialog h2 { font-size:21px; letter-spacing:-.015em; }
.shop-dialog form > .shop-muted { margin:8px 0 4px; }
.shop-dialog-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:22px; }
.shop-dialog-actions .shop-btn { min-height:50px; padding:0 16px; }
@media(max-width:480px) { .shop-dialog { padding:22px 20px; } .shop-dialog-actions { grid-template-columns:1fr; } .shop-dialog-actions .shop-btn-danger { order:-1; } }
.shop-details { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.6fr); gap:12px 18px; margin:12px 0 0; font-size:15px; text-align:left; }
.shop-details dt { color:var(--ink-2); }
.shop-details dd { margin:0; font-weight:500; overflow-wrap:anywhere; }

/* Customer dashboard, under the store header (the customer's name shows in its account menu). The sidebar lines up
   with the header's logo. */
.account-page,.auth-page { background:var(--bg); }
.account-layout { display:grid; grid-template-columns:230px minmax(0,1fr); gap:clamp(32px,5vw,72px); max-width:var(--store-width); margin:0 auto; padding:24px var(--store-gutter) 0; }
.account-sidebar { min-width:0; }
.account-sidebar > .shop-eyebrow { margin:32px 12px 12px; color:var(--ink-3); }
.account-sidebar nav { display:flex; flex-direction:column; gap:2px; }
.account-sidebar nav a { display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:12px; color:var(--ink-2); font-size:15px; font-weight:500; transition:background .15s,color .15s; }
.account-sidebar nav a svg { width:20px; height:20px; }
.account-sidebar nav a:hover { background:var(--tile); color:var(--ink); }
.account-sidebar nav a.is-active { background:var(--gray-field); color:var(--ink); font-weight:600; }
.account-sidebar > .shop-text-btn { margin:20px 8px; }
.account-main { min-width:0; }
.account-main > .shop-btn { margin:4px 0 8px; }
.account-title { margin:28px 0 16px; }
.account-title h1 { font-size:clamp(28px,2.6vw,34px); }
.account-title p { margin-top:6px; color:var(--ink-2); font-size:15px; }
.account-title .shop-status { margin-left:8px; vertical-align:middle; }
.account-shopping-banner { display:grid; grid-template-columns:1fr 1fr; min-height:240px; margin-top:28px; overflow:hidden; border-radius:16px; background:var(--tile); }
.account-shopping-banner > div { position:relative; z-index:1; padding:32px; }
.account-shopping-banner .shop-eyebrow { color:var(--ink-3); }
.account-shopping-banner h2 { margin:12px 0 22px; font-size:26px; line-height:1.15; letter-spacing:-.02em; }
.account-shopping-banner img { width:100%; height:100%; object-fit:cover; object-position:70%; -webkit-mask-image:linear-gradient(90deg,transparent,#000 22%); mask-image:linear-gradient(90deg,transparent,#000 22%); }
.account-order,.account-ticket { transition:border-color .15s,background .15s; }
.account-order:hover,.account-ticket:hover { border-color:var(--gray-control); background:var(--tile); }
.account-order { display:flex; align-items:center; gap:16px; padding:16px 20px; }
.account-order-image { display:grid; flex-shrink:0; place-items:center; width:64px; height:64px; border-radius:12px; background:var(--tile); color:var(--ink-3); }
.account-order-image img { width:100%; height:100%; padding:4px; object-fit:contain; mix-blend-mode:multiply; }
.account-order-main { flex:1; min-width:0; }
.account-order-main > div { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.account-order-main > div strong { font-size:15px; }
.account-order-main p { margin:4px 0 2px; font-size:14px; overflow-wrap:anywhere; }
.account-order-main small { color:var(--ink-3); font-size:13px; }
.account-order > strong { font-size:15px; white-space:nowrap; }
.account-order > svg { width:18px; height:18px; color:var(--ink-3); }
.account-pagination { display:flex; align-items:center; justify-content:center; gap:20px; margin:22px 0; color:var(--ink-2); font-size:14px; }
.wishlist-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:20px; margin-top:8px; }
.wishlist-card { display:flex; flex-direction:column; align-items:flex-start; gap:10px; margin:0; padding:16px; }
.wishlist-card > img,.wishlist-placeholder { width:100%; aspect-ratio:1; padding:8%; border-radius:12px; background:var(--tile); object-fit:contain; }
.wishlist-placeholder { display:grid; place-items:center; color:var(--ink-3); }
.wishlist-card h2 { margin:4px 0 0; font-size:16px; overflow-wrap:anywhere; }
.wishlist-card .shop-link { font-size:14px; }
.wishlist-card .shop-text-btn { min-height:32px; padding:0; font-size:13px; }
/* Addresses: a card per saved address (the default outlined), and a dashed card to add one. */
.address-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:16px; margin-top:8px; }
.address-entry { display:flex; flex-direction:column; gap:4px; margin:0; }
.address-entry.is-default { border-color:var(--ink); }
.address-entry-head { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:8px; }
.address-entry-name { font-size:16px; overflow-wrap:anywhere; }
.address-entry p { margin:0; color:var(--ink-2); font-size:14px; line-height:1.55; overflow-wrap:anywhere; }
.address-entry-actions { display:flex; flex-wrap:wrap; gap:2px 16px; margin-top:auto; padding-top:12px; }
.address-entry-actions .shop-text-btn { min-height:32px; padding:0; color:var(--ink); text-decoration-color:var(--gray-control); }
.address-entry-actions .shop-text-btn:hover { text-decoration-color:currentColor; }
.address-add-card { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; min-height:210px; padding:24px; border:1.5px dashed var(--gray-control); border-radius:16px; background:transparent; color:var(--ink); font-size:15px; cursor:pointer; transition:border-color .15s,background .15s; }
.address-add-card:hover { border-color:var(--ink); background:var(--tile); }
.address-add-card small { color:var(--ink-3); font-size:13px; }
.address-add-icon { display:grid; place-items:center; width:46px; height:46px; margin-bottom:4px; border-radius:50%; background:var(--gray-field); }
.address-add-icon svg { width:22px; height:22px; }
.account-link-panel { display:flex; align-items:center; gap:14px; transition:background .15s,border-color .15s; }
.account-link-panel:hover { border-color:var(--gray-control); background:var(--tile); }
.account-link-panel > span:nth-child(2) { display:flex; flex:1; flex-direction:column; min-width:0; }
.account-link-panel small { color:var(--ink-3); font-size:13px; }
.account-link-panel > svg { flex-shrink:0; width:18px; height:18px; color:var(--ink-3); }
.account-ticket { display:flex; align-items:center; gap:16px; }
.account-ticket > div { flex:1; min-width:0; }
.account-ticket h2 { margin:4px 0; font-size:16px; overflow-wrap:anywhere; }
.account-ticket small { color:var(--ink-3); font-size:12px; font-weight:600; }
.account-ticket > svg { flex-shrink:0; width:18px; height:18px; color:var(--ink-3); }
.customer-thread { display:grid; gap:12px; margin:24px 0; padding:0; list-style:none; }
.customer-thread li { padding:16px 18px; border:1px solid var(--gray-line); border-radius:14px; background:#fff; }
.customer-thread li.is-staff { border-color:transparent; background:var(--tile); }
.customer-thread li > div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; font-size:14px; }
.customer-thread time { color:var(--ink-3); font-size:13px; }
.customer-thread p { margin:8px 0 0; font-size:15px; }

/* Reviews in the account (lib/storefront/reviews.php): what's waiting for a review, the customer's reviews with a chip
   for where each stands (gray waiting, black published, red not published), and the form: big stars that fill up to
   the one chosen, photo tiles in a grid with a dashed tile to add more. */
.review-todo h2,.review-mine h2 { margin:28px 0 12px; font-size:17px; }
.review-item { display:flex; align-items:center; gap:16px; margin:0 0 12px; }
.review-item-image { display:grid; flex-shrink:0; place-items:center; width:64px; height:64px; overflow:hidden; border-radius:12px; background:var(--tile); color:var(--ink-3); }
.review-item-image img { width:100%; height:100%; padding:4px; object-fit:contain; mix-blend-mode:multiply; }
.review-item-text { display:flex; flex:1; flex-direction:column; min-width:0; }
.review-item-text strong { font-size:15px; overflow-wrap:anywhere; }
.review-item-text small { color:var(--ink-3); font-size:13px; }
.review-item .shop-btn { flex-shrink:0; min-height:44px; padding:0 18px; font-size:15px; }
.review-entry { display:flex; align-items:flex-start; gap:16px; margin:0 0 12px; }
.review-entry-main { flex:1; min-width:0; }
.review-entry-top { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.review-entry-title { display:block; margin-top:8px; font-size:15px; overflow-wrap:anywhere; }
.review-entry-body { margin:4px 0; color:var(--ink-2); font-size:14px; overflow-wrap:anywhere; }
.review-entry small { color:var(--ink-3); font-size:13px; }
.review-entry-reason { margin:10px 0 0; padding:10px 12px; border-radius:10px; background:color-mix(in srgb,var(--danger) 8%,#fff); color:#a62d24; font-size:13.5px; }
.review-entry-actions { display:flex; flex-wrap:wrap; gap:0 18px; margin-top:6px; }
.review-entry-actions .shop-text-btn { min-height:32px; padding:0; color:var(--ink); text-decoration-color:var(--gray-control); }
.review-entry-actions .shop-text-btn:hover { text-decoration-color:currentColor; }
.shop-status.is-good { background:var(--ink); color:#fff; }
.shop-status.is-bad { background:color-mix(in srgb,var(--danger) 10%,#fff); color:#a62d24; }
.summary-review { display:inline-flex; align-items:center; gap:6px; margin-top:6px; color:var(--ink); font-size:13px; font-weight:600; text-decoration:underline 1.5px; text-decoration-color:var(--gray-control); text-underline-offset:3px; }
.summary-review svg { width:14px; height:14px; }
.summary-review:hover { text-decoration-color:currentColor; }
.review-form-product { margin-bottom:16px; }
.review-form { display:flex; flex-direction:column; }
.review-rate { margin:0 0 6px; padding:0; border:0; }
.review-rate legend { margin-bottom:6px; padding:0; font-size:14px; font-weight:500; }
.review-stars { display:flex; flex-wrap:wrap; align-items:center; gap:2px; }
.review-stars label { position:relative; display:grid; place-items:center; width:46px; height:46px; border-radius:10px; cursor:pointer; }
.review-stars label:has(input:focus-visible) { outline:2px solid var(--ink); outline-offset:-2px; }
.review-stars input { position:absolute; width:1px; height:1px; opacity:0; }
.review-stars svg { width:36px; height:36px; fill:var(--gray-field); stroke:var(--gray-control); stroke-width:1; transition:fill .12s,stroke .12s,transform .12s; }
.review-stars label:hover svg { transform:scale(1.1); }
.review-stars:has(input[value="1"]:checked) label:nth-child(-n+1) svg,
.review-stars:has(input[value="2"]:checked) label:nth-child(-n+2) svg,
.review-stars:has(input[value="3"]:checked) label:nth-child(-n+3) svg,
.review-stars:has(input[value="4"]:checked) label:nth-child(-n+4) svg,
.review-stars:has(input[value="5"]:checked) label:nth-child(-n+5) svg { fill:var(--ink); stroke:var(--ink); }
.review-rate[aria-invalid=true] .review-stars svg { stroke:var(--danger); }
.review-rate-word { margin-left:10px; color:var(--ink-2); font-size:15px; font-weight:600; }
.shop-field > span small,.review-photos-label small { color:var(--ink-3); font-size:13px; font-weight:400; }
.review-photos-field { margin:14px 0; }
.review-photos-label { display:block; margin-bottom:8px; font-size:14px; font-weight:500; }
.review-photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(96px,1fr)); gap:10px; }
.review-photo,.review-photo-add { position:relative; aspect-ratio:1; overflow:hidden; border-radius:12px; }
.review-photo { background:var(--tile); }
.review-photo img { width:100%; height:100%; object-fit:cover; }
.review-photo.is-loading::after { content:''; position:absolute; top:50%; left:50%; width:22px; height:22px; margin:-11px 0 0 -11px; border:2px solid var(--gray-control); border-top-color:var(--ink); border-radius:50%; animation:auth-spin .7s linear infinite; }
.review-photo-remove { position:absolute; top:6px; right:6px; z-index:1; display:grid; place-items:center; width:28px; height:28px; padding:0; border:0; border-radius:50%; background:rgba(18,22,20,.72); color:#fff; cursor:pointer; }
.review-photo-remove svg { width:16px; height:16px; }
.review-photo-add { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; border:1.5px dashed var(--gray-control); color:var(--ink-2); font-size:13px; font-weight:500; cursor:pointer; transition:border-color .15s,background .15s; }
.review-photo-add:hover { border-color:var(--ink); background:var(--tile); }
.review-photo-add:has(input:focus-visible) { outline:2px solid var(--ink); outline-offset:2px; }
.review-photo-add input { position:absolute; width:1px; height:1px; opacity:0; }
.review-photo-add svg { width:22px; height:22px; }
.review-photos-hint { display:block; margin-top:8px; color:var(--ink-3); font-size:13px; }
.review-submit { align-self:flex-start; min-width:210px; margin-top:8px; }
.review-submit[aria-busy=true]::before { content:''; width:16px; height:16px; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; animation:auth-spin .7s linear infinite; }
.review-submit[aria-busy=true]:disabled,.review-submit.is-done:disabled { background:var(--ink); color:#fff; cursor:default; }
.review-submit.is-done svg { width:18px; height:18px; }
@media(max-width:560px) {
  .review-item { flex-wrap:wrap; }
  .review-item .shop-btn { width:100%; }
  .review-submit { align-self:stretch; }
}

/* Returns (lib/storefront/returns.php): the Returns panel on an order's page, the form (items as outlined cards and
   reasons as options like checkout's, a black outline on what's chosen), and a return's page with its steps and label. */
.order-returns-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px; }
.order-returns-head h2 { margin:0 0 4px; }
.order-returns-head p { margin:0; max-width:56ch; }
.order-returns-head .shop-btn { min-height:44px; padding:0 18px; font-size:15px; }
.order-return-row { display:flex; align-items:center; gap:12px; margin-top:14px; padding-top:14px; border-top:1px solid var(--gray-line); }
.order-return-row > span:first-child { display:flex; flex:1; flex-direction:column; min-width:0; }
.order-return-row strong { font-size:15px; text-decoration:underline 1.5px transparent; text-underline-offset:3px; transition:text-decoration-color .15s; }
.order-return-row:hover strong { text-decoration-color:currentColor; }
.order-return-row small { color:var(--ink-3); font-size:13px; }
.order-return-row > svg { flex-shrink:0; width:18px; height:18px; color:var(--ink-3); }
.return-picks { display:grid; gap:10px; }
.return-pick { display:flex; align-items:center; gap:14px; padding:12px 16px 12px 14px; border-radius:12px; background:#fff; box-shadow:inset 0 0 0 1px var(--gray-control); cursor:pointer; transition:box-shadow .15s; }
.return-pick:hover { box-shadow:inset 0 0 0 1px var(--gray-control-hover); }
.return-pick.is-selected { box-shadow:inset 0 0 0 1.5px var(--ink); }
.return-picks[aria-invalid=true] .return-pick,.return-reasons[aria-invalid=true] .return-reason { box-shadow:inset 0 0 0 1px var(--danger); }
.return-pick-box { flex-shrink:0; width:20px; height:20px; margin:0; accent-color:var(--ink); cursor:pointer; }
.return-pick-text { display:flex; flex:1; flex-direction:column; min-width:0; }
.return-pick-text strong { font-size:15px; overflow-wrap:anywhere; }
.return-pick-text small { color:var(--ink-3); font-size:13px; }
.return-qty { flex-shrink:0; width:84px; }
.return-qty select { width:100%; min-height:44px; padding:8px 34px 8px 14px; border:1px solid var(--gray-control); border-radius:10px; background:#fff; color:var(--ink); font-size:15px; appearance:none; -webkit-appearance:none; cursor:pointer; }
.return-qty select:disabled { background:var(--tile); color:var(--ink-3); cursor:not-allowed; }
.return-reasons { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.return-reason { padding:14px 16px; font-size:14.5px; line-height:1.4; }
.return-fee-note { display:flex; align-items:flex-start; gap:8px; margin:12px 0 0; padding:10px 12px; border-radius:10px; background:var(--tile); color:var(--ink-2); font-size:13.5px; line-height:1.5; }
.return-fee-note svg { flex-shrink:0; width:16px; height:16px; margin-top:2px; }
.return-checklist { margin:6px 0 0; padding-left:20px; color:var(--ink-2); font-size:14.5px; line-height:1.6; }
.return-checklist li + li { margin-top:6px; }
.return-checklist strong { color:var(--ink); font-weight:600; }
.return-summary .summary-totals { margin-top:0; }
.return-submit { width:100%; margin-top:6px; }
.return-submit[aria-busy=true]::before { content:''; width:16px; height:16px; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; animation:auth-spin .7s linear infinite; }
.return-submit[aria-busy=true]:disabled,.return-submit.is-done:disabled { background:var(--ink); color:#fff; cursor:default; }
.return-submit.is-done svg { width:18px; height:18px; }
.return-steps { margin:4px 0 8px; }
.return-now h2 { margin-bottom:6px; }
.return-label-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px 20px; margin:18px 0 6px; }
.return-tracking { margin:0; color:var(--ink-2); font-size:14px; }
.return-subhead { margin:24px 0 6px; font-size:16px; }
.return-facts { margin-top:18px; }
.return-foot { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin:8px 0 24px; }
@media(max-width:560px) {
  .return-reasons { grid-template-columns:minmax(0,1fr); }
  .order-returns-head .shop-btn,.return-foot .shop-btn,.return-label-actions .shop-btn { width:100%; }
  /* the steps as dots, naming only the current one */
  .return-steps li:not(.is-current) > span:last-child { display:none; }
}

@media(max-width:1000px) {
  .account-layout { grid-template-columns:200px minmax(0,1fr); gap:32px; }
}
@media(max-width:760px) {
  .auth-center { place-items:start center; padding-top:32px; }
  .account-layout { grid-template-columns:minmax(0,1fr); gap:4px; padding:0 var(--store-gutter); }
  /* account sections become a row of tabs that scrolls sideways */
  .account-sidebar { margin:0 calc(-1 * var(--store-gutter)); border-bottom:1px solid var(--gray-line); }
  .account-sidebar > .shop-eyebrow,.account-sidebar > .shop-text-btn { display:none; }
  .account-sidebar nav { flex-direction:row; gap:4px; padding:8px var(--store-gutter); overflow-x:auto; scrollbar-width:none; }
  .account-sidebar nav a { flex-shrink:0; padding:9px 12px; font-size:14px; white-space:nowrap; }
  .account-sidebar nav svg { display:none; }
  .account-shopping-banner { grid-template-columns:minmax(0,1fr); }
  .account-shopping-banner img { height:180px; -webkit-mask-image:none; mask-image:none; }
  .shop-brand img { width:140px; }
}
@media(max-width:450px) {
  .bag-head { min-height:64px; padding:0 10px 0 20px; }
  .bag-content { padding:0 20px; }
  .bag-footer { padding:16px 20px calc(16px + env(safe-area-inset-bottom)); }
  .bag-line { grid-template-columns:76px minmax(0,1fr); gap:14px; }
  .bag-line-image { width:76px; height:76px; }
  .shop-panel { padding:18px; }
  .account-order { flex-wrap:wrap; gap:12px; }
  .account-order > svg { display:none; }
  .account-order > strong { margin-left:auto; }
  .account-order-image { width:56px; height:56px; }
  .wishlist-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .wishlist-card { padding:12px; }
  .wishlist-card h2 { font-size:14px; }
  .account-ticket { flex-wrap:wrap; gap:10px; }
  .summary-line { grid-template-columns:56px minmax(0,1fr) auto; gap:12px; }
  .summary-image { width:56px; height:56px; }
  .shop-grid-2 { gap:0 10px; }
  /* phones: the city on its own line, state and ZIP code under it */
  .address-row { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 10px; }
  .address-row > :first-child { grid-column:1/-1; }
}
/* Customer branding stays transparent at every screen size. */
.shop-brand.shop-brand-customer { padding:8px 0; }
.shop-brand-customer img { display:block; width:176px; height:auto; }
.customer-progress { position:fixed; top:0; left:0; z-index:110; width:100%; height:3px; overflow:hidden; background:var(--gray-field); }
.customer-progress::after { content:''; display:block; width:35%; height:100%; background:var(--ink); animation:customer-progress 1s ease-in-out infinite; }
.customer-loading { padding:60px 24px; color:var(--ink-2); text-align:center; }
#customerApp > .shop-btn { display:flex; margin:60px auto; }
#customerApp h1[tabindex="-1"]:focus { outline:none; }
@keyframes customer-progress { from { transform:translateX(-100%); } to { transform:translateX(385%); } }
@media(max-width:760px) { .shop-brand-customer img { width:150px; } }
@media(prefers-reduced-motion:reduce) { .bag-drawer[open],.bag-drawer::backdrop,.customer-progress::after,.pay-skeleton,.shop-dialog[open],.auth-step,.auth-otp.is-shaking { animation:none; } .auth-submit[aria-busy=true]::before { animation-duration:1.6s; } .pay-element { transition:none; } .shop-btn,.shop-text-btn,.shop-link,.shop-back,.account-sidebar nav a,.bag-progress span,.bag-quantity button,.bag-line-title,.bag-remove,.checkout-option,.checkout-radio,.checkout-bag,.account-order,.account-ticket { transition:none; } .shop-btn:active { transform:none; } }
@media(prefers-reduced-transparency:reduce) { .bag-drawer::backdrop { -webkit-backdrop-filter:none; backdrop-filter:none; } }
