/* Every value here is overridden from the dashboard's Design tab (see applyDesign in menu.js). */
:root {
  --brand: #8b5e3c;
  --bg: #faf7f4;
  --card: #ffffff;
  --text: #2b2420;
  --muted: #7a6f68;
  --price: #8b5e3c;
  --line: color-mix(in srgb, var(--text) 12%, transparent);
  --radius: 16px;
  --header-bg: #8b5e3c;
  --header-text: #ffffff;
  --header-image: none;
  --overlay: .4;
  --footer-bg: transparent;
  --footer-text: var(--muted);
  --font-heading: 'Tajawal', system-ui, sans-serif;
  --font-body: 'Tajawal', system-ui, sans-serif;
  --bg-image: none;
}
@media (prefers-color-scheme: dark) {
  body.dark-auto {
    --bg: #121212;
    --card: #1e1e1e;
    --text: #f1f1f1;
    --muted: #a3a3a3;
    --footer-bg: #0d0d0d;
    --footer-text: #a3a3a3;
    --price: color-mix(in srgb, var(--brand) 55%, #fff);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg) var(--bg-image) center / cover fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-heading); }

/* ---------- Header ---------- */
.hero {
  position: relative;
  padding: 40px 16px 28px;
  color: var(--header-text);
  background: linear-gradient(160deg, var(--header-bg), color-mix(in srgb, var(--header-bg) 70%, #000));
}
.header-solid .hero { background: var(--header-bg); }
.header-minimal .hero { background: transparent; color: var(--text); }
.header-image .hero {
  background:
    linear-gradient(rgba(0,0,0,var(--overlay)), rgba(0,0,0,var(--overlay))),
    var(--header-image) center / cover, var(--header-bg);
}
.header-compact .hero { padding: 20px 16px 16px; }
.header-tall .hero { min-height: 45vh; display: flex; align-items: center; justify-content: center; }
.header-tall.align-start .hero { justify-content: flex-start; }

.hero-inner { max-width: 760px; margin: 0 auto; width: 100%; text-align: center; }
.align-start .hero-inner { text-align: start; }
.align-start .hero-inner .logo { margin: 0; }
.align-start .hero .socials { justify-content: flex-start; }

.hero h1 { margin: 8px 0 4px; font-size: 1.9rem; font-weight: 800; }
.header-compact .hero h1 { font-size: 1.5rem; }
.tagline { margin: 0; opacity: .9; }

.logo {
  width: 92px; height: 92px; margin: 0 auto;
  object-fit: cover; background: #fff;
  border: 3px solid color-mix(in srgb, var(--header-text) 85%, transparent);
  border-radius: 50%;
}
.logo-rounded .logo { border-radius: 22%; }
.logo-square .logo { border-radius: 0; }
.logo-small .logo { width: 64px; height: 64px; }
.logo-large .logo { width: 128px; height: 128px; }
.header-minimal .logo { border-color: var(--line); }

.lang {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 1;
  border: 1px solid color-mix(in srgb, currentColor 50%, transparent);
  background: color-mix(in srgb, currentColor 12%, transparent);
  color: inherit; border-radius: 999px; padding: 6px 14px;
  font: inherit; font-weight: 700; cursor: pointer;
}

/* ---------- Social buttons ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.socials:empty { display: none; }
.socials a {
  display: inline-flex; align-items: center; gap: 6px;
  color: inherit; text-decoration: none; font-size: .9rem; font-weight: 500;
  background: color-mix(in srgb, currentColor 14%, transparent);
  padding: 7px 12px; border-radius: 999px;
}
.socials-icons .socials a { padding: 0; width: 40px; height: 40px; justify-content: center; }
.socials-icons .socials a span { display: none; }
.socials i {
  width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

/* ---------- Category tabs ---------- */
.tabs {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 16px; background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; text-decoration: none; color: var(--text);
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-weight: 500; white-space: nowrap;
}
.tabs a.active { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); }
.tabs-square .tabs a { border-radius: min(var(--radius), 8px); }
.tabs-underline .tabs { gap: 4px; }
.tabs-underline .tabs a { background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 8px 10px; }
.tabs-underline .tabs a.active { background: none; color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }

/* ---------- Items ---------- */
main { max-width: 760px; width: 100%; margin: 0 auto; padding: 16px; flex: 1; }
.search input {
  width: 100%; padding: 12px 16px; font: inherit;
  border: 1px solid var(--line); border-radius: min(var(--radius), 14px);
  background: var(--card); color: var(--text);
}

section { scroll-margin-top: 70px; margin-top: 24px; }
section h2 { font-size: 1.35rem; margin: 0 0 12px; }

.items { display: grid; gap: 10px; }
.item {
  display: flex; gap: 14px; align-items: stretch;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; overflow: hidden;
}
.card-shadow .item { border-color: transparent; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.card-flat .item { border-color: transparent; }
.item.off { opacity: .55; }
.item .thumb {
  flex: none; width: 96px; height: 96px; object-fit: cover; cursor: zoom-in;
  background: var(--line); border-radius: calc(var(--radius) * .75);
}
.img-circle .item .thumb { border-radius: 50%; }
.img-square .item .thumb { border-radius: 0; }
.item .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.item p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.item .foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 800; color: var(--price); }
.old { text-decoration: line-through; color: var(--muted); font-size: .85rem; }
.badge {
  font-size: .75rem; padding: 2px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--text);
}
.badge.na { background: #d9534f22; color: #c0392b; }

/* Grid: 2 per row, photo on top */
.layout-grid .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .layout-grid .items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.layout-grid .item { flex-direction: column; padding: 0; gap: 0; }
.layout-grid .item .thumb { width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; }
.layout-grid .item .body { padding: 10px 12px 12px; }

/* Cards: one per row, big photo */
.layout-cards .item { flex-direction: column; padding: 0; gap: 0; }
.layout-cards .item .thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
.layout-cards .item .body { padding: 14px 16px 16px; }
.layout-cards .item h3 { font-size: 1.2rem; }

/* Compact: text only, price on the same line */
.layout-compact .items { gap: 0; }
.layout-compact .item { border-radius: 0; border-width: 0 0 1px; border-color: var(--line); background: transparent; box-shadow: none; padding: 12px 0; }
.layout-compact .item .thumb { display: none; }
.layout-compact .item .body { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
.layout-compact .item h3 { grid-column: 1; }
.layout-compact .item p { grid-column: 1 / -1; }
.layout-compact .item .foot { grid-column: 2; grid-row: 1; padding-top: 0; margin: 0; justify-content: flex-end; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center; font-size: .9rem; line-height: 1.6;
  padding: 24px 16px 40px; margin-top: 24px;
  background: var(--footer-bg); color: var(--footer-text);
}
.site-footer p { margin: 4px 0; }
.site-footer p:empty { display: none; }
.site-footer .hours { font-weight: 700; }
.site-footer .socials { margin-top: 12px; }

/* ---------- Photo viewer ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.85);
  display: grid; place-items: center; padding: 16px; cursor: zoom-out;
}
.viewer img { max-height: 90vh; border-radius: 12px; }

/* ---------- Tags, extra fields, table ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag {
  font-size: .72rem; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--tag, var(--brand)) 14%, transparent);
  color: color-mix(in srgb, var(--tag, var(--brand)) 70%, var(--text));
}
.fields { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.layout-compact .item .fields, .layout-compact .item .tags { grid-column: 1 / -1; }
.tag-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; padding-bottom: 2px; }
.tag-filter::-webkit-scrollbar { display: none; }
.tag-filter button {
  flex: none; font: inherit; font-size: .85rem; cursor: pointer; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text);
}
.tag-filter button.on { background: var(--tag, var(--brand)); border-color: var(--tag, var(--brand)); color: #fff; }
.table-chip {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--text);
}
/* How many are at the table: quiet, next to the table's name. */
.table-people {
  display: inline-flex; align-items: center; gap: 5px; font-weight: 500; font-size: .78rem; color: var(--muted);
  padding-inline-start: 8px; margin-inline-start: 2px; border-inline-start: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
}
.guest-dots { display: inline-flex; }
.guest-dots { gap: 3px; }
.guest-dot {
  display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: .62rem; font-weight: 700;
  color: #fff; background: var(--g); vertical-align: middle; position: relative; top: -1px; margin-inline-end: 6px;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.guest-dots .guest-dot { margin-inline-end: 0; }
.guest-dot.me { box-shadow: 0 0 0 1.5px var(--card, #fff), 0 0 0 2.5px var(--g); margin: 0 2px; }
.g1 { --g: #e07a5f; } .g2 { --g: #3d8bfd; } .g3 { --g: #2a9d8f; } .g4 { --g: #b56cd6; }
.g5 { --g: #e9a23b; } .g6 { --g: #d6517d; } .g7 { --g: #5c7cfa; } .g8 { --g: #6c8b3c; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }
.closed-note { color: var(--muted); font-size: .85rem; margin: -6px 0 10px; }
.item { cursor: pointer; }
.item:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.add-hint {
  margin-inline-start: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 1.1rem; line-height: 1;
}

/* ---------- Bottom sheets (item details, cart) ---------- */
.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 92vh;
  border-radius: 20px 20px 0 0; background: var(--card); color: var(--text); overflow: auto;
  font-family: var(--font-body);
}
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 20px; } }
.sheet::backdrop { background: rgba(0, 0, 0, .5); }
.sheet[open] { animation: sheet-up .22s ease-out; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.sheet-close {
  position: sticky; top: 10px; float: inline-end; margin: 10px; z-index: 2; width: 36px; height: 36px;
  border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 1rem; cursor: pointer;
}
.sheet-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: -56px; }
.sheet-content { padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); clear: both; }
.sheet-content h2 { margin: 0 0 6px; font-size: 1.4rem; }
.sheet .muted { color: var(--muted); margin: 0 0 8px; line-height: 1.5; }
.sheet-price { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 1.1rem; }

.opt-group { border: 0; border-top: 1px solid var(--line); padding: 12px 0 4px; margin: 8px 0 0; }
.opt-group legend { font-weight: 700; padding: 0; display: flex; gap: 8px; align-items: baseline; width: 100%; }
.opt-group legend small { color: var(--muted); font-weight: 500; font-size: .78rem; }
.opt { display: flex; align-items: center; gap: 10px; padding: 9px 0; cursor: pointer; }
.opt input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }
.opt span:first-of-type { flex: 1; }
.opt-price { color: var(--muted); font-size: .9rem; }

.field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: .9rem; font-weight: 500; }
.field input, .field textarea {
  font: inherit; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); width: 100%; resize: vertical;
}

.sheet-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button {
  width: 40px; height: 40px; border: 0; background: none; color: var(--text); font-size: 1.2rem; cursor: pointer;
}
.qty output { min-width: 24px; text-align: center; font-weight: 700; }
.qty.small button { width: 32px; height: 32px; font-size: 1rem; }
.btn-primary {
  flex: 1; border: 0; border-radius: 999px; padding: 13px 18px; cursor: pointer;
  background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:disabled { opacity: .5; cursor: default; }
.btn-primary.wide { width: 100%; margin-top: 16px; }
.btn-primary.whatsapp { background: #25d366; color: #fff; }
.btn-primary i {
  width: 20px; height: 20px; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}

.cart-lines { list-style: none; padding: 0; margin: 8px 0; }
.cart-lines li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-line-main small { color: var(--muted); }
.segmented { display: flex; gap: 6px; margin-top: 14px; background: var(--bg); padding: 4px; border-radius: 12px; }
.segmented label { flex: 1; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; text-align: center; padding: 9px 6px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.segmented input:checked + span { background: var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.12); color: var(--brand); }
.segmented input:focus-visible + span { outline: 2px solid var(--brand); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin: 16px 0 0; }
.totals dd { margin: 0; text-align: end; }
.warn { color: #c0392b; font-weight: 600; margin: 10px 0 0; }
.small { font-size: .85rem; }

/* ---------- Cart bar and toast ---------- */
.cart-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 15;
  width: min(520px, calc(100% - 28px)); display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 800; font-size: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.cart-count {
  min-width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; font-size: .85rem;
  background: color-mix(in srgb, var(--on-brand) 22%, transparent);
}
.cart-total { margin-inline-start: auto; }
body.has-cart { padding-bottom: 80px; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 90px; z-index: 30; max-width: calc(100% - 32px);
  background: #222; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: .9rem; text-align: center;
}

/* ---------- Deals, branches, order status, waiter calls, ratings ---------- */
.badge.promo { background: #e53e3e1f; color: #c53030; font-weight: 700; }
.locations {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 4px 6px 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.locations select { font: inherit; border: 0; background: transparent; color: inherit; padding: 4px; }
.locations option { color: #111; }
.order-status {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 12px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--brand);
}
.order-status.status-ready { border-inline-start-color: #38a169; background: color-mix(in srgb, #38a169 8%, var(--card)); }
.order-status.status-cancelled { opacity: .7; border-inline-start-color: #a0aec0; }
.order-status-actions { display: flex; gap: 8px; align-items: center; }
.btn-small {
  font: inherit; font-size: .85rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 0; background: var(--brand); color: var(--on-brand);
}
.btn-link { font: inherit; font-size: .85rem; border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; }
.service-btn {
  position: fixed; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 14;
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.6rem;
  background: var(--card); box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
body.has-cart .service-btn { bottom: calc(86px + env(safe-area-inset-bottom)); }
#serviceBody .btn-primary { margin-top: 10px; }
.rate-link {
  margin-top: 14px; font: inherit; font-weight: 700; cursor: pointer; padding: 8px 16px; border-radius: 999px;
  border: 1px solid currentColor; background: transparent; color: inherit;
}
.stars { display: flex; justify-content: center; gap: 6px; margin: 12px 0 4px; }
.stars button { font-size: 2.4rem; line-height: 1; border: 0; background: none; cursor: pointer; color: #d4d4d4; padding: 2px; }
.stars button.on { color: #f6ad55; }
.center { text-align: center; }
.btn-primary.google { text-decoration: none; background: #1a73e8; color: #fff; }

/* ---------- Hot/iced, sold out, seasonal ---------- */
.badge.temp { background: color-mix(in srgb, var(--text) 8%, transparent); }
.badge.season { background: #dd6b201f; color: #9c4221; }
.temp-pick { margin: 12px 0 4px; }
.temp-only { margin: 8px 0; font-weight: 700; }
.opt.sold-out { opacity: .5; }
.sold-tag { font-style: normal; font-size: .75rem; color: #c53030; font-weight: 700; margin-inline-start: 4px; }
.opt-qty { margin-inline-start: 8px; }
.opt-qty button:disabled { opacity: .35; cursor: default; }

/* ---------- Suggestions ---------- */
.up-added { color: #2f855a; font-weight: 700; margin: 0 0 4px; }
.up-list { display: grid; gap: 10px; margin: 12px 0; }
.up-card {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg);
}
.up-card img, .up-ph { width: 56px; height: 56px; border-radius: calc(var(--radius) * .6); object-fit: cover; background: var(--line); flex: none; }
.up-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.up-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wide-link { display: block; width: 100%; text-align: center; padding: 10px; }
.cart-upsell { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.cart-upsell h3 { margin: 0; font-size: 1rem; }
#addToCart { white-space: nowrap; padding-inline: 14px; }

/* ---------- AI menu assistant ---------- */
.ask-btn {
  position: fixed; inset-inline-start: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 14;
  padding: 12px 18px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 800;
  background: var(--card); color: var(--text); box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
body.has-cart .ask-btn { bottom: calc(86px + env(safe-area-inset-bottom)); }
.ask-sheet[open] { display: flex; }
.ask-sheet form { display: flex; flex-direction: column; width: 100%; max-height: 88vh; }
.ask-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 18px; border-bottom: 1px solid var(--line); }
.ask-head h2 { margin: 0; font-size: 1.15rem; }
.ask-head .sheet-close { position: static; margin: 4px; float: none; }
.ask-log { flex: 1; overflow-y: auto; padding: 14px 14px 4px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.ask-msg { max-width: 88%; display: flex; flex-direction: column; gap: 8px; }
.ask-msg p { margin: 0; padding: 10px 14px; border-radius: 16px; line-height: 1.45; white-space: pre-wrap; }
.ask-msg.assistant { align-self: flex-start; }
.ask-msg.assistant p { background: color-mix(in srgb, var(--text) 7%, var(--card)); border-end-start-radius: 4px; }
.ask-msg.user { align-self: flex-end; }
.ask-msg.user p { background: var(--brand); color: var(--on-brand); border-end-end-radius: 4px; }
.ask-msg.error p { color: #c0392b; }
.ask-msg .up-card { cursor: pointer; }
.ask-msg.typing { flex-direction: row; gap: 4px; padding: 14px; background: color-mix(in srgb, var(--text) 7%, var(--card)); border-radius: 16px; }
.ask-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: ask-dot 1s infinite; }
.ask-msg.typing span:nth-child(2) { animation-delay: .15s; }
.ask-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ask-dot { 50% { opacity: .3; transform: translateY(-3px); } }
.ask-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 14px; }
.ask-chips .chip { font: inherit; font-size: .85rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.ask-input { display: flex; gap: 8px; padding: 8px 14px; }
.ask-input input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.ask-note { margin: 0; padding: 0 14px calc(10px + env(safe-area-inset-bottom)); font-size: .75rem; color: var(--muted); text-align: center; }

/* ---------- Payments ---------- */
.pay-choice { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.pay-title { font-weight: 700; margin: 0 0 8px; }
.pay-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 8%, var(--card)); font-size: .9rem; }
.cliq-box { margin: 10px 0 0; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; }
.cliq-box p { margin: 0 0 4px; }
.cliq-alias { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.pay-bill { margin-bottom: 12px; }
.pay-state { font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fffaf0; color: #7b341e; white-space: nowrap; }
.pay-state.paid { background: #f0fff4; color: #22543d; }

/* ---------- Pager ---------- */
.pager { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.6); }
.pager[hidden] { display: none; }
.pager-box { background: var(--card); color: var(--text); border-radius: 24px; padding: 28px 22px; width: min(380px, 100%); text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.pager-box h2 { margin: 8px 0 6px; font-size: 1.6rem; }
.pager-box p { color: var(--muted); margin: 0 0 18px; }
.pager-bell { font-size: 3.5rem; animation: ring 1s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes ring { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(18deg); } 20%, 40% { transform: rotate(-18deg); } }
.placed { text-align: center; padding-top: 30px; }
.placed-icon { font-size: 3rem; }
.center { text-align: center; }
.menu-notice { margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; background: #fffbeb; color: #744210; border: 1px solid #f6e05e; font-weight: 600; }

/* ---------- Split bill ---------- */
.bill-orders li { align-items: flex-start; gap: 10px; }
.bill-order.mine { background: color-mix(in srgb, var(--brand) 6%, transparent); border-radius: 10px; padding-inline: 8px; }
.bill-order.paid, .bill-order.pending { opacity: .65; }
.bill-order input[type=checkbox] { width: 22px; height: 22px; margin-top: 2px; }
.split-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.split-mode input { position: absolute; opacity: 0; }
.split-mode span { display: block; text-align: center; padding: 10px 8px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .9rem; cursor: pointer; }
.split-mode input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--card)); color: var(--brand); }
.share-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.share-row label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; }

/* ---------- Wait time, your usual ---------- */
.wait-line { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 8%, var(--card)); font-weight: 600; font-size: .9rem; }
.usual { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 12px 14px;
  border-radius: var(--radius); background: var(--card); border: 1px dashed var(--brand); }
.usual div { display: flex; flex-direction: column; min-width: 0; }
.usual strong { white-space: nowrap; }
.usual small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usual .btn-small { flex: none; }

/* ---------- Allergens ---------- */
.passport-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; padding: 10px 14px;
  border-radius: 12px; background: color-mix(in srgb, #38a169 8%, var(--card)); border: 1px solid color-mix(in srgb, #38a169 30%, var(--line)); font-size: .9rem; }
.passport-actions { display: flex; gap: 10px; align-items: center; }
.badge.allergy { background: #fff5f5; color: #c53030; font-weight: 700; }
.allergen-line { font-size: .85rem; color: var(--muted); margin: 6px 0; }
.allergy-warn { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #fff5f5; color: #9b2c2c; font-weight: 700; font-size: .9rem; }
.allergen-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.allergen-chip input { position: absolute; opacity: 0; }
.allergen-chip span { display: block; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-weight: 600; font-size: .9rem; }
.allergen-chip input:checked + span { background: #fff5f5; border-color: #fc8181; color: #9b2c2c; }

/* ---------- Gifts ---------- */
.gift-link { margin-top: 10px; font-weight: 700; color: var(--brand); text-decoration: none; }
.gift-code { font: 800 2rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .2em; padding: 14px; border: 2px dashed var(--brand); border-radius: 14px; direction: ltr; }

/* ---------- Smart order, visitor's language ---------- */
.smart-note { margin-bottom: 12px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.lang.tr { inset-inline-end: auto; inset-inline-start: 14px; }

/* ---------- Smart waiter ---------- */
.waiter-hi { margin-bottom: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--card);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: 0 4px 18px color-mix(in srgb, var(--brand) 10%, transparent); }
.waiter-hi p { margin: 4px 0 10px; }
.waiter-hi .up-card { background: color-mix(in srgb, var(--brand) 5%, var(--bg)); }
.w-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.w-head .btn-link { color: var(--muted); }
.up-card.big { flex-wrap: wrap; }
.up-card.big img, .up-card.big .up-ph { width: 84px; height: 84px; }
.up-desc { color: var(--muted); font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.up-note { color: #2f855a; font-weight: 700; font-size: .8rem; }
.w-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.w-choice { padding: 16px 10px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font: inherit; font-weight: 700; cursor: pointer; }
.w-choice:hover, .w-choice:focus-visible { border-color: var(--brand); }
.w-sub { margin: 16px 0 0; font-size: 1rem; }
.w-hints { display: grid; gap: 8px; margin: 12px 0 4px; }
.w-hint { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; font-size: .9rem;
  background: color-mix(in srgb, var(--brand) 9%, var(--card)); border: 1px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); }
.w-hint span { flex: 1; }
.w-hint small { color: var(--muted); }
.badge.house { background: color-mix(in srgb, #2f855a 14%, var(--card)); color: #276749; }
.badge.hot-today { background: color-mix(in srgb, #dd6b20 14%, var(--card)); color: #9c4221; }
.w-cart { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.w-cart h3 { margin: 0 0 8px; font-size: .95rem; }
.w-goal { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #d69e2e 12%, var(--card)); }
.w-goal p { margin: 0 0 8px; font-weight: 700; }
.w-goal.done { font-weight: 800; color: #276749; background: color-mix(in srgb, #38a169 14%, var(--card)); }
.w-bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.w-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #d69e2e, var(--brand)); }
.totals dd.save { color: #2f855a; font-weight: 700; }
.chat-order { margin-top: 8px; padding: 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.chat-order ul { margin: 6px 0 10px; padding-inline-start: 18px; }
.waiter-extra { padding-bottom: 0; }
.waiter-extra h3 { margin: 0 0 4px; }
@media (prefers-reduced-motion: no-preference) {
  .waiter-hi { animation: w-in .35s ease-out; }
  @keyframes w-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ---------- Smart waiter, level 2 ---------- */
.w-hint.soft { background: color-mix(in srgb, #d69e2e 10%, var(--card)); border-style: solid; border-color: transparent; }
.w-group { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.w-group p { margin: 0; flex: 1 1 180px; }
.table-bar { margin-bottom: 12px; }
.table-bar p { margin: 0 0 8px; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px dashed var(--line); }
.w-table { margin-top: 8px; }
.ask-nudge { position: fixed; inset-inline-start: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 15; max-width: min(300px, calc(100vw - 32px));
  padding: 10px 14px; border-radius: 16px; border: 0; cursor: pointer; font: inherit; font-weight: 600; text-align: start;
  background: var(--card); color: var(--text); box-shadow: 0 6px 22px rgba(0,0,0,.18); animation: w-in .35s ease-out; }
.ask-mic { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; width: 44px; flex: none; cursor: pointer; font-size: 1.1rem; }
.ask-mic.on { background: #e53e3e; color: #fff; border-color: #e53e3e; }

/* ---------- Icons (one line-icon set instead of emojis) ---------- */
.badge .ic { width: 1em; height: 1em; margin-inline-end: 3px; vertical-align: -0.15em; }
.placed-icon .ic { width: 56px; height: 56px; stroke-width: 1.6; color: var(--brand); }
.pager-bell .ic { width: 64px; height: 64px; stroke-width: 1.6; }
.service-btn .ic { width: 26px; height: 26px; }
.ask-mic .ic { width: 20px; height: 20px; vertical-align: middle; }
.w-choice .ic { display: block; width: 26px; height: 26px; margin: 0 auto 6px; color: var(--brand); stroke-width: 1.8; }
.w-hint > .ic { flex: none; color: var(--brand); }
.locations [data-ic] .ic { color: var(--muted); }
.smart-note .ic, .wait-line .ic, .allergy-warn .ic, .w-goal .ic { color: var(--brand); }
.allergy-warn .ic { color: inherit; }
.service-btn { color: var(--text); display: grid; place-items: center; }
