/* IKAROS POS — customer ordering pages. Phone first, plain CSS, no build step. */
:root {
    --bg: #faf8f5;
    --card: #ffffff;
    --ink: #1c1917;
    --muted: #6b6560; /* 5.4:1 on the page background (WCAG AA) */
    --line: #ece7e1;
    --accent: #c2410c;
    --accent-ink: #ffffff;
    --accent-soft: #fff1e8;
    --ok: #15803d;
    --ok-soft: #dcfce7;
    --danger: #b91c1c;
    --danger-soft: #fee2e2;
    --radius: 14px;
    --wrap: 720px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
    padding-bottom: env(safe-area-inset-bottom);
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.hero { background: var(--ink); color: #fff; padding: 22px 0 18px; }
.hero .top { display: flex; align-items: flex-start; gap: 12px; }
.store-logo { height: 44px; width: auto; max-width: 120px; object-fit: contain; border-radius: 8px; background: #fff; padding: 3px; }
.hero h1 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; flex: 1; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .hero .top { flex-wrap: wrap; } .hero .top .store-logo { max-width: 110px; height: 40px; } .hero h1 { flex-basis: 100%; order: 3; } }
.hero .meta { margin-top: 6px; color: #d6d3d1; font-size: 14px; }
.hero .meta a { color: #fff; }
.lang { display: flex; border: 1px solid #44403c; border-radius: 999px; overflow: hidden; font-size: 13px; }
.lang a { padding: 4px 10px; text-decoration: none; color: #d6d3d1; }
.lang a.on { background: #fff; color: var(--ink); font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.open { background: rgba(34,197,94,.15); color: #86efac; }
.status.table { background: rgba(255,255,255,.12); color: #fff; margin-right: 6px; }
.status.table::before { display: none; }
.status.closed { background: rgba(239,68,68,.18); color: #fca5a5; }
.status.menu { background: rgba(255,255,255,.12); color: #fff; }
.status.menu::before { display: none; }
[x-cloak] { display: none !important; }
.notice { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius); background: var(--accent-soft); color: #7c2d12; font-size: 15px; }

/* ---------- category chips ---------- */
.chips { position: sticky; top: 0; z-index: 20; background: rgba(250,248,245,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.chips .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.chips .wrap::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.chips a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-search { flex: none; width: 44px; height: 36px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.search-row { display: flex; gap: 10px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.search-row input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); outline: none; font-size: 16px; }
.search-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-row button { flex: none; color: var(--accent); font-weight: 700; font-size: 15px; }

/* ---------- menu ---------- */
.section { padding-top: 22px; }
.section h2 { margin: 0 0 10px; font-size: 19px; letter-spacing: -.01em; }
.items { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item { display: flex; gap: 12px; align-items: center; width: 100%; padding: 14px; text-align: left; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item:active { background: #f5f5f4; }
.item .info { flex: 1; min-width: 0; }
.item .name { font-weight: 650; }
.item .desc { color: var(--muted); font-size: 14px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .price { margin-top: 4px; font-weight: 700; }
.item .hint { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 6px; }
.item .pic { position: relative; flex: none; width: 92px; height: 92px; }
.item .pic img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; display: block; }
.item .pic .plus { position: absolute; right: -6px; bottom: -6px; box-shadow: 0 2px 8px rgba(0,0,0,.15); background: var(--card); }
.item .plus { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 22px; font-weight: 700; transition: transform .12s; }
.item .plus.has { background: var(--accent); color: var(--accent-ink); font-size: 16px; }
.item:active .plus { transform: scale(.92); }

/* ---------- basket bar ---------- */
.spacer { height: 110px; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); }
.bar .btn { max-width: var(--wrap); margin: 0 auto; }
.btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    min-height: 54px; padding: 0 18px; border-radius: var(--radius); font-weight: 700;
    background: var(--card); border: 1px solid var(--line);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px rgb(0 0 0 / .18); }
.btn.primary .count { background: rgba(255,255,255,.22); border-radius: 999px; padding: 1px 9px; font-size: 14px; }
.btn.primary .sum { margin-left: auto; }
.sheet footer .btn.primary { justify-content: space-between; }
.btn[disabled] { opacity: .5; pointer-events: none; box-shadow: none; }
.btn.link { border: 0; background: none; min-height: 44px; color: var(--muted); font-weight: 600; }

/* ---------- sheets (extras, basket) ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(28,25,23,.5); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: var(--wrap); max-height: 92vh; display: flex; flex-direction: column; background: var(--card); border-radius: 20px 20px 0 0; overflow: hidden; }
@media (min-width: 760px) { .sheet-bg { align-items: center; } .sheet { border-radius: 20px; max-height: 86vh; } }
.sheet-pic { width: 100%; height: 200px; object-fit: cover; display: block; flex: none; }
.sheet header { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
.sheet header h3 { margin: 0; font-size: 19px; flex: 1; }
.sheet header .sub { color: var(--muted); font-size: 14px; font-weight: 400; margin-top: 2px; }
.sheet .x { width: 44px; height: 44px; border-radius: 50%; background: #f5f5f4; font-size: 18px; }
.sheet .body { padding: 6px 18px 18px; overflow-y: auto; }
.sheet footer { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.group { padding-top: 14px; }
.group .title { display: flex; align-items: baseline; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.group .rule { font-size: 12px; font-weight: 600; color: var(--muted); background: #f5f5f4; padding: 2px 8px; border-radius: 999px; }
.group .rule.req { color: var(--accent); background: var(--accent-soft); }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 2px; border-top: 1px solid var(--line); text-align: left; }
.choice .mark { width: 22px; height: 22px; flex: none; border: 2px solid #d6d3d1; border-radius: 6px; display: grid; place-items: center; }
.choice.radio .mark { border-radius: 50%; }
.choice.on .mark { border-color: var(--accent); background: var(--accent); }
.choice.on .mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.choice .label { flex: 1; }
.choice .delta { color: var(--muted); font-size: 14px; }
.stepper { display: flex; align-items: center; gap: 4px; background: #f5f5f4; border-radius: 999px; padding: 4px; flex: none; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; background: var(--card); font-size: 20px; font-weight: 700; }
.stepper span { min-width: 26px; text-align: center; font-weight: 700; }
.stepper.sm button { width: 36px; height: 36px; font-size: 17px; }
.field { display: block; margin-top: 14px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 70px; resize: vertical; }
.field .err { color: var(--danger); font-size: 13px; margin-top: 4px; }
.alert { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-weight: 600; font-size: 15px; }

/* ---------- basket lines ---------- */
.line { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; }
.line .info { flex: 1; min-width: 0; }
.line .name { font-weight: 650; }
.line .mods { color: var(--muted); font-size: 14px; }
.line .amount { font-weight: 700; white-space: nowrap; }
.totals { padding-top: 10px; border-top: 1px solid var(--line); }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.totals .grand { color: var(--ink); font-weight: 800; font-size: 19px; padding-top: 8px; }

/* ---------- checkout ---------- */
.page-head { display: flex; align-items: center; gap: 10px; padding: 16px 0 4px; }
.page-head h2 { margin: 0; font-size: 22px; }
.back { width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); font-size: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 14px; }
.card h3 { margin: 0 0 4px; font-size: 16px; }
.segment { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: #f5f5f4; border-radius: 12px; padding: 4px; }
.segment button { min-height: 46px; border-radius: 9px; font-weight: 700; color: var(--muted); }
.segment button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.segment small { display: block; font-weight: 500; font-size: 12px; }
.pay-note { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ---------- tracking ---------- */
.track-head { text-align: center; padding: 28px 0 8px; }
.track-head .num { font-size: 15px; color: var(--muted); font-weight: 600; }
.track-head h2 { margin: 6px 0 4px; font-size: 26px; letter-spacing: -.01em; }
.track-head .when { font-size: 17px; }
.track-head .when b { font-size: 22px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 18px 0 6px; }
.steps div { text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.steps div::before { content: ""; display: block; height: 6px; border-radius: 999px; background: var(--line); margin-bottom: 8px; }
.steps div.done { color: var(--ink); }
.steps div.done::before { background: var(--ok); }
.steps div.now::before { background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.big-state { margin: 18px auto 0; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; }
.big-state.ok { background: var(--ok-soft); color: var(--ok); }
.big-state.wait { background: var(--accent-soft); color: var(--accent); }
.big-state.bad { background: var(--danger-soft); color: var(--danger); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.kv span:first-child { color: var(--muted); }

/* ---------- toast & footer ---------- */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 50; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.2); white-space: nowrap; }
.powered { text-align: center; color: #a8a29e; font-size: 12px; padding: 28px 0 140px; }
.powered a { color: inherit; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Table booking (/book/...) */
.muted { color: var(--muted); }
.day-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.day-chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip.on, .slot.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.party-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.party-row .hint { color: var(--muted); font-size: 13px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot { padding: 11px 0; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-variant-numeric: tabular-nums; }
.slot[disabled] { opacity: .35; text-decoration: line-through; }
.booking-card { margin-top: 18px; padding: 0 14px; }
.big-state:not(.ok):not(.wait):not(.bad) { background: #f5f5f4; color: var(--muted); }
.book-btn { flex-direction: column; gap: 2px; padding: 8px 18px; }
.book-btn .sum { margin: 0; font-size: 13px; font-weight: 600; opacity: .85; }

/* ---------- checkout (how → where → who → pay) ---------- */
.checkout .card h3 { margin-bottom: 10px; }
.summary summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.summary summary::-webkit-details-marker { display: none; }
.summary[open] summary { margin-bottom: 6px; }
.btn.link.mini { min-height: 0; padding: 4px 0; font-size: 14px; width: auto; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); text-align: left; min-height: 86px; }
.tile .ico { font-size: 24px; line-height: 1; margin-bottom: 4px; }
.tile b { font-size: 15px; }
.tile small { color: var(--muted); font-size: 12.5px; }
.tile.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.tile.locked { cursor: default; }
.hint-box { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: #eff6ff; color: #1e3a8a; font-size: 14px; line-height: 1.5; }
.addr-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.addr-choices .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.addr-choices .chip[disabled] { opacity: .6; }
.addr-field { position: relative; }
.suggest { position: absolute; z-index: 25; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.14); max-height: 260px; overflow-y: auto; }
.suggest button { display: block; width: 100%; text-align: left; padding: 11px 12px; border-radius: 9px; font-size: 15px; }
.suggest button:hover, .suggest button:focus { background: var(--accent-soft); outline: none; }
.addr-map-wrap { margin-top: 12px; }
.addr-map { height: 210px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.addr-map-wrap small { display: block; margin-top: 6px; font-size: 13px; }
.zone { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; background: #f5f5f4; color: var(--muted); }
.zone.ok { background: var(--ok-soft); color: var(--ok); }
.zone.bad { background: var(--danger-soft); color: var(--danger); }
.err { color: var(--danger); font-size: 13px; margin-top: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.toggles { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.toggles .btn.link { color: var(--accent); }
.totals-card .totals { border-top: 0; padding-top: 0; }
.paybar .btn { justify-content: space-between; }
.tile.hinting { border-style: dashed; }
.tile.hinting.open { border-color: #1e3a8a; background: #eff6ff; }
.field select.select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font: inherit; color: inherit; }
.paybar .btn .sum { white-space: nowrap; }

/* ---------- header call button, account card ---------- */
.name-row { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.name-row h1 { flex: 1; }
@media (max-width: 480px) { .hero .top .name-row { flex-basis: 100%; order: 3; } }
.call-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #22c55e; color: #fff; text-decoration: none; box-shadow: 0 4px 14px rgba(34,197,94,.35); }
.call-btn:active { transform: scale(.94); }
.account-hint { display: flex; align-items: center; gap: 12px; margin: 6px 0 4px; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.account-hint .ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); font-size: 18px; }
.account-hint .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.account-hint .txt b { font-size: 15px; }
.account-hint .txt small { color: var(--muted); font-size: 13px; }
.account-hint .pill { flex: none; padding: 9px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; }
.account-hint.in { background: var(--ok-soft); border-color: transparent; }
.account-hint.in .ico { color: var(--ok); font-weight: 800; }
.hero .name-row h1 { order: 0; flex-basis: auto; }
/* Store's banner (photo and/or short text, optional link), above the menu */
.promo { display: block; position: relative; margin: 14px auto 0; max-width: var(--wrap); padding: 0 16px; text-decoration: none; color: #fff; }
.promo .in { position: relative; overflow: hidden; border-radius: 18px; background: var(--accent); min-height: 64px; display: flex; align-items: flex-end; }
.promo img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; display: block; }
.promo .txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; font-weight: 800; font-size: 17px; line-height: 1.3; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); }
.promo .in.text-only .txt { position: static; background: none; padding: 16px; }
.promo .go { margin-left: 6px; opacity: .85; }

/* ---------- offers ---------- */
.offers-strip .wrap { display: flex; gap: 10px; overflow-x: auto; padding-top: 14px; padding-bottom: 2px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.offers-strip .wrap::-webkit-scrollbar { display: none; }
.offer-card { flex: 0 0 auto; width: min(78vw, 300px); scroll-snap-align: start; display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, var(--accent-soft), #fff); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.offer-card .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: var(--card); }
.offer-card img { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.offer-card b { display: block; font-size: 15px; line-height: 1.25; }
.offer-card small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.35; }
.totals .saving { color: var(--ok); font-weight: 600; }
.btn .was { opacity: .65; font-weight: 500; margin-right: 4px; }
.save-tag { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 12.5px; font-weight: 700; }

/* Store cover photo behind the header, darkened so text stays readable */
.hero.has-cover { background: linear-gradient(180deg, rgba(12,10,9,.45) 0%, rgba(12,10,9,.7) 60%, rgba(12,10,9,.88) 100%), var(--cover) center / cover no-repeat, var(--ink); padding: 26px 0 22px; }
.hero.has-cover h1, .hero.has-cover .meta { text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero.has-cover .meta { color: #f5f5f4; }

/* Sold out (marked by staff on the POS): still listed, greyed, cannot be added. */
.item.sold-out { cursor: default; }
.item.sold-out .name, .item.sold-out .desc, .item.sold-out .pic img { opacity: .5; }
.item.sold-out .price { color: var(--muted); }
.sold-tag { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: #f5f5f4; color: #57534e; font-size: 12.5px; font-weight: 700; vertical-align: 1px; }

/* Header: round logo, share, store info (address, hours, links, Wi-Fi), take away / delivery switch */
.hero .store-logo { width: 60px; height: 60px; max-width: none; border-radius: 50%; object-fit: contain; padding: 6px; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 6px 18px rgba(0,0,0,.35); flex: none; }
@media (max-width: 480px) { .hero .top .store-logo { width: 54px; height: 54px; max-width: none; } }
.share-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.share-btn:active { transform: scale(.94); }
.store-info { margin-top: 10px; display: grid; gap: 6px; font-size: 14px; color: #e7e5e4; }
.hero.has-cover .store-info { color: #fafaf9; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.si-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.si-link { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,.6); }
.si-open { color: #86efac; font-weight: 700; }
.si-open.soon { color: #fcd34d; }
.si-closed { color: #fca5a5; font-weight: 700; }
.si-icons { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.si-icon { height: 40px; min-width: 40px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #fff; text-decoration: none; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); font-size: 13px; font-weight: 700; text-shadow: none; }
.si-wifi { position: absolute; top: 42px; left: 0; z-index: 20; min-width: 240px; display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 12px 30px rgba(0,0,0,.25); text-shadow: none; }
.si-wifi small { display: block; color: var(--muted); font-size: 12px; }
.si-wifi b { font-size: 16px; word-break: break-all; }
.si-wifi button { justify-self: start; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.mode-switch { display: inline-flex; margin-top: 12px; margin-left: 6px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); vertical-align: middle; }
.mode-switch button { padding: 6px 14px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 14px; }
.mode-switch button.on { background: #fff; color: var(--ink); }
.mode-note { margin-top: 8px; font-size: 13px; color: #d6d3d1; }
[x-cloak] { display: none !important; }

/* Product sheet: the group still needing a choice; loading feedback; visible unselected radios */
.group.missing { border-radius: 14px; box-shadow: 0 0 0 2px #dc2626; padding: 8px 10px; margin-left: -10px; margin-right: -10px; }
.group.missing .rule.req { background: #fee2e2; color: #b91c1c; }
.item.busy { opacity: .6; }
.item.busy .plus { animation: plus-pulse .8s ease-in-out infinite; }
@keyframes plus-pulse { 50% { transform: scale(.85); } }
.choice .mark { border-color: #a8a29e; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Call the waiter / ask for the bill (QR page of a table, sunbed or room) */
.staff-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.staff-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12); color: #fff; font: 700 15px/1 inherit; cursor: pointer; }
.staff-btn:disabled { opacity: .6; }
.staff-bill { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: rgba(255,255,255,.85); font-size: 14px; }

/* Menu | Mini market tabs, the mini market's short rows, 18+ */
.section-tabs { display: flex; gap: 6px; padding-top: 10px !important; padding-bottom: 0 !important; }
.section-tabs button { flex: 1; padding: 9px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.section-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.section h2 .count { color: var(--muted); font-size: 13px; font-weight: 600; margin-left: 4px; }
.items.rows .item { padding: 10px 14px; gap: 10px; }
.items.rows .item .price { margin-top: 0; font-weight: 700; white-space: nowrap; }
.items.rows .item .info { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.items.rows .item .name { font-weight: 600; font-size: 15px; }
.items.rows .item .plus { width: 32px; height: 32px; font-size: 20px; }
@media (min-width: 760px) {
    .items.rows { display: grid; grid-template-columns: 1fr 1fr; }
    .items.rows .item:nth-child(2) { border-top: 0; }
    .items.rows .item:nth-child(odd) { border-right: 1px solid var(--line); }
}
.age-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 800; vertical-align: 2px; letter-spacing: .02em; }
.chips a .age-tag { margin-left: 4px; font-size: 10px; }
.age-note { margin: -4px 0 10px; color: #991b1b; font-size: 13.5px; }

/* ---------- computer screens: categories left, products in columns, basket right ---------- */
.chip-search-label, .side-cart { display: none; }
@media (min-width: 1024px) {
    :root { --wide: 1360px; }
    html { scroll-padding-top: 16px; }
    .hero .wrap, .offers-strip .wrap { max-width: var(--wide); padding: 0 24px; }
    .promo { max-width: var(--wide); padding: 0 24px; }
    .promo img { aspect-ratio: auto; height: 240px; }
    /* Status, pickup / delivery, delivery note and the store's message in one row. */
    .hero .wrap > .status, .hero .wrap > .mode-switch, .hero .wrap > .mode-note, .hero .wrap > .notice { display: inline-flex; vertical-align: middle; margin-right: 10px; }
    .hero .wrap > .notice { padding: 6px 14px; font-size: 14px; }
    #pwa-slot { display: none; } /* installing the app is a phone thing */
    .offers-strip .wrap { overflow: visible; flex-wrap: wrap; }

    .menu-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr) 340px; gap: 28px; max-width: var(--wide); margin: 0 auto; padding: 18px 24px 0; align-items: start; }
    .menu-layout .chips { position: sticky; top: 16px; background: none; backdrop-filter: none; border: 0; max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; }
    .menu-layout .chips .wrap { flex-direction: column; overflow: visible; padding: 0; gap: 2px; max-width: none; }
    .menu-layout .chips a { padding: 9px 12px; border-radius: 10px; border: 0; background: none; white-space: normal; line-height: 1.3; }
    .menu-layout .chips a:hover { background: var(--card); }
    .menu-layout .chips a.on { background: var(--ink); color: #fff; }
    .chip-search { width: 100%; height: 40px; margin-bottom: 8px; text-align: left; padding: 0 14px; border-radius: 10px; }
    .chip-search-label { display: inline; color: var(--muted); }
    .menu-layout .chips .section-tabs { flex-direction: row; padding: 0 0 10px !important; gap: 6px; }
    .menu-layout .search-row { padding: 0 0 8px; flex-wrap: wrap; }
    .menu-layout > main.wrap { max-width: none; padding: 0; margin: 0; }
    .menu-layout .section:first-child { padding-top: 0; }

    /* Products in two columns. */
    .items:not(.rows) { display: grid; grid-template-columns: 1fr 1fr; }
    .items:not(.rows) .item:nth-child(2) { border-top: 0; }
    .items:not(.rows) .item:nth-child(odd) { border-right: 1px solid var(--line); }
    .items:not(.rows) .item:hover, .items.rows .item:hover { background: #fafaf9; }

    /* The basket, always in view. */
    .side-cart { display: flex; flex-direction: column; position: sticky; top: 16px; max-height: calc(100vh - 32px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
    .side-cart h3 { margin: 0 0 6px; font-size: 18px; }
    .side-lines { overflow-y: auto; min-height: 0; flex: 1; }
    .side-empty { color: var(--muted); margin: 6px 0 2px; font-size: 15px; }
    .side-note { color: var(--danger); font-size: 14px; margin: 8px 0 0; }
    .side-cart .btn { margin-top: 12px; justify-content: space-between; }
    .spacer { height: 40px; }
}
@media (min-width: 1400px) {
    .menu-layout { grid-template-columns: 240px minmax(0, 1fr) 360px; }
}
.bar-note { max-width: var(--wrap); margin: 0 auto 8px; padding: 8px 12px; border-radius: 12px; background: #fff7ed; color: #9a3412; font-size: 13.5px; font-weight: 600; text-align: center; box-shadow: 0 2px 10px rgb(0 0 0 / .08); }
.co-lines { display: none; }
@media (min-width: 1024px) {
    .bar:not(.paybar) { display: none; }
    main.checkout { max-width: 1180px; padding: 0 24px; }
    main.checkout > .summary { display: none; } /* the order is in the right column */
    .co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
    .co-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
    .co-side > * { margin: 0 !important; }
    .co-lines { display: block; max-height: 38vh; overflow-y: auto; }
    .co-lines h3 { margin: 0 0 4px; font-size: 17px; }
    .co-side .spacer { display: none; }
    .co-side .paybar { position: static; padding: 0; background: none; }
    .co-side .paybar .btn { max-width: none; }
}
.line-x { flex: none; width: 36px; height: 36px; border-radius: 50%; font-size: 15px; opacity: .7; align-self: center; }
.line-x:hover { opacity: 1; background: var(--danger-soft); }

/* Order status pictures (track page) */
.state-art { margin: 18px auto 0; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.state-art.ready, .state-art.ride { background: var(--ok-soft); color: var(--ok); }
.state-art svg { overflow: visible; }
.sa-turn { transform-origin: 32px 32px; animation: sa-turn 2.4s ease-in-out infinite; }
@keyframes sa-turn { 0%, 70% { transform: rotate(0); } 85%, 100% { transform: rotate(180deg); } }
.sa-sand { transform-origin: 32px 50px; animation: sa-sand 2.4s ease-in-out infinite; }
@keyframes sa-sand { 0% { transform: scaleY(.2); } 70% { transform: scaleY(1); } 100% { transform: scaleY(1); } }
.sa-steam { opacity: 0; animation: sa-steam 2.2s ease-in-out infinite; }
.sa-steam.s2 { animation-delay: .5s; } .sa-steam.s3 { animation-delay: 1s; }
@keyframes sa-steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-8px); } }
.sa-lid { animation: sa-lid 1.1s ease-in-out infinite; transform-origin: 32px 26px; }
@keyframes sa-lid { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-3px) rotate(-4deg); } 60% { transform: translateY(-2px) rotate(3deg); } }
.sa-drop { animation: sa-drop 1.6s ease-in infinite; }
@keyframes sa-drop { 0% { transform: translateY(-6px); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateY(16px); opacity: 1; } 100% { transform: translateY(18px); opacity: 0; } }
.sa-ride { animation: sa-ride .5s ease-in-out infinite alternate; }
@keyframes sa-ride { from { transform: translate(-2px, 0); } to { transform: translate(2px, -1.5px); } }
.sa-wind { animation: sa-wind .8s linear infinite; }
@keyframes sa-wind { from { transform: translateX(4px); opacity: 1; } to { transform: translateX(-6px); opacity: 0; } }
.sa-tick { stroke-dasharray: 30; stroke-dashoffset: 30; animation: sa-tick .7s .2s ease-out forwards; }
@keyframes sa-tick { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .state-art * { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; } }
.earn-note { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: #fffbeb; color: #92400e; font-size: 14px; font-weight: 600; }
.earn-note a { color: inherit; }
.earn-chip { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 12.5px; font-weight: 700; }
.points-card h3 small { font-weight: 500; }

/* Legal pages, footer links, cookie notice */
.legal-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; padding: 24px 16px 0; font-size: 13px; }
.legal-links a { color: #78716c; }
.legal-links + .powered { padding-top: 8px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 12px; }
.legal-tabs a { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #e7e5e4; color: #44403c; text-decoration: none; font-size: 14px; }
.legal-tabs a.on { background: var(--accent, #1c1917); border-color: var(--accent, #1c1917); color: #fff; }
.legal-text { line-height: 1.6; overflow-x: auto; }
.legal-text h1 { font-size: 22px; margin-top: 4px; }
.legal-text h2 { font-size: 17px; margin-top: 22px; }
.legal-text table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal-text td, .legal-text th { border: 1px solid #e7e5e4; padding: 6px 8px; text-align: left; vertical-align: top; }
.legal-accept { font-size: 12px; }
.legal-accept a, .legal-links a { text-decoration: underline; }
.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 14px; background: #1c1917; color: #fafaf9; font-size: 13px; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.cookie-bar span { flex: 1; }
.cookie-bar a { color: #fcd34d; }
.cookie-bar button { flex: none; border: 0; border-radius: 10px; padding: 8px 14px; background: #fafaf9; color: #1c1917; font-weight: 600; cursor: pointer; }
.cookie-bar[hidden] { display: none; }
.fixed-note { margin: 10px 0 0; font-size: 13px; color: var(--muted, #78716c); }
.group .need { margin: 0 0 8px; color: #b91c1c; font-weight: 600; font-size: 14px; }

/* The cookie notice sits above the basket bar, never over the header, and steps aside while a sheet is open. */
body:has(.bar) .cookie-bar { bottom: calc(92px + env(safe-area-inset-bottom)); }
body:has(.sheet-bg) .cookie-bar { display: none; }
@media (min-width: 1100px) { body:has(.bar) .cookie-bar { bottom: 16px; left: 16px; right: auto; max-width: 440px; } }
.field .req { color: var(--danger); margin-left: 2px; }

/* UI audit round 2 */
.line-x { width: 44px; height: 44px; margin-right: 6px; }
body:has(.sheet-bg) .toast { display: none !important; }
/* Many short options (sugar, milk): a compact grid instead of a long list of rows. */
.group.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.group.opt-grid .title, .group.opt-grid .need { grid-column: 1 / -1; }
.group.opt-grid .choice { margin: 0; min-height: 48px; padding: 8px 10px; }
@media (min-width: 560px) { .group.opt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.totals .muted { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.group.opt-grid .choice { border: 1px solid var(--line); border-radius: 12px; gap: 8px; }
.group.opt-grid .choice.on { border-color: var(--accent, #d97706); background: color-mix(in srgb, var(--accent, #d97706) 10%, transparent); }
.group.opt-grid .choice .label { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.pickup-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .pickup-actions .btn { flex: 1; min-width: 140px; text-decoration: none; }
