/* Customer ordering page. Phone first; on a desktop it stays a 640px column.
   Logical properties (inline-start/end) everywhere, so dir="rtl" mirrors the whole layout for Arabic. */
body { background: var(--bg); }
.page { max-width: var(--page); margin: 0 auto; padding-bottom: 120px; }
body.locked { overflow: hidden; }

/* Language strip: every language in its own script. */
.langbar { background: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 100vmax var(--brand); clip-path: inset(0 -100vmax); } /* full-bleed band, no overflow */
.langs { display: flex; gap: 2px; overflow-x: auto; padding: 0 var(--s-2); scrollbar-width: none; scroll-snap-type: x proximity; }
.langs::-webkit-scrollbar { display: none; }
.langs button {
  flex: none; min-height: 44px; padding: 0 var(--s-3); border: 0; background: none; color: inherit; opacity: .78;
  font: 600 var(--t-sm)/1 var(--font-body); white-space: nowrap; position: relative; scroll-snap-align: start;
}
.langs button[lang="ar"] { font-family: "Noto Sans Arabic", var(--font-body); font-size: 15px; }
.langs button:hover { opacity: 1; }
.langs button.on { opacity: 1; font-weight: 700; }
.langs button.on::after { content: ""; position: absolute; inset-inline: var(--s-3); bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--signal); }
.langs button:focus-visible { outline-color: var(--signal); outline-offset: -3px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) var(--s-4) 0; }
.who { position: relative; display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.who-link { position: absolute; inset: -6px; border-radius: var(--r-md); }
.who:has(.who-link:hover) .wordmark { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.logo { width: 52px; height: 52px; flex: none; object-fit: contain; }
.top h1 { margin: 0; font-size: 34px; line-height: 1; color: var(--ink); overflow-wrap: anywhere; }
.place { margin: 6px 0 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.35; }
.demo-badge { display: inline-block; margin-inline-start: 4px; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); font: 700 12px/1.4 var(--font-body); letter-spacing: .02em; vertical-align: 1px; }
.top .plate { border: 0; flex: none; }
.top .plate:not([disabled]):hover { background: var(--brand-deep); box-shadow: inset 0 0 0 2px rgba(255,255,255,.28), inset 0 0 0 4px var(--brand-deep); }
.top .plate[disabled] { cursor: default; opacity: 1; }
.plate .bag { display: grid; place-items: center; height: 34px; color: var(--signal-ink); }
.plate .bag svg { width: 28px; height: 28px; }
.intro { text-wrap: pretty; margin: var(--s-4) var(--s-4) 0; max-width: 34ch; font-size: var(--t-lg); line-height: 1.4; color: var(--ink); }

/* Closed or paused: a plain panel under the intro, the clock in berry. */
.notice { display: flex; gap: var(--s-3); align-items: flex-start; margin: var(--s-4) var(--s-4) 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--surface); }
.notice-ico { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; color: var(--brand); }
.notice b { display: block; font-size: var(--t-md); line-height: 1.35; }
.notice p { margin: 2px 0 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.45; }

/* Section tabs */
.tabs { position: sticky; top: 0; z-index: 5; background: var(--bg); margin-top: var(--s-5); box-shadow: 0 1px 0 var(--line); }
.tabs-in { display: flex; gap: var(--s-1); overflow-x: auto; padding: 0 var(--s-2); scrollbar-width: none; }
.tabs-in::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; min-height: var(--tap); padding: 0 var(--s-3); border: 0; background: none; color: var(--ink-2);
  font-weight: 600; font-size: var(--t-sm); position: relative; white-space: nowrap;
}
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); }
.tabs button.on::after { content: ""; position: absolute; inset-inline: var(--s-3); bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }

/* Menu */
.menu { padding: 0 var(--s-4); }
.loading, .fail { padding: var(--s-10) 0; color: var(--ink-2); }
.fail b { display: block; color: var(--ink); font-size: var(--t-lg); margin-bottom: var(--s-1); }
.cat { scroll-margin-top: 56px; }
.cat h2 { margin: var(--s-10) 0 0; padding: 0; color: var(--ink); font-size: var(--t-3xl); line-height: 1; } /* tall condensed capitals, like the logo */
.cat:nth-child(3n+1) h2::after, .cat:nth-child(3n+2) h2::after, .cat:nth-child(3n) h2::after { content: ""; display: block; width: 40px; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--yo-pink); }
.cat:nth-child(3n+2) h2::after { background: var(--gel-blue); }
.cat:nth-child(3n) h2::after { background: var(--o-yellow); }
:lang(ar) .cat h2, :lang(zh-Hans) .cat h2, :lang(hi) .cat h2, :lang(ko) .cat h2 { font-size: var(--t-xl); line-height: 1.3; padding-block: 9px; }
.cat-note { padding-inline: 2px; }
.cat-note { margin: var(--s-1) 0 0; color: var(--ink-2); font-size: var(--t-sm); }
.items { list-style: none; margin: var(--s-2) 0 0; padding: 0; }
.items li + li { border-top: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 1fr 104px; gap: var(--s-4); padding: var(--s-4) 0; }
.row-open { position: absolute; inset: 0; z-index: 1; width: 100%; border: 0; background: none; border-radius: var(--r-md); }
.row-text { min-width: 0; }
.row-text h3 { margin: 0; font-size: var(--t-md); font-weight: 700; line-height: 1.3; }
/* Dish names in Latin script: League Spartan capitals, as on their breakfast menu. */
:lang(en-AU) .row-text h3 { font: 800 var(--t-lg)/1.25 var(--font-body); }
.row-text h3 .en { text-transform: none; letter-spacing: .01em; }
[dir="rtl"] .en { text-align: right; }
.en { display: block; margin-top: 1px; font: 600 var(--t-sm)/1.3 var(--font-body); color: var(--ink-3); letter-spacing: .01em; }
.row-text p { margin: 4px 0 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-price { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-2); margin-top: var(--s-2); font-weight: 700; }
.tag { padding: 0 6px; border-radius: 4px; font-size: 13px; font-weight: 700; line-height: 18px; color: var(--ok); box-shadow: inset 0 0 0 1px currentColor; }
.in-order { color: var(--signal-text); font-size: var(--t-sm); font-weight: 700; }
.art { position: relative; width: 104px; height: 104px; border-radius: var(--r-lg); background: var(--surface); display: grid; place-items: center; overflow: visible; }
.art svg { width: 86%; height: 86%; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); background: var(--surface); }
.add {
  position: absolute; inset-inline-end: -6px; bottom: -6px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--bg); background: var(--brand); color: var(--brand-ink); display: grid; place-items: center;
}
.add:hover { background: var(--brand-deep); }
.add svg { width: 20px; height: 20px; }
.row.sold .row-text h3, .row.sold .row-text p, .row.sold .art { opacity: .5; }
.row .so { padding: 2px 9px; border-radius: 5px; background: var(--ink); color: #fff; font: 700 var(--t-xs)/1.5 var(--font-body); }
.row-open:hover ~ .row-text h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.foot { padding: var(--s-10) var(--s-4) 0; color: var(--ink-2); font-size: var(--t-sm); }
.foot p { margin: 0 0 var(--s-2); }
a.maps { white-space: nowrap; }
.foot a, .d-where a { color: var(--brand); font-weight: 700; text-underline-offset: 3px; }

/* Sticky order bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: var(--shadow-bar); }
.bar-btn {
  display: flex; align-items: center; gap: var(--s-3); width: 100%; max-width: calc(var(--page) - 32px); margin: 0 auto;
  min-height: 56px; padding: 0 var(--s-4); border: 0; border-radius: var(--r-md); background: var(--brand); color: var(--brand-ink); font-weight: 700;
}
.bar-btn:hover { background: var(--brand-deep); }
.count { min-width: 28px; height: 28px; padding: 0 6px; border-radius: 6px; background: var(--signal); color: var(--signal-ink); display: grid; place-items: center; font: 400 16px/1 var(--font-display); }
.count.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }
.bar-label { flex: 1; text-align: start; font-size: var(--t-md); }
.bar-total { font-size: var(--t-md); }

/* Sheets */
.scrim { position: fixed; inset: 0; z-index: 20; background: rgba(11, 20, 30, .5); opacity: 0; transition: opacity .2s; }
.scrim.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-width: var(--page); margin: 0 auto;
  max-height: calc(100dvh - 24px); display: flex; flex-direction: column;
  background: var(--bg); border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: var(--shadow-sheet);
  transform: translateY(100%); transition: transform .28s var(--ease);
}
.sheet.show { transform: none; }
.sheet-scroll { position: relative; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; }
.sheet-body { padding: var(--s-5) var(--s-4) var(--s-4); }
.sheet-foot { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--line); }
.sheet-foot.col { flex-direction: column; align-items: stretch; }
.x { position: absolute; top: var(--s-3); inset-inline-end: var(--s-3); z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.x:hover { background: var(--surface); }

.item-art { height: 220px; background: var(--surface); display: grid; place-items: center; border-radius: var(--r-sheet) var(--r-sheet) 0 0; }
.item-art svg { width: 200px; height: 200px; }
.item-art { position: relative; overflow: hidden; }
.item-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sheet) var(--r-sheet) 0 0; }
.item-name { margin: 0; font-size: 34px; line-height: 1; color: var(--brand); }
:lang(ar) .item-name, :lang(zh-Hans) .item-name, :lang(hi) .item-name, :lang(ko) .item-name { font-size: var(--t-2xl); line-height: 1.25; }
.item-name .en { margin-top: 6px; font-size: var(--t-sm); }
.item-desc { margin: var(--s-2) 0 0; color: var(--ink-2); }
.item-desc:empty { display: none; }
.item-base { margin: var(--s-2) 0 0; font-weight: 700; }

.group { margin: var(--s-6) 0 0; padding: 0; border: 0; min-width: 0; }
.group legend { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); width: 100%; padding: 0; font-weight: 700; font-size: var(--t-lg); }
.group legend span { font-weight: 600; font-size: var(--t-sm); color: var(--ink-2); text-align: end; }
.group.missing legend span { color: var(--danger); }
.group.missing .choices { box-shadow: 0 0 0 2px var(--danger); border-radius: var(--r-md); }
.choices { margin-top: var(--s-2); }
.choice { display: flex; align-items: center; gap: var(--s-3); min-height: 52px; padding: 0 var(--s-1); border-bottom: 1px solid var(--line); cursor: pointer; }
.choice:last-child { border-bottom: 0; }
.choice:has(input:disabled) { color: var(--ink-3); cursor: default; }
.choice input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 2px solid var(--ink-3); border-radius: 50%; display: grid; place-items: center; background: var(--bg); }
.choice input[type=checkbox] { border-radius: 5px; }
.choice input:disabled { border-color: var(--line); }
.choice input:checked { border-color: var(--brand); background: var(--brand); }
.choice input:checked::after { content: ""; width: 10px; height: 6px; border: solid var(--brand-ink); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.choice input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice span { flex: 1; }
.choice.gone span { text-decoration: line-through; text-decoration-thickness: 1px; }
.choice em { font-style: normal; color: var(--ink-2); font-size: var(--t-sm); }

.note-label { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-6); font-weight: 700; font-size: var(--t-lg); }
.note-label span { font-weight: 600; font-size: var(--t-sm); color: var(--ink-2); align-self: baseline; }
.note-hint { margin: 2px 0 0; color: var(--ink-2); font-size: var(--t-sm); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.chip { min-height: 44px; padding: 0 var(--s-4); border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); font-size: var(--t-sm); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.chip[aria-pressed="true"]::before { content: ""; display: inline-block; width: 9px; height: 5px; margin-inline-end: 8px; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateY(-3px) rotate(-45deg); }
.note { display: block; width: 100%; margin-top: var(--s-3); padding: var(--s-3); border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--bg); resize: vertical; min-height: 56px; font-size: var(--t-md); }
.note:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }

/* Quantity stepper, the Menumiz pattern: an outlined − (a bin at 1 in the order), the number, a filled +. */
.stepper { display: flex; align-items: center; flex: none; gap: 2px; }
.stepper button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.stepper button svg { width: 20px; height: 20px; }
.stepper button:hover { background: var(--surface); }
.stepper button:last-child { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.stepper button:last-child:hover { background: var(--brand-deep); }
.stepper button[disabled], .stepper button[disabled]:hover { background: var(--bg); color: var(--ink-3); box-shadow: inset 0 0 0 1.5px var(--line); opacity: .55; cursor: default; }
.stepper button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.stepper output { min-width: 32px; padding-top: .15em; text-align: center; font: 400 var(--t-lg)/1 var(--font-display); } /* League Spartan sits high in its box */
.btn.grow { flex: 1; min-height: 52px; justify-content: space-between; }

/* Cart */
.cart-title { margin: 0; font-size: 34px; padding-inline-end: 48px; line-height: 1; color: var(--brand); }
:lang(ar) .cart-title, :lang(zh-Hans) .cart-title, :lang(hi) .cart-title, :lang(ko) .cart-title { font-size: var(--t-2xl); line-height: 1.25; }
.cart-table { margin: var(--s-1) 0 0; color: var(--ink-2); }
.lines { list-style: none; margin: var(--s-4) 0 0; padding: 0; }
/* A cart line, laid out like Menumiz's: photo, name and stepper on one row; the choices under the name; Edit and the line price at the foot. */
.cline { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "art name step" ". more more" "foot foot foot"; column-gap: var(--s-3); align-items: center; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.cl-art { grid-area: art; position: relative; width: 56px; height: 56px; border-radius: var(--r-md); background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.cl-art svg { width: 92%; height: 92%; }
.cl-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cl-name { grid-area: name; margin: 0; font: 700 var(--t-md)/1.3 var(--font-body); overflow-wrap: anywhere; }
.cl-name .en { font-weight: 600; }
:lang(ko) .cl-name { word-break: keep-all; }
.cline .stepper { grid-area: step; }
.cline .stepper button { width: 44px; height: 44px; }
.cline .stepper output { min-width: 30px; }
.cl-more { grid-area: more; min-width: 0; }
.cl-more:empty { display: none; }
.cl-more p { margin: 4px 0 0; font-size: var(--t-sm); line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.cl-more span { color: var(--ink-3); font-weight: 600; }
.cl-more p.soldtag { color: var(--danger); font-weight: 700; }
.cl-foot { grid-area: foot; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-top: var(--s-3); }
.edit-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s-4) 0 var(--s-3); border: 0; border-radius: 22px; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); font-size: var(--t-sm); font-weight: 700; }
.edit-pill svg { width: 16px; height: 16px; flex: none; }
.edit-pill:hover { background: var(--surface); }
.edit-pill:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.line-price { font: 400 var(--t-lg)/1 var(--font-display); }
.cline.bad .cl-name, .cline.bad .line-price { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.cline.bad .cl-art { opacity: .5; }
@media (max-width: 360px) {
  .cline { grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 10px; }
  .cl-art { width: 44px; height: 44px; }
  .cline .stepper button { width: 40px; height: 40px; }
  .cline .stepper output { min-width: 26px; }
}
.sum { display: flex; justify-content: space-between; align-items: baseline; padding: var(--s-4) 0 0; font-size: var(--t-lg); }
.sum b { font: 400 var(--t-2xl) var(--font-display); }
.empty { padding: var(--s-6) 0; color: var(--ink-2); }
.err { margin: var(--s-3) 0 0; padding: var(--s-3); border-radius: var(--r-md); background: #fbeceb; color: var(--danger); font-weight: 600; font-size: var(--t-sm); }
.pay-note { margin: var(--s-2) 0 0; text-align: center; font-size: var(--t-sm); color: var(--ink-2); }

/* Takeaway: name and pickup time */
section.pickup { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 2px solid var(--ink); }
.pickup h3 { margin: 0; font-size: var(--t-2xl); line-height: 1; color: var(--brand); }
:lang(ar) .pickup h3, :lang(zh-Hans) .pickup h3, :lang(hi) .pickup h3, :lang(ko) .pickup h3 { font-size: var(--t-xl); line-height: 1.3; }
.pu-where { margin: var(--s-2) 0 0; color: var(--ink); font-weight: 600; }
.pu-where span { color: var(--ink-2); font-weight: 400; font-size: var(--t-sm); }
.pu-label { display: block; margin-top: var(--s-5); font-weight: 700; font-size: var(--t-lg); }
.pu-input { display: block; width: 100%; min-height: 52px; margin-top: var(--s-2); padding: 0 var(--s-3); border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--bg); font-size: 17px; }
.pu-input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.pu-input.bad { border-color: var(--danger); }
.pu-hint { margin: var(--s-1) 0 0; color: var(--ink-2); font-size: var(--t-sm); }
.pu-err { margin: var(--s-1) 0 0; color: var(--danger); font-weight: 700; font-size: var(--t-sm); }
.pu-when { margin: var(--s-5) 0 0; padding: 0; border: 0; min-width: 0; }
.pu-when legend { padding: 0; font-weight: 700; font-size: var(--t-lg); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); margin-top: var(--s-2); }
.slot { position: relative; display: grid; place-items: center; min-height: 52px; padding: var(--s-2); border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; text-align: center; }
.slot.asap { grid-column: 1 / -1; justify-items: start; text-align: start; padding-inline: var(--s-4); }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot b { font-weight: 700; }
.slot small { display: block; color: var(--ink-2); font-size: var(--t-sm); font-weight: 400; }
.slot:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.slot:has(input:checked) { box-shadow: inset 0 0 0 2px var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--bg)); }
.slot:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Demo pay step */
.pay-to { margin: 0; color: var(--ink-2); padding-inline-end: 48px; }
.pay-amount { margin: var(--s-1) 0 0; font: 400 56px/1 var(--font-display); color: var(--brand); }
.methods { margin: var(--s-6) 0 0; padding: 0; border: 0; }
.methods legend { padding: 0; font-weight: 700; font-size: var(--t-lg); margin-bottom: var(--s-2); }
.method { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: 0 var(--s-4); margin-top: var(--s-2); border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-weight: 600; }
.method:has(input:checked) { box-shadow: inset 0 0 0 2px var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--bg)); }
.method input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border: 2px solid var(--ink-3); border-radius: 50%; display: grid; place-items: center; }
.method input:checked { border-color: var(--brand); }
.method input:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }

/* Table picker */
.table-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); margin-top: var(--s-5); }
.table-grid button { min-height: 60px; border: 0; border-radius: var(--r-md); background: var(--surface); font: 400 var(--t-2xl)/1 var(--font-display); }
.table-grid button:hover { background: var(--surface-2); }
.table-grid button.on { background: var(--brand); color: var(--signal); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 30; transform: translate(-50%, 12px); width: max-content; max-width: calc(100vw - 32px); text-align: center; margin: 0; padding: 10px 16px; border-radius: var(--r-md); background: var(--ink); color: #fff; font-weight: 600; font-size: var(--t-sm); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.act { display: flex; align-items: center; gap: var(--s-3); padding: 4px 4px 4px var(--s-4); text-align: start; }
.toast.act.show { pointer-events: auto; }
.toast button { flex: none; min-height: 44px; padding: 0 var(--s-4); border: 0; border-radius: var(--r-sm); background: none; color: var(--signal); font: 800 var(--t-sm)/1 var(--font-body); }
.toast button:hover { background: rgba(255, 255, 255, .1); }
.toast button:focus-visible { outline: 3px solid var(--signal); outline-offset: -3px; }

/* Confirmation: a kitchen docket */
.done { max-width: 480px; margin: 0 auto; padding: var(--s-6) var(--s-4) var(--s-12); }
.docket {
  position: relative; background: var(--bg); padding: var(--s-5) var(--s-5) var(--s-8);
  border-radius: var(--r-md) var(--r-md) 0 0;
  --zig: 10px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zig)) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zig)) 100%;
}
.done-wrap { filter: drop-shadow(0 8px 18px rgba(18,28,38,.12)) drop-shadow(0 1px 2px rgba(18,28,38,.08)); }
.d-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); }
.d-head .cafe { font: 400 var(--t-xl)/1.1 var(--font-wordmark); font-synthesis: none; text-transform: uppercase; letter-spacing: .03em; color: var(--brand); margin: 0; }
.d-head .when { margin: 4px 0 0; color: var(--ink-2); font-size: var(--t-sm); }
.d-num { text-align: end; }
.d-num small { display: block; color: var(--ink-2); font-size: var(--t-sm); }
.d-num b { font: 400 40px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.d-status { display: flex; align-items: center; gap: var(--s-4); margin: var(--s-5) 0 0; padding: var(--s-4) 0; border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); }
.d-status h2 { margin: 0; font-size: var(--t-2xl); line-height: 1.05; }
:lang(ar) .d-status h2, :lang(zh-Hans) .d-status h2, :lang(hi) .d-status h2, :lang(ko) .d-status h2 { font-size: var(--t-xl); line-height: 1.3; }
.d-status p { margin: var(--s-1) 0 0; color: var(--ink-2); }
.plate.pickup b { font-size: 40px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin: var(--s-4) 0 0; padding: 0; list-style: none; font-size: var(--t-xs); font-weight: 600; color: var(--ink-3); }
.steps li { padding-top: var(--s-2); border-top: 4px solid var(--surface-2); }
.steps li.on { color: var(--ink); border-top-color: var(--brand); }
.d-lines { list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.d-lines li { display: grid; grid-template-columns: 30px 1fr auto; gap: var(--s-2); padding: var(--s-2) 0; }
.d-lines .q { font-weight: 700; }
.d-lines p { margin: 1px 0 0; font-size: var(--t-sm); color: var(--ink-2); overflow-wrap: anywhere; }
.d-total { display: flex; justify-content: space-between; margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--ink); font-weight: 700; font-size: var(--t-lg); }
.d-where { margin: var(--s-4) 0 0; font-size: var(--t-sm); color: var(--ink); }
.d-foot { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--t-sm); }
.done-actions { margin-top: var(--s-6); display: grid; gap: var(--s-3); }
.done .waiting { text-align: center; padding: var(--s-12) 0; color: var(--ink-2); }
.done .waiting .spinner { margin: 0 auto var(--s-3); color: var(--brand); width: 28px; height: 28px; }

@media (min-width: 700px) {
  .langs { justify-content: center; }
  .top { padding-top: var(--s-10); }
  .top h1 { font-size: 56px; }
  .row { grid-template-columns: 1fr 128px; }
  .art { width: 128px; height: 128px; }
  .sheet { bottom: 50%; border-radius: var(--r-sheet); transform: translateY(calc(50% + 40px)); opacity: 0; transition: transform .25s var(--ease), opacity .2s; max-height: min(86dvh, 820px); max-width: 520px; }
  .sheet.show { transform: translateY(50%); opacity: 1; }
  .sheet-foot { border-radius: 0 0 var(--r-sheet) var(--r-sheet); }
}

/* Yogelo: one language for now, so no language strip. The menu header carries the cup mark and the name in League Gothic. */
.langbar:has(.langs:empty), .langbar.solo { display: none; }
.top .wordmark { font-size: 34px; }
.row-price { font-size: var(--t-md); }
.row .tag { background: var(--pink-soft); color: var(--ink); }
@media (min-width: 900px) { .tabs-in { flex-wrap: wrap; overflow: visible; } }
