/* Amigos ordering styles - shared by /menu/ and /checkout/ (moved out of menu/index.html's
   inline <style>, 2026-10-19). Load it right after an empty <style> in <head>: js/header.js
   inserts its header CSS before the page's first <style>, so this file keeps winning ties. */
/* Shared tokens + Daylight (light) as default / fallback when prefers-color-scheme
   is light or unsupported. Classic (dark) applies only under prefers-color-scheme: dark.
   --letterbox stays the Daylight cream in both themes so Clover hosted fields
   (styled light in JS) stay in step with .cf-box — do not retune checkout. */
:root {
  --cta-gold: #dec99f; --cta-gold-fg: #1a1204;   /* CTA fill (Matt 2026-11-01), both themes */
  color-scheme: light dark;
  --coral: #ef5b45;
  --mango: #f79445;
  --lime: #b4d45e;
  --turquoise: #5cb85c;
  --hotpink: #f0705a;
  --a-red: #ff2829; /* header cart badge (js/header.js .hdr-cart .n) - matches css/amigos.css */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-h: 58px;
  --catnav-h: 52px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  /* Daylight — light default */
  --ink: #eee7d8;
  --paper: #1c1c1e;
  --paper-dim: rgba(28, 28, 30, 0.68);
  --paper-faint: rgba(28, 28, 30, 0.28);
  --card-bg: rgba(28, 28, 30, 0.045);
  --card-bg-2: rgba(28, 28, 30, 0.08);
  --card-border: rgba(28, 28, 30, 0.18);
  --bg-gradient: #eee7d8;
  --catnav-shade: rgba(255, 255, 255, 0.5);
  --letterbox: #ddd3ba;
  --gold: #b3821f;
  --accent: #1c1c1e;
  --price: #1c1c1e;
  --mark-shadow: rgba(28, 28, 30, 0.3);
  --caption-color: rgba(0, 0, 0, 0.6);
  --surface: rgba(28, 28, 30, 0.06);
  --surface-2: rgba(28, 28, 30, 0.1);
  --border: rgba(28, 28, 30, 0.14);
  --border-2: rgba(28, 28, 30, 0.22);
  --row-bg: rgba(255, 255, 255, 0.42);
  --row-bg-active: #fffdf8;
  --row-bg-selected: var(--row-bg-active);
  --row-shadow: 0 1px 2px rgba(28, 28, 30, 0.04);
  --row-shadow-active: 0 2px 10px rgba(28, 28, 30, 0.08);
  --chrome-btn-fg: #111;
  --ob-x-bg: #eee7d8;
  --flash-bg: rgba(28, 28, 30, 0.08);
  --spinner-track: rgba(28, 28, 30, 0.14);
  --retry-border: rgba(28, 28, 30, 0.22);
  --pick-panel-bg: rgba(28, 28, 30, 0.04);
  --pick-panel-border: rgba(28, 28, 30, 0.12);
  --err-fg: #b33a2a;
  --wash-hi: rgba(255, 255, 255, 0.45);
  --wash-lo: rgba(255, 255, 255, 0.22);
}

/* Theme: data-theme on <html> (set before paint from localStorage amigos-menu-theme) overrides
   prefers-color-scheme; with no pick yet the OS preference decides. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    /* Sunset (menu-2 TV board) - dark scheme; was Classic black/yellow — Amigos dark boards */
    --ink: #352222;
    --paper: #fff3e6;
    --paper-dim: rgba(255, 243, 230, 0.62);
    --paper-faint: rgba(255, 243, 230, 0.22);
    --card-bg: rgba(255, 148, 69, 0.06);
    --card-bg-2: rgba(255, 148, 69, 0.1);
    --card-border: rgba(255, 148, 69, 0.2);
    --bg-gradient: #2b0f14;
    --catnav-shade: rgba(0, 0, 0, 0.12);
    --letterbox: #ddd3ba; /* keep cream: matches Clover light field styles */
    --gold: #ff8a3d;
    --accent: #ff8a3d;
    --price: #ff8a3d;
    --mark-shadow: rgba(0, 0, 0, 0.45);
    --caption-color: rgba(255, 243, 230, 0.55);
    --surface: rgba(255, 255, 255, 0.05);
    --surface-2: rgba(255, 255, 255, 0.09);
    --border: rgba(255, 255, 255, 0.10);
    --border-2: rgba(255, 255, 255, 0.18);
    --row-bg: rgba(0, 0, 0, 0.2);          /* item rows sit DARKER than the page ink in dark (opposite of Daylight's lighter rows) */
    --row-bg-active: rgba(0, 0, 0, 0.28);  /* panel-open row: a step deeper still (Daylight goes a step lighter) */
    --row-bg-selected: color-mix(in srgb, var(--gold) 32%, var(--ink));
    --row-shadow: none;
    --row-shadow-active: 0 2px 12px rgba(0, 0, 0, 0.35);
    --chrome-btn-fg: #111;
    --ob-x-bg: #2b0f14;
    --flash-bg: rgba(255, 255, 255, 0.14);
    --spinner-track: rgba(255, 255, 255, 0.12);
    --retry-border: rgba(255, 255, 255, 0.2);
    --pick-panel-bg: rgba(255, 255, 255, 0.03);
    --pick-panel-border: rgba(255, 255, 255, 0.07);
    --err-fg: #f3a89a;
    --wash-hi: rgba(255, 255, 255, 0.06);
    --wash-lo: rgba(255, 255, 255, 0.04);
  }
}
:root[data-theme="light"] { color-scheme: light; --catnav-shade: rgba(255, 255, 255, 0.5); }
:root[data-theme="dark"] {
  color-scheme: dark;
  /* Sunset (menu-2 TV board) - dark scheme; was Classic black/yellow — Amigos dark boards */
  --ink: #352222;
  --paper: #fff3e6;
  --paper-dim: rgba(255, 243, 230, 0.62);
  --paper-faint: rgba(255, 243, 230, 0.22);
  --card-bg: rgba(255, 148, 69, 0.06);
  --card-bg-2: rgba(255, 148, 69, 0.1);
  --card-border: rgba(255, 148, 69, 0.2);
  --bg-gradient: #2b0f14;
  --catnav-shade: rgba(0, 0, 0, 0.12);
  --letterbox: #ddd3ba; /* keep cream: matches Clover light field styles */
  --gold: #ff8a3d;
  --accent: #ff8a3d;
  --price: #ff8a3d;
  --mark-shadow: rgba(0, 0, 0, 0.45);
  --caption-color: rgba(255, 243, 230, 0.55);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.10);
  --border-2: rgba(255, 255, 255, 0.18);
  --row-bg: rgba(0, 0, 0, 0.2);          /* item rows sit DARKER than the page ink in dark (opposite of Daylight's lighter rows) */
  --row-bg-active: rgba(0, 0, 0, 0.28);  /* panel-open row: a step deeper still (Daylight goes a step lighter) */
  --row-bg-selected: color-mix(in srgb, var(--gold) 32%, var(--ink));
  --row-shadow: none;
  --row-shadow-active: 0 2px 12px rgba(0, 0, 0, 0.35);
  --chrome-btn-fg: #111;
  --ob-x-bg: #2b0f14;
  --flash-bg: rgba(255, 255, 255, 0.14);
  --spinner-track: rgba(255, 255, 255, 0.12);
  --retry-border: rgba(255, 255, 255, 0.2);
  --pick-panel-bg: rgba(255, 255, 255, 0.03);
  --pick-panel-border: rgba(255, 255, 255, 0.07);
  --err-fg: #f3a89a;
  --wash-hi: rgba(255, 255, 255, 0.06);
  --wash-lo: rgba(255, 255, 255, 0.04);
}
/* Light / fallback: black mark. Dark OS preference: white mark. */
.nav-logo .lg-w { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .nav-logo .lg-b { display: none; }
  :root:not([data-theme]) .nav-logo .lg-w { display: block; }
}
:root[data-theme="dark"] .nav-logo .lg-b { display: none; }
:root[data-theme="dark"] .nav-logo .lg-w { display: block; }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Same 1240px centered cap as the homepage (Matt 2026-11-01): the sides show a darker shade of the theme bg. */
html {
  background: color-mix(in srgb, var(--ink) 78%, #000);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%; max-width: 1240px; margin: 0 auto;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 0;   /* the legal footer is the last thing on the page: no body-coloured strip under it */
  position: relative;
  overscroll-behavior-y: none;
  transition: padding-bottom 0.2s;
  /* App feel (Matt 2026-10-14): no text selection / long-press callout while tapping
     around the menu - typing fields below opt back in. Zoom is already off via the
     viewport meta; the other pages get both from js/header.js. */
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
input, textarea { -webkit-user-select: text; user-select: text; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

/* Subtle taco-pattern wash like the TV boards (no vw scaling) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  max-width: 1240px; margin: 0 auto;   /* stays inside the 1240px column so the darker sides show */
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--wash-hi) 0%, transparent 60%),
    /* bottom glow (--wash-lo) removed 2026-11-01: it showed as a shine across the footer */
    var(--ink);
  opacity: 1;
}

/* ── Site top nav (Amigos cohesion) ──
   One row: logo, then location/closed-status (shrinks and truncates
   first — it's the least essential piece), then the Menu 1/2/3 links
   pinned to the far right. */
.site-header {
  position: sticky; top: 0; z-index: 130;   /* plain sticky, always visible - no scroll-direction show/hide (matches the main Portfoliolounge header, which does none either) */
  background: var(--ink);   /* chrome tracks page ink (Daylight light / Classic dark) */
  border-bottom: 1px solid var(--card-border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
/* Category nav is its own sticky row directly under header + login bar - top offset
   is their combined real measured height (--site-h/--login-h, kept current by a
   ResizeObserver in the script). All rows just sit there; none hide or slide on scroll. */
.cat-nav-bar {
  position: sticky; top: var(--site-h, 64px); z-index: 120;
  background: linear-gradient(var(--catnav-shade), var(--catnav-shade)), var(--ink);   /* theme-aware shade over the page ink: lightens in Daylight, darkens in Classic, to set it apart from the header above */
  border-bottom: 1px solid var(--card-border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: flex; align-items: center;
  padding: 8px 16px;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px 20px 12px;
}
.nav-logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
  flex-shrink: 0;
}
.nav-logo::before { content: none; }   /* the black glow was for the old street-sign logo */
.nav-logo img { position: relative; z-index: 1; height: 46px; width: auto; }
@media (min-width: 720px) { .nav-logo img { height: 58px; } }
/* "Menu" sits right of the logo, on the same baseline row. */
.nav-title {
  font-family: var(--font-display); font-weight: 800; font-size: 1.7rem;
  letter-spacing: 0.05em; text-transform: uppercase; line-height: 1; color: var(--paper);
  margin: 0;
}
.nav-titleblock { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; gap: 3px; margin-left: auto; min-width: 0; max-width: calc(100% - 88px); }
/* .nav-loc (city + pin, locations dropdown): shared js/header.js stylesheet. */
/* City pinned to the header's top-right, small Log in / first name right under it. */
.top-nav .nav-titleblock { align-self: flex-start; justify-content: flex-start; gap: 6px; }
.nav-status {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.nav-status .loc {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.78rem;
  color: var(--paper-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-status .loc b { color: var(--paper); font-weight: 600; }
.cart-btn { margin-left: auto; }
/* Cart button lives in the header; it drops the order panel down from under it. */
.cart-btn {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 7px 13px; border-radius: 999px; border: none;
  background: var(--cta-gold, #dec99f); color: var(--cta-gold-fg, #1a1204);
  font-size: 0.84rem; font-weight: 700; line-height: 1;
}
.cart-btn[hidden] { display: none; }
@media (max-width: 440px) { .cart-btn .cart-total { display: none; } }   /* phones: count only; the total is in the panel */
.cart-btn .cart-total { font-variant-numeric: tabular-nums; }
.cart-btn svg { flex-shrink: 0; }

.page-header {
  position: relative;
  z-index: 1;
  padding: 22px 18px 8px;
  max-width: 960px;
  margin: 0 auto;
}
.page-header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.pill {
  display: inline-block; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 50px; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold);
  border: 1px solid rgba(242,199,68,0.3); flex-shrink: 0;
}

/* ── Sticky category nav ── */
/* Own bar (.cat-nav-bar), separate from .site-header, at every width now — sticky top:0. */
.cat-nav-wrap { position: relative; flex: 1 1 0; min-width: 0; min-height: 36px; }
.cat-nav-wrap[hidden] { display: block; visibility: hidden; }   /* keeps its space while the menu loads */
.cn-arrow { display: none; position: absolute; top: 0; bottom: 0; width: 28px; align-items: center; padding: 0 3px; border: none; color: var(--paper-dim); cursor: pointer; z-index: 2; }
.cn-arrow svg { width: 14px; height: 14px; opacity: 0.75; }
/* Chevrons run the FULL height of the category bar (2026-10-23, Matt): the bar's 8px top/bottom
   padding is cancelled with negative insets so they sit flush top to bottom (no radius, no margin).
   The fade is the bar's own fill (--catnav-shade over --ink) so it blends in both themes. */
.cn-arrow { top: calc(-1 * var(--cnb-pad-y, 8px)); bottom: calc(-1 * var(--cnb-pad-y, 8px)); margin: 0; border-radius: 0; }
.cn-r { right: -14px; justify-content: flex-end; background: linear-gradient(to right, transparent, var(--catnav-shade) 65%), linear-gradient(to right, transparent, var(--ink) 65%); }
.cn-l { left: -14px; justify-content: flex-start; background: linear-gradient(to left, transparent, var(--catnav-shade) 65%), linear-gradient(to left, transparent, var(--ink) 65%); }
.cat-nav-wrap.more-r .cn-r, .cat-nav-wrap.more-l .cn-l { display: flex; }
@media (min-width: 720px) {
  .cn-r { right: -4px; } .cn-l { left: -4px; }
  /* Wide screens: cap flex-grow's stretch to a fixed pill width, then left-align
     the row inside a box that mirrors .menu-content's own max-width + 16px
     gutter (same --col-wide var, same padding) so the first tab's left edge
     lines up with the menu's left column (2026-10-17, Matt). */
  .cat-nav-bar { padding: 8px 0; }
  .cat-nav-wrap { flex: none; width: 100%; max-width: var(--col-wide); margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
  .cat-nav { justify-content: flex-start; padding: 0; }
  /* flex-grow:1 (mobile's edge-to-edge fill) was stretching each tab to an equal
     share of the row, leaving a lot of dead space around short labels/icons. Hug
     content instead - real, consistent 4px gaps between pills, no grow. */
  .cat-nav a { flex: 0 1 auto; min-width: 76px; max-width: 100px; }
}
.cat-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 2px;
  width: 100%;   /* tabs stretch to fill the row; once they no longer fit they scroll and snap */
  margin: 0;
  scroll-snap-type: x proximity;
  scroll-padding: 0 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav { overscroll-behavior-x: contain; }   /* no rubber-band / chaining past the ends */
/* Category tabs: icon above the label; the active one is marked by a yellow underline + text, not a filled pill. */
.cat-nav a {
  flex: 1 0 auto;
  min-width: 60px;   /* short labels (Sides) read as skinny slivers without a floor */
  box-sizing: border-box;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--paper-dim);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px 5px;
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  border: none; border-radius: 10px;
  background: none;
  white-space: nowrap;
}
.cat-nav a .cat-ico { width: 20px; height: 20px; fill: none; stroke: var(--paper); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; }
.cat-nav a.active .cat-ico { opacity: 1; stroke: var(--gold); }
*, *::before, *::after { -webkit-tap-highlight-color: transparent; }   /* no white/grey tap flash anywhere */
.cat-nav a, .cn-arrow { outline: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.cat-nav a:active { background: rgba(0, 0, 0, 0.14); }
/* Brief press feedback on the tapped control itself (cart +/-/trash/Remove); cleared before the re-render. */
.item-trash.pressed, .rv-del.pressed { color: var(--coral); }
.item-add-btn.pressed, .item-minus-btn.pressed, .item-trash.pressed { opacity: 0.6; }
.cat-nav a.active { color: var(--paper); background: var(--surface-2); border-radius: 10px; }   /* current tab = filled background, no underline */

.menu-content {
  position: relative;
  z-index: 1;
  max-width: var(--col-w);
  margin: 0 auto;
  padding: 0 16px 44px;
  min-height: calc(100vh - var(--hdr-h, 130px));
  min-height: calc(100dvh - var(--hdr-h, 130px));   /* dvh = the visible viewport on phones */
  display: flex;
  flex-direction: column;
  gap: 0;   /* no gap: the Daylight/Sunset halves butt together, no black strip between them */
}
.menu-content > :not(.menu-half) { margin-bottom: 40px; }  /* banners / extras between halves */
/* Space above AND below each category card (board-cards live inside .menu-half,
   so the rule above never reached them). Sticky header/nav selectors untouched. */
.menu-half > .board-card {
  margin-top: 16px;
  margin-bottom: 16px;
}
.menu-half > .board-card:first-child { margin-top: 16px; }
.menu-half > .board-card:last-child { margin-bottom: 16px; }
body.reviewing .menu-half > .board-card { margin-top: 0; margin-bottom: 0; }

.status-wrap {
  column-span: all;   /* desktop .menu-content is 2-column multicol: never split a status message across columns */
  break-inside: avoid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 64px 20px;
  color: var(--paper-dim);
  text-align: center;
}
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--spinner-track);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* /menu loading overlay (#menuLoader): fixed full-screen cover in the active theme's page color
   (--ink, set before first paint by the head theme script), with the spinner + text as ONE
   unit centered in the viewport. 100dvh overrides 100vh so iOS Safari's toolbars can't push it
   off-center. Fades out in 200ms when the menu renders (menuLoader.hide()). */
.menu-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper-dim);
  opacity: 1;
  transition: opacity 0.2s ease;
}
.menu-loader.ml-out { opacity: 0; pointer-events: none; }
.menu-loader .ml-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  text-align: center;
  font-size: 15px;
  line-height: 1.3;
}
@media (prefers-reduced-motion: reduce) {
  .menu-loader { transition: none; }
  .menu-loader .spinner { animation-duration: 2.4s; }
}
.retry-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--retry-border);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

/* ── Category sections: plain, no card container/border ── */
.board-card {
  scroll-margin-top: calc(var(--hdr-h, 122px) + 6px);   /* measured sticky header height (JS), so the card title lands just under it on any screen */
}
/* Same offset for item rows: Done in the customization panel smooth-scrolls the row's top to just under the sticky header + login bar + category nav. */
.item-row {
  scroll-margin-top: calc(var(--hdr-h, 122px) + 8px);
}
.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 22px 12px;
}
/* Category icons hidden on /order (title-only card heads, same as
   pre-fork storefront / TV boards). Keep markup optional; CSS hides. */
.card-icon { display: none; }
.card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  flex: 1;
  color: var(--paper);
}
.card-count {
  font-size: 0.75rem;
  color: var(--paper-faint);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.items { padding: 8px 5px 16px 16px; }   /* tighter on the right so the controls sit further right */

.items, .item-row { overflow-anchor: none; }   /* no scroll-anchoring jumps when a drawer opens */

.item-row {
  position: relative; padding: 8px 5px 8px 10px; border-radius: 10px;
  background: var(--row-bg); border: 1px solid transparent;   /* borderless by default */
  box-shadow: var(--row-shadow);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;   /* keep qty/price/actions inside the card chrome */
}
/* Active: in the order, or its options panel open. Same padding as idle so nothing jumps.
   Selected gets its own brighter --row-bg-selected (a gold-tinted glow in dark theme,
   same cream as before in light); panel-open (not yet in cart) keeps the plainer tint. */
.item-row.selected, .item-row.panel-open {
  border-color: transparent;   /* selected/open: bg + shadow only, no border change */
  box-shadow: var(--row-shadow-active);
}
.item-row.panel-open { background: var(--row-bg-active); }
.item-row.selected { background: var(--row-bg-selected); }

/* Collapsed rows: vertically center the title/text block with the right-side control.
   Expanded (panel-open) rows keep flex-start so the editor stacks naturally under the title. */
.item-row .item-top { align-items: center; }
.item-row .item-left { justify-content: center; }
.item-row .item-side { align-self: center; margin-top: 0; }
.item-row.has-ctl .item-top .item-tap { margin-top: 0; }
/* One row: optional photo | name+desc | price + Add/X. No forced second action row. */
.item-top { position: relative; display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 5px; }
.item-row + .item-row { margin-top: 4px; }
/* /checkout/: empty cart = friendly empty state, no contact/payment fields and no pay pill. */
body.checkout-empty .ob-body, body.checkout-empty #obX, body.checkout-empty .ob-pay-bar { display: none !important; }
.co-empty { padding: 40px 10px; text-align: center; color: var(--paper-dim); }
.co-empty p { margin: 0 0 16px; font-size: 1rem; }
/* Browse the menu = the header's resting Our Menu pill (Matt 2026-11-02): same 34px size, thin gold border, faint gold fill, type. */
.co-empty-go { --hb-line: color-mix(in srgb, var(--cta-gold, #e4ab38) 38%, transparent); display: inline-flex; align-items: center; box-sizing: border-box; height: 34px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--hb-line); background: color-mix(in srgb, var(--cta-gold, #e4ab38) 8%, transparent); color: var(--paper); font: 500 0.84rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; text-decoration: none; -webkit-tap-highlight-color: transparent; }
@media not all and (prefers-color-scheme: dark) { :root:not([data-theme]) .co-empty-go { --hb-line: color-mix(in srgb, color-mix(in srgb, var(--cta-gold, #e4ab38) 70%, #000) 45%, transparent); } }
:root[data-theme="light"] .co-empty-go { --hb-line: color-mix(in srgb, color-mix(in srgb, var(--cta-gold, #e4ab38) 70%, #000) 45%, transparent); }
/* Checkout line details: each modifier on its own dim, indented line with its price. */
.rv-modlist { margin: 3px 0 0; padding-left: 12px; }
.rv-modl { display: flex; justify-content: space-between; gap: 10px; font-size: 0.74rem; line-height: 1.35; color: var(--paper-dim); }
.rv-modl > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.rv-modl > span:last-child { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.rv-each { display: block; font-size: 0.72rem; font-weight: 500; color: var(--paper-dim); font-variant-numeric: tabular-nums; }
.item-thumb { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; align-self: center; background: var(--surface); }
/* Wide banner crop, full-bleed across the card's top edge (the row's own
   border-radius/overflow:hidden clips the square corners for us) - not an
   inline thumbnail beside the text. */
.item-photo {
  display: block; width: calc(100% + 15px); margin: -8px -5px 8px -10px;
  aspect-ratio: 16 / 9; object-fit: cover; object-position: center;
  background: var(--surface);
}
/* Text buttons: "Show more" under a category, "View all categories" under the last one. */
.view-more { display: block; margin: 0 auto; padding: 0 16px 12px; opacity: 0.6; background: none; border: none; color: var(--paper-dim); font-size: 0.72rem; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.view-cats-row { position: relative; z-index: 1; text-align: center; padding: 0 0 8px; }
.view-cats-row .view-more { padding-top: 0; }
.items > .view-more { padding: 6px 16px 14px; }   /* per-group Show more (main list + each subsection), sits under its own group */
.item-tap { cursor: default; }
/* One line, never wraps - long rows scroll sideways by finger instead of dropping to a new line. */
.item-popmods {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 4px 6px; margin-top: 2px; font-size: 0.68rem; line-height: 1.2;
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.item-popmods::-webkit-scrollbar { display: none; }
.item-popmods .pm-chip {
  flex: 0 0 auto; white-space: nowrap;
  padding: 2px 7px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--paper-dim);
  font: inherit; display: inline-flex; align-items: center; gap: 3px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
button.pm-chip { -webkit-tap-highlight-color: transparent; }
/* Picked: same gold the panel's own checked tiles use - no checkbox icon, just the color change. */
.pm-chip.active { background: color-mix(in srgb, var(--gold) 14%, transparent); border-color: var(--gold); color: var(--gold); }
/* "More modifiers" replaces the old Modify button - gold outline, no fill toggle when its panel is open. */
.pm-chip.pm-more { border-color: var(--gold); color: var(--gold); font-weight: 600; }
/* Review page: just the ordered items in one plain list, no category cards, titles or icons. */
body.reviewing .menu-content { gap: 0; }
body.reviewing .card-head { display: none; }
body.reviewing .sub-divider { display: none; }
body.reviewing .items { padding: 0; }
body.reviewing .item-row { background: none; border-color: transparent; box-shadow: none; }
/* In the order: a soft gold wash + hairline border wraps the row, its options and the qty picker. */
.item-left { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.item-row.has-ctl .item-tap { margin-top: 3px; }   /* title lines up with the 28px check circle */
.item-tap {
  min-width: 0; background: none; border: none; text-align: left;
  color: inherit; padding: 0; cursor: pointer;
  display: inline; font: inherit;
}
/* width:100% (was shrink-to-fit under .item-left's align-items:flex-start):
   the title row + .item-tap now fill the whole .item-left width instead of
   stopping at the title text, so titles use all available row space (wrapping
   later) and the empty space beside the title is inside the tap target.
   Pencil (sibling before the tap), badges and the right-side stepper/price
   are outside this width and are not overlapped. */
.item-main { display: flex; flex-direction: column; gap: 3px; width: 100%; }
/* flex-start + nowrap: the pencil and the title's first line start on the same
   line (baseline alignment against the 24px icon button pushed the title up
   ~1.7px on active rows, and wrap could strand the pencil above the title). */
.item-title-row {
  display: flex; align-items: flex-start; flex-wrap: nowrap; gap: 6px 8px;
}
.item-title-row .item-tap { flex: 1 1 auto; min-width: 0; }
/* "Modify" link under the title - only shown for an in-cart item with
   modifiers, while its drawer is closed (reopens it via the shared
   [data-tap] handler, same as tapping the title). */
.item-modify {
  align-self: flex-start; background: none; border: none; padding: 0; margin: 0;
  color: var(--gold); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 55%, transparent);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.item-name {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--paper);
  line-height: 1.25;
}
.item-name .req-star { color: var(--gold); font-weight: 700; }
.item-name .mod-tag {
  display: inline-block; vertical-align: middle; margin-left: 4px; padding: 2px 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold);
  font: 700 0.56rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2;
}
.live-pills { display: contents; }   /* editor-open wrapper for live .mod-pills: no box of its own */
.mod-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; margin-bottom: 6px; }   /* bottom gap keeps pills off the Modify link (Matt 2026-11-01) */
.mod-pills .mod-tag {
  display: inline-block; padding: 2px 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold);
  font: 700 0.56rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2;
}
.item-name .fav-star { display: inline-block; width: 0.95em; height: 0.95em; margin-right: 0.3em; vertical-align: -0.12em; color: var(--gold); flex-shrink: 0; }   /* top sellers, same picks as the TV boards' crowns */
.item-name .crown { width: 1em; height: 0.75em; margin-right: 0.35em; vertical-align: -0.05em; color: var(--gold); flex-shrink: 0; }
.item-desc {
  display: none;   /* descriptions kept in menu data; hidden on cards for now */
  font-size: 0.72rem;
  color: var(--paper-dim);
  line-height: 1.35;
  max-width: none;
  padding-right: 0;
}
/* Right cluster. Not in the order: [price][check]. In the order, a 3-col grid: row 1 price over the check circle, row 2 = [-] count [+]
   with the count centered under the price and the + directly under the check circle. */
/* Right cluster: price + Add/X always on the same row (never replaced when qty > 0). */
.item-side { flex: 0 0 auto; align-self: flex-start; display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; margin-top: 1px; }
.item-side .item-price { min-height: 30px; display: flex; align-items: center; justify-content: center; text-align: center; min-width: var(--row-ctl-w, 48px); box-sizing: border-box; }   /* fixed-width price column, same as ADD/stepper; no bg/border */
/* In-cart (qty stepper showing): hide menu-row price; visibility keeps the side slot from collapsing. */
.item-row.selected .item-price { visibility: hidden; }
@keyframes stepper-in { from { transform: scale(0.85); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }
.warn-mark { width: 1em; height: 1em; color: var(--coral); vertical-align: -0.12em; margin-left: 4px; }
/* Matches the stepper look (design-hotspot variant 7, 2026-10-17): ink fill +
   card-border outline instead of the old per-half --price accent color. */
.item-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--paper);
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--ink);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 4px 10px;
  box-sizing: border-box;
}
/* Deal price: plain body font, not the display-font price treatment,
   but still bold like the regular price. Sale price sits in a circled
   badge; the struck original follows it, same baseline as the badge text. */
.item-price.on-deal { font-family: var(--font-body, inherit); font-weight: 700; font-size: 0.9rem; color: var(--paper); letter-spacing: normal; display: flex; align-items: baseline; gap: 6px; }
.deal-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 2em; height: 2em; padding: 0 0.35em; box-sizing: border-box; border: 2px solid var(--gold); border-radius: 999px; }
.was-price { font-family: inherit; font-weight: inherit; font-size: inherit; color: inherit; text-decoration-thickness: 1px; }
.item-price .cur { font-size: 1em; vertical-align: baseline; line-height: inherit; }   /* $ back at full size, on the baseline */
.item-price-free { color: var(--paper-dim) !important; font-size: 0.9rem; font-weight: 600; }

/* Sub-section divider inside a category (e.g. Tacos' Combos/Dinners) —
   same hand-picked split as tv-menu.js, colored by the card's accent. */
/* Matches the TV boards (tv-menu.css .card-subdivider): centered, boxed, bold uppercase label with a small uppercase caption. */
.sub-divider { margin: 28px 7px 14px; padding: 12px 10px; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid var(--card-border); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--paper); }
.sub-divider-caption { display: block; margin-top: 6px; font-family: var(--font-body); font-weight: 600; font-size: 0.7rem; line-height: 1.1; letter-spacing: 0.04em; text-transform: uppercase; color: var(--caption-color, var(--paper-dim)); }

/* Far-right control, all inside the card. Not in the order: one large empty circle (tap to add). In the order: [ - ] (qty circle) [ + ]. */
html, body { touch-action: pan-x pan-y; }   /* no pinch or double-tap zoom */
/* Check circle / qty stepper lives on the far right of the row, past the price. */
.item-check, .item-stepper { order: 0; }
.mod-opt .lbl { order: 1; }
.mod-opt .mp { order: 2; }
.mod-opt .tile-check { order: 3; }
.mod-more { display: block; margin: 4px 0 2px; padding: 4px 0; text-align: left; background: none; border: none; color: var(--paper-dim); font-size: 0.68rem; font-weight: 600; text-decoration: none; cursor: pointer; opacity: 0.55; }
/* Overflow options stay in the DOM (handlers/data intact) but out of view while their group is collapsed. */
.mod-opt.mod-opt-hidden { display: none; }
.item-check {
  flex: 0 0 auto; position: relative; width: 28px; height: 28px; padding: 0; border-radius: 50%;
  border: 2px solid var(--border-2); background: none; color: var(--paper-faint); cursor: pointer; display: grid; place-items: center;
  align-self: center;   /* stays vertically centered as the row grows */
}
.item-check svg { width: 14px; height: 14px; opacity: 0.55; }
.item-check::after { content: ''; position: absolute; inset: -12px; }
/* Selected: the checkmark circle is replaced by the qty stepper, same far-right slot. */
.item-stepper { flex: 0 0 auto; align-self: center; width: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: auto; }
/* Pop-in only on the row that actually just changed (justChangedId, set by the
   +/-/Add handlers) - render() rebuilds every row's stepper from scratch on
   every single qty tap anywhere, so animating this unconditionally replayed
   the pop on every other item already in the cart too, every time. */
.item-stepper.stepper-in { animation: stepper-in 0.18s ease; }
.item-add-btn, .item-minus-btn {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  position: relative; width: 24px; height: 24px; box-sizing: border-box; padding: 0; border-radius: 50%;
  border: 2px solid var(--border-2); background: var(--surface-2); color: var(--paper); cursor: pointer;
}
/* Big hot spots on small buttons, stacked vertically now: each grows outward (away from the count) so the two never overlap. */
.item-add-btn::after, .item-minus-btn::after { content: ''; position: absolute; inset: -6px -14px; }
.item-add-btn::after { top: -14px; }
.item-minus-btn::after { bottom: -14px; }
.item-add-btn svg, .item-minus-btn svg { flex: 0 0 auto; width: 12px; height: 12px; }
.item-count { color: var(--paper); padding: 2px 2px; white-space: nowrap; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.19rem; line-height: 1; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }

.item-picks { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.pick-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 0.8rem; color: var(--paper-dim);
  background: var(--pick-panel-bg); border: 1px solid var(--pick-panel-border);
  border-radius: 8px; padding: 7px 10px;
}
.pick-txt { flex: 1; min-width: 0; }
.pick-actions { flex: 0 0 auto; display: flex; gap: 12px; }
.pick-actions button { background: none; border: none; font-size: 0.76rem; font-weight: 700; padding: 0; }
.pick-edit { color: var(--gold); }
.pick-rm { color: var(--paper-faint); }

.discount-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(95deg, rgba(239,91,69,0.22), rgba(242,199,68,0.16));
  border: 1px solid rgba(242, 199, 68, 0.35);
}
.discount-banner .label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.discount-banner .detail {
  color: var(--paper-dim);
  font-size: 0.85rem;
  margin-top: 2px;
}

/* Soft new-customer discount nudge — shown before phone entry
   (checkout + top login). Not a modal; hides once a personal discount
   is already applied or the guest is recognized. */
.newcust-hint {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(95deg, rgba(239,91,69,0.14), rgba(242,199,68,0.10));
  border: 1px solid rgba(242, 199, 68, 0.28);
  color: var(--paper);
}
.newcust-hint[hidden] { display: none; }
.newcust-hint .nc-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(242,199,68,0.18);
  border: 1px solid rgba(242,199,68,0.40);
  color: var(--gold);
  font: 700 0.68rem var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.newcust-hint .nc-copy {
  flex: 1 1 auto; min-width: 0;
  font-size: 0.82rem; line-height: 1.35; color: var(--paper-dim);
}
.newcust-hint .nc-copy strong { color: var(--paper); font-weight: 600; }
.personal-disc-chip {
  display: inline-flex; align-self: flex-start;
  padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 12%, transparent); border: 1px solid rgba(242,199,68,0.32);
  color: var(--gold); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
}
.usual-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--card-bg); border: 1px solid var(--card-border);
}
.usual-card-body { flex: 1; min-width: 0; }
.usual-card-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px;
}
.usual-card-items {
  color: var(--paper-dim); font-size: 0.86rem; line-height: 1.35;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.usual-add-btn {
  flex-shrink: 0; height: 40px; padding: 0 14px; border-radius: 10px; border: none;
  background: var(--cta-gold, #dec99f); color: var(--cta-gold-fg, #1a1204); font-family: var(--font-display);
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.03em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer;
}
.usual-add-btn:active { opacity: 0.85; }
.usual-note { color: var(--paper-faint); font-size: 0.75rem; margin-top: 4px; }

/* Header account area: tiny "Log in" button (logged out) or initial badge (logged in). */
/* In the title block where the "Order" title used to be, right-aligned under the location. */
/* Login pill, name pill, cart (round icon + red badge, homepage style per Matt
   2026-10-14), .hdr-row and the location dropdown all come from the shared
   js/header.js stylesheet now - only menu-specific behavior rules live here. */
body.reviewing .nav-login { display: none; }
body.reviewing .hdr-cart { display: none; }
/* Tighten the icon row (Our Menu / account / cart) on ordering headers - Matt 2026-10-22:
   10px (shared) -> 6px -> 3px. The 34px chips keep a >=40px tap area each without the hit
   areas overlapping at the 3px gap: account reaches 6px left (3px into the Our Menu pill's
   rounded end) and 2px right (42px wide), the cart's starts 1px left of it (43px wide);
   vertical stays at the shared -8px (50px tall). Same rules inline on /account/. */
.hdr-row { gap: 6px; }
.hdr-row .hdr-login-btn::before, .hdr-row .nav-login-hi::before { inset: -8px -2px -8px -6px; }
.hdr-row .hdr-cart::before { inset: -8px -8px -8px -1px; }
/* Start-over: right of the cart button, same bar, same height, opens the
   centered confirm dialog (.confirm-modal) below. */
.hdr-x {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--card-border); background: var(--card-bg); color: var(--paper-dim);
}
.hdr-x svg { width: 15px; height: 15px; }
.hdr-x[hidden] { display: none; }
body.reviewing .hdr-x { display: none; }
/* Confirm dialog: always centered (center/center), not a bottom sheet -
   deliberately a different shell than .login-modal for a quick yes/no. */
.confirm-modal {
  position: fixed; inset: 0; z-index: 260; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.confirm-modal[hidden] { display: none; }
.confirm-card {
  width: 100%; max-width: 320px; box-sizing: border-box; text-align: center;
  background: var(--ink); color: var(--paper); border: 1px solid var(--card-border); border-radius: 16px;
  padding: 22px 20px; box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.confirm-t { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin: 0; }
.confirm-body { margin: 8px 0 0; font-size: 0.86rem; color: var(--paper-dim); }
.confirm-actions { display: flex; gap: 10px; margin-top: 18px; }
.confirm-cancel, .confirm-go {
  flex: 1; height: 42px; border-radius: 999px; font: 700 0.82rem var(--font-display); letter-spacing: 0.04em; cursor: pointer;
}
.confirm-cancel { border: 1px solid var(--card-border); background: none; color: var(--paper); }
.confirm-go { border: none; background: var(--coral); color: #fff; }
/* Login modal: compact card sized to its content - bottom sheet on phones, centered card on wider screens. */
.login-modal {
  position: fixed; inset: 0; z-index: 260; background: rgba(0,0,0,0.5);
  display: flex; align-items: flex-end; justify-content: center;
}
.login-modal[hidden] { display: none; }
.lm-card {
  position: relative; width: 100%; box-sizing: border-box;
  background: var(--ink); color: var(--paper); border: 1px solid var(--card-border); border-bottom: none; border-radius: 18px 18px 0 0;
  padding: 18px 18px calc(18px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.35);
}
@media (min-width: 520px) {
  .login-modal { align-items: center; padding: 16px; }
  .lm-card { max-width: 340px; border-radius: 16px; border-bottom: 1px solid var(--card-border); padding-bottom: 18px; }
}
.lm-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; border: none; background: none; color: var(--paper-dim); font-size: 1.4rem; line-height: 1; }
.lm-t { margin: 0 0 2px; font: 800 1.15rem var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--paper); }
.lm-card input {
  height: 46px; padding: 0 12px; box-sizing: border-box; width: 100%;
  border-radius: 10px; border: 1.5px solid var(--border-2, var(--card-border)); background: none; color: var(--paper); font-size: 16px; font-family: inherit;
}
.lm-card input::placeholder { color: var(--paper-faint); }
.lm-card input:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.lm-err { color: var(--coral); font-size: 0.78rem; }
.lm-err:empty { display: none; }
#loginForm, #guestForm, #checkoutForm { display: contents; }   /* wrapper only: the card's own layout applies to the fields */
.lm-go {
  height: 46px; border-radius: 10px; border: none; background: var(--cta-gold, #dec99f); color: var(--cta-gold-fg, #1a1204);
  font: 800 0.85rem var(--font-display); letter-spacing: 0.06em; text-transform: uppercase;
}
.lm-go:disabled { opacity: 0.6; }

.menu-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--paper-faint);
  font-size: 0.78rem;
  padding: 8px 16px 24px;
}

/* ── INLINE CUSTOMIZATION PANEL (per item, no modal) ── */
.item-panel {
  flex-basis: 100%; margin-top: 2px; padding: 4px 0 0; position: relative;   /* positioning context for the reset icon */
}
/* Modifier content sits in its own padded container; the Close button stays outside it. */
.panel-body {
  padding: 7px 16px 8px; box-sizing: border-box;
  border: 1px solid var(--card-border); border-radius: 12px;
  /* Opaque, and always the pre-add look (tint over the open-row color over the page),
     so the in-cart row's gold wash (--row-bg-selected) never bleeds through. */
  background: linear-gradient(var(--surface), var(--surface)), linear-gradient(var(--row-bg-active), var(--row-bg-active)), var(--ink);
}
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.panel-req { color: var(--coral); font-size: 0.76rem; font-weight: 600; }
.panel-close { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px auto 0; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--card-border); background: none; color: var(--paper); font: 700 0.72rem var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.panel-close-bottom { margin: 14px auto 0; }
.panel-close svg { width: 16px; height: 16px; display: block; color: var(--paper-dim); transition: none; transform: none; }
/* .panel-mods wraps all modifier groups: it is the Clear button's anchor. */
.panel-mods { margin-bottom: 2px; margin-top: 14px; line-height: 0.95; position: relative; }
.mod-group { padding: 6px 0; }
/* Single column: every modifier group (shell/tortilla picture groups included)
   stacks full width, one below the other - the full panel width is free for
   each row's icon + label + price. */
.mod-grid { display: block; }
.mod-grid .mod-group { min-width: 0; break-inside: avoid; page-break-inside: avoid; }
.mod-group:first-child { padding-top: 0; }
.mod-group .mg-title {
  /* Distinct heading: font-display, bold 700, 0.86rem (13.8px) - slightly larger
     than option text (0.8rem / 12.8px) - uppercase, themed gold (both themes). */
  font-family: var(--font-display); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold);
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; margin-bottom: 6px; line-height: 1.15; min-height: 16px; box-sizing: border-box;
}
/* Subtle underline under the title text only (not the required/pick-one label). */
.mod-group .mg-title > span:first-child { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 55%, transparent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mod-acc > summary { cursor: pointer; list-style: none; margin-bottom: 0; }
.mod-acc > summary::-webkit-details-marker { display: none; }
.mod-acc[open] > summary { margin-bottom: 3px; }
.mod-acc .mg-n { color: var(--gold); }
.mod-acc .mg-chev { width: 7px; height: 7px; border-right: 1.5px solid var(--paper-dim); border-bottom: 1.5px solid var(--paper-dim); transform: rotate(45deg); margin: 0 3px 3px 0; transition: transform 0.15s; }
.mod-acc[open] .mg-chev { transform: rotate(-135deg); margin-bottom: 0; }
.mod-group .mg-req { color: var(--paper-dim); font-weight: 600; font-size: 0.62rem; }
/* First group's title row shares the top-right corner with the absolute Clear button: keep its
   Required / Pick one label clear of it (Matt 2026-11-03). */
.mod-grid > .mod-group:first-child .mg-title { padding-right: 52px; }
.mod-group .mg-star { color: var(--gold); }
/* "Clear" sits absolute in the panel-mods top-right corner so it never reserves
   flow space - the mod groups start right at the top of the panel. */
.panel-reset { position: absolute; right: 0; top: 0; z-index: 2; padding: 2px 0; margin: 0; background: none; border: none; color: var(--paper-dim); font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* Plain text options, three across: a small ring marks each, filled gold when picked. */
.mod-opts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px;
  margin: 0; padding: 0;
}
.mod-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; text-align: left; cursor: pointer;
  color: var(--paper-dim); line-height: 1.1;
}
/* The menu column is phone-width even on desktop, so options stay 2 across. */
.mod-opt.checked { color: var(--gold); }
/* Icon chip: a round tinted circle so each row reads at a glance - a thin-line
   outline icon where we have one (modifierIconSvg, same stroke style as the
   shell/tortilla icons), a faint dashed circle placeholder otherwise. */
.mod-opt .tile-ic {
  flex-shrink: 0; display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface-2); color: var(--paper-dim);
}
.mod-opt .tile-ic svg {
  width: 12px; height: 12px; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.mod-opt.checked .tile-ic { background: color-mix(in srgb, var(--gold) 24%, var(--surface-2)); color: var(--gold); }
.mod-opt .tile-ic-none { color: var(--paper-faint); opacity: 0.7; }
.mod-opt .lbl { flex: 1; min-width: 0; font-size: 0.72rem; font-weight: 600; line-height: 1.1; overflow-wrap: break-word; }
.mod-opt .mp { flex-shrink: 0; color: var(--paper-dim); font-size: 0.68rem; font-weight: 600; font-variant-numeric: tabular-nums; }
/* One list, one column: icon, option name, price, check on a single line each,
   with a hairline divider between rows so a single column still reads as a list. */
.mod-opts:not(.gfx) { grid-template-columns: minmax(0, 1fr); }
.shell-ic { order: 0; flex: 0 0 auto; display: inline-grid; place-items: center; width: 22px; height: 22px; }
.shell-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--paper-dim); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mod-opt.checked .shell-ic svg { stroke: var(--gold); }
.mod-opts:not(.gfx) .mod-opt { padding: 3px 0; border-bottom: 1px solid var(--card-border); }
.mod-opts:not(.gfx) .mod-opt:last-child { border-bottom: none; }
.mg-sub { margin: -2px 0 4px; font-size: 0.7rem; color: var(--paper-faint); letter-spacing: 0.04em; }
.panel-sum { margin-top: 14px; padding: 10px 12px; border: 1px solid var(--card-border); border-radius: 10px; }
.panel-sum:empty { display: none; }
.ps-r { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 0.8rem; color: var(--paper); font-variant-numeric: tabular-nums; }
.ps-mod { color: var(--paper-dim); padding-left: 10px; }
.ps-total { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--card-border); font-weight: 700; }
.mod-opt .tile-check {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--paper-dim); color: transparent; font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
/* Picture tiles (taco shell / tortilla choices) */
.mod-opts.gfx { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mod-opt.gfx {
  flex-direction: column; justify-content: center; gap: 4px; padding: 10px 6px 8px; text-align: center;
  background: var(--surface); border: 1.5px solid var(--border-2); border-radius: 12px;
}
.mod-opt.gfx.checked { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }
.mod-opt.gfx .shell-art { width: 62px; height: 46px; }
.mod-opt.gfx .lbl { flex: none; text-align: center; font-size: 0.74rem; }
.mod-opt.checked .tile-check { background: var(--gold); border-color: var(--gold); color: #111; }

.panel-notes { padding-top: 6px; }
.panel-notes:first-child { padding-top: 0; border-top: none; }
.panel-notes label { display: block; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-dim); margin-bottom: 8px; }
.panel-notes textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px; resize: none; min-height: 56px;
  background: var(--surface); border: 1.5px solid var(--border-2); color: var(--paper);
  font-size: 0.88rem; font-family: inherit; outline: none;
}
.panel-notes textarea:focus { border-color: var(--gold); }

.qty-row { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border); }
.qty-row .ql { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-dim); }
.qty-row.top { padding: 0 0 14px; margin: 0 0 14px; border-top: none; border-bottom: 1px solid var(--border); }
.stepper { display: flex; align-items: center; gap: 12px; border: none; background: none; }
.stepper button {
  width: auto; height: auto; padding: 0; margin: 0;
  background: none; border: none; box-shadow: none; border-radius: 0;
  color: var(--paper); font-size: 1.25rem; font-weight: 500; line-height: 1;
}
.stepper span { min-width: 1.25em; text-align: center; font-weight: 600; font-size: 0.95rem; font-variant-numeric: tabular-nums; }

.btn-primary {
  width: 100%; margin-top: 12px; padding: 14px; border-radius: 12px; border: none;
  background: var(--cta-gold, #dec99f); color: var(--cta-gold-fg, #1a1204); font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:disabled { opacity: 0.4; }
.btn-primary[hidden] { display: none; }
.btn-primary.as-hint { height: auto; padding: 6px 0; background: none; border: none; box-shadow: none; color: var(--coral); font-size: 0.8rem; font-weight: 600; opacity: 1; justify-content: center; }
.btn-primary .amt { font-variant-numeric: tabular-nums; }
/* Explicit opt-in to a second, separately-customized line for this item - the
   only way a second order line for the same item should ever appear now. */
.btn-secondary {
  width: 100%; margin-top: 8px; padding: 12px; border-radius: 12px;
  border: 1.5px solid var(--gold); background: none; color: var(--gold);
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
}
.btn-secondary:disabled { opacity: 0.4; }
.panel-cancel { display: block; width: 100%; margin-top: 8px; background: none; border: none; color: var(--paper-dim); font-weight: 600; font-size: 0.78rem; text-align: center; padding: 4px; }

/* ── ORDER BAR: slim bar at the bottom once something is in the cart. The item lines are always
      shown above the total row; tapping the total row opens the checkout fields below it. ── */
.ob-scrim { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,0.5); }
.ob-scrim[hidden] { display: none; }
.order-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 115;
  max-height: calc(100vh - var(--hdr-h, 100px) - 8px); max-height: calc(100dvh - var(--hdr-h, 100px) - 8px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: none; pointer-events: none;   /* only the ticket itself takes taps */
  padding: 16px 16px 0;
  transform: translateY(110%); transition: transform 0.22s;
}
.order-bar.show { transform: translateY(0); }
/* Review card: same dark card language as the menu, plain sans type. */
.order-bar-in {
  --ink: var(--paper); --ink-dim: var(--paper-dim); --rule: var(--border);
  position: relative; pointer-events: auto;
  max-width: 360px; margin: 0 auto;
  padding: 16px 16px calc(16px + var(--safe-b));
  background: var(--card-bg); color: var(--paper);
  border: 1px solid var(--card-border); border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 26px rgba(0,0,0,0.5);
}
.ob-body { display: block; padding-top: 34px; }
.ob-body .ob-fields { gap: 12px; margin-bottom: 22px; }
.ob-body .ob-field label { margin-bottom: 9px; }
.ob-body .ob-card { margin-bottom: 26px; }
.ob-body .cf-row { margin-top: 14px; gap: 14px; }
.ob-body .cf-secure { margin-top: 16px; line-height: 1.5; }
.order-bar.at-footer { transform: translateY(110%) !important; }   /* the tab tucks away once the footer itself is on screen */
/* Bottom Checkout bar (pill + red trash circle + "Start over?" dialog): THE shared one, same on every
   customer page - /css/amigos-cart-bar.css + mountCheckoutBar() in /js/amigos-order.js. */
/* Checkout: its own page (/checkout/, checkout/index.html), in the normal document flow
   under the shared header - the window scrolls it (list + totals + payment fields together). */
.checkout-page { position: relative; z-index: 1; background: var(--ink); color: var(--paper); }
.checkout-page[hidden] { display: none; }
.checkout-page-in { max-width: var(--col-w); margin: 0 auto; padding: 20px 32px calc(30px + var(--safe-b)); }
.mini-cart-list { padding: 18px 16px 4px; border: 1px solid var(--card-border); border-radius: 14px; }
.mini-cart-list:has(.co-empty) { padding: 0; border: none; }
.rf-head-l { display: flex; align-items: center; gap: 14px; }
.checkout-page .ob-x { position: relative; top: auto; right: auto; width: auto; height: auto; padding: 0; border: none; border-radius: 0; background: none; color: var(--paper-dim); font-size: 0.68rem; font-weight: 600; text-decoration: none; box-shadow: none; }
.checkout-page .ob-x[hidden] { display: none; }
.checkout-page .ob-x.armed { width: auto; padding: 0; border-radius: 0; background: none; border: none; color: var(--coral); }
/* Nothing hangs below the panel: no empty footer band, no extra page padding once the order panel is showing. */
.menu-footer:empty { display: none; }
.legal-footer { position: relative; z-index: 1; background: var(--ink); border-top: 1px solid var(--card-border); padding: 10px 12px calc(10px + var(--safe-b)); font-size: 0.68rem; line-height: 1.3; color: var(--paper-dim); }
/* Empty cart (shared Checkout bar mounted but hidden, so it sets no body padding): trim the legal footer's
   excess bottom padding at the very bottom of the page. ID specificity beats footer.js's injected
   .a-footer padding (30px live); while the bar shows (html.acb-on), this rule no longer applies.
   html.acb-mounted = /menu only (in this stylesheet's pages; /checkout/ has no bar). */
html.acb-mounted #siteFooter.legal-footer { padding-bottom: calc(10px + var(--safe-b)); }
/* Uncapped on /menu only (Matt 2026-10-14): footer.js centers its own .a-footer-in at
   1100px site-wide - here it runs edge to edge, matching the uncapped header. */
.legal-footer .a-footer-in { max-width: none; }
.legal-footer p { max-width: 420px; margin: 8px auto 0; }
.lf-links { display: flex; justify-content: center; align-items: center; gap: 10px; font-weight: 600; }
.lf-links a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.rf-back-nav {
  display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0;
  padding: 0; border: none; background: none; color: var(--paper-dim);
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.03em; text-transform: uppercase;
  cursor: pointer;
}
.rf-back-nav svg { flex-shrink: 0; }
.rf-title { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; }
/* Row 1 (name + price) shares one baseline; mods/note/actions stack below it full-width. */
.rv-line { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 0; cursor: pointer; }
.rv-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.rv-name { flex: 1; min-width: 0; font-size: 0.95rem; font-weight: 600; color: var(--paper); }
.rv-mods { font-size: 0.78rem; line-height: 1.4; color: var(--paper-dim); }
.rv-note { font-style: italic; }
.rv-right { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.rv-actions { display: flex; align-items: center; gap: 14px; margin-top: 2px; }
/* Plain text link under the item's name/options: no box, no circle. */
.rv-del, .rv-cust { position: relative; display: inline-block; margin-top: 0; padding: 0; background: none; border: none; font: 600 0.7rem/1 var(--font-body); letter-spacing: 0.04em; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; cursor: pointer; transition: color 0.15s, text-decoration-color 0.15s; }
.rv-del { color: #E2D7C5; }
@media (hover: hover) { .rv-del:hover { color: var(--coral); text-decoration-color: currentColor; } }
.rv-del:focus-visible { color: var(--coral); text-decoration-color: currentColor; }
.rv-del::after { content: ''; position: absolute; inset: -10px -8px; }
.rv-cust { color: var(--gold); }
.rv-cust:hover, .rv-cust:focus-visible { text-decoration-color: currentColor; }
.rv-cust::after { content: ''; position: absolute; inset: -10px -8px; }
.rv-price { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; font-variant-numeric: tabular-nums; color: var(--paper); }
.rv-totals { padding: 22px 0 10px; }
.rv-tot { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.85rem; color: var(--paper-dim); }
.rv-tot.rv-grand { margin-top: 8px; padding-top: 16px; border-top: 1px dashed var(--card-border); font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: 0.02em; color: var(--paper); }
/* Review page: the checkout ticket sits in the page flow near the bottom instead of being fixed over the content. */
.order-bar.reviewing { position: static; transform: none; max-height: none; overflow: visible; padding: 8px 16px 28px; }
body.reviewing { padding-bottom: 0 !important; }
/* Review ticket wears the Sunset palette (set inline from render()) so it continues the menu boards instead of sitting on plain black. */
/* Review area is the page footer: a full-width band in the opposite theme, content held in the column. */
.order-bar.reviewing { background: var(--ink); border-top: 1px solid var(--card-border); padding: 22px 16px 32px; }
.order-bar.reviewing .order-bar-in { box-shadow: none; background: none; border: none; border-radius: 0; padding: 0 0 var(--safe-b); }
.menu-footer { background: var(--ink); }
.order-bar.reviewing .ob-line, .order-bar.reviewing .ob-line-rm { border-color: var(--card-border); }
/* Not reviewing: just one full-width "Review order  $total" button. Tapping it goes to the review page (menu filtered to the cart) where this bar becomes the checkout ticket. */
.order-bar:not(.reviewing) .order-bar-in { padding: 0 0 var(--safe-b); background: none; border: none; box-shadow: none; }   /* button sits flush on bottom: 0 */
.order-bar:not(.reviewing) .ob-summary {
  border: none; border-radius: 12px 12px 0 0; background: var(--cta-gold, #dec99f); color: var(--cta-gold-fg, #1a1204);
  padding: 17px 20px; font-size: 1rem; box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}
.order-bar:not(.reviewing) .ob-summary #obTotal { color: var(--ink); }
.order-bar.reviewing .ob-summary { pointer-events: none; }
.ob-chev { display: none; }
.ob-arrow { flex: 0 0 auto; box-sizing: border-box; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--paper); color: var(--ink); }   /* arrow sits in a contrasting circle */
.order-bar.reviewing .ob-arrow { display: none; }
/* "Customize": tight text + tiny chevron, big hot spot. Menu items only now - no "Edit" equivalent on review lines. */
.item-cust { position: relative; display: inline-flex; align-items: center; gap: 1px; margin: 2px 0 0; padding: 0; background: none; border: none; box-shadow: none; color: var(--paper-dim); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1; cursor: pointer; }
.item-cust::after { content: ''; position: absolute; inset: -8px -10px; }
/* Trash icon unused on menu rows now (Add becomes ×). Keep minimal rules for any leftover markup. */
.item-rm { flex: 0 0 auto; position: relative; width: 26px; height: 26px; padding: 0; display: grid; place-items: center; background: none; border: none; color: var(--paper-dim); cursor: pointer; }
.item-rm svg { width: 17px; height: 17px; }
@media (hover: hover) { .item-rm:hover { color: var(--coral); } }
.item-minus-btn:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.item-trash { flex: 0 0 auto; width: 28px; height: 28px; padding: 5px; display: grid; place-items: center; background: none; border: 1px solid var(--card-border); border-radius: 50%; color: var(--paper-dim); cursor: pointer; }
.item-trash svg { width: 16px; height: 16px; }
@media (hover: hover) { .item-trash:hover { color: var(--coral); border-color: var(--coral); } }
.item-trash:focus-visible { color: var(--coral); border-color: var(--coral); }
/* Action slot next to the price: Add swaps in place for the qty stepper once selected. */
.item-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.item-cust svg { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 1px; }
.item-cust svg { transition: transform 0.15s; }
.item-cust.open svg { transform: rotate(90deg); }
/* Tiny x in the top-right corner of the Review order button: clears the whole order (after a confirm). */
.ob-x { position: absolute; top: -9px; right: -5px; z-index: 3; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid var(--border-2); background: var(--ob-x-bg); color: var(--paper); font-size: 0.85rem; line-height: 1; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.5); }
.ob-x::after { content: ''; position: absolute; inset: -10px; }
.rf-head { display: flex; justify-content: flex-start; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--card-border); }
.rf-head-t { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--paper); }
.ob-x.armed { width: auto; padding: 0 9px; border-radius: 999px; background: var(--coral); border-color: var(--coral); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; }
.order-bar.reviewing .ob-x { display: none; }
.back-row { padding: 0 20px 10px; }   /* its own slim row inside the header, so it never sits over the title/city - uncapped like the rest of the header */
.back-row:has(#backBtn[hidden]) { display: none; }
.back-btn { background: var(--surface-2); border: 1px solid var(--border-2); color: var(--paper); border-radius: 6px; font: 600 0.78rem var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 12px; cursor: pointer; }
.back-btn[hidden] { display: none; }
.ob-cart {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 7px; max-height: 28vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ob-line {
  cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.ob-line-main { flex: 1; min-width: 0; cursor: pointer; }
.item-row.flash { animation: itemFlash 1.4s ease-out; }
@keyframes itemFlash { 0%, 40% { background: var(--flash-bg); } 100% { background: transparent; } }
.ob-line-name { font-size: 0.9rem; font-weight: 600; }
.ob-line-mods { display: block; font-size: 0.76rem; color: var(--ink-dim); margin-top: 2px; }
    .ob-line-right { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.ob-line-edit { background: none; border: none; padding: 0; font-size: 0.78rem; font-weight: 700; color: var(--gold); text-decoration: underline; cursor: pointer; }
.ob-line-price { font-size: 0.88rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.ob-line-rm {
  width: 22px; height: 22px; border-radius: 50%; background: none; border: 1px solid var(--rule);
  color: var(--ink-dim); font-size: 0.85rem; line-height: 1; display: grid; place-items: center;
}
.ob-err {
  background: rgba(239,91,69,0.12); border: 1px solid rgba(239,91,69,0.35);
  color: var(--err-fg); font-size: 0.8rem; padding: 8px 10px; border-radius: 8px; margin-bottom: 9px; display: none;
}
.ob-err.show { display: block; }
/* Known guest (saved phone+name): collapsed row at the top of the page instead of the
   fields, with a pencil to reopen them for editing (Matt, 2026-10-20). */
.cust-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-bottom: 18px; border-radius: 10px; background: var(--surface-2); border: 1.5px solid var(--border-2); }
.cust-summary[hidden] { display: none; }
.cust-summary-txt { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--paper); }
.cust-edit-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: none; background: none; color: var(--paper-dim); cursor: pointer; }
.cust-edit-btn svg { width: 16px; height: 16px; }
.cust-edit-btn:hover { color: var(--gold); }
.ob-fields { display: flex; gap: 10px; margin-bottom: 12px; }
.ob-fields[hidden] { display: none; }
.ob-field { flex: 1; min-width: 0; }
.ob-field label { display: block; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-dim); margin-bottom: 6px; }
/* Every input in the review form shares one look: phone, name, note and the Clover card boxes.
   line-height must match the control height so text/placeholders sit vertically centered —
   the old shorthand font: 400 16px/1 sat glyphs too high inside the 46px box (Inter). */
.ob-field input, .cf-box {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px;
  background: var(--letterbox, #1a0709); border: 1.5px solid var(--border-2);
  color: var(--paper); font-family: var(--font-body); font-weight: 400; font-size: 16px;
  line-height: 46px; outline: none;
}
.ob-field input {
  /* keep single-line fields optically centered (borders are box-sized into the 46px) */
  line-height: 46px; padding-top: 0; padding-bottom: 0;
}
.ob-field input::placeholder { color: var(--paper-faint); }
.ob-field input:focus, .cf-box:focus-within { border-color: var(--gold); }
.ob-field.invalid input { border-color: var(--coral); }
/* Dark bordered fields on the page's own ink background - card number/date/cvv/zip match (Matt, 2026-10-20). */
.ob-field input, .cf-box { background: var(--surface-2); color: var(--paper); caret-color: var(--paper); }
.ob-field input:-webkit-autofill, .ob-field input:-webkit-autofill:hover, .ob-field input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--co-field-bg, var(--surface-2)) inset !important; box-shadow: 0 0 0 1000px var(--co-field-bg, var(--surface-2)) inset !important; -webkit-text-fill-color: var(--paper) !important; caret-color: var(--paper); }
/* Card entry (Clover hosted fields - each .cf-field holds a Clover-owned iframe). */
.wallet-pay { margin-bottom: 14px; }
.wallet-row { display: flex; gap: 10px; }
.wallet-slot { flex: 1; min-width: 0; height: 40px; border-radius: 6px; overflow: hidden; background: transparent !important; padding: 0; margin: 0; border: 0; outline: 0; line-height: 0; }
.wallet-slot > *, .wallet-slot div { background: transparent !important; border: 0 !important; outline: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; }
.wallet-slot:empty { display: none; }
/* 1px overscan on every edge, clipped by the 44px slot: hides the stray white hairline Clover's wallet frames paint at their edges (Apple bottom, Google all four). Whole px only. */
.wallet-slot iframe { display: block; width: calc(100% + 2px) !important; height: 42px !important; margin: -1px !important; border: 0 !important; outline: 0; background: transparent !important; color-scheme: light; }
/* Dark theme: without color-scheme: light above, the browser paints an opaque white box behind the
   wallet iframes until Google Pay draws (same fix as .cf-field). Then fade the buttons in. */
.wallet-pay .wallet-slot { transition: opacity 0.25s ease; }
.wallet-pay.loading .wallet-slot { opacity: 0; }
/* Apple Pay (2026-10-21): inside Clover's frame the native Apple Pay button is a fixed 40px tall at the
   frame's top edge (.apple-pay-button { height: 40px }), so with the 44px slot + 1px top overscan its own
   bottom corners sat ~5px above the slot's rounded bottom - square-looking/mismatched bottom. Both wallet
   slots are now 40px, and the Apple frame starts flush at the slot top, so the button fills the slot exactly
   and the slot's 6px radius clips all four corners the same (Google fills any height). The frame's
   bottom edge (where Clover's hairline sits) stays clipped below the slot. */
#applePaySlot iframe { margin: 0 -1px !important; }
.wallet-or { margin: 16px 0; display: flex; align-items: center; gap: 10px; text-align: center; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-dim); }
.wallet-or::before, .wallet-or::after { content: ''; flex: 1; height: 1px; background: var(--card-border); }
.wallet-pay.busy .wallet-row { opacity: 0.45; pointer-events: none; }
/* After hours: buttons stay on screen (shown, not hidden) but inert - grayed out, untappable. */
.wallet-pay.wallet-closed .wallet-row { opacity: 0.4; filter: grayscale(0.6); pointer-events: none; }
.wallet-err:empty { display: none; }
.wallet-err { margin: 8px 0 0; }

.ob-card { margin-bottom: 12px; }
.ob-card .cf-title { display: block; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-dim); margin-bottom: 6px; }
/* Clover's iframe input is a top-aligned text box, so the visible frame is .cf-box
   (dark, centred content) and the mount point .cf-field is a slim strip inside it that
   Clover's iframe fills. The iframe's own colours are set in the styles passed to
   elements.create() below - keep them in step with the .cf-box background. */
.cf-box { position: relative; display: flex; align-items: center; padding: 0 14px; min-height: 46px; }
.cf-field { position: relative; flex: 1; min-width: 0; height: 43px; min-height: 43px; align-self: center; margin: 0; padding: 0; overflow: hidden; }
.cf-field > *, .cf-field iframe { position: static !important; inset: auto !important; transform: none !important; }   /* Clover frames stay inside their own box, never float to the top of the checkout */   /* fills the whole box height so Clover's input can center its text vertically */
.cf-field > *, .cf-field iframe { display: block; width: 100% !important; height: 100% !important; border: 0; }
/* Every element Clover injects in the mount point stays transparent over .cf-box's dark fill, and the frame renders in dark mode (a light iframe document inside a dark page otherwise gets an opaque white canvas). */
.cf-field, .cf-field > *, .cf-field div, .cf-field iframe { background: transparent !important; color-scheme: light; margin: 0 !important; vertical-align: middle; }
/* Clover's field documents are transparent, text coloured for the theme at mount (data-cf-theme,
   set in checkout/index.html initPayments). After a toggle to the other theme, flip just the
   iframe so its text matches the themed pill (.cf-box) behind it - no re-mount needed. */
:root[data-cf-theme="light"][data-theme="dark"] .cf-field iframe,
:root[data-cf-theme="dark"][data-theme="light"] .cf-field iframe { filter: invert(1) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) { :root[data-cf-theme="light"]:not([data-theme]) .cf-field iframe { filter: invert(1) hue-rotate(180deg); } }
@media (prefers-color-scheme: light) { :root[data-cf-theme="dark"]:not([data-theme]) .cf-field iframe { filter: invert(1) hue-rotate(180deg); } }
.cf-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin-top: 10px; }
.cf-row .cf-box { min-width: 0; }
.cf-err { color: var(--coral); font-size: 0.78rem; margin-top: 6px; min-height: 0; }
.cf-secure { margin-top: 10px; font-size: 0.72rem; color: var(--paper-faint); display: flex; align-items: center; gap: 6px; }
.cf-lock { flex-shrink: 0; }
/* Clover's checkout SDK (checkout.clover.com/sdk.js) unconditionally appends its own
   "Secured by Clover" badge — a light-gray box with rounded bottom corners — right into
   the page whenever the card fields mount. No SDK option turns it off, and it clashes
   with the dark theme + our own .cf-secure line above, so hide it. */
.clover-footer { display: none !important; }
/* Pickup vs Dine In (checkout, Matt 2026-10-24): two-up segmented pill, same 46px row height as
   the fields below it. Active side fills gold; inactive keeps the field's own surface. */
/* 2026-10-24 (Matt): now a small two-state pill switch, Pickup | Dine In. A gold thumb slides
   under the active side (.is-dinein on the track). Looks ~36px tall; each side's ::after
   stretches the tap target to 46px. Values / ids / data-type unchanged. */
.ob-service { position: relative; display: flex; width: 210px; max-width: 100%; height: 36px; margin: 12px auto 14px; padding: 3px; box-sizing: border-box; border-radius: 999px; border: 1px solid var(--co-field-border, var(--border-2)); background: var(--surface-2); }
.ob-service::before { content: ''; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--gold); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); transition: transform 0.2s ease; }
.ob-service.is-dinein::before { transform: translateX(100%); }
.ob-service-btn {
  position: relative; z-index: 1; flex: 1 1 50%; height: 100%; margin: 0; padding: 0; border: none; border-radius: 999px;
  background: none; color: var(--paper-dim); font: 700 0.74rem/1 var(--font-display);
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 0.2s ease;
}
.ob-service-btn::after { content: ''; position: absolute; inset: -9px 0; }
.ob-service-btn.is-active { color: var(--ink); }
.ob-service-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ob-service::before, .ob-service-btn { transition: none; } }
/* Pickup time (checkout): same 46px pill as the phone/name/card fields, native <select> so iOS
   shows its wheel. Hidden until the server advertises pickupTimes (see checkout/index.html). */
.ob-pickup { margin-bottom: 22px; }
.ob-pickup[hidden], .ob-pickup-hint[hidden] { display: none; }
.ob-pickup label { display: block; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-dim); margin-bottom: 9px; }
.ob-pickup-sel { position: relative; }
.ob-pickup select {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 46px; margin: 0; padding: 0 40px 0 14px;
  border-radius: 10px; border: 1.5px solid var(--border-2); background: var(--surface-2); color: var(--paper);
  font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 46px; outline: none; cursor: pointer;
}
.ob-pickup select:focus { border-color: var(--gold); }
.ob-pickup select:disabled { opacity: 0.6; cursor: default; }
.ob-pickup-chev { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--gold); pointer-events: none; }
.ob-pickup-hint { margin-top: 8px; font-size: 0.78rem; line-height: 1.4; color: var(--paper-dim); }
/* "Select date" text button: same look as the notes toggle. The native date input stays
   invisible (opened via showPicker); browsers without showPicker get it shown inline. */
.ob-pickup-date { display: inline-block; background: none; border: none; color: var(--paper-dim); font-size: 0.82rem; padding: 8px 0 0; text-decoration: underline; cursor: pointer; }
.ob-pickup-date[hidden] { display: none; }
.ob-pickup-date-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ob-pickup-date-input.show { position: static; width: auto; height: auto; opacity: 1; pointer-events: auto; display: block; margin-top: 8px; }
.rv-tot.rv-pickup span:last-child { color: var(--paper); font-weight: 600; }
.ob-submit {
  width: 100%; height: 50px; border-radius: 10px; border: none;
  background: var(--cta-gold, #dec99f); color: var(--cta-gold-fg, #1a1204); font-family: var(--font-display);
  font-weight: 700; font-size: 0.96rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.ob-submit:disabled { opacity: 0.45; }
/* Checkout CTA (2026-10-20): NOT pinned/sticky - a normal block at the end of the order
   content, in the same gold pill as the menu's #checkoutBtn (.mini-cart-checkout). It
   sits right after the last order detail and scrolls away with the rest of the page like
   anything else (Matt: "dont make pay send to kitchen button fixed" - explicitly no
   sticky/fixed bottom bar, even on a short order). */
.checkout-page-in { display: flex; flex-direction: column; padding-bottom: 0; }
.ob-pay-bar {
  z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none;
  padding: 22px 0 calc(20px + var(--safe-b));   /* 20px clear gap above the screen bottom / home indicator (was 8px; Matt 2026-10-21: too close to the bottom) */
  background: linear-gradient(to bottom, transparent 0, var(--ink) 18px);   /* list fades out under the pill instead of showing through around it */
}
/* "Pay at restaurant" text button under the pay pill (allowlisted phones only). */
.ob-payinstore { pointer-events: auto; margin: 12px auto 0; padding: 6px 10px; background: none; border: 0; color: var(--gold); font: 600 0.9rem/1.2 var(--font-body, Inter, sans-serif); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ob-payinstore:disabled { opacity: 0.45; cursor: default; }
.ob-payinstore[hidden] { display: none; }
/* Thumbs-up confetti on the order-sent screen (confettiBurst in checkout/index.html). */
.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 10000; overflow: hidden; }
.confetti-layer i { position: absolute; display: block; will-change: transform, opacity; }
.ob-submit.ob-submit-bottom {
  pointer-events: auto;
  width: min(260px, calc(100vw - 110px)); max-width: calc(100vw - 32px); height: auto; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--cta-gold, #dec99f); color: var(--cta-gold-fg, #1a1204);
  border: none; border-radius: 999px; padding: 10px 36px;
  font-family: var(--font-body); cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
  text-transform: none; letter-spacing: normal;
}
.ob-submit-bottom .osb-lbl { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.15; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cta-gold-fg, #1a1204); }
.ob-submit-bottom .osb-l1 { font-size: 1.05rem; }   /* "Pay $XX.XX" - same as .mcf-label */
.ob-submit-bottom .osb-l2 { display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; font-size: 0.78rem; }   /* "Send to Kitchen" + arrow - smaller than the Pay line */
.ob-submit-bottom .osb-arrow { flex: 0 0 auto; box-sizing: border-box; width: 18px; height: 18px; padding: 4px; border-radius: 50%; background: var(--cta-gold-fg, #1a1204); color: var(--cta-gold, #dec99f); }   /* .mcf-arrow, sized down to match the smaller second line */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── GATE: name + number first, remembered on this device ── */
.gate {
  position: fixed; inset: 0; z-index: 300; background: var(--ink);
  display: flex; align-items: center; justify-content: center; padding: 22px;
  overflow-y: auto;
}
.gate[hidden] { display: none; }
.gate-card { width: 100%; max-width: 380px; text-align: center; }
.gate-card h2 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; margin: 0 0 6px; }
.gate-card p { color: var(--paper-dim); font-size: 0.92rem; margin: 0 0 22px; }
.gate-card .ob-field { text-align: left; margin-bottom: 12px; }
.gate-card .ob-field input { font-size: 1rem; padding: 0 13px; } /* vertical pad fought height:46px / line-height centering */
.gate-err { color: var(--coral); font-size: 0.82rem; min-height: 1.1em; margin-bottom: 10px; }

/* ── DONE overlay ── */
.done-overlay {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.done-overlay.open { opacity: 1; pointer-events: auto; }
.done-wrap { text-align: center; padding: 60px 22px 40px; display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 420px; width: 100%; }
.done-check {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(180,212,94,0.14);
  border: 1.5px solid rgba(180,212,94,0.4); color: var(--lime);
  display: grid; place-items: center; font-size: 2rem; margin-bottom: 12px;
}
.done-wrap h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: 0.03em; text-transform: uppercase; }
.done-wrap .done-sub { color: var(--paper-dim); font-size: 0.92rem; margin-top: 4px; }
.done-card {
  width: 100%; margin: 22px 0 0; padding: 18px;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; text-align: left;
}
.done-card .dc-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; color: var(--paper-dim); }
.done-card .dc-row .v { color: var(--paper); font-variant-numeric: tabular-nums; }
.done-card .dc-row.big .v { font-weight: 700; font-size: 1.05rem; }
.done-card hr { border: none; border-top: 1px solid var(--border); margin: 10px 0; }
.dc-item { padding: 4px 0; font-size: 0.9rem; color: var(--paper); }
.dc-item-mods { padding: 0 0 4px; font-size: 0.76rem; line-height: 1.35; color: var(--paper-dim); }
.done-wait { margin-top: 14px; font-size: 1.05rem; }
.done-wait b { color: var(--gold); }
.done-fav:empty { display: none; }
.done-card .done-fav { text-align: center; margin-top: 4px; }
.done-card .done-fav-btn { margin-top: 12px; width: 100%; }
.done-card .done-fav-saved { margin-top: 12px; }
.done-new { margin-top: 22px; text-decoration: none; }
.done-dir { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 4px; color: var(--gold); font-weight: 700; font-size: 0.9rem; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.done-dir svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.done-dir:hover { text-decoration: underline; }
.done-fav-btn {
  margin-top: 18px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border-2, var(--card-border));
  background: none; color: var(--paper); font: 700 0.76rem var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer;
}
.done-fav-saved { display: inline-block; margin-top: 18px; font-size: 0.82rem; color: var(--gold); }
.done-rate-thanks { margin-top: 6px; font-size: 0.82rem; color: var(--gold); }
/* Order-sent rating card (2026-10-23, Matt: the old tiny gray prompt got missed on iPhone).
   Own subtle card at the top of the screen, readable prompt, 1-5 stars (.done-stars), short
   thank-you swapped into the sub-line after the tap. Light + dark via tokens. */
.done-rate {
  width: 100%; margin: 0 0 28px; padding: 18px 16px 16px; box-sizing: border-box;   /* top of the screen, room below (Matt 2026-11-05) */
  display: flex; flex-direction: column; align-items: center;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px;
}
.done-rate-q { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; line-height: 1.2; letter-spacing: 0.02em; color: var(--paper); }
.done-rate-sub { margin-top: 4px; min-height: 1.3em; font-size: 0.86rem; line-height: 1.3; color: var(--paper-dim); }
.done-rate.rated .done-rate-sub { color: var(--gold); font-weight: 600; animation: rate-thanks 0.3s ease-out; }
@keyframes rate-thanks { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
/* 1-5 star rating on the order-sent screen (Matt 2026-11-05; was thumbs up/down). Tapping star N
   fills 1..N gold and locks it in; mouse hover previews the fill before a pick. */
.done-stars { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
.done-stars button {
  padding: 4px; border: none; background: none; color: var(--paper-dim); cursor: pointer; font: inherit; line-height: 1;
  -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none;
  touch-action: manipulation; -webkit-appearance: none; appearance: none;
}
.done-stars svg {
  display: block; width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round;
  pointer-events: none; transition: transform 0.12s ease, color 0.12s, fill 0.12s;
}
.done-stars button.on { color: var(--gold); }
.done-stars button.on svg { fill: currentColor; }
.done-stars button:focus { outline: none; }
.done-stars button:focus-visible svg { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.done-stars button:not(:disabled):active svg { transform: scale(0.88); }
.done-stars button:disabled { pointer-events: none; cursor: default; }
.done-stars.rated button.on svg { animation: star-pop 0.32s ease-out; }
@keyframes star-pop { 0% { transform: scale(0.8); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
/* Hover preview only on real mouse pointers and only before a pick (iOS keeps :hover stuck after a tap). */
@media (hover: hover) and (pointer: fine) {
  .done-stars:not(.rated):hover button { color: var(--gold); }
  .done-stars:not(.rated):hover button svg { fill: currentColor; }
  .done-stars:not(.rated) button:hover ~ button { color: var(--paper-dim); }
  .done-stars:not(.rated) button:hover ~ button svg { fill: none; }
}
@media (prefers-reduced-motion: reduce) {
  .done-stars svg { transition: none; }
  .done-stars button:not(:disabled):active svg, .done-stars.rated button.on svg { transform: none; animation: none; }
  .done-rate.rated .done-rate-sub { animation: none; }
}
}

@media (min-width: 720px) {
  .page-header h1 { font-size: 3rem; }
  .items { padding: 10px 14px 20px 22px; }
  /* Tablet/desktop: two flowing columns instead of one ~600px column, capped
     at --col-wide (~840px) to roughly match the category nav's own max width —
     8 tabs x 100px cap + gaps — so the menu body doesn't run noticeably wider
     than the nav sitting above it. column-gap leaves clear space between the
     two columns; break-inside keeps each category card from splitting across
     them. Checkout review stays the original single column (excluded below) —
     its rows are a flat list, not cards that benefit from two columns. */
  body:not(.reviewing) .menu-content {
    display: block; max-width: var(--col-wide); column-count: 2; column-gap: 32px;
  }
  body:not(.reviewing) .board-card { break-inside: avoid; }
  /* Column 2's leading card isn't .board-card:first-child (that's only ever column 1's
     DOM-first card) - whatever margin-top it has gets discarded at the column break
     (standard CSS multicol behavior: a box's top margin doesn't carry across a forced
     fragment/column break). So column 1's first card, which DOES keep its own margin,
     always sits lower than column 2's - no margin value fixes that, only removing the
     dependency on margin does. Zero it on both and use the container's own padding-top
     instead, which applies once to the whole box and starts both columns level
     (2026-10-18, corrected same day). */
  body:not(.reviewing) .menu-content { padding-top: 28px; }
  body:not(.reviewing) .menu-half > .board-card:first-child { margin-top: 0; }
}

/* ADD button color tokens. Live = --add-terracotta (design-hotspot variant 5, adopted
   2026-10-18, filled clay). Switch back to the old gold outline: --add-bg: transparent;
   --add-fg: var(--add-gold); --add-border: var(--add-gold).
   Others: set --add-bg/--add-border to the token and --add-fg to its *-fg pair. */
:root {
  --add-gold: var(--gold);                                   /* original live look (outline, gold text) */
  --add-agave: #2f7d4f;      --add-agave-fg: #ffffff;        /* deep agave green */
  --add-salsa: #c8372d;      --add-salsa-fg: #ffffff;        /* salsa roja */
  --add-terracotta: #b0502c; --add-terracotta-fg: #ffffff;   /* clay / terracotta */
  --add-teal: #1f7373;       --add-teal-fg: #ffffff;         /* talavera teal */
  --add-lime: #b4d45e;       --add-lime-fg: #1c1c1e;         /* lime (dark text) */
  --add-alt: var(--add-agave);
  --add-bg: var(--add-terracotta); --add-fg: var(--add-terracotta-fg); --add-border: var(--add-terracotta);
}

/* Visible theme toggle, bottom-left: Light -> Dark. Pinned to the very bottom of the page/footer area
   (8px + safe-area), left of the centred checkout CTA - no longer lifted above the cart bar by --rf-h.
   The #devHotspot audit corner stays at the top-left, above it, untouched. */
.theme-toggle {
  /* z-index above .checkout-page (140) - that's an opaque
     full-screen overlay that would otherwise sit on top of and hide
     this floating button, even though it's never actually removed. */
  position: fixed; left: 10px; bottom: calc(8px + var(--safe-b)); z-index: 150;
  display: inline-flex; align-items: center; gap: 5px; height: 32px; min-width: 32px; padding: 0 8px; justify-content: center;
  border-radius: 999px; border: 1px solid var(--card-border); background: var(--ink); color: var(--paper);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18); font: 700 0.56rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
}
.theme-toggle svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.theme-toggle .tt-lbl:empty { display: none; }
body.reviewing .theme-toggle { display: none; }
body .item-stepper { flex-direction: row-reverse; gap: 3px; }
body .item-top > .item-side { align-self: flex-start; min-width: 0; margin-top: 1px; }
body .item-row .item-top > .item-side { align-self: center; margin-top: 0; }
body .item-add-btn svg, body .item-minus-btn svg { display: none; }
body .item-add-btn::before { content: '+'; }
body .item-minus-btn::before { content: '\2212'; }
body .item-add-btn::before, body .item-minus-btn::before { font: 700 13px/1 var(--font-display); }
/* Add's right edge is the stepper's outer-right side, right next to the Modify
   button (6px gap) - keep its bleed short so the qty hotspot can't be mistaken
   for a tap on Modify. Minus's outer-left side has nothing next to it, so it
   keeps the bigger bleed. */
body .item-add-btn::after, body .item-minus-btn::after { inset: -12px -5px; }
body .item-add-btn::after { right: -2px; }
body .item-minus-btn::after { left: -12px; }
body .item-count .x { display: none; }
/* min-width, not width: a 2-digit count (10-25) is free to push the pill
   wider than the Add button's resting width instead of getting clipped. */
body .item-count { min-width: 2rem; }   /* extra space around qty so a thumb on +/- does not cover it */

/* Row control: ADD button <-> filled gold [- n +] stepper, same slot, same
   resting width - a 1-digit qty keeps them visually identical; 2 digits
   are allowed to widen the stepper a little rather than overflow. */
body { --row-ctl-w: 48px; }   /* ADD and the [- n +] stepper share one width */
body .act-pill, body .item-stepper { width: var(--row-ctl-w); min-width: var(--row-ctl-w); box-sizing: border-box; }
body .act-pill { position: relative; flex: 0 0 auto; box-sizing: border-box; height: 30px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1.5px solid var(--add-border); color: var(--add-fg); background: var(--add-bg); font: 700 0.72rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
body .act-pill::after { content: ''; position: absolute; inset: -8px -3px; }
/* Add pill: a touch narrower, with a little breathing room off the price to its left. */
body .act-pill-add { padding: 0 8px; margin-left: 2px; }
/* Secret audit-mode corner (#devHotspot): nearly-invisible 44px square, same trick as the
   TV boards' dev hotspot. Desktop only - a customer on a phone never sees or can fat-finger it. */
#devHotspot { display: none; position: fixed; top: 0; left: 0; width: 44px; height: 44px; z-index: 99999; background: transparent; border: none; opacity: 0.02; cursor: pointer; padding: 0; }
@media (min-width: 720px) { #devHotspot { display: block; } }
/* NO_ADD_BTN: the whole row is ALSO an add target (tap anywhere, not just the pill) -
   the visible "Add" pill (far right, after price) stays as the explicit control. */
body.no-add-btn .item-row.has-ctl:not(.selected):not(.panel-open) { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 0.12s ease, box-shadow 0.12s ease; }
body.no-add-btn .item-row.row-pressed { transform: scale(0.985); box-shadow: var(--row-shadow-active); }
/* Stepper look adopted from design-hotspot variant #7 (Matt, 2026-10-17): ink
   fill + card-border outline instead of a solid gold pill. */
body .item-stepper { height: 30px; border-radius: 8px; padding: 0 3px; background: var(--ink); border: 1px solid var(--card-border); }
body .item-add-btn, body .item-minus-btn { border: none; background: none; color: var(--gold); }
body .item-count { border: none; background: none; color: var(--paper); }
body .item-add-btn, body .item-minus-btn { width: 24px; height: 24px; }
body .item-stepper { justify-content: space-between; width: auto; gap: 0; }   /* auto: a 2-digit qty may widen it a little */


/* Row qty stepper: same compact pill as the checkout stepper (base .item-stepper
   rule above) - no row-specific shape override. "×" prefix dropped (2026-10-18),
   just the bare number now. */
/* External remove (trash): sits after the stepper, at the far-right edge of the
   row. Wired via the existing [data-rm-item] -> clearItem() handler. */
body .item-row .item-actions { display: flex; align-items: center; gap: 6px; }
.item-trash { position: static; width: 28px; height: 28px; padding: 0; margin: 0; border: none; background: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.item-trash svg { width: 14px; height: 14px; display: block; color: var(--paper-dim); opacity: 0.75; transition: opacity 0.15s; }
.item-trash:hover svg, .item-trash:active svg { opacity: 1; }
/* In-cart row: stepper + trash pinned to the TOP of the row (not centred), so the gap above
   them is the same whether the editor is open or closed (the closed row's Modify link /
   pills change its height), and the two are top-aligned with each other. */
body .item-row.selected .item-top > .item-side { align-self: flex-start; margin-top: 0; }
body .item-row.selected .item-actions { align-items: flex-start; }
body .item-row.selected .item-actions > .item-stepper, body .item-row.selected .item-actions > .item-trash { align-self: flex-start; }

/* ── Max-width column: the menu content, bottom bar and checkout sit in one centered
      ~600px column. The header and the sticky category nav are deliberately NOT capped
      (Matt 2026-10-14) - they run edge to edge like the chrome they are, so their ink,
      border and blur span the whole viewport. Phones are narrower than the column
      either way, so mobile is unchanged. On tablet/desktop the browsing menu (not
      checkout review) widens into two columns, capped at --col-wide (2026-10-17) —
      see the two-column rules below. ── */
:root { --col: 520px; --col-w: var(--col); --col-wide: 740px; }   /* menu content, bottom bar, checkout */

/* ---------- /checkout/ redesign (2026-10-22, Matt: "make mobile look better") ----------
   One centered 430px column at every width (Matt 2026-10-22: "mobile view centered"). Sections:
   YOUR ORDER (raised card: icon tile, bold name, muted options, price, [- n +] stepper, trash,
   receipt footer with the Total emphasized) / YOUR INFO (phone + name, pickup time with its label
   inside the field) / PAYMENT (wallet, "or pay with card", Clover card boxes). 8px spacing scale,
   46px fields with 12px corners, 16px card corners. Everything is scoped to body.checkout-standalone
   with :where() (no extra specificity, so [hidden] and the logged-in / empty states still win);
   /menu and /account share this file and are untouched. The Pay pill stays in normal flow
   (Matt 2026-10-20: never fixed/sticky) - the content above it is what got tightened. */
.rv-showall { display: none; }
:where(body.checkout-standalone) {
  --co-card: #fffaf0;
  --co-card-border: rgba(80, 56, 16, 0.08);
  --co-card-shadow: 0 1px 2px rgba(80, 56, 16, 0.06), 0 10px 24px -12px rgba(80, 56, 16, 0.22);
  --co-hair: rgba(28, 28, 30, 0.09);
  --co-tile: color-mix(in srgb, var(--gold) 14%, #fffaf0);
  --co-label: rgba(28, 28, 30, 0.56);
  --co-muted: rgba(28, 28, 30, 0.6);
  --co-ph: rgba(28, 28, 30, 0.48);
  --co-field-border: rgba(28, 28, 30, 0.16);
  --co-pay-shadow: 0 10px 22px -10px rgba(120, 80, 10, 0.55);
}
:root[data-theme="dark"] :where(body.checkout-standalone) {
  --co-card: #432c2b;
  --co-card-border: rgba(255, 148, 69, 0.14);
  --co-card-shadow: 0 1px 0 rgba(255, 243, 230, 0.04) inset, 0 12px 28px -14px rgba(0, 0, 0, 0.6);
  --co-hair: rgba(255, 243, 230, 0.1);
  --co-tile: color-mix(in srgb, var(--gold) 16%, #432c2b);
  --co-label: rgba(255, 243, 230, 0.6);
  --co-muted: rgba(255, 243, 230, 0.64);
  --co-ph: rgba(255, 243, 230, 0.46);
  --co-field-border: rgba(255, 243, 230, 0.16);
  --co-pay-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) :where(body.checkout-standalone) {
    --co-card: #432c2b;
    --co-card-border: rgba(255, 148, 69, 0.14);
    --co-card-shadow: 0 1px 0 rgba(255, 243, 230, 0.04) inset, 0 12px 28px -14px rgba(0, 0, 0, 0.6);
    --co-hair: rgba(255, 243, 230, 0.1);
    --co-tile: color-mix(in srgb, var(--gold) 16%, #432c2b);
    --co-label: rgba(255, 243, 230, 0.6);
    --co-muted: rgba(255, 243, 230, 0.64);
    --co-ph: rgba(255, 243, 230, 0.46);
    --co-field-border: rgba(255, 243, 230, 0.16);
    --co-pay-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  }
}
:where(body.checkout-standalone) .co-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:where(body.checkout-standalone) .checkout-page-in { max-width: 430px; padding: 12px 20px 0; box-sizing: border-box; }

/* Section headers: a small uppercase label on the left, an optional note/link on the right. */
:where(body.checkout-standalone) .co-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 20px; margin: 0 0 8px; }
:where(body.checkout-standalone) .co-sec-t { margin: 0; font: 700 0.72rem/1.2 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--co-label); }
:where(body.checkout-standalone) .co-h { margin: 0; font: 800 1.12rem/1.2 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--paper); }
:where(body.checkout-standalone).checkout-empty .co-order-h, :where(body.checkout-standalone).checkout-empty #checkoutForm { display: none !important; }

/* The order card: raised, lighter than the page (Sunset: one step up from the maroon). */
:where(body.checkout-standalone) .mini-cart-list { padding: 4px 14px 0; background: var(--co-card); border: 1px solid var(--co-card-border); border-radius: 16px; box-shadow: var(--co-card-shadow); }
:where(body.checkout-standalone) .mini-cart-list:has(.co-empty) { padding: 0; background: none; border: none; box-shadow: none; }
:where(body.checkout-standalone) .co-line { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 12px; align-items: start; padding: 10px 0; }
:where(body.checkout-standalone) .co-line > .co-thumb { grid-column: 1; grid-row: 1 / span 4; }
:where(body.checkout-standalone) .co-line > .co-name { grid-column: 2; grid-row: 1; padding-top: 1px; }
:where(body.checkout-standalone) .co-line > .co-price { grid-column: 3; grid-row: 1; }
:where(body.checkout-standalone) .co-line > .co-meta { grid-column: 2 / -1; }
:where(body.checkout-standalone) .co-line > .co-ctl { grid-column: 2 / -1; }
/* No thumb (category icons removed 2026-10-23): name | price, everything else full width. */
:where(body.checkout-standalone) .co-line:not(:has(> .co-thumb)) { grid-template-columns: minmax(0, 1fr) auto; }
:where(body.checkout-standalone) .co-line:not(:has(> .co-thumb)) > .co-name { grid-column: 1; }
:where(body.checkout-standalone) .co-line:not(:has(> .co-thumb)) > .co-price { grid-column: 2; }
:where(body.checkout-standalone) .co-line:not(:has(> .co-thumb)) > .co-meta, :where(body.checkout-standalone) .co-line:not(:has(> .co-thumb)) > .co-ctl { grid-column: 1 / -1; }
:where(body.checkout-standalone) .co-line + .co-line { border-top: 1px solid var(--co-hair); }
:where(body.checkout-standalone) .co-thumb { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: var(--co-tile); color: var(--gold); }
:where(body.checkout-standalone) .co-thumb svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:where(body.checkout-standalone) .co-thumb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
:where(body.checkout-standalone) .co-name { font: 700 1.02rem/1.25 var(--font-display); letter-spacing: 0.01em; color: var(--paper); overflow-wrap: anywhere; }
:where(body.checkout-standalone) .co-meta { margin-top: 2px; font-size: 0.8rem; line-height: 1.35; color: var(--co-muted); }
:where(body.checkout-standalone) .co-note { font-style: italic; }
:where(body.checkout-standalone) .co-mod { white-space: nowrap; }
:where(body.checkout-standalone) .co-mod-p { color: var(--co-label); white-space: nowrap; }
:where(body.checkout-standalone) .co-dot { margin: 0 2px; opacity: 0.7; }
:where(body.checkout-standalone) .co-ctl .rv-cust { position: relative; padding: 0; border: none; background: none; font: 600 0.8rem/1.35 var(--font-body); letter-spacing: 0; color: var(--gold); text-decoration: none; }
:where(body.checkout-standalone) .co-price { font: 700 1.02rem/1.25 var(--font-display); font-variant-numeric: tabular-nums; color: var(--paper); padding-top: 1px; }
:where(body.checkout-standalone) .co-ctl { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
:where(body.checkout-standalone) .co-ctl-r { display: flex; align-items: center; gap: 4px; }
:where(body.checkout-standalone) .co-del { position: relative; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: none; border-radius: 50%; background: none; color: var(--co-muted); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 0.15s, background 0.15s; }
:where(body.checkout-standalone) .co-del::after { content: ''; position: absolute; inset: -6px -4px; }
:where(body.checkout-standalone) .co-del svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { :where(body.checkout-standalone) .co-del:hover { color: var(--coral); background: color-mix(in srgb, var(--coral) 10%, transparent); } }
:where(body.checkout-standalone) .co-del:focus-visible { color: var(--coral); outline: 2px solid currentColor; outline-offset: 0; }
:where(body.checkout-standalone) .co-step { display: inline-flex; align-items: center; height: 28px; padding: 0 1px; box-sizing: border-box; border-radius: 999px; border: 1px solid var(--co-field-border); background: color-mix(in srgb, var(--paper) 3%, transparent); }
:where(body.checkout-standalone) .co-step.stepper-in { animation: stepper-in 0.18s ease; }
:where(body.checkout-standalone) .co-step-btn { position: relative; width: 26px; height: 26px; padding: 0; display: grid; place-items: center; border: none; border-radius: 50%; background: none; color: var(--gold); cursor: pointer; -webkit-tap-highlight-color: transparent; }
:where(body.checkout-standalone) .co-step-btn::after { content: ''; position: absolute; inset: -7px -5px; }
:where(body.checkout-standalone) .co-step-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
:where(body.checkout-standalone) .co-step-btn:disabled { color: var(--co-label); opacity: 0.45; cursor: default; pointer-events: none; }
:where(body.checkout-standalone) .co-step-btn.pressed, :where(body.checkout-standalone) .co-del.pressed { opacity: 0.55; }
:where(body.checkout-standalone) .co-qty { min-width: 22px; text-align: center; font: 700 0.95rem/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--paper); }
:where(body.checkout-standalone) .rv-more-row { display: none; }
:where(body.checkout-standalone) #reviewList .rv-showall { position: relative; display: flex; align-items: center; gap: 4px; width: 100%; min-height: 40px; margin: 0; padding: 0 0 0 60px; border: none; border-top: 1px solid var(--co-hair); background: none; color: var(--gold); font: 600 0.8rem/1.2 var(--font-body); text-align: left; cursor: pointer; }
:where(body.checkout-standalone) #reviewList .rv-showall svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Receipt footer: "Subtotal $34 · Tax $2.04" muted on the left, TOTAL $36.04 on the right. */
:where(body.checkout-standalone) .co-totals { margin: 0 -14px; padding: 9px 14px 10px; border-top: 1px solid var(--co-hair); border-radius: 0 0 15px 15px; background: color-mix(in srgb, var(--paper) 2.5%, transparent); }
:where(body.checkout-standalone) .co-tot-row { display: flex; justify-content: space-between; gap: 12px; padding: 0 0 6px; font-size: 0.8rem; color: var(--co-muted); }
:where(body.checkout-standalone) .co-tot-disc { color: var(--gold); font-weight: 600; }
:where(body.checkout-standalone) .rv-pickup span:last-child { color: var(--paper); font-weight: 600; }
:where(body.checkout-standalone):has(#obPickup:not([hidden])) .rv-pickup { display: none; }
:where(body.checkout-standalone) .co-tot-main { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
:where(body.checkout-standalone) .co-tot-sub { min-width: 0; font-size: 0.8rem; color: var(--co-muted); font-variant-numeric: tabular-nums; }
:where(body.checkout-standalone) .co-tot-grand { display: inline-flex; align-items: baseline; gap: 8px; flex: 0 0 auto; }
:where(body.checkout-standalone) .co-tot-grand > span:first-child { font: 700 0.72rem/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--co-label); }
:where(body.checkout-standalone) .co-tot-v { font: 800 1.3rem/1.1 var(--font-display); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; color: var(--paper); }

/* YOUR INFO */
:where(body.checkout-standalone) .ob-body { padding-top: 20px; }
:where(body.checkout-standalone) .ob-err { margin-bottom: 12px; border-radius: 12px; }
:where(body.checkout-standalone) .co-info { margin-bottom: 20px; }
/* Known customer (Matt 2026-10-24): name + phone centered at the very top, larger, no bubble,
   no label; small subtle pencil (40px hit area) beside the name reopens the fields below. */
:where(body.checkout-standalone) .cust-summary { position: relative; justify-content: center; gap: 2px; min-height: 0; box-sizing: border-box; margin: 4px 0 18px; padding: 0; border: none; border-radius: 0; background: none; text-align: center; }
:where(body.checkout-standalone).checkout-empty .cust-summary { display: none; }
:where(body.checkout-standalone) .co-sec-h[hidden] { display: none; }
:where(body.checkout-standalone) .newcust-hint { align-items: center; margin: 0 0 8px; padding: 6px 10px; }
:where(body.checkout-standalone) .newcust-hint .nc-copy { font-size: 0.8rem; line-height: 1.3; }
:where(body.checkout-standalone) .cust-summary-txt { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; font: 600 0.95rem var(--font-body); letter-spacing: 0; }
:where(body.checkout-standalone) .cust-name { font: 800 1.4rem/1.15 var(--font-display); letter-spacing: 0.01em; color: var(--paper); overflow-wrap: anywhere; }
:where(body.checkout-standalone) .cust-phone { font: 500 1rem/1.3 var(--font-body); color: var(--co-muted); font-variant-numeric: tabular-nums; }
:where(body.checkout-standalone) .cust-edit-btn { align-self: flex-start; width: 40px; height: 40px; margin: -6px -40px 0 0; color: var(--co-label); opacity: 0.8; }
:where(body.checkout-standalone) .cust-edit-btn svg { width: 15px; height: 15px; }
:where(body.checkout-standalone) .cust-edit-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; border-radius: 50%; }
/* Phone + first name (Matt 2026-10-24): small, side by side at the top of the items panel. 40px tall
   (usable tap target) with 16px text so iOS Safari never zooms; placeholders stand in for the labels. */
:where(body.checkout-standalone) #checkoutForm .ob-fields { gap: 8px; margin: 0 0 16px; }
:where(body.checkout-standalone) #checkoutForm .ob-field input { height: 40px; min-height: 40px; padding: 0 12px; border-radius: 10px; font-size: 16px; line-height: 38px; }
:where(body.checkout-standalone) #checkoutForm .ob-field label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Fields: one 46px / 12px-corner look for pickup and the Clover card boxes (phone + name: 40px, above).
   Fill stays var(--surface-2) - the Clover iframes' autofill repaint is that colour (checkout JS). */
:where(body.checkout-standalone) .ob-field input, :where(body.checkout-standalone) .cf-box, :where(body.checkout-standalone) .ob-pickup select { height: 46px; min-height: 46px; box-sizing: border-box; border-radius: 12px; border: 1px solid var(--co-field-border); }
:where(body.checkout-standalone) .ob-field input { padding: 0 14px; line-height: 44px; }
:where(body.checkout-standalone) .ob-field input::placeholder { color: var(--co-ph); opacity: 1; }
:where(body.checkout-standalone) .ob-field input:focus, :where(body.checkout-standalone) .cf-box:focus-within, :where(body.checkout-standalone) .ob-pickup select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
:where(body.checkout-standalone) .ob-field.invalid input { border-color: var(--coral); }
/* Pickup time: "PICKUP" sits inside the field on the left, the chosen time right after it. */
:where(body.checkout-standalone) .ob-pickup { position: relative; margin: 0; }
:where(body.checkout-standalone) .ob-pickup[hidden] { display: none; }
:where(body.checkout-standalone) .ob-pickup label { position: absolute; z-index: 1; left: 15px; top: 0; height: 46px; margin: 0; display: flex; align-items: center; font: 700 0.68rem/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--co-label); pointer-events: none; }
:where(body.checkout-standalone) .ob-pickup select { padding: 0 40px 0 80px; line-height: 44px; font-size: 16px; font-weight: 600; }
:where(body.checkout-standalone) .ob-pickup-chev { right: 15px; }
:where(body.checkout-standalone) .ob-pickup-hint { margin-top: 8px; font-size: 0.78rem; color: var(--co-muted); }

/* PAYMENT */
:where(body.checkout-standalone) .ob-body .ob-card { margin: 0; }
:where(body.checkout-standalone) .ob-card .cf-title { display: none; }   /* the PAYMENT header labels the card boxes */
:where(body.checkout-standalone) .co-sec-h .cf-secure { margin: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; line-height: 1.2; color: var(--co-label); white-space: nowrap; }
:where(body.checkout-standalone) .wallet-pay { margin: 0; }
:where(body.checkout-standalone) .wallet-slot { border-radius: 10px; }
:where(body.checkout-standalone) .wallet-or { margin: 8px 0; font: 600 0.68rem/1.2 var(--font-body); letter-spacing: 0.1em; color: var(--co-label); }
:where(body.checkout-standalone) .wallet-or::before, :where(body.checkout-standalone) .wallet-or::after { background: var(--co-hair); }
:where(body.checkout-standalone) .cf-box { padding: 0 14px; }
:where(body.checkout-standalone) .ob-body .cf-row { margin-top: 8px; gap: 8px; }
:where(body.checkout-standalone) .cf-err:empty { display: none; }
:where(body.checkout-standalone) .cf-err { margin-top: 8px; }

/* Pay pill: unchanged shape, in flow right under the card boxes (not fixed / sticky). */
:where(body.checkout-standalone) .ob-pay-bar { padding-top: 16px; }
:where(body.checkout-standalone) .ob-submit.ob-submit-bottom { box-shadow: var(--co-pay-shadow); }

/* /checkout first-order reveal (2026-10-23, Matt): only for a logged-in phone the lookup marks
   discount_type first_order (syncNewCustHints). Gold-on-card tokens so it fits light + dark;
   one soft rise + glow on entrance, none under reduced motion. */
.fo-reveal { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--gold) 16%, transparent), color-mix(in srgb, var(--gold) 6%, transparent));
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); color: var(--paper); }
.fo-reveal[hidden] { display: none; }
.fo-badge { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; background: var(--gold); color: var(--ink);
  font: 800 0.78rem/1 var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.fo-copy { flex: 1 1 auto; min-width: 0; font-size: 0.82rem; line-height: 1.35; color: var(--paper-dim); }
.fo-copy strong { display: block; font: 700 0.95rem/1.25 var(--font-display); color: var(--paper); }
.fo-reveal.fo-in { animation: fo-rise 0.5s cubic-bezier(.2,.8,.3,1) both, fo-glow 1.4s ease-out 0.25s 1; }
.fo-reveal.fo-in .fo-badge { animation: fo-pop 0.45s cubic-bezier(.3,1.6,.5,1) 0.15s both; }
@keyframes fo-rise { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fo-pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fo-glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 45%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
@media (prefers-reduced-motion: reduce) { .fo-reveal.fo-in, .fo-reveal.fo-in .fo-badge { animation: none; } }
/* Wallet row placeholder (2026-10-27): /checkout shows the Payment block from first paint with the
   Apple/Google Pay row reserved at its final 40px and a spinner, until Clover's button frames load -
   so nothing below moves when the buttons arrive. */
.wallet-row { min-height: 40px; }
.wallet-pay.loading .wallet-row { position: relative; border-radius: 6px; background: var(--surface-2); }
.wallet-pay.loading .wallet-slot { visibility: hidden; }
.wallet-pay.loading .wallet-row::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2.5px solid var(--spinner-track); border-top-color: var(--gold); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Theme toggle removed (Matt 2026-11-01): floating copy hidden; the one docked in the checkout bar stays. */
body > #themeToggle { display: none !important; }

/* Soft drop shadow under the category bar to lift it off the menu content (Matt 2026-11-01). */
.cat-nav-bar { box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.22); }

/* Menu prices: no border, ring or fill anywhere (Matt 2026-11-01) - same as the Checkout button's price.
   Plain item price, and the circled deal price. Spacing kept so rows don't shift. */
.item-price, .item-price.on-deal, .deal-badge { border: 0; outline: 0; box-shadow: none; background: none; }
.deal-badge { border-radius: 0; min-width: 0; height: auto; padding: 0; }

/* Same item ordered more than one way: one menu row per cart line. "+ Add another" (right side,
   under the row; also in the open drawer's foot) spawns an identical row below that flashes in. */
.item-another-row { display: flex; justify-content: flex-end; margin-top: 2px; }
.item-another, .panel-another {
  background: none; border: none; padding: 2px 0; color: var(--gold);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--gold) 55%, transparent); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.panel-another { margin-left: auto; }
.item-row.spawn { animation: itemSpawn 0.45s cubic-bezier(0.33, 1, 0.68, 1), itemFlash 1.4s ease-out; transform-origin: top center; }
@keyframes itemSpawn { from { opacity: 0; transform: translateY(-10px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .item-row.spawn { animation: itemFlash 1.4s ease-out; } }

/* Cat nav scroll row = same width as the item column below it (Matt 2026-11-02). Phones/small tablets:
   .menu-content caps at --col-w incl. its 16px side padding, so the row caps at the same inner width. */
@media (max-width: 719px) { .cat-nav-wrap { max-width: calc(var(--col-w) - 32px); margin: 0 auto; } }
/* Wide screens while reviewing: the list is one --col-w column, so the row matches that. */
@media (min-width: 720px) { body.reviewing .cat-nav-wrap { max-width: var(--col-w); } }

/* Line badge (Matt 2026-11-02): when + Add another makes several rows of one item, each row shows
   A, B, C... before the name so the copies are easy to tell apart. */
.line-tag { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-right: 7px; padding: 0 5px; border-radius: 6px; background: var(--cta-gold, #dec99f); color: var(--cta-gold-fg, #1a1204); font: 800 0.72rem/1 var(--font-display); letter-spacing: 0; vertical-align: 2px; }
/* Line badge, more discreet (Matt 2026-11-02): small faint outlined letter instead of a gold fill. */
.line-tag { min-width: 15px; height: 15px; margin-right: 6px; padding: 0 3px; border-radius: 4px; background: none; border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); color: color-mix(in srgb, var(--paper) 60%, transparent); font: 700 0.6rem/1 var(--font-display); vertical-align: 2px; }
/* Line letter as plain text after the name, e.g. "Birria Tacos (A)" (Matt 2026-11-02): no badge, same text style. */
.line-tag { display: inline; min-width: 0; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; vertical-align: baseline; }
/* Copy letter as a small icon after the name, riding the top half of the line (Matt 2026-11-02):
   tiny outlined circle with the letter, faded. Same spot on /menu and /checkout. */
.line-tag { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; margin: 0 0 0 5px; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: none; color: inherit; opacity: 0.5; font: 700 0.5rem/1 var(--font-display); letter-spacing: 0; vertical-align: top; position: relative; top: 0.12em; }
/* Subtle colour per copy letter (Matt 2026-11-02): soft tint fill + muted accent ring/letter, cycling the
   board accents A coral, B turquoise, C mango, D lime, E gold, then repeating. */
.line-tag { opacity: 1; --lt: var(--paper); border-color: color-mix(in srgb, var(--lt) 55%, transparent); color: color-mix(in srgb, var(--lt) 80%, var(--paper)); background: color-mix(in srgb, var(--lt) 16%, transparent); }
.line-tag[data-t="A"], .line-tag[data-t="F"], .line-tag[data-t="K"], .line-tag[data-t="P"], .line-tag[data-t="U"], .line-tag[data-t="Z"] { --lt: #ef5b45; }
.line-tag[data-t="B"], .line-tag[data-t="G"], .line-tag[data-t="L"], .line-tag[data-t="Q"], .line-tag[data-t="V"] { --lt: #1fb5a8; }
.line-tag[data-t="C"], .line-tag[data-t="H"], .line-tag[data-t="M"], .line-tag[data-t="R"], .line-tag[data-t="W"] { --lt: #f79445; }
.line-tag[data-t="D"], .line-tag[data-t="I"], .line-tag[data-t="N"], .line-tag[data-t="S"], .line-tag[data-t="X"] { --lt: #8fb33a; }
.line-tag[data-t="E"], .line-tag[data-t="J"], .line-tag[data-t="O"], .line-tag[data-t="T"], .line-tag[data-t="Y"] { --lt: #d4a72c; }
/* Options panel close = round gold corner button (was design option 9, Matt 2026-11-02): 44px gold circle
   with the up-chevron, pinned to the panel's bottom-right. The foot row leaves room for it. */
.item-panel { position: relative; }
.item-panel .panel-close-bottom { position: absolute; right: 10px; bottom: 10px; margin: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--cta-gold, #dec99f); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.item-panel .panel-close-bottom svg { width: 20px; height: 20px; color: var(--cta-gold-fg, #1a1204); }
.item-panel .panel-foot { padding-right: 56px; }
.item-panel .panel-body { padding-bottom: 12px; }
/* Copy letter icons: plain gray everywhere, menu + checkout (Matt 2026-11-02; replaces the per-letter colours). */
.line-tag, .line-tag[data-t] { --lt: var(--paper); border-color: color-mix(in srgb, var(--paper) 35%, transparent); color: color-mix(in srgb, var(--paper) 55%, transparent); background: none; }
/* Copy letter icon a little closer to the name: 5px -> 2px (Matt 2026-11-02). */
.line-tag { margin-left: 2px; }
/* Copy letter bigger and easier to read (Matt 2026-11-09): 13px -> 18px, centred on the name. */
.line-tag { width: 18px; height: 18px; margin-left: 6px; font-size: 0.68rem; vertical-align: middle; top: -0.08em; }
/* "+ Add another" says what it does (Matt 2026-11-09): dimmer, non-underlined hint after it. */
.panel-another .pa-sub { font-weight: 500; opacity: 0.75; text-decoration: none; display: inline-block; }

/* Checkout touch-up, light theme (Matt 2026-11-02, from a Gemini pass): white fields with soft
   borders + a light lift, warm orange Pay pill. Dark theme keeps its look (tokens reset below). */
:where(body.checkout-standalone) {
  --co-field-bg: #fff;
  --co-field-shadow: 0 1px 2px rgba(80, 56, 16, 0.05), 0 3px 10px -6px rgba(80, 56, 16, 0.22);
  --co-cta: #f2771f; --co-cta-fg: #1a1204;
  --co-pay-shadow: 0 10px 22px -10px rgba(214, 92, 10, 0.6);
}
:root[data-theme="dark"] :where(body.checkout-standalone) { --co-field-bg: var(--surface-2); --co-field-shadow: none; --co-cta: var(--cta-gold, #dec99f); --co-cta-fg: var(--cta-gold-fg, #1a1204); --co-pay-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) :where(body.checkout-standalone) { --co-field-bg: var(--surface-2); --co-field-shadow: none; --co-cta: var(--cta-gold, #dec99f); --co-cta-fg: var(--cta-gold-fg, #1a1204); --co-pay-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); }
}
body.checkout-standalone .ob-field input, body.checkout-standalone .cf-box, body.checkout-standalone .ob-pickup select { background: var(--co-field-bg); box-shadow: var(--co-field-shadow); }
body.checkout-standalone .ob-field input:focus, body.checkout-standalone .cf-box:focus-within, body.checkout-standalone .ob-pickup select:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent), var(--co-field-shadow); }
body.checkout-standalone .ob-submit.ob-submit-bottom { background: var(--co-cta); }
body.checkout-standalone .ob-submit-bottom .osb-lbl { color: var(--co-cta-fg); }
body.checkout-standalone .ob-submit-bottom .osb-arrow { background: var(--co-cta-fg); color: var(--co-cta); }

/* Pay pill toned down (Matt 2026-11-02): Apple Pay / Google Pay are the usual way to pay, so the
   card Pay button is a smaller outlined pill - no fill, no shadow - instead of a big bright block. */
body.checkout-standalone .ob-submit.ob-submit-bottom { width: auto; min-width: 180px; padding: 7px 22px; background: transparent; border: 1.5px solid var(--co-cta); box-shadow: none; }
body.checkout-standalone .ob-submit-bottom .osb-lbl { color: var(--paper); font-size: 0.9rem; }
body.checkout-standalone .ob-submit-bottom .osb-l1 { font-size: 0.9rem; }
body.checkout-standalone .ob-submit-bottom .osb-l2 { font-size: 0.68rem; color: var(--co-muted); }
body.checkout-standalone .ob-submit-bottom .osb-arrow { width: 15px; height: 15px; padding: 3px; background: var(--co-cta); color: var(--co-cta-fg); }
.ob-submit-bottom .osb-one { display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }   /* one-line "Pay $X" + arrow */

/* Pay button: all black (Matt 2026-11-03) - black pill, white text, white arrow dot. Both themes;
   a faint light edge keeps it readable on the dark theme's dark page. */
body.checkout-standalone .ob-submit.ob-submit-bottom { min-width: 0; padding: 11px 22px; background: #000; border: 0; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.55); }
body.checkout-standalone .ob-submit-bottom .osb-lbl, body.checkout-standalone .ob-submit-bottom .osb-l1 { color: #fff; font-size: 0.9rem; letter-spacing: 0.06em; }
body.checkout-standalone .ob-submit-bottom .osb-one { gap: 10px; }
body.checkout-standalone .ob-submit-bottom .osb-arrow { width: 18px; height: 18px; padding: 4px; background: #fff; color: #000; }
:root[data-theme="dark"] body.checkout-standalone .ob-submit.ob-submit-bottom { box-shadow: inset 0 0 0 1px rgba(255, 243, 230, 0.16); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) body.checkout-standalone .ob-submit.ob-submit-bottom { box-shadow: inset 0 0 0 1px rgba(255, 243, 230, 0.16); } }

/* Autofill (Matt 2026-11-03): same as css/amigos.css - autofilled fields look exactly like typed ones. */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active,
textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: var(--paper) !important; caret-color: var(--paper);
  transition: background-color 600000s 0s, color 600000s 0s !important;
}
