/* Customer web app (GR-47a, ADR 0030). styles.css is the shared console stylesheet, byte-identical to the merchant and
   operations consoles (tokens, buttons, pills, forms, light and dark). This file adds only the customer layout:
   phone-first, one column, a sticky cart bar and big touch targets. No inline styles, so the strict CSP applies. */
body.customer main { max-width: 640px; padding-bottom: 120px; }
.home-link { text-decoration: none; }
.home-link:hover { color: #fff; }

/* Tabs under the header: always visible, thumb-sized. */
.tabs { position: sticky; top: 0; z-index: 5; display: flex; background: var(--surface); border-bottom: 1px solid var(--line); }
.tabs a { flex: 1; text-align: center; padding: 13px 8px; font-weight: 800; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.lede { color: var(--muted); margin: 0 0 12px; }
.back { display: inline-block; margin: 0 0 10px; font-weight: 700; text-decoration: none; }

/* Restaurant cards: the whole card is the link. */
a.panel { display: block; text-decoration: none; color: inherit; }
a.panel.place { display: flex; }
.place { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
a.place:hover .place-name { text-decoration: underline; }
.place .initial { flex: 0 0 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; }
.place .grow { flex: 1; min-width: 0; }
.place-name { font-size: 17px; font-weight: 800; color: var(--ink); margin: 0; }
.panel.dim { opacity: .6; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* Menu items */
.menu-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.menu-item:first-child { border-top: 0; }
.menu-item .grow { flex: 1; min-width: 0; }
.menu-item p { margin: 2px 0; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { min-width: 44px; padding: 8px 0; }
.stepper output { min-width: 26px; text-align: center; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Money lines */
.line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.line.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 18px; }
.line .money { white-space: nowrap; }
.wide { width: 100%; }
.stack > * + * { margin-top: 10px; }

/* Order progress */
.steps { list-style: none; padding: 0; margin: 12px 0 4px; }
.steps li { position: relative; padding: 0 0 16px 30px; color: var(--muted); font-weight: 700; }
.steps li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); }
.steps li::after { content: ""; position: absolute; left: 9px; top: 22px; bottom: 2px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--body); }
.steps li.done::before { background: var(--success); border-color: var(--success); }
.steps li.now { color: var(--ink); }
.steps li.now::before { background: var(--accent); border-color: var(--accent-ink); }
.order-code { font-size: 28px; font-weight: 900; letter-spacing: .04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero { background: var(--base); color: var(--on-base); border-color: var(--base-raised); }
.hero b, .hero .order-code { color: #fff; }
.hero p { color: var(--on-base); }

/* Card form (Stripe Payment Element mounts here) */
.pay-element { min-height: 60px; margin: 12px 0; }

/* Sticky cart bar at the bottom of the screen */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.cartbar a { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 616px; margin: 0 auto; padding: 14px 18px; border-radius: 14px;
  background: var(--primary); color: var(--on-primary); font-weight: 800; text-decoration: none; box-shadow: 0 6px 20px rgba(21, 23, 28, .25); }

.tabs-inline { display: flex; gap: 8px; margin-bottom: 12px; }
.tabs-inline button { flex: 1; }
.site-foot { max-width: 640px; margin: 0 auto; padding: 0 16px 120px; }
.danger-zone { border-color: var(--danger); }
@media (max-width: 520px) { header { padding: 12px 14px; } .tag { display: none; } .order-code { font-size: 24px; } }
