/* 224 Live House — light guest theme: plain white page. Tweak the tokens below. */
:root {
  --photo-bg: radial-gradient(circle at 18% 8%, #ff8a68 0, #c2321f 26%, #6b130c 60%, #2a0504 100%); /* the red studio look of the drink photos */
  --screen-h: 100dvh; /* height of the guest screen; the demo overrides it with its phone frame */
  --bg: #ffffff;
  --surface: #f6f5f7;
  --surface-2: #ecebef;
  --line: #e2dfe6;
  --text: #17141b;
  --muted: #6b6573;
  --accent: #cc0808; /* the 224 logo red, exactly: every button, badge and highlight */
  --price: #06c755;  /* LINE green, for every price and total */
  --gold: #b06a00;
  --ok: #17824f;
  --warn: #a35f00;
  --danger: #c62f3c;
  --tint-warn: #fff3dc;
  --tint-ok: #e4f5ec;
  --tint-danger: #fde8ea;
  --radius: 16px;
  --tap: 48px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Thai", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100dvh; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app { max-width: 520px; margin: 0 auto; min-height: 100dvh; padding-bottom: calc(110px + var(--safe-b)); }
.center-screen { min-height: 80dvh; display: grid; place-items: center; text-align: center; padding: 24px; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.banner { position: sticky; top: 0; z-index: 30; padding: 10px 16px; text-align: center; font-size: 14px; background: var(--tint-warn); color: var(--warn); }
.banner.error { background: var(--tint-danger); color: var(--danger); }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: var(--bg); padding: 16px 16px 8px; }
.brand { display: flex; align-items: center; justify-content: center; }
.brand .logo { margin: 0; line-height: 0; }
.brand .logo img { display: block; height: 56px; width: auto; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip strong { color: var(--text); }

.badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; line-height: 20px; }

.tabs-wrap { position: sticky; top: var(--header-h, 56px); z-index: 19; background: var(--bg); }
.tabs { position: relative; display: flex; gap: 8px; padding: 8px 16px 4px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  /* fade the edges so it's clear more pills are off-screen */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%); }
.tabs::-webkit-scrollbar { display: none; }
.tabs::after { content: ""; flex: 0 0 8px; } /* end padding inside the scroller */
.tabs button { flex: 0 0 auto; scroll-snap-align: start; min-height: var(--tap); padding: 0 18px; font-size: 15px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 650; white-space: nowrap; }
.tabs button[aria-current="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.section { padding: 8px 16px; }
.section h2 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 16px 0 10px; }

/* Menu cards */
.items { display: grid; gap: 12px; }
.item { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 14px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.item.unavailable { opacity: 0.5; }
.thumb { width: 76px; height: 114px; border-radius: 12px; object-fit: cover; } /* every drink: the same tall 2:3 frame, photo edge to edge */
.thumb.ph { display: grid; place-items: center; background: var(--photo-bg); }
.ph-glass { width: 34px; height: 34px; fill: none; stroke: #f6d9a0; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.95; }
.item h3 { margin: 2px 0 4px; font-size: 17px; }
.item p { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } /* long stories: 2 lines on the card, full text on the detail page */
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 750; color: var(--price); font-size: 16px; }
.tag { font-size: 12px; color: var(--danger); font-weight: 700; }

.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 2px; }
.qty button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; font-size: 22px; font-weight: 700; line-height: 1; }
.qty button:disabled { opacity: 0.35; cursor: default; }
.qty .plus { background: var(--accent); color: #fff; }
.qty output { min-width: 22px; text-align: center; font-weight: 750; }

/* Sticky CTA */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px 16px calc(12px + var(--safe-b)); background: linear-gradient(0deg, var(--bg) 65%, rgba(255,255,255,0)); }
.cta-bar > * { max-width: 488px; margin: 0 auto; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 18px; border-radius: 14px; border: 0; background: var(--accent); color: #fff; font-weight: 750; font-size: 16px; text-decoration: none; }
.btn:active { transform: scale(0.985); } /* press feedback without changing the colour */
.btn:disabled { background: var(--surface-2); color: var(--muted); cursor: default; }
.btn.secondary { background: var(--surface-2); color: var(--text); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn .spread { margin-left: auto; }
.btn-row { display: grid; gap: 10px; }

/* Lists / bill */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.card-head strong { font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.line .q { color: var(--muted); margin-right: 6px; }
.line.sub { color: var(--muted); font-size: 14px; }
.line.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; font-size: 20px; font-weight: 800; }
.line.total span:last-child { color: var(--price); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.status.new { background: var(--tint-warn); color: var(--warn); }
.status.served { background: var(--tint-ok); color: var(--ok); }
.note { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; font-size: 14px; color: var(--muted); margin-top: 8px; }

textarea, input.pin { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); padding: 12px 14px; font-size: 16px; }
textarea { min-height: 84px; resize: vertical; }
input.pin { text-align: center; font-size: 30px; letter-spacing: 0.4em; font-weight: 800; padding: 14px; }
input.pin.pin-2 { display: block; width: 140px; margin: 0 auto; font-size: 40px; letter-spacing: 0.3em; padding-left: calc(14px + 0.3em); }
label { display: block; font-weight: 650; margin-bottom: 8px; }

.hero { text-align: center; padding: 28px 20px 8px; }
.hero .icon { font-size: 52px; margin-bottom: 8px; }
.hero h2 { margin: 0 0 6px; font-size: 24px; }
.hero p { margin: 0 auto; max-width: 340px; color: var(--muted); line-height: 1.45; }
.hero .amount { font-size: 40px; font-weight: 850; color: var(--price); margin: 14px 0 4px; }
.pulse { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--warn); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

.alert { border-radius: 12px; padding: 12px 14px; margin: 8px 16px; font-size: 14px; line-height: 1.4; background: var(--tint-warn); color: var(--warn); }
.alert.error { background: var(--tint-danger); color: var(--danger); }
.alert.ok { background: var(--tint-ok); color: var(--ok); }

/* ---- "Cheers" screen: pastel gift box with 3D balloons rising out of it ---- */
.party { position: relative; height: 390px; margin: 0 auto 4px; perspective: 760px; }
.gift { position: absolute; left: 50%; bottom: 34px; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-14deg) rotateY(-26deg); }
.gift .face { position: absolute; backface-visibility: visible; }
.gift .f-front, .gift .f-back { width: 130px; height: 90px; left: -65px; top: -90px; }
.gift .f-left, .gift .f-right { width: 100px; height: 90px; left: -50px; top: -90px; }
.gift .f-front { transform: translateZ(50px); background: linear-gradient(180deg, #c9f1e3, #b3e6d3); }
.gift .f-front::before, .gift .f-right::before, .gift .f-left::before, .gift .f-back::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 16px; margin-left: -8px; background: #ffd6e3; } /* ribbon */
.gift .f-back { transform: translateZ(-50px) rotateY(180deg); background: #a8dccb; }
.gift .f-left { transform: rotateY(-90deg) translateZ(65px); background: #9fd6c3; }
.gift .f-right { transform: rotateY(90deg) translateZ(65px); background: #a6dcc9; }
.gift .lid { position: absolute; width: 142px; height: 108px; left: -71px; top: -92px; margin-top: 0; transform-origin: 50% 0; transform: translateZ(-54px) rotateX(196deg); background: linear-gradient(180deg, #ffcfe0, #ffb9d1); border-radius: 4px; animation: lid-open 0.9s 0.2s cubic-bezier(0.3, 1.3, 0.5, 1) backwards; }
.gift .lid::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 16px; margin-left: -8px; background: #fff3b8; }
.balloons { position: absolute; inset: 0; clip-path: inset(0 0 150px 0); pointer-events: none; }
.balloon { position: absolute; left: calc(50% - 29px); bottom: 56px; width: 58px; height: 70px; translate: 0 var(--rise); animation: balloon-rise 1.5s cubic-bezier(0.2, 0.9, 0.3, 1) backwards; }
.balloon.b1 { --rise: -150px; margin-left: -34px; animation-delay: 0.7s; }
.balloon.b2 { --rise: -192px; margin-left: 6px; animation-delay: 0.95s; }
.balloon.b3 { --rise: -138px; margin-left: 44px; animation-delay: 1.2s; }
.balloon.b4 { --rise: -246px; margin-left: -16px; animation-delay: 1.45s; }
.balloon.b5 { --rise: -214px; margin-left: 26px; animation-delay: 1.7s; }
.b-bob { position: relative; animation: balloon-bob 3.2s ease-in-out infinite; }
.balloon.b2 .b-bob { animation-delay: -1.1s; }
.balloon.b3 .b-bob { animation-delay: -2.1s; }
.balloon.b4 .b-bob { animation-delay: -0.6s; }
.balloon.b5 .b-bob { animation-delay: -1.6s; }
.b-body { position: relative; width: 58px; height: 70px; border-radius: 50% 50% 48% 48% / 56% 56% 44% 44%; background: radial-gradient(circle at 34% 28%, #fff 0, rgba(255, 255, 255, 0.55) 9%, transparent 30%), radial-gradient(circle at 40% 36%, var(--bc) 0, var(--bc2) 100%); box-shadow: inset -7px -9px 14px rgba(120, 80, 140, 0.22), 0 8px 14px rgba(120, 80, 140, 0.14); }
.b-body::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -5px; border: 5px solid transparent; border-bottom: 8px solid var(--bc2); border-top: 0; }
.b-string { position: absolute; left: 50%; top: 74px; width: 1.5px; height: 84px; margin-left: -1px; background: linear-gradient(#c9bfd6, #e9e3f0); }
.b1 { --bc: #ffd1e1; --bc2: #ff9fc0; }
.b2 { --bc: #e0d4ff; --bc2: #b9a3f5; }
.b3 { --bc: #fff0b0; --bc2: #ffd86b; }
.b4 { --bc: #cdeffd; --bc2: #8fd3ef; }
.b5 { --bc: #ffe0cc; --bc2: #ffb592; }
@keyframes lid-open { from { transform: translateZ(-54px) rotateX(90deg); } }
@keyframes balloon-rise { from { translate: 0 0 0; opacity: 0; } 12% { opacity: 1; } }
@keyframes balloon-bob { 50% { transform: translateY(-7px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.last-visit { display: flex; align-items: flex-start; gap: 10px; }
.last-visit > span { flex: 1; min-width: 0; }
.last-visit a { color: inherit; font-weight: 700; }
.last-visit .dismiss { flex: none; width: 32px; height: 32px; margin: -6px -6px 0 0; border: 0; border-radius: 8px; background: transparent; font-size: 20px; line-height: 1; }

/* ---- Product detail ------------------------------------------------------ */
.item { cursor: pointer; }
.item-open { all: unset; cursor: pointer; }
.item-open:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
/* Cocktail page: the picture sits behind; the white sheet starts at 70% of the screen and is pulled up or down by scrolling.
   The scroll snaps between "peek" (30% visible) and "expanded"; inside the expanded sheet the text scrolls freely. */
.app.is-detail { height: var(--screen-h); min-height: 0; overflow: hidden; }
.detail { --sheet-top: min(calc(var(--screen-h) * 0.7), calc(var(--screen-h) - 224px)); --sheet-exp: max(88px, calc(var(--screen-h) * 0.12)); position: relative; height: 100%; overflow: hidden; }
.detail-hero { position: absolute; top: 0; left: 0; right: 0; height: calc(var(--sheet-top) + 24px); overflow: hidden; display: grid; place-items: center; background: var(--photo-bg); }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: #000; opacity: calc(var(--p, 0) * 0.5); pointer-events: none; } /* picture dims as the sheet covers it */
.detail-hero .hero-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero-glass { width: 128px; height: 128px; fill: none; stroke: #f6d9a0; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4)); } /* drink without a photo: glass on the red studio backdrop */
.detail-back { position: absolute; z-index: 6; top: calc(16px + env(safe-area-inset-top, 0px)); left: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: #111; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(23,20,27,0.18); }
.detail-back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.detail-scroll { position: absolute; inset: 0; z-index: 2; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-snap-type: y mandatory; scrollbar-width: none; }
.detail-scroll::-webkit-scrollbar { display: none; }
.detail-spacer { position: relative; height: var(--sheet-top); scroll-snap-align: start; }
.hero-open { all: unset; position: absolute; inset: 0; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.hero-open:focus-visible { outline: 3px solid var(--gold); outline-offset: -6px; }
.detail-sheet { position: relative; min-height: calc(var(--screen-h) - var(--sheet-exp)); scroll-snap-align: start; scroll-margin-top: var(--sheet-exp); border-radius: 24px 24px 0 0; background: var(--surface); padding: 4px 20px calc(120px + var(--safe-b)); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.16); }
.sheet-grab { all: unset; box-sizing: border-box; display: block; position: relative; width: 100%; height: 30px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sheet-grab-bar { position: absolute; left: 50%; top: 11px; width: 42px; height: 5px; margin-left: -21px; border-radius: 3px; background: #c9c5cf; }
.sheet-grab:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; border-radius: 12px; }
/* Full-size picture viewer */
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(8, 4, 4, 0.96); cursor: zoom-out; animation: lb-in 0.2s ease; }
.lightbox img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-close { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: #111; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.lb-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.detail-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.detail-title h2 { margin: 0; font-size: 23px; line-height: 1.2; text-wrap: balance; }
.detail-desc { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; white-space: pre-line; } /* stories may have paragraphs */
.detail-price { margin-top: 12px; font-size: 22px; font-weight: 800; color: var(--price); font-variant-numeric: tabular-nums; }
.detail-label { margin: 22px 0 12px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ing-list { list-style: none; margin: 0; padding: 0; }
.ing { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.35; }
.ing:last-child { border-bottom: 0; }
.detail-notes { margin-top: 26px; }
.detail-notes label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.detail-notes textarea { min-height: 76px; background: var(--bg); }
.detail-notes p { margin: 8px 0 0; }
.line-note { margin: -2px 0 8px 22px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.detail-cta { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.detail-cta .qty { background: var(--surface); border: 1px solid var(--line); }
label[for="pin"] { text-align: center; }

/* Waiting screen: the logo, heading and table pill are centred on the screen. */
.app.is-waiting { display: flex; flex-direction: column; padding-bottom: 0; position: relative; }
.app.is-detail { padding-bottom: 0; } /* the detail sheet reaches the bottom edge itself */
.waiting-center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; } /* centred in the whole screen (there is no header on this page) */
.waiting-center .hero { padding-top: 0; }

/* ---- Floating bottom navigation: My Orders / Pay ------------------------- */
.float-nav { position: fixed; left: 50%; bottom: calc(14px + var(--safe-b)); transform: translateX(-50%); z-index: 40; display: grid; grid-template-columns: 1fr 1fr; width: max-content; gap: 4px; padding: 5px; border-radius: 999px; background: var(--text); box-shadow: 0 10px 28px rgba(23, 20, 27, 0.3); } /* two equal tabs */
.float-nav::before { content: ""; position: absolute; left: 50%; top: 28%; bottom: 28%; width: 1px; transform: translateX(-0.5px); background: rgba(255, 255, 255, 0.28); pointer-events: none; } /* divider exactly between the tabs */
.float-nav button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 116px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: #d4cfdb; font-weight: 700; font-size: 15px; white-space: nowrap; }
.float-nav button[aria-current="page"] { background: var(--accent); color: #fff; }
.float-nav button:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.float-nav .badge { margin: 0; background: #fff; color: var(--accent); }
.app.has-nav { padding-bottom: calc(104px + var(--safe-b)); }
.app.has-nav.has-cta { padding-bottom: calc(180px + var(--safe-b)); }
.app.has-nav .cta-bar { bottom: calc(68px + var(--safe-b)); }
.app.has-nav::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: calc(92px + var(--safe-b)); z-index: 20; pointer-events: none; background: linear-gradient(0deg, var(--bg) 80%, rgba(255, 255, 255, 0)); } /* solid under the bar and the gap above it */
.link-back { all: unset; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 4px -4px; padding: 0 4px; color: var(--muted); font-weight: 650; font-size: 15px; }
.link-back:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* Hide-on-scroll: the bar slides down off-screen, and the cart/pay button drops to the bottom edge. */
.float-nav { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease; }
.app.nav-hidden .float-nav { transform: translateX(-50%) translateY(calc(100% + 28px + var(--safe-b))); opacity: 0; pointer-events: none; }
.app.has-nav .cta-bar { transition: bottom 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.app.has-nav.nav-hidden .cta-bar { bottom: 0; }
.app.has-nav::after { transition: opacity 0.3s ease; }
.app.has-nav.nav-hidden::after { opacity: 0; }

/* ---- Menu: one list, a heading per class ---------------------------------- */
.menu-sections { padding-top: 24px; }
.cat + .cat { margin-top: 30px; }
.section .cat-title { margin: 0 0 12px; font-size: 20px; letter-spacing: 0; text-transform: none; color: var(--text); }

/* ---- Cart rows: thumbnail + name on the left, quantity stepper on the right ---- */
.cart-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 2px; }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { width: 56px; height: 84px; border-radius: 10px; object-fit: cover; }
.cart-thumb.ph { display: grid; place-items: center; background: var(--photo-bg); }
.cart-thumb .ph-glass { width: 26px; height: 26px; }
.cart-name { font-weight: 700; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.cart-price { margin-top: 3px; font-weight: 750; font-size: 15px; color: var(--price); font-variant-numeric: tabular-nums; }
.cart-note { margin-top: 6px; padding: 5px 9px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.cart-line .qty { background: var(--surface-2); }
@media (max-width: 359px) {
  .cart-line { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; }
  .cart-thumb { width: 44px; height: 66px; }
  .cart-line .qty button { width: 40px; height: 40px; }
}

/* ---- Waiting page: full logo, message, table pill ---- */
.waiting-logo { display: block; width: min(240px, 62.4vw); height: auto; margin: 0 auto 6px; } /* 80% of the previous 300px / 78vw */
.waiting-center .hero h2 { margin: 14px 0 0; }
.waiting-center .checking { margin-top: 16px; }
