/* =====================================================================
   SeyEats theme layer — loaded after style.css (and restaurant/driver/admin css).
   Change the brand by editing the colour variables in :root only.

   Colour roles
   --brand     deep base colour: headers, text accents, staff app top bars
   --accent    warm "action" colour: every button that moves an order forward
   --sun       bright highlight: ratings, badges, small celebrations
   --cream     page background (warm white reads more appetising than grey)
   ===================================================================== */
:root {
  /* Palette: "Chilli & Mango" — bold street-food warmth */
  --brand: #241914;          /* roasted-coffee brown */
  --brand-2: #3a2a22;
  --brand-ink: #ffffff;
  --accent: #e23b2e;         /* chilli red: every "do it" button */
  --accent-press: #c42a1e;
  --accent-ink: #ffffff;
  --accent-soft: #ffe9e5;
  --sun: #ffc21a;            /* mango yellow: highlights, ratings */
  --sun-ink: #3d2b00;
  --cream: #fff7e8;
  --card: #ffffff;
  --text: #241914;
  --text-muted: #7d6e62;
  --hairline: #f2e3c9;
  --hero-bg: linear-gradient(160deg, #ffcf3a 0%, #ffb21a 100%);
  --hero-ink: #241914;
  --hero-sub: #5a3d12;
  --hero-em: #e23b2e;
  --promo-bg: linear-gradient(135deg, #241914 0%, #3e2a20 100%);
  --promo-ink: #fff3dd;

  /* Map the original variables so every existing rule picks up the theme */
  --green: var(--brand);
  --deep: var(--brand);
  --lime: var(--sun);
  --ink: var(--text);
  --muted: var(--text-muted);
  --paper: var(--cream);
  --line: var(--hairline);
}

body { background: var(--cream); }
.app-shell { background: var(--cream); }

/* ---------- brand ---------- */
.brand-mark { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 35%, transparent); }
.brand-accent { color: var(--accent); }
.location-icon { color: var(--accent); }
.avatar { background: var(--accent-soft); color: var(--accent-press); }

/* ---------- hero: warm, food-first ---------- */
.hero {
  background: var(--hero-bg);
  color: var(--hero-ink);
  min-height: 290px;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 22%, transparent);
}
.hero .eyebrow { color: var(--hero-sub); letter-spacing: 1.4px; }
.hero h1 { letter-spacing: -2px; }
.hero h1 em { color: var(--hero-em); }
.hero-sub { color: var(--hero-sub); max-width: 300px; font-size: 13px; line-height: 1.5; }
.hero-copy { max-width: 60%; }
.hero-cta {
  background: var(--accent); color: var(--accent-ink);
  font-size: 13px; padding: 13px 20px; border-radius: 12px;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: transform .15s, box-shadow .15s;
}
.hero-cta:hover { transform: translateY(-2px); }
.hero-cta:active { transform: translateY(1px); }
.hero-perks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.hero-perks span { font-size: 10px; font-weight: 700; padding: 6px 9px; border-radius: 20px; background: #24191414; color: var(--hero-ink); backdrop-filter: blur(4px); }

.hero-art { right: 0; width: 45%; opacity: 1; }
.hero-glow { position: absolute; width: 230px; height: 230px; border-radius: 50%; right: 4%; top: 30px;
  background: radial-gradient(circle, color-mix(in srgb, var(--sun) 70%, transparent) 0%, transparent 68%); }
.hero-food { position: absolute; line-height: 1; filter: drop-shadow(0 14px 14px #0005); animation: hero-float 5s ease-in-out infinite; }
.hero-food.f1 { font-size: 92px; right: 18%; top: 62px; animation-delay: 0s; }
.hero-food.f2 { font-size: 64px; right: 52%; top: 36px; animation-delay: -1.2s; }
.hero-food.f3 { font-size: 58px; right: 4%; top: 168px; animation-delay: -2.4s; }
.hero-food.f4 { font-size: 40px; right: 46%; top: 176px; animation-delay: -3.1s; transform: rotate(-20deg); }
.hero-food.f5 { font-size: 46px; right: 2%; top: 30px; animation-delay: -1.8s; }
@keyframes hero-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .hero-food { animation: none; } }

/* ---------- search + categories ---------- */
.search-wrap { border-color: var(--hairline); box-shadow: 0 6px 18px #2a160810; }
.search-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-icon { color: var(--accent); }
.eyebrow, .section-heading .eyebrow { color: var(--accent-press); }
.category { border-color: var(--hairline); background: var(--card); color: var(--text); font-weight: 700; padding: 8px 14px 8px 8px; border-radius: 30px; }
.category span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); font-size: 18px; }
.category.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.category.active span { background: #ffffff33; }

/* ---------- promo ---------- */
.promo { background: var(--promo-bg); color: var(--promo-ink); }
.promo .eyebrow { color: var(--sun); }
.promo h2 { max-width: 62%; color: var(--promo-ink); }
.promo p:not(.eyebrow) { color: color-mix(in srgb, var(--promo-ink) 75%, transparent); font-size: 12px; max-width: 60%; }
.promo .text-button { color: var(--sun); font-size: 12px; }
.promo-food { filter: drop-shadow(0 16px 14px #5a2a0a40); }
.promo-stamp { border-color: var(--accent); color: var(--accent-press); background: #ffffffaa; }

/* ---------- restaurant cards ---------- */
.restaurant-card { border-color: var(--hairline); border-radius: 18px; box-shadow: 0 6px 18px #2a160809; }
.restaurant-card:hover { box-shadow: 0 16px 34px #2a160818; }
.restaurant-image::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, #0000002e); pointer-events: none; }
.tag { background: var(--accent); color: var(--accent-ink); border-radius: 20px; font-weight: 800; }
.rating { background: var(--sun); color: var(--sun-ink); padding: 3px 7px; border-radius: 20px; }
.heart.liked { color: var(--accent); }
.restaurant-info h3 { font-family: "DM Sans", sans-serif; }

/* ---------- buttons ---------- */
.primary-button, .add-button {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 30%, transparent);
  transition: transform .12s, background .12s;
}
.primary-button:hover:not(:disabled), .add-button:hover { background: var(--accent-press); }
.primary-button:active:not(:disabled), .add-button:active { transform: scale(.97); }
.add-button { border-radius: 30px; padding: 9px 14px; }
.secondary-button { border-color: var(--hairline); color: var(--accent-press); }
.text-button, .see-all { color: var(--accent-press); }

/* ---------- menu (restaurant drawer) ---------- */
.menu-item { border-color: var(--hairline); border-radius: 16px; }
.price { color: var(--accent-press); font-size: 14px; }
.menu-item h4 { font-size: 14px; }
.detail-cover { border-radius: 20px; }

/* ---------- bottom nav + cart ---------- */
.nav-item.selected { color: var(--accent); }
.cart-badge { background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.status-pill { background: var(--accent-soft); color: var(--accent-press); }
.status-step.done .status-dot { background: var(--accent); }
.status-step.done { color: var(--text); }
.order-status { background: var(--accent-soft); }

.cart-bar {
  position: fixed; z-index: 6; left: 50%; transform: translateX(-50%);
  bottom: calc(86px + env(safe-area-inset-bottom)); width: min(560px, calc(100% - 28px));
  display: flex; align-items: center; gap: 12px; border: 0; cursor: pointer; text-align: left;
  background: var(--accent); color: var(--accent-ink); border-radius: 16px; padding: 12px 16px;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 45%, transparent);
  font: 700 13px "DM Sans", sans-serif;
}
.cart-bar.hidden { display: none; }
.cart-bar.bump { animation: cart-bump .35s ease; }
@keyframes cart-bump { 40% { transform: translateX(-50%) scale(1.04); } }
.cart-bar-count { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 9px; background: #ffffff2e; font-weight: 800; }
.cart-bar-label { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.cart-bar-label small { font-weight: 500; font-size: 10px; opacity: .85; }
.cart-bar strong { font: 800 15px "DM Sans", sans-serif; }
body.has-cart-bar .app-shell { padding-bottom: 170px; }
body.has-cart-bar .toast { bottom: 160px; }

/* Staff apps (restaurant / driver / admin) share the palette */
.rd-topbar { background: var(--brand); }
.rd-brand .brand-mark { background: var(--accent); color: var(--accent-ink); }
.rd-brand .brand-accent { color: var(--sun); }
.rd-tab.active, .ad-nav button.active { background: var(--accent); border-color: var(--accent); }
.rd-tab.active b { background: #ffffff33; color: #fff; }
.dr-switch.on { background: var(--brand); }
.dr-switch.on .dr-knob { background: var(--accent); }
.dr-fee { color: var(--accent-press); }
.dr-chip.go { background: var(--sun); color: var(--sun-ink); }
.ad-btn.primary { background: var(--accent); border-color: var(--accent); }

@media (max-width: 700px) {
  .hero { min-height: 300px; }
  .hero-copy { max-width: 64%; }
  .hero h1 { font-size: 38px; }
  .hero-food.f1 { font-size: 66px; right: 10%; top: 96px; }
  .hero-food.f2 { font-size: 44px; right: 46%; top: 30px; }
  .hero-food.f3 { font-size: 44px; right: 2%; top: 196px; }
  .hero-food.f4 { font-size: 30px; right: 40%; top: 210px; }
  .hero-food.f5 { font-size: 36px; right: 4%; top: 28px; }
  .hero-glow { width: 170px; height: 170px; right: -4%; top: 60px; }
  .promo h2 { font-size: 22px; }
}

/* spacing fixes */
.categories { padding: 6px 2px 18px; margin: 0 -2px; }
.hero-perks span { white-space: nowrap; }
@media (max-width: 700px) {
  .hero-perks { gap: 6px; }
  .hero-perks span { font-size: 9px; padding: 5px 8px; }
}

/* ===================== v11: deals, menus, payments, ratings ===================== */
.deals-section { margin: 8px 5.5% 26px; }
.deals-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.deals-row::-webkit-scrollbar { display: none; }
.deal-card { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; min-width: 240px; border: 0; cursor: pointer; text-align: left;
  background: var(--brand); color: #fff3dd; border-radius: 18px; padding: 12px 16px 12px 12px; box-shadow: 0 10px 22px #24191422; }
.deal-badge { flex: none; width: 58px; height: 58px; border-radius: 14px; background: var(--sun); color: var(--sun-ink); display: grid; place-content: center; text-align: center; font: 800 18px/1 "DM Sans", sans-serif; }
.deal-badge small { display: block; font-size: 8px; letter-spacing: 1px; margin-top: 2px; }
.deal-text strong { display: block; font: 800 15px "DM Sans", sans-serif; }
.deal-text small { font-size: 11px; opacity: .8; }
.deal-tag { background: var(--sun) !important; color: var(--sun-ink) !important; }
.test-tag { background: #e8f1ff !important; color: #1d4ea8 !important; }
.test-note { display: grid; gap: 3px; background: #eef4ff; color: #1d3f80; border: 1px solid #cfdcf6; border-radius: 12px; padding: 11px 13px; font-size: 13px; line-height: 1.45; margin: 10px 0; }
.test-note strong { font: 800 13px "DM Sans", sans-serif; color: #1d4ea8; }
.deal-strip { background: var(--sun); color: var(--sun-ink); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin: 10px 0; }
.deal-nudge { background: #fff1c9; color: #6a4800; border-radius: 10px; padding: 9px 12px; font-size: 12px; margin: 10px 0 0; }

.restaurant-card.is-closed { opacity: .72; }
.restaurant-card.is-closed img { filter: grayscale(.85); }
.closed-badge { position: absolute; left: 10px; top: 10px; background: var(--brand); color: #fff; padding: 6px 10px; border-radius: 20px; font-size: 10px; font-weight: 800; letter-spacing: .5px; }
.image-fallback { display: grid; place-items: center; height: 100%; font-size: 44px; background: var(--accent-soft); }
.rating small { font-weight: 600; opacity: .75; }
.rating.is-new { background: var(--accent-soft); color: var(--accent-press); }
.detail-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin: 8px 0; }
.closed-note { background: var(--brand); color: #fff3dd; border-radius: 12px; padding: 12px 14px; font-size: 13px; margin: 10px 0; }
.menu-section-title { font: 800 15px "DM Sans", sans-serif; margin: 18px 0 8px; color: var(--text); }
.menu-list { display: grid; gap: 10px; }
.menu-item img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; }
.menu-item.is-unavailable { opacity: .6; }
.menu-item.is-unavailable img { filter: grayscale(1); }
.sold-out { font-size: 11px; font-weight: 800; color: var(--muted); background: #f1e7dc; border-radius: 20px; padding: 6px 10px; white-space: nowrap; }

.summary-row.discount { color: #1d7a3a; }
.summary-row.discount b { color: #1d7a3a; }
.pay-box { display: flex; gap: 12px; align-items: center; background: #fff; border: 2px solid var(--accent); border-radius: 14px; padding: 12px 14px; }
.pay-icon { font-size: 24px; }
.pay-box strong { display: block; font-size: 14px; }
.pay-box small { color: var(--muted); font-size: 12px; }
.test-banner { background: #fff1c9; color: #6a4800; border-radius: 10px; padding: 9px 12px; font-size: 11px; margin: 10px 0 0; line-height: 1.5; }
.pay-needed { background: #fff; border: 2px solid var(--accent); border-radius: 16px; padding: 16px; margin-bottom: 15px; }
.pay-needed strong { font: 800 17px "DM Sans", sans-serif; }
.status-pill.warn { background: #fff1c9; color: #6a4800; }

.review-card { background: #fff; border: 2px solid var(--sun); border-radius: 16px; padding: 16px; margin-bottom: 15px; }
.review-card h3 { font: 800 18px "DM Sans", sans-serif; margin: 0 0 4px; }
.review-label { display: block; font-size: 12px; font-weight: 700; margin: 12px 0 4px; }
.star-picker { display: flex; gap: 4px; }
.star-picker button { border: 0; background: none; font-size: 32px; line-height: 1; color: #e6dccf; cursor: pointer; padding: 2px; transition: transform .1s, color .1s; }
.star-picker button.on { color: #f2a900; }
.star-picker button:active { transform: scale(1.2); }
.review-card textarea { width: 100%; margin-top: 12px; border: 1px solid var(--hairline); border-radius: 10px; padding: 10px; font: 500 13px "DM Sans", sans-serif; resize: vertical; }
.review-done { background: #fff; border: 1px solid var(--hairline); border-radius: 14px; padding: 12px 14px; margin-bottom: 15px; }
.review-done p { margin: 6px 0 0; }
.stars { color: #f2a900; letter-spacing: 1px; }

/* ---------- v12: delivery location and distance pricing ---------- */
.loc-sheet { position: fixed; inset: 0; z-index: 15; background: #1a110d99; display: flex; align-items: flex-end; justify-content: center; }
.loc-panel { background: var(--cream, #fff7e8); width: min(560px, 100%); max-height: 94dvh; overflow: auto; border-radius: 22px 22px 0 0; padding: 20px 20px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -18px 50px #0003; animation: locUp .22s ease-out; }
@keyframes locUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .loc-sheet { align-items: center; } .loc-panel { border-radius: 22px; } }
.loc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.loc-head h2 { font: 800 21px "DM Sans", sans-serif; margin: 0; }
.loc-gps { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--accent); background: var(--accent-soft); color: var(--accent-press); border-radius: 12px; padding: 12px; font: 700 13px "DM Sans", sans-serif; cursor: pointer; }
.loc-gps span { font-size: 18px; }
.loc-gps:disabled { opacity: .6; }
.loc-map { height: min(46dvh, 340px); margin: 12px 0 8px; border-radius: 14px; overflow: hidden; background: #efe6d6; border: 1px solid #ead9c2; display: grid; place-items: center; }
.loc-map .leaflet-container { width: 100%; height: 100%; }
.loc-map > .leaflet-container, .loc-map.leaflet-container { display: block; }
.loc-map-msg { color: var(--muted); font-size: 12px; padding: 20px; text-align: center; }
.loc-hint { font-size: 12px; color: #6b5a4f; margin: 4px 2px; }
.loc-quote { font-size: 13px; font-weight: 700; color: var(--brand); margin: 6px 2px 0; min-height: 1em; }
.loc-ask { text-align: center; padding: 6px 4px 2px; }
.loc-ask-icon { width: 64px; height: 64px; margin: 4px auto 10px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-size: 32px; box-shadow: 0 10px 24px #ffc21a55; }
.loc-ask h2 { font: 800 22px "DM Sans", sans-serif; margin: 6px 0 8px; }
.loc-ask p { color: #6b5a4f; font-size: 13px; line-height: 1.6; margin: 0 auto 6px; max-width: 380px; }
.loc-ask .secondary-button { width: 100%; margin-top: 9px; padding: 13px; font-size: 12px; }
.loc-later { border: 0; background: none; color: var(--muted); font: 600 12px "DM Sans", sans-serif; margin-top: 10px; padding: 8px; cursor: pointer; }
.loc-card { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; }
.loc-card.is-far { border-color: var(--accent); background: var(--accent-soft); }
.loc-card > div { flex: 1; min-width: 0; }
.loc-card strong { display: block; font-size: 13px; }
.loc-card small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; line-height: 1.4; }
.loc-card-icon { font-size: 20px; }
.loc-change { border: 0; background: var(--brand); color: #fff; border-radius: 9px; padding: 8px 12px; font: 700 11px "DM Sans", sans-serif; cursor: pointer; white-space: nowrap; }
.loc-inline { display: block; border: 0; background: none; color: var(--accent-press); font: 700 12px "DM Sans", sans-serif; padding: 4px 0 2px; cursor: pointer; text-align: left; }
.restaurant-card.is-far { opacity: .62; }
.too-far { color: var(--accent-press); font-weight: 700; }
.eta-line { background: #fff3c9; color: var(--sun-ink); border-radius: 10px; padding: 9px 12px; font-size: 12px; margin: 10px auto 0; max-width: 340px; }

/* v12: tips */
.tip-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.tip-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 4px; font: 700 12px "DM Sans", sans-serif; color: var(--ink); cursor: pointer; white-space: nowrap; }
.tip-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-press); }
.tip-other { display: flex; gap: 8px; margin-top: 8px; }
.tip-other input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font: 13px "DM Sans", sans-serif; }
.tip-note { display: block; color: var(--muted); font-size: 11px; margin-top: 7px; }
.summary-row.tip-row { color: #8a6100; }
.leaflet-control-layers-expanded { padding: 4px 8px; font: 600 12px "DM Sans", sans-serif; border-radius: 10px; }
.leaflet-control-layers-base label { margin: 2px 0; }

/* v14: handover at the door */
.door-sheet { z-index: 16; }
.door-panel { text-align: center; }
.door-panel .review-label { display: block; text-align: left; margin: 16px 0 6px; font-weight: 700; font-size: 13px; }
.door-panel .review-label small { font-weight: 500; color: var(--muted); margin-left: 6px; }
.door-panel textarea { width: 100%; box-sizing: border-box; margin: 14px 0 4px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font: 14px var(--body, "DM Sans", sans-serif); resize: vertical; }
.door-panel .primary-button { width: 100%; margin-top: 16px; }
.door-wide { width: 100%; margin-top: 9px; padding: 13px; }
.door-hero { font-size: 44px; width: 78px; height: 78px; margin: 4px auto 6px; border-radius: 50%; background: var(--mango-soft, #fff4d1); display: grid; place-items: center; }
.door-panel h2 { margin: 6px 0 6px; font-size: 24px; letter-spacing: -.02em; }
.door-lead { color: var(--muted); margin: 0 auto 4px; max-width: 380px; line-height: 1.5; font-size: 14px; }
.door-stars { justify-content: flex-start; }
.door-panel .tip-chips { text-align: left; }
.door-reasons { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 14px; }
.door-box { background: var(--mango-soft, #fff4d1); border-radius: 16px; padding: 16px; margin: 0 0 16px; text-align: center; }
.door-box strong { display: block; font-size: 15px; }
.door-box .primary-button { width: 100%; margin-top: 12px; }
.door-box .secondary-button { width: 100%; margin-top: 8px; }
.door-box.is-problem { background: var(--chilli-soft, #fdecea); }
.door-tip-link { display: block; width: 100%; margin: 0 0 14px; border: 1.5px dashed var(--mango, #ffc21a); background: #fffaf0; color: #8a6100; border-radius: 12px; padding: 12px; font: 700 13px var(--body, "DM Sans", sans-serif); cursor: pointer; }

/* v15: dish options, promo codes, hours, reorder */
.opt-sheet { z-index: 16; }
.opt-panel { padding-bottom: 0; }
.opt-desc { color: var(--muted); font-size: 14px; line-height: 1.5; margin: -4px 0 4px; }
.opt-base { font-weight: 800; margin: 0 0 6px; }
.opt-group { border: 0; padding: 0; margin: 18px 0 0; }
.opt-group legend { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 0 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.opt-group legend span { font-weight: 800; font-size: 15px; }
.opt-group legend small { color: var(--muted); font-size: 12px; font-weight: 600; }
.opt-group legend small.req { color: var(--accent-press); }
.opt-group.is-missing legend small { color: #b42318; font-weight: 800; }
.opt-group.is-missing { animation: optShake .35s; }
@keyframes optShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.opt-choice { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #f1e6d6; cursor: pointer; font-size: 14px; }
.opt-choice input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; flex: none; }
.opt-choice .opt-name { flex: 1; }
.opt-choice .opt-price { color: var(--muted); font-weight: 600; font-size: 13px; }
.opt-choice.on .opt-name { font-weight: 700; }
.opt-choice.is-off { opacity: .45; cursor: not-allowed; }
.opt-note { margin-top: 18px; }
.opt-foot { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; background: var(--cream, #fff7e8); padding: 14px 0 calc(16px + env(safe-area-inset-bottom)); margin-top: 8px; box-shadow: 0 -10px 16px -12px #0002; }
.opt-qty { margin: 0; flex: none; }
.opt-add { flex: 1; margin: 0 !important; }
.line-opts, .line-note { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 2px; }
.line-note { font-style: italic; }
.promo-field { margin: 18px 0 4px; }
.promo-field label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: 600 14px var(--body, "DM Sans", sans-serif); text-transform: uppercase; }
#promoMsg { display: block; min-height: 1em; margin-top: 6px; font-size: 12px; }
#promoMsg.ok { color: #1e7b3a; font-weight: 700; }
#promoMsg.bad { color: #b42318; font-weight: 700; }
.reorder-button { width: 100%; margin: 0 0 14px; }
.rp-hours { margin: 12px 0 4px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; }
.rp-hours summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.rp-hours ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 5px; font-size: 13px; }
.rp-hours li { display: flex; justify-content: space-between; color: var(--muted); }
.rp-hours li b { color: var(--ink, #1e1512); font-weight: 600; }
.rp-hours li.today, .rp-hours li.today b { color: var(--accent-press); font-weight: 800; }

/* ---------- v16: live tracking, help, receipts ---------- */
.trk-card { margin: 4px 0 16px; border: 1px solid var(--line, #eadbc8); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px #3a1f1210; }
.trk-map { height: 230px; background: #e9efe6; }
.trk-nomap { margin: 0; padding: 90px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.trk-status { padding: 12px 14px; }
.trk-status strong { display: block; font-size: 15px; line-height: 1.35; }
.trk-status span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.trk-status .trk-stale { color: #a15c00; font-weight: 600; }
.trk-pin { background: none; border: 0; }
.trk-pin span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: 0 3px 10px #0004; font-size: 20px; border: 2px solid #fff; }
.trk-driver span { background: var(--accent, #e23b2e); border-color: #fff; animation: trkPulse 2s infinite; }
@keyframes trkPulse { 0%, 100% { box-shadow: 0 0 0 0 #e23b2e66, 0 3px 10px #0004; } 50% { box-shadow: 0 0 0 10px #e23b2e00, 0 3px 10px #0004; } }
.order-actions { display: flex; gap: 8px; margin: 4px 0 10px; }
.order-actions .secondary-button { flex: 1; }

/* ---------- v17: terms consent ---------- */
.terms-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; margin: 12px 0 4px; cursor: pointer; color: var(--ink, #22140e); }
.terms-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent, #e23b2e); flex: none; }
.terms-check a, .checkout-legal a { color: var(--accent-press, #b8271c); font-weight: 700; }
.checkout-legal { font-size: 12px; color: var(--muted); margin: 8px 0 10px; }

/* ---------- v18: notifications ---------- */
.push-card { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line, #eadbc8); border-radius: 16px; padding: 12px 14px; margin: 10px 0; }
.push-card.is-on { background: #f1faf3; border-color: #cbe9d3; }
.push-card.is-muted { background: #faf6f0; }
.push-card > div { flex: 1; min-width: 0; }
.push-card strong { display: block; font-size: 14px; }
.push-card small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.push-ico { font-size: 22px; flex: none; }
.push-btn { border: 0; background: var(--accent, #e23b2e); color: #fff; border-radius: 10px; padding: 9px 14px; font: 800 13px "DM Sans", sans-serif; cursor: pointer; flex: none; }
.push-btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line, #eadbc8); }
.push-btn:disabled { opacity: .6; }
.push-row:empty, .order-push:empty { display: none; }
.auth-forgot { text-align: right; margin: -4px 0 6px; font-size: 13px; }
.auth-forgot a { color: var(--accent-press, #b8271c); font-weight: 700; }
.pt-hint a { color: var(--accent-press, #b8271c); font-weight: 700; }
