/* BABY Bar — the guest's QR ordering page. Phone first (360–430 px), one thumb; a tablet gets the same
   column, centred. The brand of site/ (site.css, copied, never linked): vermilion, ink, pink; Migra for the
   big words, Arabica for the slanted marker labels, Jost (standing in for Futura PT) for text, Noto Sans Thai.
   Text is ink on pink and on vermilion, pink on ink. Every tap target is 44 px or more; inputs are 16 px or
   more (iOS would zoom). The fixed bottom (cart + Call staff · Our table · Bill, please) sets --dock-h. */

@font-face { font-family: 'Migra'; src: url(fonts/migra-extrabold.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Arabica'; src: url(fonts/arabica.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --ver: #F04923; --ink: #231F20; --pink: #FACCD0; --brown: #BF5C27;
  --paper: #FDE4E6; --pink-deep: #F6B8BF; --muted: #4E4546; --line: rgba(35, 31, 32, .18); --line2: rgba(35, 31, 32, .32);
  --ok: #1f6b3a; --ok-bg: #d6efd9; --warn-bg: #fff1c9;
  --serif: 'Migra', 'Noto Sans Thai', Georgia, serif;
  --sans: 'Futura PT', 'Jost', 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --marker: 'Arabica', 'Noto Sans Thai', 'Comic Sans MS', cursive;
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --col: 640px;
  --radius: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --oi: 32px;                  /* an option picture: set by guest.js to a whole number of device pixels per art pixel */
  --dock-h: 92px;               /* the fixed bottom's height: measured by guest.js (dockSize) */
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html.locked { overflow: hidden; }
body { margin: 0; min-height: 100dvh; background: var(--pink); color: var(--ink); font: 400 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--dock-h) + 12px); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:lang(th), [lang="th"] { font-family: 'Noto Sans Thai', var(--sans); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.marker { font-family: var(--marker); font-weight: 400; transform: rotate(-3deg); transform-origin: 0 100%; line-height: 1; }
html:lang(th) .marker { font-family: 'Noto Sans Thai', var(--sans); font-weight: 700; transform: none; }

/* the wordmark and the hand drawings: white PNGs used as a mask, painted with currentColor */
.wordmark, .hand { display: block; background-color: currentColor; -webkit-mask: var(--shape) center / contain no-repeat; mask: var(--shape) center / contain no-repeat; }
.wordmark { --shape: url(img/baby.png); aspect-ratio: 1200 / 624; }
.hand { --shape: url(img/hand-cup.png); pointer-events: none; }
.hand[data-hand="espresso"] { --shape: url(img/hand-espresso.png); }
.hand[data-hand="martini"] { --shape: url(img/hand-martini.png); }
.hand[data-hand="croissant"] { --shape: url(img/hand-croissant.png); }
.hand[data-hand="toast"] { --shape: url(img/hand-toast.png); }
.hand[data-hand="mug"] { --shape: url(img/hand-mug.png); }
.hand[data-hand="tray"] { --shape: url(img/hand-tray.png); }
.hand[data-hand="wine"] { --shape: url(img/hand-wine.png); }
.hand[data-hand="bowl"] { --shape: url(img/hand-bowl.png); }

/* ---------------------------------------------------------------- the top band */
.top { background: var(--ver); color: var(--ink); padding-top: env(safe-area-inset-top); }
.top.night { background: var(--ink); color: var(--pink); }
.top-in, .mtabs { max-width: var(--col); margin: 0 auto; }
.top-in { display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter) 4px; }
.top .wordmark { width: 74px; flex: none; }
.where { flex: 1; min-width: 0; line-height: 1; }
.where small { display: block; font-size: 13px; font-weight: 600; letter-spacing: .02em; opacity: .85; }
/* the table badge (ink on vermilion, pink on ink at night) and who is ordering; the "who" wraps under the badge when the line is short */
.tline { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-top: 3px; min-width: 0; }
.badge { flex: 0 1 auto; display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; max-width: 100%; padding: 4px 14px 5px; border-radius: 999px;
  background: var(--ink); color: var(--pink); font: 400 27px/1.05 var(--serif); white-space: nowrap; }
.badge .bt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html .top .badge:not(.xlong), html .top .badge:not(.xlong) .bt { font-family: var(--serif); }       /* table names are Latin: Migra also on a Thai page */
.badge .bmore { flex: none; font: 700 .8em/1 var(--sans); padding: 2px 7px; border-radius: 999px; background: var(--ver); color: var(--ink); }
.top.night .badge .bmore { background: var(--ver); color: var(--ink); }
.badge.long { font-size: 21px; padding: 6px 12px 7px; }
.badge.xlong { font: 700 16px/1.2 var(--sans); padding: 8px 12px; }
.top.night .badge { background: var(--pink); color: var(--ink); }
.who-btn { flex: 0 1 auto; min-width: min(100%, 6.5em); max-width: 100%; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 2px;
  font-weight: 700; font-size: 15px; line-height: 1.15; text-align: left; }
.who-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-btn svg { width: 15px; height: 15px; flex: none; opacity: .8; }
.who-btn.quiet { font-weight: 600; font-size: 14px; opacity: .85; }
.who-btn.quiet span { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.sfrom { margin-top: 6px; font-weight: 700; }
.langs { flex: none; display: flex; border: 2px solid currentColor; border-radius: 999px; padding: 1px; }
.lg { min-width: 46px; height: 44px; padding: 0 10px; border-radius: 999px; font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.lg[aria-pressed="true"] { background: var(--ink); color: var(--pink); }
.top.night .lg[aria-pressed="true"] { background: var(--pink); color: var(--ink); }
.mtabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 6px var(--gutter) 12px; scroll-padding: 0 var(--gutter); }
.mtabs::-webkit-scrollbar { display: none; }
.mtab { flex: none; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; min-height: 44px; padding: 2px 16px;
  border-radius: 999px; font-weight: 700; font-size: 16px; line-height: 1.1; white-space: nowrap; border: 2px solid transparent; }
.mtab small { font-size: 11px; font-weight: 600; opacity: .8; }
.mtab.shut span { opacity: .78; }
.mtab[aria-current] { background: var(--ink); color: var(--pink); }
.top.night .mtab[aria-current] { background: var(--pink); color: var(--ink); }

.netstrip { position: sticky; top: 0; z-index: 30; padding: 8px var(--gutter); background: var(--ink); color: var(--pink); font-size: 14px; text-align: center; }
.banner { max-width: var(--col); margin: 12px auto 0; padding: 0 var(--gutter); }
.banner > * { display: block; }
.banner { --b: var(--warn-bg); }
.banner b { padding: 12px 14px 0; background: var(--b); border-radius: 14px 14px 0 0; font-size: 17px; }
.banner span { padding: 2px 14px 12px; background: var(--b); border-radius: 0 0 14px 14px; font-size: 15px; color: var(--muted); }

/* ---------------------------------------------------------------- the sticky bar: menu · categories · search */
.bar { position: sticky; top: 0; z-index: 20; background: var(--pink); border-bottom: 1.5px solid transparent; transition: border-color .2s, box-shadow .2s; }
.bar.stuck { border-bottom-color: var(--ink); box-shadow: 0 6px 16px -12px rgba(35, 31, 32, .55); }
.bar-in { display: flex; align-items: center; gap: 8px; max-width: var(--col); margin: 0 auto; padding: 8px var(--gutter); }
.mpick { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 44px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--ink); color: var(--pink);
  font-weight: 700; font-size: 15px; max-width: 38vw; }
.mpick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpick svg { width: 18px; height: 18px; flex: none; }
.chips { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 18px 2px 2px;
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 44px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap; border: 1.5px solid var(--line2); }
.chip[aria-current="true"] { background: var(--ink); color: var(--pink); border-color: var(--ink); }
.sbtn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); }
.sbtn svg { width: 20px; height: 20px; }
.sform { flex: 1; min-width: 0; }
.sform input { width: 100%; height: 44px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: 500 17px var(--sans); }
.sform input::-webkit-search-cancel-button { display: none; }

/* ---------------------------------------------------------------- the menu */
.menu, .table { max-width: var(--col); margin: 0 auto; padding: 0 var(--gutter); scroll-padding-bottom: var(--dock-h); }
.pnote { padding: 10px 0 0; font-size: 13px; color: var(--muted); }
.mclosed { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1.5px dashed var(--line2); font-size: 15px; }
.hint { padding: 14px 0 6px; color: var(--muted); font-size: 15px; }
.hint.r { text-align: right; padding: 0; font-size: 13px; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }
.sec { padding-top: 26px; scroll-margin-top: 70px; }
.sec h2 { font-size: 34px; text-transform: uppercase; }
html:lang(th) .sec h2 { font-size: 24px; text-transform: none; }
.sec2 { margin-top: 4px; font-size: 14px; color: var(--muted); }
.rows { margin-top: 8px; }
.row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; align-items: start; width: 100%; padding: 14px 0; text-align: left;
  border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row.nophoto { grid-template-columns: minmax(0, 1fr) 48px; min-height: 76px; }
.rt { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 2px; }
.nm { font-weight: 700; font-size: 17px; line-height: 1.22; overflow-wrap: anywhere; }
.nm2 { font-size: 14px; color: var(--muted); line-height: 1.3; }
.crumb { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.desc { font-size: 14px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.pr { margin-top: 6px; font-weight: 700; font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; }
.pr .vz { white-space: nowrap; }
.pr .dot { color: var(--muted); }
.sold { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: var(--pink); font-size: 12.5px; font-weight: 700; }
.row .ph { width: 104px; height: 104px; border-radius: 14px; overflow: hidden; background: var(--pink-deep); }
.ph img, .lth img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.ph img.ok, .lth img.ok { opacity: 1; }
.ph.broken img, .lth.broken img { display: none; }
.row.so .rt, .row.so .ph { opacity: .55; }
.row.so .ph img { filter: grayscale(1); }
.add { position: absolute; right: -4px; bottom: 6px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--pink); box-shadow: 0 0 0 3px var(--pink); }
.row.nophoto .add { top: 14px; bottom: auto; right: 0; }
.add svg { width: 22px; height: 22px; }
.add.has { background: var(--ver); color: var(--ink); font-weight: 800; font-size: 18px; }
@media (hover: hover) { .row:hover .nm { text-decoration: underline; text-underline-offset: 3px; } }
.row:active { background: rgba(255, 255, 255, .25); }

/* ---------------------------------------------------------------- the fixed bottom */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; pointer-events: none; }
.dock > * { pointer-events: auto; }
.cartbtn { display: flex; align-items: center; gap: 10px; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--col) - 32px); min-height: 56px; margin: 0 auto 10px;
  padding: 6px 16px 6px 8px; border-radius: 999px; background: var(--ink); color: var(--pink); box-shadow: 0 10px 26px -10px rgba(35, 31, 32, .7); text-align: left; }
.cartbtn .cn { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 999px; background: var(--ver); color: var(--ink); font-weight: 800; font-size: 18px; }
.cartbtn .ct { flex: 1; font-weight: 700; font-size: 17px; }
.cartbtn .cp { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.cartbtn svg { width: 22px; height: 22px; }
.cartbtn.bump { animation: bump .45s var(--ease); }
.cartbtn.doubt .cn { background: var(--warn-bg); }
@keyframes bump { 30% { transform: scale(1.05); } }
.calls { display: grid; grid-template-columns: 1fr 1.1fr 1fr; background: var(--paper); border-top: 1.5px solid var(--ink);
  padding: 4px max(4px, env(safe-area-inset-left)) max(4px, env(safe-area-inset-bottom)); }
.cb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 80px; padding: 3px 2px 4px; border-radius: 12px;
  font-size: 13.5px; font-weight: 700; line-height: 1.1; text-align: center; transition: background .15s; }
/* the bar's hand drawings (img/bar/*.png, 132 px = 44 CSS px: 3 device px per CSS px on a 3× phone, 2 → downscaled on 2×), a mask
   painted with the button's own colour: ink, green when told, faded when disabled */
.bi { display: block; flex: none; width: 44px; height: 44px; background-color: currentColor;
  -webkit-mask: var(--bi) center / contain no-repeat; mask: var(--bi) center / contain no-repeat; }
.bi[data-i="bell"] { --bi: url(img/bar/bell.png); }
.bi[data-i="table"] { --bi: url(img/bar/table.png); }
.bi[data-i="bill"] { --bi: url(img/bar/bill.png); }
.bi[data-i="tick"] { --bi: url(img/bar/tick.png); }
.bi.svg { background: none; -webkit-mask: none; mask: none; display: grid; place-items: center; }
.bi.svg svg { width: 30px; height: 30px; }
.cb:active { background: rgba(35, 31, 32, .1); }
.cb.told:active { background: #c3e6c8; }
.cb:disabled { opacity: .4; }
.cb span { display: flex; flex-direction: column; align-items: center; }
.cb small { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.cb.mid { border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; }
.cb.mid.on { color: var(--ver); }
.cb.told { background: var(--ok-bg); color: var(--ok); }
.cb.told .bi { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.07); } }
@media (min-width: 700px) { .calls { padding-left: calc(50% - var(--col) / 2); padding-right: calc(50% - var(--col) / 2); } .cb { font-size: 15px; } }

/* ---------------------------------------------------------------- Our table */
.tb-head { padding: 22px 0 6px; }
.tb-head h1 { font-size: 44px; }
.tb-head p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.bl { list-style: none; margin: 10px 0 0; padding: 0; }
.bline { display: grid; grid-template-columns: 48px auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.bline.mine { background: linear-gradient(90deg, rgba(240, 73, 35, .1), transparent 70%); margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter);
  border-left: 4px solid var(--ver); padding-left: calc(var(--gutter) - 4px); }
.lth { display: block; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--pink-deep); }
.lth.none { display: grid; place-items: center; background: var(--paper); }
.lth.none .hand { width: 72%; height: 78%; color: var(--ver); opacity: .75; }
.bq { font-weight: 800; font-size: 17px; padding-top: 1px; }
.bn { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bn b { font-size: 16px; line-height: 1.25; }
.bn small { font-size: 13.5px; color: var(--muted); }
.bn .bo { font-style: normal; }
.bst { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 5px; }
.st { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 6px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.st svg { width: 16px; height: 16px; }
.st.sent { background: var(--warn-bg); color: #6b4a00; }
.st.served { background: var(--ok-bg); color: var(--ok); }
.who { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line2); }
.who.me { background: var(--ink); color: var(--pink); border-color: var(--ink); }
.who.staff { color: var(--muted); }
.ba { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ba small { display: block; font-size: 13px; color: var(--ok); }
.tot { margin: 8px 0 0; padding: 14px 0 0; border-top: 2px solid var(--ink); }
.tot div { display: flex; justify-content: space-between; padding: 3px 0; font-size: 16px; }
.tot dt { color: var(--muted); } .tot dd { margin: 0; font-variant-numeric: tabular-nums; }
.tot .grand { margin-top: 6px; font-size: 22px; font-weight: 800; }
.tot .grand dt { color: var(--ink); }
.upd { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: right; }
.tb-empty { padding: 40px 0 20px; text-align: center; }
.tb-empty .hand { width: 120px; height: 120px; margin: 0 auto 14px; color: var(--ver); }
.tb-empty p { color: var(--muted); font-size: 17px; margin-bottom: 18px; }

/* ---------------------------------------------------------------- buttons */
.btn, .primary, .ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 17px; }
.btn, .primary { background: var(--ink); color: var(--pink); }
.ghost { border: 2px solid var(--ink); }
.primary.big { width: 100%; min-height: 58px; font-size: 18px; }
.primary.wait, .primary[aria-disabled="true"] { background: #6e6566; }
.primary.busy { background: #6e6566; }
.two { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; }
.two > * { padding: 0 12px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- the sheet (one <dialog>) */
.sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: 94vh; max-height: 94dvh; margin: 0; padding: 0; border: 0; border-radius: 22px 22px 0 0;
  background: var(--pink); color: var(--ink); overflow: hidden; box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .45); }
.sheet[open] { display: flex; flex-direction: column; animation: up .26s var(--ease); }
.sheet::backdrop { background: rgba(35, 31, 32, .55); }
/* a phone without <dialog> (iOS before 15.4): the same element as a plain fixed box with its own backdrop (guest.js dlgShow) */
dialog.sheet:not([open]) { display: none; }
.sheet.fb { z-index: 1000; top: auto; right: 0; bottom: 0; left: 0; }
.sheet-bd { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 999; background: rgba(35, 31, 32, .55); }
.sheet-bd[hidden] { display: none; }
@media (min-width: 700px) { .sheet.fb { top: 5vh; bottom: auto; margin: 0 auto; } }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } .cartbtn.bump, .cb.told .bi { animation: none; } }
@media (min-width: 700px) { .sheet { inset: 0; margin: auto; width: min(600px, calc(100% - 48px)); max-height: min(90dvh, 900px); border-radius: 22px; } }
.sh-in { position: relative; display: flex; flex-direction: column; min-height: 0; max-height: inherit; flex: 1; }
.sh-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sh-body.pad { padding: 22px var(--gutter) 18px; }
.sh-foot { flex: none; padding: 10px var(--gutter) max(12px, env(safe-area-inset-bottom)); background: var(--paper); border-top: 1.5px solid var(--ink); }
.sheet h2 { font: 400 30px/1.05 var(--serif); padding-right: 52px; }
html:lang(th) .sheet h2 { font: 700 24px/1.3 'Noto Sans Thai', var(--sans); }
.sheet h2:focus { outline: none; }
.sheet .lead { margin-top: 10px; font-size: 17px; color: var(--muted); }
.sheet .sub { margin-top: 4px; color: var(--muted); font-size: 15px; }
.sheet .pad > .hand { width: 92px; height: 92px; margin: 0 0 12px; color: var(--ver); }
.x { position: absolute; z-index: 3; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--pink); }
.x svg { width: 20px; height: 20px; }
.cantnote { padding: 6px 0; text-align: center; font-weight: 700; font-size: 16px; }

/* the item sheet */
.iph { position: relative; aspect-ratio: 5 / 4; max-height: 42dvh; width: 100%; background: var(--pink-deep) center / cover; overflow: hidden; }
.iph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.iph img.ok { opacity: 1; }
.iph.broken { display: none; }
.ihead { padding: 16px var(--gutter) 6px; }
.ihead.nophoto { padding-top: 22px; }
.ihead .nm2 { margin-top: 4px; font-size: 15px; }
.ihead .desc { -webkit-line-clamp: unset; display: block; margin-top: 8px; font-size: 15px; }
.ipr { margin-top: 10px; font-size: 19px; font-weight: 800; }
.ipr small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.orow { margin: 0 var(--gutter); padding: 16px 0 14px; border-top: 1px solid var(--line); scroll-margin: 20px; }
.olab { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 10px; }
.olab b { font-size: 17px; }
.olab .oi.gi { margin: -6px 0; }
.rule { font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); }
.rule.must { background: var(--ver); border-color: var(--ver); color: var(--ink); }
.rule.must.ok { background: var(--ok-bg); border-color: var(--ok-bg); color: var(--ok); }
.rule.must.ok::before { content: '✓ '; }
.orow.want { animation: want .9s var(--ease); }
@keyframes want { 0%, 100% { background: transparent; } 25%, 60% { background: rgba(240, 73, 35, .22); box-shadow: 0 0 0 8px rgba(240, 73, 35, .22); } }
.octl .chips { flex-wrap: wrap; overflow: visible; -webkit-mask: none; mask: none; padding: 0; gap: 8px; }
.octl .chip { height: auto; min-height: 48px; padding: 6px 14px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line2); text-align: left; white-space: normal; font-weight: 400; }
.octl .chip b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.2; }
.octl .chip small.plus, .octl small.plus { display: block; font-size: 13px; font-weight: 700; color: var(--brown); }
.octl .chip.has-i { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 4px; }
.octl .chips.art .chip { max-width: 100%; }
.octl button.on { background: var(--ink); color: var(--pink); border-color: var(--ink); }
.octl button.on small.plus { color: var(--pink); }
.octl button:disabled { opacity: .38; }
.chip .cw { min-width: 0; }
.oi { position: relative; display: block; flex: none; width: var(--oi); height: var(--oi); }
.oi > img:first-child { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.oi .om { position: absolute; display: block; height: auto; image-rendering: pixelated; }
.oi.gone { display: none; }
.scale.art .oi.gone { display: block; visibility: hidden; }
.on .oi { background: var(--pink); border-radius: 8px; }
/* Hot / Iced: two big buttons */
.temp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tbig { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 6px 14px; border-radius: 16px; border: 2px solid var(--line2); background: #fff; text-align: left; }
.tbig > svg { width: 32px; height: 32px; flex: none; }
.tbig.hot > svg { color: #c4541d; } .tbig.iced > svg { color: #2a7fb0; }
.tbig b { display: block; font-size: 19px; }
.tbig.has-i { padding-left: 8px; }
.tbig.hot.on { background: #7a2e12; border-color: #7a2e12; color: #fff; }
.tbig.iced.on { background: #174b6e; border-color: #174b6e; color: #fff; }
.tbig.on > svg { color: #fff; }
/* a scale: sweetness, spicy level */
.scale { display: flex; border-radius: 16px; overflow: hidden; border: 1.5px solid var(--line2); background: #fff; }
.scale .step { flex: 1; min-width: 0; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 2px;
  border-left: 1px solid var(--line); }
.scale .step:first-child { border-left: 0; }
.scale .sv { font-size: 18px; font-weight: 800; display: flex; align-items: center; min-height: 22px; }
.scale .sv svg { width: 17px; height: 17px; color: #d2402f; margin: 0 -2px; }
.scale .sv i { font-style: normal; opacity: .6; }
.scale .step small { font-size: 12.5px; font-weight: 600; line-height: 1.1; text-align: center; overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.scale .step.fill { background: rgba(240, 73, 35, .16); }
.scale .step.on { background: var(--ink); color: var(--pink); }
.scale.spicy .step.on { background: #b8321f; color: #fff; }
.scale.spicy .step.on svg { color: #fff; }
.scale + .chips { margin-top: 8px; }
/* segmented: serve, milk, sizes */
.segs { display: flex; border: 1.5px solid var(--line2); border-radius: 16px; overflow: hidden; background: #fff; }
.segs .sg { flex: 1; min-width: 0; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 4px; border-left: 1px solid var(--line); text-align: center; }
.segs .sg:first-child { border-left: 0; }
.segs .sg b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.15; }
.segs .sg small { display: block; font-size: 13px; color: var(--muted); }
.segs .sg.on small { color: var(--pink); }
.segs:has(.sg:nth-child(4)) { display: grid; grid-template-columns: 1fr 1fr; }
.segs:has(.sg:nth-child(4)) .sg { border-top: 1px solid var(--line); }
.segs:has(.sg:nth-child(4)) .sg:nth-child(-n+2) { border-top: 0; }
.segs:has(.sg:nth-child(4)) .sg:nth-child(odd) { border-left: 0; }
.segs.art .sg { flex-direction: row; gap: 6px; text-align: left; justify-content: flex-start; padding-left: 6px; }
/* the note */
.l-note textarea { display: block; width: 100%; min-height: 64px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line2); background: #fff; color: var(--ink);
  font: 400 16px/1.4 var(--sans); resize: vertical; }
.l-note.need .olab b { color: #a3260f; }
.l-note.need textarea { border: 2.5px solid var(--ver); }
.nhint { margin-top: 6px; font-size: 14px; color: #a3260f; font-weight: 600; }
.rmrow { display: flex; align-items: center; gap: 8px; margin: 4px var(--gutter) 20px; min-height: 48px; padding: 0 4px; color: #a3260f; font-weight: 700; }
.rmrow svg { width: 22px; height: 22px; }
.sh-body > .orow:last-child, .sh-body > .l-note:last-child { margin-bottom: 20px; }
/* the foot: quantity + Add */
.foot-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.qs { display: flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }
.qs button { display: grid; place-items: center; width: 48px; height: 52px; }
.qs button svg { width: 22px; height: 22px; }
.qs button:disabled { opacity: .3; }
.qs b { min-width: 26px; text-align: center; font-size: 19px; font-variant-numeric: tabular-nums; }
.qs.sm button { width: 44px; height: 44px; }
.qs.sm b { min-width: 22px; font-size: 17px; }
#isOk { justify-content: space-between; padding: 0 20px; min-height: 56px; font-size: 18px; }
.miss, .dropped { font-size: 14.5px; font-weight: 600; margin-bottom: 8px; }
.miss:empty { display: none; }
.miss { color: #7a2e12; }
.miss.limit { color: var(--ink); background: var(--warn-bg); padding: 8px 12px; border-radius: 12px; }
.dropped { background: var(--warn-bg); padding: 8px 12px; border-radius: 12px; }

/* the cart */
.cl { list-style: none; margin: 16px 0 0; padding: 0; }
.cline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cline:first-child { border-top: 0; }
.cline.bad { background: rgba(240, 73, 35, .14); border-radius: 14px; padding: 10px 8px; }
.cmain { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: start; text-align: left; min-height: 48px; }
.cn { display: flex; flex-direction: column; min-width: 0; }
.cn b { font-size: 16px; line-height: 1.25; }
.cn small { font-size: 13.5px; color: var(--muted); }
.cn .cp { color: #a3260f; font-weight: 700; }
.cpr { font-weight: 700; margin-top: 2px; }
.limit { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); font-size: 15px; }
.namebox { display: block; margin-top: 18px; }
.namebox span { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.namebox input { width: 100%; height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line2); background: #fff; color: var(--ink); font: 500 17px var(--sans); }
.namebox + .hint { padding-top: 6px; font-size: 13.5px; }
.sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--ink); font-size: 16px; }
.sum b { font-size: 24px; font-variant-numeric: tabular-nums; }
.sstate { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.sstate:empty { display: none; }
.sstate.bad { color: #7a2e12; background: rgba(240, 73, 35, .16); padding: 10px 12px; border-radius: 12px; }
.sstate.doubt { background: var(--warn-bg); padding: 10px 12px; border-radius: 12px; }
.sstate.ok { background: var(--ok-bg); color: var(--ok); padding: 10px 12px; border-radius: 12px; }

/* sent, notes, menus list */
.sent { text-align: center; }
.bigtick { display: grid; place-items: center; width: 84px; height: 84px; margin: 6px auto 14px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.bigtick svg { width: 48px; height: 48px; }
.sent h2 { font-family: var(--marker); font-size: 44px; padding: 0; transform: rotate(-3deg); }
html:lang(th) .sent h2 { font: 700 28px/1.3 'Noto Sans Thai', var(--sans); transform: none; }
.sl { list-style: none; margin: 18px auto 0; padding: 12px 16px; max-width: 360px; background: var(--paper); border-radius: 14px; text-align: left; }
.sl li { padding: 3px 0; }
.sl small { color: var(--muted); }
.s-note .sh-body.pad .bigtick { margin-left: 0; }
.ml { list-style: none; margin: 14px 0 0; padding: 0; }
.mrow { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-height: 56px; padding: 8px 12px; border-radius: 14px; text-align: left; }
.mrow b { font: 400 22px/1.1 var(--serif); }
html:lang(th) .mrow b { font: 700 18px/1.3 'Noto Sans Thai', var(--sans); }
.mrow small { color: var(--muted); font-size: 14px; }
.mrow.on { background: var(--ink); color: var(--pink); }
.mrow.on small { color: var(--pink); }

/* ---------------------------------------------------------------- the calm full screens */
.screen { min-height: 100dvh; display: flex; flex-direction: column; background: var(--pink); }
.scr-top { display: flex; align-items: center; justify-content: space-between; max-width: var(--col); width: 100%; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 0; }
.scr-top .wordmark { width: 84px; color: var(--ver); }
.scr { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; max-width: 460px; margin: 0 auto; padding: 24px var(--gutter) 60px; text-align: center; }
.scr .hand { width: 150px; height: 170px; color: var(--ver); }
.scr h1 { font-size: 48px; }
html:lang(th) .scr h1 { font-size: 30px; }
.scr p { font-size: 18px; color: var(--muted); }
.scr .scr-tbl { font-weight: 700; color: var(--ink); font-size: 16px; }
.screen[data-kind="closed"] { background: var(--ver); }
.screen[data-kind="closed"] .hand, .screen[data-kind="closed"] .wordmark { color: var(--pink); }
.screen[data-kind="closed"] p { color: var(--ink); }
.dots { display: flex; gap: 8px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); animation: dot 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* the toast */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--dock-h) + 12px); transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px;
  background: var(--ink); color: var(--pink); font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); text-align: center; }
.toast.ok { background: var(--ok); color: #fff; }

@media (max-width: 370px) {
  .badge { font-size: 24px; padding: 4px 12px 5px; }
  .badge.long { font-size: 19px; }
  .top .wordmark { width: 62px; }
  .row { grid-template-columns: minmax(0, 1fr) 92px; gap: 12px; }
  .row .ph { width: 92px; height: 92px; }
  .cb { font-size: 12.5px; }
  .two { grid-template-columns: 1fr 1.25fr; }
  .primary, .ghost { font-size: 16px; }
}

/* review fixes 2026-11-16: a quiet link, the "no alcohol" note, the frozen basket, the closed screen's basket line */
.linkbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; background: none; }
.adultnote { margin: 10px 0 0; padding: 4px 14px; border-radius: 14px; background: var(--paper); border: 1.5px dashed var(--line2); font-size: 14.5px; color: var(--muted); }
.row.adultno .rt, .row.adultno .ph { opacity: .5; }
.cantlink { text-align: center; }
.primary.again { background: var(--ver); color: var(--ink); }
.cl.frozen .cline { opacity: .78; }
.frozen-note { padding-top: 10px; }
.scr .scr-cart { color: var(--ink); font-size: 17px; background: var(--warn-bg); padding: 10px 14px; border-radius: 14px; }
.sheet .told .lead { color: var(--ink); }
