/* ==========================================================================
   menu.css — shared styles for the online ordering app (/menu/**)

   Holds the design tokens and the components that are IDENTICAL across
   restaurant-system/menu/*.html. Anything that differs per page lives in
   that page's own <style> block (BUILD-SPEC §7), which is printed after
   this file and therefore wins any tie.

   Theme: head.ejs prints `<style>themeCss</style>` right after this file.
   It overrides --brand, --brand-dark, --brand-soft, --charcoal, --bg,
   --btn-text, --btn-radius and --font-ui (+ body font-family). The values
   below are the design defaults ("Warm Orange").

   Scoping: variant-specific rules use `:where(.scope) .x` so they never
   leak onto pages that reuse a class name for something else (account.html
   uses .nav for its sidebar, track.html uses .st for step text, hours.html
   and menu.html style .logo differently) while keeping the same specificity
   as the design's own selectors.

   Breakpoints used by the designs: 980 (menu cart → bottom bar) · 900
   (checkout) · 880 (auth) · 840 (account) · 760 (topbars, footer) · 700
   (modal/sheet centred above) · 600 · 480 · 380.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root{
  --bg:#f3efe7;--surface:#fff;--ink:#1a1714;--ink-2:#6b6258;--ink-3:#736a5f;
  --line:#e8e1d5;--brand:#ff5722;--brand-dark:#e8430f;--brand-soft:#fff0eb;
  --gold:#ffb300;--green:#177a43;--green-soft:#e7f5ec;--heart:#ff2d55;--charcoal:#1a1714;
  --blue:#2f5fcf;--blue-soft:#eaf0fd;--purple:#6a3fd6;--purple-soft:#f1ecfc;--red:#c5332d;
  /* contrast helpers: --brand-strong / --brand-stronger = fills that carry white text (AA);
     --brand-ink = brand-coloured TEXT and icons on white or on --brand-soft; --gold-ink = gold text on white */
  --brand-strong:#d24012;--brand-stronger:#bf360c;--brand-ink:#c2410c;--gold-ink:#8a6d0f;
  /* height of the sticky menu toolbar (set by menu.js; the desktop cart sticks below it) */
  --toolbar-h:0px;
  --r:18px;--r-sm:12px;
  /* layered, softer shadows (premium pass) */
  --sh-sm:0 1px 2px rgba(26,23,20,.05),0 1px 1px rgba(26,23,20,.03);
  --sh:0 1px 2px rgba(26,23,20,.05),0 10px 28px -8px rgba(26,23,20,.13);
  --sh-lg:0 2px 6px rgba(26,23,20,.06),0 24px 60px -12px rgba(26,23,20,.24);
  --line-strong:#ddd3c4;
  --ease:cubic-bezier(.2,.7,.2,1);

  /* theme-controlled (themeCss) */
  --btn-text:#fff;
  --btn-radius:30px;
  --font-ui:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  /* display serif for big hero headings (confirmation, auth brand panel) */
  --font-display:"Fraunces",Georgia,"Times New Roman",serif;

  /* recurring hard-coded design colours, tokenised */
  --wa:#25d366;
  --danger:#c5332d;--danger-soft:#fdeceb;
  --amber:#8a5a00;--amber-soft:#fff3e0;--amber-line:#f3d49a;--amber-ink:#8a6516;
  --placeholder:#f7f2ea;

  /* brand glows and translucent backgrounds (theme-aware where color-mix exists) */
  --brand-glow:rgba(216,67,21,.2);
  --brand-glow-lg:rgba(216,67,21,.26);
  --bg-glass-85:rgba(243,239,231,.85);
  --bg-glass-90:rgba(243,239,231,.9);
  --bg-glass-92:rgba(243,239,231,.92);
  --bg-glass-93:rgba(243,239,231,.93);
}
@supports (color:color-mix(in srgb,red 50%,blue)){
  :root{
    --brand-strong:color-mix(in srgb,var(--brand) 85%,#000);
    --brand-stronger:color-mix(in srgb,var(--brand) 73%,#000);
    --brand-ink:color-mix(in srgb,var(--brand) 74%,#000);
    --brand-glow:color-mix(in srgb,var(--brand) 20%,transparent);
    --brand-glow-lg:color-mix(in srgb,var(--brand) 26%,transparent);
    --bg-glass-85:color-mix(in srgb,var(--bg) 85%,transparent);
    --bg-glass-90:color-mix(in srgb,var(--bg) 90%,transparent);
    --bg-glass-92:color-mix(in srgb,var(--bg) 92%,transparent);
    --bg-glass-93:color-mix(in srgb,var(--bg) 93%,transparent);
  }
}

/* ---------- 2. Reset & base typography ---------- */
*{box-sizing:border-box;margin:0;padding:0;}
/* overflow-x:clip (not hidden) keeps position:sticky working on the topbars;
   browsers without clip fall back to hidden, as in the designs. */
html,body{overflow-x:hidden;overflow-x:clip;width:100%;}
body{font-family:var(--font-ui);background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.55;}
h1,h2,h3,h4{letter-spacing:-.015em;line-height:1.25;}
/* prices, totals and counters line up */
.price,.pr,.total,.amt,.sum,.tot,[class*="price"],[class*="total"]{font-variant-numeric:tabular-nums;}
svg{display:block;}
a{color:inherit;text-decoration:none;}
button,input,select,textarea{font-family:inherit;}
img{max-width:100%;}
a:focus-visible,button:focus-visible,[role="button"]:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--brand-strong);outline-offset:2px;}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* ---------- 3. Icons ---------- */
.ic{width:22px;height:22px;stroke:currentColor;stroke-width:1.75;fill:none;stroke-linecap:round;stroke-linejoin:round;}
.ic-sm{width:16px;height:16px;}
.ic-lg{width:28px;height:28px;}

/* ---------- 4. Buttons ---------- */
.btn{border:none;cursor:pointer;font-family:inherit;font-weight:600;border-radius:var(--btn-radius);transition:background .18s var(--ease),border-color .18s var(--ease),box-shadow .18s var(--ease),color .18s var(--ease),transform .18s var(--ease);font-size:14px;letter-spacing:.005em;white-space:nowrap;}
.btn:active{transform:translateY(1px);}
.btn-ghost{background:var(--surface);color:var(--ink);padding:10px 16px;border:1px solid var(--line);box-shadow:var(--sh-sm);}
.btn-ghost:hover{border-color:var(--line-strong);background:#fdfbf8;}
.btn-brand{background:var(--brand-strong);color:var(--btn-text);padding:10px 18px;box-shadow:0 1px 2px rgba(26,23,20,.12),0 6px 16px -6px var(--brand-glow);}
.btn-brand:hover{background:var(--brand-stronger);}
/* "AI Order": flat charcoal with a gold icon (no gradient) */
.btn.btn-ai,.btn.btn-ai:hover{background:var(--charcoal);color:#fff;align-items:center;box-shadow:var(--sh-sm);}
.btn.btn-ai:hover{box-shadow:var(--sh);}
.btn-ai .ic{display:inline-block;vertical-align:-3px;margin-right:5px;color:var(--gold);}
.iconcircle{width:40px;height:40px;border-radius:50%;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;cursor:pointer;color:var(--ink);position:relative;box-shadow:var(--sh-sm);transition:border-color .18s var(--ease),background .18s var(--ease);}
.iconcircle:hover{border-color:var(--line-strong);}
.iconcircle.acct.logged{background:var(--green);color:#fff;border-color:var(--green);}
.hide-mobile{display:flex;}
.icon-btn{display:none;}

/* ---------- 5. Topbar: main (menu page header) ---------- */
.tb-main{position:sticky;top:0;z-index:40;background:var(--bg-glass-85);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);}
:where(.tb-main) .topbar-inner{max-width:1180px;margin:0 auto;display:flex;align-items:center;gap:13px;padding:13px 18px;}
:where(.tb-main) .logo{font-weight:700;font-size:20px;letter-spacing:-.02em;display:flex;align-items:center;gap:10px;white-space:nowrap;min-width:0;}
:where(.tb-main) .logo .nm{overflow:hidden;text-overflow:ellipsis;}
:where(.tb-main) .top-actions{margin-left:auto;display:flex;align-items:center;gap:8px;}
.lang{font-size:12.5px;color:var(--ink);cursor:pointer;display:flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--line);padding:9px 13px;border-radius:var(--btn-radius);font-weight:600;transition:.16s;font-family:inherit;line-height:normal;white-space:nowrap;}
.lang.on{background:var(--charcoal);color:#fff;border-color:var(--charcoal);}
.lang .gl{width:15px;height:15px;}
/* signed-in account chip (new: the design only shows signed-out buttons) */
.acct-chip{display:inline-flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:var(--btn-radius);padding:4px 14px 4px 4px;font-size:13.5px;font-weight:600;color:var(--ink);transition:.16s;white-space:nowrap;max-width:190px;}
.acct-chip:hover{border-color:var(--ink-3);}
.acct-chip .av{width:30px;height:30px;border-radius:50%;background:var(--brand-strong);color:var(--btn-text);display:grid;place-items:center;font-size:12.5px;font-weight:600;flex:none;text-transform:uppercase;}
.acct-chip .nm{overflow:hidden;text-overflow:ellipsis;}

/* ---------- 6. Topbar: sub-page (round back button + h1) ---------- */
.tb-sub{position:sticky;top:0;z-index:30;background:var(--bg-glass-90);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);}
/* max-width differs per design page (680–1080px); pages override .topbar-inner */
:where(.tb-sub) .topbar-inner{max-width:980px;margin:0 auto;display:flex;align-items:center;gap:13px;padding:13px 18px;}
:where(.tb-sub) h1{font-size:18px;font-weight:700;letter-spacing:-.02em;display:flex;align-items:center;gap:8px;min-width:0;}
.back{width:40px;height:40px;border-radius:50%;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;cursor:pointer;color:var(--ink);flex:none;}

/* ---------- 7. Topbar: marketing-style nav (hours, vouchers) ---------- */
.site-nav{position:sticky;top:0;z-index:40;background:var(--bg-glass-92);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);}
:where(.site-nav) .nav-in{max-width:1180px;margin:0 auto;display:flex;align-items:center;gap:8px;padding:14px 20px;}
:where(.site-nav) .logo{font-weight:700;font-size:20px;letter-spacing:-.02em;display:flex;align-items:center;gap:9px;min-width:0;white-space:nowrap;}
:where(.site-nav) .logo .nm{overflow:hidden;text-overflow:ellipsis;}
:where(.site-nav) .nav-links{display:flex;gap:4px;margin-left:24px;}
:where(.site-nav) .nav-links a{padding:9px 14px;border-radius:var(--btn-radius);font-size:14px;font-weight:500;color:var(--ink-2);transition:background .18s var(--ease),color .18s var(--ease);}
:where(.site-nav) .nav-links a:hover,:where(.site-nav) .nav-links a.on{background:var(--surface);color:var(--ink);}
:where(.site-nav) .nav-cta{margin-left:auto;}
:where(.site-nav) .nav-cta .order{display:inline-block;background:var(--brand-strong);color:var(--btn-text);border-radius:var(--btn-radius);padding:11px 20px;font-weight:600;font-size:14px;white-space:nowrap;}
:where(.site-nav) .nav-cta .order:hover{background:var(--brand-stronger);}

/* The brand mark is views/partials/brand-mark.ejs (self-contained: uploaded logo, else charcoal tile + gold cloche). */

/* ---------- 8. Site footer (settings-controlled) ---------- */
.site-footer{background:var(--charcoal);color:#fff;margin-top:40px;}
.foot-inner{max-width:1180px;margin:0 auto;padding:40px 20px 26px;display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:30px;}
.foot-logo{font-weight:700;font-size:19px;letter-spacing:-.02em;display:flex;align-items:center;gap:9px;}
.foot-desc{font-size:13px;color:rgba(255,255,255,.6);line-height:1.6;margin:12px 0 16px;max-width:300px;}
.foot-social{display:flex;gap:9px;flex-wrap:wrap;}
.fsoc{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);display:grid;place-items:center;color:#fff;cursor:pointer;transition:background .18s var(--ease);}
.fsoc:hover{background:rgba(255,255,255,.18);}
/* the design's `.foot-col a{display:block;padding:6px 0}` out-ranks .fsoc and pushes the icons off-centre */
.foot-social .fsoc{display:grid;place-items:center;padding:0;}
.foot-col h4{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.62);margin-bottom:14px;}
.foot-col a{display:block;font-size:13.5px;color:rgba(255,255,255,.75);padding:6px 0;cursor:pointer;transition:color .18s var(--ease);}
.foot-col a:hover{color:var(--gold);}
.foot-col .foot-site{display:inline-flex;align-items:center;gap:6px;margin-top:14px;padding:0;font-weight:600;color:rgba(255,255,255,.8);}
.foot-pay{max-width:1180px;margin:0 auto;padding:18px 20px;border-top:1px solid rgba(255,255,255,.1);display:flex;align-items:center;gap:14px;flex-wrap:wrap;}
.foot-pay-lbl{font-size:12px;color:rgba(255,255,255,.6);font-weight:600;}
:where(.site-footer) .paylist{display:flex;align-items:center;flex-wrap:wrap;row-gap:4px;list-style:none;font-size:11.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.72);}
:where(.site-footer) .paylist li+li::before{content:"·";margin:0 9px;color:rgba(255,255,255,.35);}
.foot-pay>.ic{color:rgba(255,255,255,.6);flex:none;}
.foot-bottom{max-width:1180px;margin:0 auto;padding:16px 20px 26px;border-top:1px solid rgba(255,255,255,.1);display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:rgba(255,255,255,.62);flex-wrap:wrap;}
.foot-made{color:rgba(255,255,255,.5);font-size:11px;}

/* ---------- 9. Toast (container rendered by foot.ejs, driven by App.toast) ---------- */
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);background:var(--charcoal);color:#fff;padding:13px 22px;border-radius:14px;font-size:13.5px;font-weight:500;z-index:230;opacity:0;transition:.26s cubic-bezier(.2,.85,.25,1);pointer-events:none;display:flex;align-items:center;gap:9px;box-shadow:var(--sh-lg);max-width:calc(100vw - 32px);}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0);}
.toast svg{width:18px;height:18px;color:var(--gold);flex:none;}
.toast.error{background:var(--danger);}
.toast.error svg{color:#fff;}

/* ---------- 10. Form controls ---------- */
.field{margin-bottom:13px;}
.field label{font-size:13px;font-weight:600;color:var(--ink-2);display:block;margin-bottom:7px;letter-spacing:.005em;}
/* ONE text-input style for the whole ordering app: 1px --line-strong, radius 12, brand border + soft ring on focus.
   Pages add layout only (flex, room for an icon, uppercase) — never their own border, radius or focus style.
   .txt-in = the same look for an input outside a .field. */
.field input,.field select,.field textarea,.txt-in{width:100%;border:1px solid var(--line-strong);border-radius:12px;padding:13px 15px;font-family:inherit;font-size:14.5px;color:var(--ink);background:#fff;outline:none;transition:border-color .16s var(--ease),box-shadow .16s var(--ease);}
.field input:hover,.field select:hover,.field textarea:hover,.txt-in:hover{border-color:var(--ink-3);}
.field input:focus,.field select:focus,.field textarea:focus,.txt-in:focus{border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-soft);}
.field input::placeholder,.field textarea::placeholder,.txt-in::placeholder{color:var(--ink-3);}
/* search boxes are a bordered shell around a bare input: same border, radius and focus ring */
.searchbar,.search{border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);transition:border-color .16s var(--ease),box-shadow .16s var(--ease);}
.searchbar:focus-within,.search:focus-within{border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-soft);}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:13px;}
/* on/off switch (checkout cutlery & points) */
.switch{width:46px;height:27px;border-radius:30px;background:var(--line);position:relative;cursor:pointer;transition:.18s;flex:none;}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;background:#fff;transition:.18s;box-shadow:var(--sh-sm);}
.switch.on{background:var(--green);}
.switch.on::after{left:22px;}
/* custom checkbox (auth "Remember me" / terms) */
.check{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--ink-2);cursor:pointer;}
.check .box{width:18px;height:18px;border-radius:6px;border:2px solid var(--line-strong);display:grid;place-items:center;color:#fff;flex:none;}
.check.on .box{background:var(--brand-strong);border-color:var(--brand-strong);}

/* ---------- 11. Status pills (.ost on account, .st on orders) ---------- */
.ost{font-size:11px;font-weight:600;letter-spacing:.02em;padding:4px 10px;border-radius:30px;white-space:nowrap;}
.ost.done,.st.done{background:var(--green-soft);color:var(--green);}
.ost.prog,.st.prog{background:var(--amber-soft);color:var(--amber);}
.ost.cancel,.st.cancel{background:var(--danger-soft);color:var(--danger);}
.ost.new,.st.new{background:var(--brand-soft);color:var(--brand-ink);}

/* ---------- 12. Overlay / modal / bottom sheet (structural base) ---------- */
.overlay{position:fixed;inset:0;background:rgba(26,23,20,.58);z-index:100;display:none;align-items:flex-end;justify-content:center;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);}
.overlay.show{display:flex;}
.modal{background:var(--surface);width:100%;max-width:530px;max-height:92vh;max-height:92dvh;border-radius:24px 24px 0 0;box-shadow:var(--sh-lg);overflow:hidden;display:flex;flex-direction:column;animation:su .28s cubic-bezier(.2,.85,.25,1);}
@keyframes su{from{transform:translateY(60px);opacity:.4;}to{transform:translateY(0);opacity:1;}}
@keyframes fade{from{opacity:0;}to{opacity:1;}}
/* Sheet structure only; content styling (centred text, headings) stays in pages
   because menu.html and qr-table.html style their sheets differently. */
.sheet-ov{position:fixed;inset:0;background:rgba(26,23,20,.58);z-index:110;display:none;align-items:flex-end;justify-content:center;}
.sheet-ov.show{display:flex;}
.sheet{background:var(--surface);width:100%;max-width:460px;max-height:92vh;max-height:92dvh;overflow-y:auto;border-radius:24px 24px 0 0;box-shadow:var(--sh-lg);padding:28px 24px max(24px,env(safe-area-inset-bottom));animation:su .28s cubic-bezier(.2,.85,.25,1);}
/* "Sign in to …" sheet pieces (menu favourites gate; reusable on any page) */
.sheet .si{width:68px;height:68px;border-radius:50%;background:var(--brand-soft);color:var(--brand-ink);display:grid;place-items:center;margin:0 auto 15px;}
.sheet .opts{display:flex;flex-direction:column;gap:10px;}
.sheet .opt-btn{display:block;width:100%;text-align:center;padding:15px;border-radius:var(--btn-radius);font-weight:600;font-size:14.5px;cursor:pointer;border:1px solid var(--line-strong);background:#fff;color:var(--ink);font-family:inherit;}
.sheet .opt-btn:hover{border-color:var(--ink-3);}
.sheet .opt-btn.primary{background:var(--brand-strong);color:var(--btn-text);border-color:var(--brand-strong);box-shadow:0 1px 2px rgba(26,23,20,.12),0 8px 20px -8px var(--brand-glow);}
.sheet .opt-btn.primary:hover{background:var(--brand-stronger);}
.sheet .opt-btn.danger{background:var(--danger);color:#fff;border-color:var(--danger);}
.sheet .opt-btn.danger:hover{filter:brightness(.94);}
/* App.confirm(): the same sheet, built on demand (replaces window.confirm) */
.sheet-ov.app-confirm{z-index:240;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);}
.app-confirm .sheet{text-align:center;}
.app-confirm .sheet .si.danger{background:var(--danger-soft);color:var(--danger);}
.app-confirm .sheet h2{font-size:20px;font-weight:700;letter-spacing:-.02em;margin-bottom:8px;}
.app-confirm .sheet p{font-size:13.5px;color:var(--ink-2);line-height:1.5;margin-bottom:20px;}
@media(min-width:700px){.sheet-ov.app-confirm.show{align-items:center;}.app-confirm .sheet{border-radius:24px;}}
.sheet .close-x{font-size:13px;color:var(--ink-3);margin-top:17px;cursor:pointer;background:none;border:none;font-family:inherit;font-weight:600;}

/* ---------- 13. Food art & photo layer (public/js/shared/art.js) ---------- */
[data-art]{position:relative;}
[data-art]>svg.foodart{width:100%;height:100%;}
.fa-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .4s;}
.fa-photo.loaded{opacity:1;}

/* ---------- 14. Breakpoints for the shared components ---------- */
@media(min-width:700px){
  .overlay.show{align-items:center;}
  .modal{border-radius:24px;}
}
@media(max-width:760px){
  .hide-mobile{display:none!important;}
  .icon-btn{display:grid;}
  :where(.tb-main) .topbar-inner{padding:11px 15px;gap:9px;}
  /* hours / vouchers keep their navigation on phones: one swipeable row under the logo */
  :where(.site-nav) .nav-in{flex-wrap:wrap;padding:11px 15px 0;row-gap:4px;}
  .site-nav .nav-links,.site-nav .hs-wrap{order:3;flex:1 1 100%;min-width:0;}
  .site-nav .nav-links{margin:0;padding:0 0 8px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
  .site-nav .nav-links::-webkit-scrollbar{display:none;}
  .site-nav .nav-links a{flex:none;white-space:nowrap;min-height:40px;display:inline-flex;align-items:center;}
  /* iOS zooms the page when a focused control is under 16px */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea{font-size:16px!important;}
  .foot-inner{grid-template-columns:1fr 1fr;gap:24px;}
  .foot-brand{grid-column:1/-1;}
}
@media(max-width:480px){
  .foot-inner{grid-template-columns:1fr;}
  .foot-bottom{flex-direction:column;text-align:center;}
}
/* Reduced motion: one global rule (spinners keep turning, slowly — they are status, not decoration) */
@media(prefers-reduced-motion:reduce){
  *:not(.btn-spin),*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}
}

/* ---------- 15. Accessibility & interaction polish (shared, not in the designs) ---------- */
/* Visible keyboard focus on every interactive element (mouse clicks stay clean). */
:where(a,button,summary,select,textarea,input[type="checkbox"],input[type="radio"],input[type="range"],[role="button"],[role="radio"],[role="switch"],[role="checkbox"],[role="tab"],[tabindex]):focus-visible{outline:2px solid var(--brand-strong);outline-offset:2px;}
:where(.site-footer,.foot-inner) :focus-visible{outline-color:var(--gold);}
/* Inline field validation (App.fieldError) */
.field-err{display:flex;align-items:flex-start;gap:6px;color:var(--danger);font-size:12.5px;font-weight:600;line-height:1.4;margin-top:6px;}
.field-err::before{content:"!";flex:none;width:16px;height:16px;border-radius:50%;background:var(--danger);color:#fff;font-size:11px;font-weight:600;display:grid;place-items:center;margin-top:1px;}
input[aria-invalid="true"],select[aria-invalid="true"],textarea[aria-invalid="true"]{border-color:var(--danger)!important;}
input[aria-invalid="true"]:focus,select[aria-invalid="true"]:focus,textarea[aria-invalid="true"]:focus{box-shadow:0 0 0 4px var(--danger-soft)!important;}
.field .hint{font-size:12px;color:var(--ink-3);margin-top:6px;line-height:1.45;}
.req{color:var(--brand-ink);font-weight:600;}
/* Busy buttons (App.busy / App.withBusy): spinner + no double submits */
.btn-spin{display:inline-block;width:1em;height:1em;flex:none;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;vertical-align:-.15em;margin-right:8px;animation:btnspin .7s linear infinite;}
.is-busy{cursor:progress!important;opacity:.85;}
@keyframes btnspin{to{transform:rotate(360deg);}}
button:disabled,.btn:disabled{cursor:not-allowed;}
/* Skeleton shimmer for loading lists */
.skel{background:linear-gradient(90deg,var(--placeholder) 25%,#fff 50%,var(--placeholder) 75%);background-size:200% 100%;animation:skel 1.2s ease-in-out infinite;border-radius:12px;}
@keyframes skel{to{background-position:-200% 0;}}
/* Touch targets ≥ 44px on phones (shared controls; pages size their own steppers/hearts/close buttons) */
@media(max-width:760px){
  .iconcircle,.back{width:44px;height:44px;}
  .fsoc{width:44px;height:44px;}
  .foot-col a{padding:10px 0;}
  .sheet .close-x{min-height:44px;padding:0 16px;}
  .check{min-height:44px;}
  .lang{min-height:44px;}
}
@media(prefers-reduced-motion:reduce){
  .btn-spin{animation-duration:1.6s;}
  .skel{animation:none;}
}

/* ── Horizontal scroll rows (public/js/shared/hscroll.js) ───────────────── */
.hs-wrap{position:relative;min-width:0;}
.hs-wrap::before,.hs-wrap::after{content:"";position:absolute;top:0;bottom:6px;width:42px;pointer-events:none;opacity:0;transition:opacity .2s ease;z-index:1;}
.hs-wrap::before{left:0;background:linear-gradient(90deg,var(--bg) 25%,transparent);}
.hs-wrap::after{right:0;background:linear-gradient(270deg,var(--bg) 25%,transparent);}
.hs-wrap.hs-can-left::before,.hs-wrap.hs-can-right::after{opacity:1;}
.hs-btn{position:absolute;top:50%;transform:translateY(calc(-50% - 3px));z-index:2;width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--ink);display:none;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px rgba(26,23,20,.12);transition:background .15s ease,box-shadow .15s ease;}
.hs-btn:hover{background:var(--bg);box-shadow:0 4px 14px rgba(26,23,20,.16);}
.hs-prev{left:4px;}.hs-next{right:4px;}
.hs-btn .ic{width:18px;height:18px;}
@media (hover:hover) and (pointer:fine){
  .hs-wrap.hs-can-left .hs-prev,.hs-wrap.hs-can-right .hs-next{display:inline-flex;}
  .hs-wrap [data-hscroll]{cursor:grab;}
  .hs-wrap.hs-dragging [data-hscroll]{cursor:grabbing;user-select:none;}
  .hs-wrap.hs-dragging [data-hscroll] *{pointer-events:none;}
}

@media(min-width:761px){.site-nav .hs-wrap{margin-left:24px;}.site-nav .hs-wrap .nav-links{margin-left:0;}}

/* ── Loading: skeleton cards / rows + small spinner line (instead of bare "Loading…") ── */
.skel-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;}
.skel-card .sk-ph{aspect-ratio:4/3;border-radius:0;}
.skel-card .sk-b{padding:18px 16px 16px;display:grid;gap:10px;}
.sk-l{height:12px;border-radius:7px;}
.sk-l.w40{width:40%;}.sk-l.w60{width:60%;}.sk-l.w90{width:90%;}
.skel-row{display:flex;gap:11px;align-items:center;padding:13px 19px;border-bottom:1px solid var(--line);}
.skel-row .skel{height:12px;border-radius:7px;flex:1;}
.skel-row .skel.sq{flex:none;width:24px;}
.skel-row .skel.pr{flex:none;width:52px;}
.loading-line{display:flex;align-items:center;justify-content:center;gap:9px;font-size:12.5px;color:var(--ink-3);padding:8px 0;grid-column:1/-1;}
.loading-line .btn-spin{margin:0;color:var(--brand-ink);}

/* Empty-state icons are always 24px inside their tile */
.es-ic svg,.noresult svg,.cart-empty svg,.ce-ic svg,.missing .si svg,.off-panel .si svg,.unavail .ui svg{width:24px;height:24px;}

/* inline arrow / chevron icons inside buttons and links (replace text arrows) */
.arr{display:inline-block;vertical-align:-3px;flex:none;}

/* Nothing in the ordering app is set smaller than 11px */

/* ---------- 16. Page band & journey cards (energetic pass: checkout, confirmation, tracking, orders, receipt,
   favourites, vouchers, hours). The menu page has its own larger story band in views/menu/menu.ejs. ---------- */
.pband{background:var(--charcoal);color:#fff;position:relative;overflow:hidden;padding:26px 0;}
.pband::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(60% 80% at 18% 15%,var(--brand-glow-lg),transparent 62%),radial-gradient(42% 60% at 92% 85%,rgba(255,179,0,.14),transparent 60%);}
.pb-in{position:relative;max-width:1180px;margin:0 auto;padding:0 18px;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap;}
.pb-in.narrow{max-width:760px;}
.pb-in.mid{max-width:900px;}
.pb-crumb{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:rgba(255,255,255,.68);margin-bottom:10px;}
.pb-crumb:hover{color:#fff;}
.pband h1{font-family:var(--font-display);font-weight:600;font-size:clamp(30px,3.6vw,44px);line-height:1;letter-spacing:-.02em;margin:0 0 8px;text-wrap:balance;}
.pband h1 span,.pband h1 em{color:var(--gold);font-style:italic;}
.pb-msg{font-size:14.5px;color:rgba(255,255,255,.8);font-weight:600;max-width:560px;line-height:1.45;}
.pb-msg b{color:#fff;}
.pb-msg em{font-style:normal;color:var(--gold);}
.pb-act{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.pb-big{display:flex;align-items:baseline;gap:8px;}
.pb-big b{font-family:var(--font-display);font-weight:600;font-size:56px;line-height:1;letter-spacing:-.02em;color:var(--gold);font-variant-numeric:tabular-nums;}
.pb-big span{font-size:13px;color:rgba(255,255,255,.72);font-weight:700;}
.pb-chip{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);padding:7px 13px;border-radius:30px;font-size:12.5px;font-weight:600;line-height:1.3;}
.pb-chip svg{color:var(--gold);flex:none;}
.pb-chip i{width:8px;height:8px;border-radius:50%;background:#35c46f;flex:none;animation:pbping 1.8s infinite;}
@keyframes pbping{0%{box-shadow:0 0 0 0 rgba(53,196,111,.55);}70%{box-shadow:0 0 0 8px rgba(53,196,111,0);}100%{box-shadow:0 0 0 0 rgba(53,196,111,0);}}
.pb-steps{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;color:rgba(255,255,255,.6);background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);padding:6px 12px 6px 6px;border-radius:30px;}
.pb-steps .s{display:flex;align-items:center;gap:7px;}
.pb-steps .n{width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.12);display:grid;place-items:center;font-family:var(--font-display);font-size:13px;}
.pb-steps .s.on{color:#fff;}
.pb-steps .s.on .n{background:var(--brand-strong);color:var(--btn-text);}
.pb-steps .s.done .n{background:var(--green);color:#fff;}
.pb-steps .bar{width:16px;height:2px;background:rgba(255,255,255,.18);border-radius:2px;}
.btn-glass{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.3);padding:10px 18px;}
.btn-glass:hover{background:rgba(255,255,255,.24);}
.btn-dark{background:var(--charcoal);color:#fff;padding:10px 18px;}
.btn-dark:hover{background:#000;transform:translateY(-1px);}
.btn-green{background:var(--green);color:#fff;padding:10px 18px;}
.btn-sm{padding:9px 14px;font-size:13px;}
.pband .btn:focus-visible,.pband a:focus-visible{outline:3px solid #fff;outline-offset:2px;}

.pcard{background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:var(--sh);padding:20px;margin-bottom:16px;}
.pcard h2{font-size:17px;font-weight:700;letter-spacing:-.02em;display:flex;align-items:center;gap:10px;margin:0;}
.pcard h2 .num{width:28px;height:28px;border-radius:9px;background:var(--charcoal);color:var(--gold);display:grid;place-items:center;font-family:var(--font-display);font-size:15px;font-weight:600;flex:none;}
.pcard .sub{font-size:12.5px;color:var(--ink-3);font-weight:600;margin:4px 0 16px 38px;}
.pcard h3{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);margin:0 0 14px;}
.kv{display:flex;justify-content:space-between;gap:12px;font-size:13.5px;color:var(--ink-2);font-weight:600;padding:5px 0;}
.kv>span:last-child{white-space:nowrap;font-variant-numeric:tabular-nums;}
.kv.disc{color:var(--green);}
.kv.tot{font-size:19px;font-weight:700;color:var(--ink);margin-top:8px;padding-top:12px;border-top:1px dashed var(--line);letter-spacing:-.02em;}
.kv.tot s{font-size:13px;color:var(--ink-3);font-weight:600;margin-right:7px;}
.kv.vat{font-size:11.5px;color:var(--ink-3);padding-top:0;}
.pill-st{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;padding:5px 10px;border-radius:30px;white-space:nowrap;}
.pill-st.prog{background:var(--blue-soft);color:var(--blue);}
.pill-st.done{background:var(--green-soft);color:var(--green);}
.pill-st.cancel{background:var(--danger-soft);color:var(--danger);}
.pill-st.amber{background:var(--amber-soft);color:var(--amber);}
.pill-st.lv i{width:7px;height:7px;border-radius:50%;background:currentColor;animation:pbping 1.6s infinite;}
@media(max-width:600px){
  .pband{padding:20px 0;}
  .pb-in{padding:0 13px;gap:16px;}
  .pb-big b{font-size:44px;}
  .pcard{padding:16px;border-radius:20px;}
}

/* ── Polish 29 Oct (customer pages): 44px tap targets on phones ── */
@media(max-width:860px){
  .foot-col a:not(.fsoc){display:flex;align-items:center;min-height:44px;}
  .foot-col .foot-site{display:inline-flex;min-height:44px;margin-top:4px;}
  .foot-social .fsoc{width:44px;height:44px;}
}

/* ── Live test 1b.1: tap targets of at least 40px on phones (padding, not bigger text) ── */
@media(max-width:860px){
  .crumb > a[href="/menu"],.pb-crumb{display:inline-flex;align-items:center;min-height:40px;padding:0 6px;margin-left:-6px;}
  .foot-site{min-height:44px;}
}

/* Design fixes 31 Oct — ordering & account (agent B) */
/* 18+ dishes: one neutral dark badge on the card, dish pop-up, basket line and checkout line (B3). */
/* One-line pill that shrinks to its text: short '18+ · ID check' in basket / checkout lines and on phone cards. */
.age-badge{display:inline-flex;align-items:center;flex:none;width:auto;max-width:none;background:var(--charcoal);color:#fff;font-size:11px;font-weight:700;letter-spacing:.01em;line-height:1.35;padding:3px 9px;border-radius:30px;text-transform:none;white-space:nowrap;}
.age-badge b{font-weight:800;}
.age-badge .ab-short{display:none;}
@media(max-width:600px){.age-badge .ab-long{display:none;}.age-badge .ab-short{display:inline;}}
/* One order-status pill on every customer page (S11): sentence case, amber "in progress" with a live dot. */
.pill-st{font-size:11px;font-weight:800;letter-spacing:.03em;padding:6px 11px;text-transform:none;}
.pill-st.prog{background:var(--amber-soft);color:var(--amber);}
.pill-st.prog i{width:7px;height:7px;border-radius:50%;background:var(--gold);flex:none;}
@media(prefers-reduced-motion:no-preference){.pill-st.prog i{animation:pbping 1.6s infinite;}}
/* Edge draws its own "show password" eye next to ours (S14): hide the browser's. */
input[type="password"]::-ms-reveal,input[type="password"]::-ms-clear{display:none;}

/* Several branches: the "Ordering from" pick in the header (views/partials/menu/topbar-main.ejs). */
.branch-pick{display:inline-flex;align-items:center;gap:6px;margin-left:10px;padding:4px 8px 4px 10px;border:1px solid var(--line,#e6e0d6);border-radius:30px;background:var(--surface,#fff);font-size:12.5px;font-weight:700;color:var(--ink-2,#5c554d);min-width:0;}
.branch-pick svg{flex:none;color:var(--brand);}
.branch-pick select{font:inherit;font-weight:800;color:var(--ink,#1a1714);background:transparent;border:none;padding:4px 2px;max-width:150px;cursor:pointer;}
.branch-pick select:focus{outline:2px solid var(--brand);outline-offset:2px;border-radius:6px;}
@media (max-width:640px){.branch-pick .bp-lbl{display:none;}.branch-pick{margin-left:6px;padding:3px 6px;}.branch-pick select{max-width:110px;font-size:12px;}}
