/* Dark (default): espresso & gold */
:root {
  --bg: #14110e;
  --surface: #1d1915;
  --field: #14110e;
  --ink: #f2ebe0;
  --muted: #a89c8b;
  --line: #2f2922;
  --accent: #d39a5c;
  --on-accent: #17120d;
  --btn: #d39a5c;
  --on-btn: #17120d;
  --gold: #c2804d;
  --wa: #25a35f;
  --err: #f97066;
  --shadow: 0 6px 24px rgb(0 0 0 / .45);
  --ph-bg: radial-gradient(120% 95% at 50% 0%, #4b3827 0%, #261b14 58%, #17110d 100%);
  --ph-frame: rgb(222 178 118 / .32);
  --ph-mark: linear-gradient(165deg, #f3d9a8 0%, #d3a265 42%, #94622f 100%);
  --ph-grain: rgb(255 255 255 / .022);
  --bar-h: 112px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
/* Light: the main website's palette — white, black, gold #c2804d, black buttons */
:root[data-theme="light"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --field: #f9f9f9;
  --ink: #000000;
  --muted: #5c5c5c;
  --line: #eeeeee;
  --accent: #c2804d;
  --on-accent: #000000;
  --btn: #000000;
  --on-btn: #ffffff;
  --wa: #157a46;
  --err: #b42318;
  --shadow: 0 6px 24px rgb(0 0 0 / .08);
  --ph-bg: radial-gradient(120% 95% at 50% 0%, #ffffff 0%, #f9f9f9 55%, #f1ece5 100%);
  --ph-frame: rgb(194 128 77 / .35);
  --ph-mark: linear-gradient(165deg, #dcae78 0%, #c2804d 45%, #8a5527 100%);
  --ph-grain: rgb(194 128 77 / .05);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 8px); }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans); padding-bottom: 104px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button, a, label, input, textarea { touch-action: manipulation; } /* no double-tap zoom delay */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
.muted { color: var(--muted); }
em { font-style: normal; color: var(--muted); font-weight: 400; }

/* Hero */
.hero { position: relative; height: clamp(230px, 36vh, 360px); display: flex; align-items: flex-end; overflow: hidden; background: #14110e; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 17 14 / .1) 20%, rgb(20 17 14 / .88)); }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px 24px; color: #f6efe3; }
.eyebrow { margin: 0 0 4px; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: #e3b98c; font-weight: 600; }
.wordmark { font: 400 clamp(2.4rem, 9vw, 3.75rem)/1 "UnifrakturMaguntia", var(--serif); letter-spacing: .01em; }
.hero-meta { margin: 10px 0 0; font-size: .875rem; color: rgb(246 239 227 / .82); }

/* Sticky bar */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar-row { display: flex; gap: 10px; align-items: center; max-width: 1080px; margin: 0 auto; padding: 12px 16px 8px; }
.seg { display: flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); flex: none; }
.seg button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .9375rem; color: var(--muted); min-height: 40px; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.search { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; height: 46px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.search:focus-within { border-color: var(--accent); }
.theme { position: absolute; z-index: 2; top: max(14px, env(safe-area-inset-top)); right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .22); background: rgb(20 17 14 / .45); color: #f6efe3; display: grid; place-items: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
:root[data-theme="light"] .theme .sun, :root:not([data-theme="light"]) .theme .moon { display: none; }
.search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { border: 0; outline: 0; background: none; width: 100%; min-width: 0; font-size: 1rem; }
.chips { display: flex; gap: 8px; overflow-x: auto; max-width: 1080px; margin: 0 auto; padding: 4px 16px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; border: 1px solid var(--line); background: var(--surface); padding: 6px 14px; border-radius: 999px; font-size: .875rem; font-weight: 500; white-space: nowrap; min-height: 40px; }
.chips button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
body.searching .chips { display: none; }
/* Phones: four tabs share the row; search collapses to a magnifier and expands while in use */
@media (max-width: 560px) {
  .bar-row { gap: 8px; }
  .seg { flex: 1 1 auto; min-width: 0; }
  .seg button { flex: 1 1 0; padding: 8px 4px; font-size: .875rem; min-width: 0; }
  .search { flex: 0 0 42px; height: 42px; padding: 0; justify-content: center; cursor: pointer; }
  .search input { width: 0; padding: 0; }
  .search:focus-within, body.searching .search { flex: 1 1 auto; padding: 0 12px; justify-content: flex-start; }
  .search:focus-within input, body.searching .search input { width: 100%; }
  .bar-row:has(.search:focus-within) .seg, body.searching .seg { display: none; }
}
@media (max-width: 560px) { .chat-fab { width: 54px; height: 54px; } .chat-fab svg { width: 28px; height: 28px; } }

/* Menu */
.menu { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.cat { padding-top: 28px; }
.cat h2 { font: 600 1.5rem/1.2 var(--serif); padding-bottom: 4px; display: flex; align-items: baseline; gap: 10px; }
.cat h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); opacity: .5; }
body:not(.searching) .cat:not(.tab-on) { display: none; }
.items { display: grid; column-gap: 32px; }
@media (min-width: 860px) { .items { grid-template-columns: 1fr 1fr; } }

.item { position: relative; border-bottom: 1px solid var(--line); }
.item-open { display: flex; gap: 16px; width: 100%; padding: 16px 0; border: 0; background: none; text-align: left; align-items: flex-start; min-height: 92px; }
.item-text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.item-name { font-weight: 600; line-height: 1.3; }
.item-desc { color: var(--muted); font-size: .875rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-price { font-weight: 600; font-size: .9375rem; margin-top: 2px; font-variant-numeric: tabular-nums; }
.item-open img, .item-open .ph { width: 104px; height: 104px; flex: none; border-radius: 14px; object-fit: cover; background-color: var(--line); }

/* Photo placeholder: gilt monogram on an espresso tile until the photoshoot lands */
.ph {
  position: relative; display: block; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--ph-grain) 0 1px, transparent 1px 8px),
    var(--ph-bg);
}
.ph::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--ph-frame); border-radius: 10px; }
.ph::after {
  content: ""; position: absolute; inset: 15% 30% 29% 18%; /* nudged up-left, clear of the + button */
  background: var(--ph-mark);
  -webkit-mask: url(../images/mark.png) center / contain no-repeat;
  mask: url(../images/mark.png) center / contain no-repeat;
  filter: drop-shadow(0 1px 0 rgb(0 0 0 / .4));
}
.sheet-img.ph { aspect-ratio: 16 / 9; max-height: 30dvh; }
.sheet-img.ph[hidden] { display: none; }
.sheet-img.ph::before { inset: 10px; border-radius: 14px; }
.sheet-img.ph::after { inset: 20% 0; }
.add { position: absolute; right: 6px; bottom: 22px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); font-size: 1.375rem; line-height: 1; display: grid; place-items: center; font-weight: 500; transition: transform .15s; }
.add:active { transform: scale(.9); }
.add::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; } /* 52px touch target */
.add.has { background: var(--ink); color: var(--bg); border-color: var(--ink); font-size: .9375rem; font-weight: 600; }
.item[hidden], .cat[hidden] { display: none !important; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; }

/* Cart bar */
.cartbar { position: fixed; z-index: 20; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 58px; border: 0; border-radius: 16px; background: var(--btn); color: var(--on-btn); font-weight: 600; font-size: 1rem; box-shadow: 0 10px 30px rgb(0 0 0 / .25); }
.cartbar[hidden] { display: none; }
.cartbar > span:nth-child(2) { flex: 1; text-align: left; }
.cartbar-count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--on-btn) 20%, transparent); display: grid; place-items: center; font-size: .875rem; }
.bump { animation: bump .3s; }
@keyframes bump { 50% { transform: scale(1.04); } }

/* Sheets */
.sheet { padding: 0; border: 0; background: var(--surface); color: var(--ink); width: 100%; max-width: 560px; max-height: 92dvh; margin: auto auto 0; border-radius: 22px 22px 0 0; box-shadow: var(--shadow); overflow: hidden; }
.sheet[open] { animation: up .28s cubic-bezier(.2, .8, .2, 1); }
.sheet::backdrop { background: rgb(10 8 6 / .55); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (max-width: 639px) { .sheet { margin-bottom: var(--kb, 0px); max-height: calc(92dvh - var(--kb, 0px)); } .sheet-body { max-height: calc(92dvh - var(--kb, 0px)); } }
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 22px; } }
.sheet-body { display: flex; flex-direction: column; max-height: 92dvh; margin: 0; position: relative; }
.sheet-pad { padding: 22px 20px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.sheet-pad h2 { font: 600 1.5rem/1.25 var(--serif); padding-right: 40px; }
.sheet-pad h3 { font: 600 1.125rem var(--serif); margin: 26px 0 12px; }
.sheet-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; flex: none; max-height: 40dvh; }
img.sheet-img:not([src]), img.sheet-img[src=""] { display: none; }
.close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--shadow); font-size: 1rem; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font: 600 1.375rem/1.25 var(--serif); }
.sheet-head .close { position: static; box-shadow: none; background: var(--bg); }
.lines { margin-top: 0 !important; }
.price { font-weight: 600; font-size: 1.125rem; margin: 8px 0 0; }
.sheet-foot { display: flex; gap: 12px; padding: 14px 20px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }

.btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--btn); color: var(--on-btn); font-weight: 600; font-size: 1rem; text-decoration: none; transition: background .15s, color .15s; }
@media (hover: hover) { :root[data-theme="light"] .btn:not(.btn-wa, .btn-ghost):hover, :root[data-theme="light"] .cartbar:hover { background: var(--accent); color: var(--on-accent); } }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa svg { width: 22px; height: 22px; fill: currentColor; }
.btn-ghost { background: none; color: var(--ink); border: 1px solid var(--line); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; flex: none; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.25rem; border-radius: 50%; }
.stepper output { min-width: 24px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.lines .stepper button { width: 40px; height: 40px; font-size: 1.1rem; }

.field { display: block; margin-top: 14px; }
.field > span { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); font-size: 1rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field[hidden] { display: none; }
.two { display: grid; gap: 0 12px; }
@media (min-width: 480px) { .two { grid-template-columns: 1fr 1fr; } }
.err { color: var(--err); font-size: .875rem; font-weight: 500; margin: 14px 0 0; }

.lines { list-style: none; margin: 14px 0 0; padding: 0; }
.lines li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-name { font-weight: 600; line-height: 1.3; }
.line-note { grid-column: 1; color: var(--muted); font-size: .8125rem; }
.line-price { font-variant-numeric: tabular-nums; font-size: .9375rem; color: var(--muted); }
.lines .stepper { grid-row: span 2; grid-column: 2; }
.sums { display: grid; grid-template-columns: 1fr auto; gap: 6px 0; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sums dt { color: var(--muted); }
.sums dd { margin: 0; text-align: right; }
.sums .total { color: var(--ink); font-weight: 700; font-size: 1.125rem; padding-top: 8px; border-top: 1px solid var(--line); }

.types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 520px) { .types { grid-template-columns: repeat(4, 1fr); } }
.sums .fee-note { color: var(--muted); font-size: .875rem; }
.type input { position: absolute; opacity: 0; pointer-events: none; }
.type span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .875rem; white-space: nowrap; text-align: center; cursor: pointer; }
.type input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.type input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.sent { display: flex; flex-direction: column; gap: 12px; padding-top: 40px; }
.sent[hidden] { display: none; }
.sent p { margin: 0 0 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- WhatsApp chat (mirrors WhatsApp's own UI colours) ---------- */
:root {
  --wa-green: #25d366; --wa-send: #00a884; --wa-head: #202c33; --wa-head-ink: #e9edef; --wa-head-sub: #8696a0;
  --wa-wall: #0b141a; --wa-in: #202c33; --wa-out: #005c4b; --wa-ink: #e9edef; --wa-time: #8696a0; --wa-tick: #53bdeb;
  --wa-compose: #202c33; --wa-input: #2a3942; --wa-pill: #182229; --wa-pill-ink: #8696a0; --wa-notice: #182229; --wa-notice-ink: #ffd279;
  --wa-chip: #202c33; --wa-chip-ink: #00a884;
  --wa-doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke='%23fff' stroke-opacity='.045' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18h14v8a7 7 0 0 1-14 0zM28 20h3a3 3 0 0 1 0 6h-3M80 12v14M76 12v6a4 4 0 0 0 8 0v-6M80 26v12M58 70l3 6 6 1-4.5 4 1 6-5.5-3-5.5 3 1-6L49 77l6-1zM20 98c0-10 10-16 22-16-1 12-8 20-18 20M20 98l10-8M96 84c-3-4-10-2-8 4 1 3 8 8 8 8s7-5 8-8c2-6-5-8-8-4z'/%3E%3Ccircle cx='102' cy='46' r='5'/%3E%3Ccircle cx='40' cy='50' r='2'/%3E%3C/svg%3E");
}
:root[data-theme="light"] {
  --wa-head: #008069; --wa-head-ink: #fff; --wa-head-sub: rgb(255 255 255 / .82);
  --wa-wall: #efeae2; --wa-in: #fff; --wa-out: #d9fdd3; --wa-ink: #111b21; --wa-time: #667781;
  --wa-compose: #f0f2f5; --wa-input: #fff; --wa-pill: #fff; --wa-pill-ink: #54656f; --wa-notice: #ffeecd; --wa-notice-ink: #54656f;
  --wa-chip: #fff; --wa-chip-ink: #008069;
  --wa-doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke='%23000' stroke-opacity='.06' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18h14v8a7 7 0 0 1-14 0zM28 20h3a3 3 0 0 1 0 6h-3M80 12v14M76 12v6a4 4 0 0 0 8 0v-6M80 26v12M58 70l3 6 6 1-4.5 4 1 6-5.5-3-5.5 3 1-6L49 77l6-1zM20 98c0-10 10-16 22-16-1 12-8 20-18 20M20 98l10-8M96 84c-3-4-10-2-8 4 1 3 8 8 8 8s7-5 8-8c2-6-5-8-8-4z'/%3E%3Ccircle cx='102' cy='46' r='5'/%3E%3Ccircle cx='40' cy='50' r='2'/%3E%3C/svg%3E");
}
.chat { position: fixed; z-index: 25; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-end; gap: 14px; transition: bottom .25s; }
body.has-cart .chat { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px); }
html:has(dialog[open]) .chat { display: none; }

.chat-fab { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--wa-green); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgb(0 0 0 / .28), 0 2px 6px rgb(0 0 0 / .18); transition: transform .15s; touch-action: manipulation; }
.chat-fab:active { transform: scale(.94); }
@media (hover: hover) { .chat-fab:hover { transform: scale(1.06); } }
.chat-fab svg { width: 32px; height: 32px; }
.wa { width: 370px; height: min(580px, calc(100dvh - 120px)); display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--wa-wall); box-shadow: 0 20px 60px rgb(0 0 0 / .4), 0 0 0 1px rgb(0 0 0 / .08); font-family: var(--sans); transform-origin: bottom right; animation: wa-pop .24s cubic-bezier(.2, .8, .2, 1); }
.wa[hidden] { display: none; }
@keyframes wa-pop { from { transform: scale(.9) translateY(10px); opacity: 0; } }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 6px; background: var(--wa-head); color: var(--wa-head-ink); flex: none; }
.wa-icon { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: inherit; display: grid; place-items: center; touch-action: manipulation; }
.wa-icon:active { background: rgb(255 255 255 / .12); }
.wa-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wa-avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; --ph-bg: radial-gradient(120% 95% at 50% 0%, #4b3827 0%, #261b14 58%, #17110d 100%); --ph-mark: linear-gradient(165deg, #f3d9a8 0%, #d3a265 42%, #94622f 100%); }
.wa-avatar::before { display: none; }
.wa-avatar::after { inset: 20% 24%; }
.wa-who { flex: 1; min-width: 0; line-height: 1.25; }
.wa-who strong { display: block; font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-who small { display: block; font-size: .8125rem; color: var(--wa-head-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-brand { width: 22px; height: 22px; color: var(--wa-green); flex: none; opacity: .95; }
:root[data-theme="light"] .wa-brand { color: #fff; }

.wa-thread { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px 8px; display: flex; flex-direction: column; gap: 3px; background-color: var(--wa-wall); background-image: var(--wa-doodle); }
.wa-day { align-self: center; margin: 2px 0 8px; padding: 5px 12px; border-radius: 8px; background: var(--wa-pill); color: var(--wa-pill-ink); font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; box-shadow: 0 1px .5px rgb(11 20 26 / .13); }
.wa-notice { align-self: center; max-width: 92%; margin-bottom: 10px; padding: 6px 12px; border-radius: 8px; background: var(--wa-notice); color: var(--wa-notice-ink); font-size: .75rem; line-height: 1.4; text-align: center; box-shadow: 0 1px .5px rgb(11 20 26 / .13); }
.wa-msg { position: relative; max-width: 85%; padding: 6px 8px 8px 9px; border-radius: 8px; color: var(--wa-ink); font-size: .9375rem; line-height: 1.35; box-shadow: 0 1px .5px rgb(11 20 26 / .13); white-space: pre-wrap; overflow-wrap: anywhere; animation: wa-in .2s ease-out; }
@keyframes wa-in { from { opacity: 0; transform: translateY(6px); } }
.wa-msg.in { align-self: flex-start; background: var(--wa-in); border-top-left-radius: 0; margin-left: 8px; }
.wa-msg.out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 0; margin-right: 8px; margin-top: 8px; }
.wa-msg.in::before, .wa-msg.out::before { content: ""; position: absolute; top: 0; width: 8px; height: 13px; background: inherit; }
.wa-msg.in::before { left: -8px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.wa-msg.out::before { right: -8px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.wa-meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 8px 0 -4px 10px; font-size: .6875rem; color: var(--wa-time); line-height: 1; }
.wa-meta svg { width: 18px; height: 11px; fill: none; stroke: var(--wa-tick); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wa-typing { display: inline-flex; gap: 4px; padding: 12px 12px; }
.wa-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--wa-time); animation: wa-dot 1.2s infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; } .wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wa-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.wa-quick { display: flex; gap: 8px; overflow-x: auto; padding: 6px 12px 8px; background: var(--wa-wall); background-image: var(--wa-doodle); scrollbar-width: none; flex: none; }
.wa-quick::-webkit-scrollbar { display: none; }
.wa-quick[hidden] { display: none; }
.wa-quick button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 18px; border: 0; background: var(--wa-chip); color: var(--wa-chip-ink); font-size: .875rem; font-weight: 500; box-shadow: 0 1px .5px rgb(11 20 26 / .13); touch-action: manipulation; }
.wa-compose { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--wa-compose); flex: none; }
.wa-field { flex: 1; min-width: 0; }
.wa-field input { width: 100%; height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: var(--wa-input); color: var(--wa-ink); font-size: 16px; outline: none; }
.wa-field input::placeholder { color: var(--wa-time); }
.wa-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--wa-send); color: #fff; display: grid; place-items: center; touch-action: manipulation; transition: transform .12s; }
.wa-send:active { transform: scale(.92); }
.wa-send svg { width: 22px; height: 22px; fill: currentColor; margin-left: 2px; }
.wa-scrim { display: none; }

/* Phones: chat becomes a full-width panel that rides above the keyboard */
@media (max-width: 560px) {
  .wa { position: fixed; left: 0; right: 0; bottom: var(--kb, 0px); width: 100%; height: min(640px, calc(100dvh - var(--kb, 0px) - 48px)); border-radius: 16px 16px 0 0; transform-origin: bottom center; animation-name: wa-up; }
  @keyframes wa-up { from { transform: translateY(40px); opacity: 0; } }
  .wa-compose { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .wa-scrim:not([hidden]) { display: block; position: fixed; inset: 0; background: rgb(0 0 0 / .45); animation: fade .2s; }
  @keyframes fade { from { opacity: 0; } }
  body.chat-open { overflow: hidden; }
  body.chat-open .chat-fab { display: none; }
}

/* Takeaway packs picker */
#packField > small { display: block; margin: -2px 0 8px; font-size: .8125rem; }
.packlist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; }
.packlist li { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; }
.packlist li + li { border-top: 1px solid var(--line); }
.packlist .pk-name { flex: 1; min-width: 0; font-weight: 600; }
.packlist .pk-price { display: block; font-weight: 400; font-size: .8125rem; color: var(--muted); }
.packlist li.on { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.packlist .stepper button { width: 40px; height: 40px; }

/* Unavailable items: still listed, greyed out, can't be added */
.item.off .item-text, .item.off .item-open img, .item.off .item-open .ph { opacity: .5; }
.item.off .item-open .ph, .item.off .item-open img { filter: grayscale(.6); }
.unavail { position: absolute; right: 4px; bottom: 26px; padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .02em; box-shadow: var(--shadow); pointer-events: none; }
#itemAdd:disabled { opacity: .55; cursor: not-allowed; }
