/* Customer app styles, layered on /shared/bissda.css */
body { padding-bottom: 72px; }
@media (min-width: 760px) { body { padding-bottom: 0; } }
#main:focus { outline: none; }
.map { position: relative; z-index: 0; isolation: isolate; }
.wrap.section, .narrow.section { padding: 20px 16px; }
@media (max-width: 759px) { #toasts { bottom: 76px; } }
.page-title:focus { outline: none; }
.page-title:focus-visible { box-shadow: none; }

/* ---------- top bar ---------- */
.topbar .wrap { gap: 8px; }
.top-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; flex: none; }
.topbar .logo { flex: none; }
.addr-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; min-width: 0; flex: 0 1 auto; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font: 600 .85rem var(--font); color: var(--ink); cursor: pointer; }
.addr-btn span.txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-btn:hover { border-color: var(--line-2); }
.top-link { display: none; }
.icon-btn { position: relative; text-decoration: none; color: var(--ink); }
.icon-btn .count { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.cart-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; border: 0; font: 700 .9rem var(--font); text-decoration: none; cursor: pointer; }
.cart-btn:hover { background: #000; }
.cart-btn.empty { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.top-lang { flex: none; }
.top-lang select { max-width: 8.5em; text-overflow: ellipsis; }
/* Phones: the language picker is a round globe button (the real <select> sits invisibly on top, so it opens the native list). */
@media (max-width: 759px) {
  .top-lang { position: relative; width: 40px; height: 40px; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
  .top-lang select { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; min-height: 0; padding: 0; opacity: 0; cursor: pointer; }
  .top-lang:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
}
@media (max-width: 759px) { .logo small { display: none; } .hide-sm { display: none !important; } .topbar .wrap { gap: 6px; } .cart-btn { padding: 0 12px; } }
@media (min-width: 760px) {
  .top-link { display: inline-flex; }
  .addr-btn { max-width: 300px; }
}

/* ---------- bottom nav (mobile) ---------- */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { display: grid; justify-items: center; gap: 2px; padding: 8px 4px 10px; font-size: .75rem; font-weight: 600; color: var(--muted); text-decoration: none; min-height: 56px; }
.bottom-nav a .ic { font-size: 1.25rem; line-height: 1; }
.bottom-nav a[aria-current=page] { color: var(--brand-dark); }
@media (min-width: 760px) { .bottom-nav { display: none; } }

/* ---------- home ---------- */
.hello { padding: 18px 0 6px; }
.hello h1 { font-size: 1.5rem; margin-bottom: 4px; letter-spacing: -.01em; }
.search-fake { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font: 500 1rem var(--font); text-decoration: none; margin: 10px 0 6px; }
.search-fake:hover { border-color: var(--ink-2); }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 6px 0 12px; }
.toolbar select { width: auto; min-height: 38px; padding: 4px 10px; font-size: .9rem; }
.toolbar label { margin: 0; font-weight: 500; font-size: .85rem; color: var(--muted); }
.rgrid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .rgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .rgrid { grid-template-columns: repeat(3, 1fr); } }
.rcard { display: block; color: inherit; text-decoration: none; border-radius: var(--radius); }
.rcard .cover { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.rcard .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.rcard:hover .cover img { transform: scale(1.03); }
.rcard .eta-pill { position: absolute; inset-inline-end: 10px; bottom: 10px; background: #fff; color: var(--ink); border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 700; box-shadow: var(--shadow); }
.rcard .meta { padding: 10px 2px 0; }
.rcard .name { font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.rcard .rating { flex: none; font-size: .85rem; font-weight: 700; background: var(--surface-2); border-radius: 999px; padding: 1px 8px; }
.rcard .sub { color: var(--muted); font-size: .88rem; }
.rcard.closed .cover img { filter: grayscale(1); opacity: .55; }
.rcard.closed .closed-note { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px; color: #fff; font-weight: 800; background: rgba(31,26,23,.45); font-size: 1rem; }
.rcard.closed .name { color: var(--ink-2); }
.dishes { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.dishes a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: .9rem; }
.dishes a:hover { background: var(--brand-soft); }

/* ---------- restaurant ---------- */
.hero { position: relative; width: 100%; height: clamp(150px, 26vw, 280px); overflow: hidden; background: var(--surface-2); }
@media (max-width: 599px) { .facts .fact { flex: 1 1 40%; } }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero.closed img { filter: grayscale(.8); }
.rhead { margin-top: -36px; position: relative; }
.rhead .logo-img { width: 72px; height: 72px; border-radius: 18px; border: 3px solid #fff; box-shadow: var(--shadow); background: #fff; object-fit: contain; }
.rhead h1 { margin: 10px 0 4px; font-size: 1.7rem; letter-spacing: -.01em; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: .85rem; }
.fact strong { display: block; font-size: .95rem; }
.catnav { position: sticky; top: 60px; z-index: 10; background: var(--bg); padding: 8px 0; border-bottom: 1px solid var(--line); }
.menu-cat { scroll-margin-top: 130px; padding-top: 22px; }
.menu-cat h2 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.items { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .items { grid-template-columns: repeat(2, 1fr); } }
.item { display: grid; grid-template-columns: 1fr 108px; gap: 12px; text-align: start; width: 100%; padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); font: inherit; color: inherit; cursor: pointer; align-items: start; }
button.item:hover { border-color: var(--ink-2); box-shadow: var(--shadow); }
.item .iname { font-weight: 700; }
.iname-orig { font-size: .78rem; color: var(--muted); margin-top: 1px; }
.item .idesc { color: var(--muted); font-size: .88rem; margin: 2px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item img { width: 108px; height: 108px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.item.off { cursor: default; background: var(--surface-2); }
.item.off img { filter: grayscale(1); opacity: .6; }
.item.off .iname, .item.off .price { color: var(--ink-2); }
.tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.tag { font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.sticky-cart { position: fixed; left: 0; right: 0; bottom: 64px; z-index: 24; padding: 0 16px; pointer-events: none; }
.sticky-cart .btn { pointer-events: auto; max-width: 520px; margin: 0 auto; display: flex; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
@media (min-width: 760px) { .sticky-cart { bottom: 20px; } }
.spacer-cart { height: 80px; }

/* ---------- item dialog ---------- */
.item-photo { max-width: none; width: calc(100% + 40px); margin: -8px -20px 12px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
fieldset.opt-group { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 6px; margin: 0 0 14px; }
fieldset.opt-group legend { font-weight: 700; padding: 0 6px; display: flex; gap: 8px; align-items: center; }
fieldset.opt-group.missing { border-color: var(--bad); background: var(--bad-soft); }
.opt { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 500; border-bottom: 1px solid var(--line); cursor: pointer; margin: 0; }
.opt:last-child { border-bottom: 0; }
.opt input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin: 0; }
.opt .p { margin-inline-start: auto; color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.opt.disabled { color: var(--muted); cursor: not-allowed; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.qty button { width: 40px; height: 40px; border: 0; background: var(--surface); font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--surface-2); }
.qty button[disabled] { color: var(--line-2); cursor: not-allowed; }
.qty output { min-width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.dlg-foot .add-why { flex-basis: 100%; text-align: end; font-size: .85rem; color: var(--bad); margin: 0; }

/* ---------- cart & checkout ---------- */
.two-col { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.two-col > *, .line > *, .orow > *, .kv > * { min-width: 0; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } .two-col .side { position: sticky; top: 76px; } }
.line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line.err { background: var(--bad-soft); border-radius: 10px; padding: 12px 10px; }
.line .opts { color: var(--muted); font-size: .85rem; }
.line .ctrls { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
.breakdown { width: 100%; font-size: .95rem; }
.breakdown td { border: 0; padding: 4px 0; }
.breakdown td:last-child { text-align: end; font-variant-numeric: tabular-nums; }
.breakdown tr.total td { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 10px; }
.breakdown tr.credit td { color: var(--ok); }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 8px; cursor: pointer; font-weight: 500; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.choice .ttl { font-weight: 700; display: block; }
.choice.off { opacity: .7; }
.tips { display: flex; gap: 8px; flex-wrap: wrap; }
.cardform { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.cardform .full { grid-column: 1 / -1; }
.wallets { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.wallet { min-height: 48px; border-radius: 12px; border: 1px solid var(--ink); background: #000; color: #fff; font: 700 .95rem var(--font); cursor: pointer; }
.wallet.light { background: #fff; color: var(--ink); }
.wallet[aria-pressed=true] { box-shadow: 0 0 0 3px var(--brand); }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.plain legend { padding: 0; font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }

/* ---------- tracking ---------- */
.track-head { display: grid; gap: 4px; }
.eta-big { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.pin-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.pin-box .pin { font-size: 2rem; font-weight: 800; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 10px 0 4px; }
.progress > span { display: block; height: 100%; background: var(--brand); transition: width .4s ease; }
.driver-row { display: flex; gap: 12px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.map.tall { height: 300px; }
@media (min-width: 900px) { .map.tall { height: 420px; } }
.map-fallback { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: .9rem; text-align: center; padding: 12px; }

/* ---------- orders ---------- */
.olist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.orow { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.orow:hover { border-color: var(--ink-2); }
.orow img { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.orow.active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

/* stars */
.stars { display: flex; gap: 4px; }
.stars label { margin: 0; cursor: pointer; font-size: 2rem; line-height: 1; color: var(--line-2); padding: 2px; border-radius: 8px; }
.stars label.on { color: #c25100; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars input:focus-visible + label { box-shadow: var(--focus); }

/* receipt */
.invoice { background: #fff; }
.invoice table td, .invoice table th { padding: 6px 4px; }
@media print {
  .topbar, .bottom-nav, .no-print, #strip, .skip, #toasts, .sticky-cart { display: none !important; }
  body { background: #fff; padding: 0; }
  .card { box-shadow: none; border: 0; }
}

/* address editor */
.results { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; max-height: 200px; overflow-y: auto; }
.results:empty { display: none; }
.results button { display: block; width: 100%; text-align: start; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: #fff; font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink); }
.results button:hover { background: var(--surface-2); }
.map.small { height: 220px; }
.addr-item { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }

/* inbox & support */
.note { padding: 12px 0; border-bottom: 1px solid var(--line); }
.note.unread { font-weight: 600; }
.note.unread::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-inline-end: 8px; vertical-align: middle; }
.msgs { display: grid; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); }
.msg.me { justify-self: end; background: var(--brand-soft); }
.msg .who { font-size: .75rem; color: var(--muted); font-weight: 700; }
.social { display: grid; gap: 8px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 14px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.or { text-transform: lowercase; } /* English "or"; the key is "Or" so it can be extracted */
.signin-lang { display: flex; justify-content: flex-end; padding-top: 12px; padding-bottom: 0; }
.backlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; margin: 14px 0 4px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .92rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }

/* large text sizes: let the top bar wrap instead of running off the screen */
.topbar .wrap { flex-wrap: wrap; row-gap: 6px; padding-top: 6px; padding-bottom: 6px; }
.topbar .wrap > * { min-width: 0; }
.line > :last-child, .orow > :last-child { min-width: auto; white-space: nowrap; overflow-wrap: normal; }

/* ---------- party orders, meal plans, home chefs ---------- */
.entry-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 16px; }
.entry.hot { border: 2px solid var(--brand); background: var(--brand-soft); }
.entry { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; min-height: 64px; box-shadow: var(--shadow); }
.entry:hover { border-color: var(--brand); background: var(--brand-soft); }
.entry .ic { font-size: 1.6rem; line-height: 1; flex: none; }
.entry .txt { display: grid; min-width: 0; }
.entry strong { font-size: .95rem; }
.entry .sub { font-size: .78rem; color: var(--muted); }
@media (max-width: 599px) {
  .entry { flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px 6px; }
  .entry .sub { display: none; }
  .entry strong { font-size: .82rem; }
}
.special-links { display: grid; gap: 8px; margin: 10px 0; }
@media (min-width: 760px) { .special-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.special-link { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); border: 1px solid #f6c9ab; color: var(--ink); text-decoration: none; }
.special-link:hover { border-color: var(--brand); }
.special-link > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.special-link .ic { font-size: 1.4rem; }
.eyebrow { font-size: .8rem; font-weight: 700; color: var(--brand-dark); text-transform: uppercase; letter-spacing: .04em; margin: 10px 0 0; }
.spcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spcard-link { display: block; color: inherit; text-decoration: none; }
.spcard .cover { position: relative; aspect-ratio: 16 / 7; background: var(--surface-2); }
.spcard .cover img { width: 100%; height: 100%; object-fit: cover; }
.spcard .cover .eta-pill { position: absolute; inset-inline-end: 10px; bottom: 10px; background: var(--brand); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 800; }
.spcard .meta { padding: 12px 14px 14px; }
.spcard .name { font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.chips-static { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.sample { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.sample li { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.sched-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 10px; }
.sched-row .full { grid-column: 1 / -1; }
.when-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.when-opts .choice { margin: 0; }
.day-chips { flex-wrap: wrap; }
.day-chips .chip { min-width: 52px; }
.meal-pick { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.meal { display: grid; gap: 4px; text-align: start; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; color: inherit; cursor: pointer; }
.meal:hover { border-color: var(--ink-2); }
.meal[disabled] { opacity: .5; cursor: not-allowed; }
.meal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.meal .mname { font-weight: 700; font-size: .92rem; }
.meal .mprice { font-size: .88rem; }
.first-week { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.first-week h3 { font-size: .98rem; }
.mini-logo { width: 52px; height: 52px; border-radius: 14px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
.week.skipped { background: var(--surface-2); }
.pday { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
@media (max-width: 480px) { .pday { grid-template-columns: 1fr; } .pday > .row { justify-content: flex-start !important; } }
.tabs .chip { text-decoration: none; display: inline-flex; align-items: center; }
.tabs .chip[aria-current=page] { background: var(--ink); color: #fff; border-color: var(--ink); }
.drop-day { margin-top: 18px; }
.drops { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .drops { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .wrap > .section .drops, .drop-day .drops { grid-template-columns: repeat(3, minmax(0, 1fr)); } .two-col .drops { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.drop { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.drop-img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.drop .drop-body > * + * { margin-top: 2px; }
.drop.sold { background: var(--surface-2); }
.drop.sold .drop-img { filter: grayscale(1); opacity: .6; }
.sample-menu { background: var(--surface-2); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
.sample-menu ul { margin: 0; padding-inline-start: 18px; }
@media (max-width: 899px) { .plan-layout > .side { order: -1; } }
.badge.s-requested { background: var(--warn-soft); color: var(--warn); }
.badge.s-scheduled { background: var(--info-soft); color: var(--info); }

/* ---------- room for longer text (Korean and Vietnamese run 20–40% longer than English) ---------- */
body { overflow-wrap: break-word; }
.btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 6px; padding-bottom: 6px; }
.badge { white-space: normal; max-width: 100%; }
.track-head .spread { flex-wrap: wrap; }
.two-col > * { min-width: 0; }
.track-head, .track-head * { overflow-wrap: anywhere; }

/* right-to-left (Arabic): data lines keep their own order, aligned right */
[dir=rtl] :is(#cart-from, .rhead .row .small, .invoice .grid .small, .orow .bold, .rcard .name, .addr-item .line) { unicode-bidi: plaintext; text-align: right; }

/* Reward card (restaurant page) and reward choice at checkout */
.reward-card { border: 1px dashed var(--brand, #e8590c); border-radius: 12px; padding: 12px 14px; margin: 10px 0; background: color-mix(in srgb, var(--brand, #e8590c) 5%, transparent); }
.reward-card h2 { font-size: 1.05rem; margin: 0; }
.reward-card .stamps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.reward-card .stamp { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-strong, #c9c2bb); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; color: var(--muted, #6b625b); }
.reward-card .stamp.on { background: var(--ok, #1b7a3d); border-color: var(--ok, #1b7a3d); color: #fff; }
.reward-card .stamp.gift:not(.on) { border-color: var(--brand, #e8590c); }
.reward-pick { margin-bottom: 10px; }
.reward-note { margin: 0 0 10px; color: var(--ok, #1b7a3d); }

/* Featured placement (paid, always labelled) and restaurant delivery offers */
.featured-row { margin: 0 0 18px; }
.featured-row h2 { font-size: 1.1rem; margin: 0 0 8px; }
.featured-tag { position: absolute; top: 8px; inset-inline-start: 8px; background: #fff3cd; color: #6b4e00; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.cover { position: relative; }
.offer-tag { display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 600; color: var(--ok, #1b7a3d); background: color-mix(in srgb, var(--ok, #1b7a3d) 10%, transparent); padding: 2px 8px; border-radius: 999px; }
/* Private chef: how it works, and pill-style choices for the place and kitchen */
.howto { counter-reset: how; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.howto li { counter-increment: how; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.howto li::before { content: counter(how); width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .8rem; display: grid; place-items: center; }
.pill-checks { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.pill-checks legend { width: 100%; font-weight: 600; margin-bottom: 6px; }
.pill-checks .hint { width: 100%; }
.pill-checks label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--surface); }
.pill-checks label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pill-checks input { accent-color: var(--brand); margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
/* Friend offer on a restaurant page */
.friend-offer { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; background: var(--surface); }
/* AI image tag on dish pictures made by AI (approved by the restaurant) */
.ai-pic { position: relative; display: block; }
.ai-pic .ai-tag { position: absolute; inset-inline-start: 6px; bottom: 6px; font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 999px; background: rgba(255,255,255,.92); color: #3d342e; font-weight: 600; pointer-events: auto; }
.ai-pic.item-photo-wrap { width: calc(100% + 40px); margin: -8px -20px 12px; }
.ai-pic.item-photo-wrap .item-photo { margin: 0; width: 100%; }
.ai-pic.item-photo-wrap .ai-tag { inset-inline-start: 12px; bottom: 12px; font-size: 12px; }

/* Promo video slideshow (paid, labelled "Sponsored") */
.promo-show { margin: 14px 0 6px; }
.promo-show h2 { font-size: 1.05rem; margin: 0; }
.promo-stage { margin-top: 8px; }
.promo-slide { display: grid; grid-template-columns: auto minmax(0, 1fr); background: var(--card, #fff); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: inherit; text-decoration: none; }
.promo-vid { position: relative; aspect-ratio: 16 / 9; height: 150px; background: #000; }
.promo-vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-tag { position: absolute; right: 8px; top: 8px; font-size: .72rem; background: rgba(255,255,255,.92); color: #333; border-radius: 6px; padding: 2px 6px; }
.promo-info { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.promo-info .sub { font-size: .82rem; color: var(--muted); }
.promo-info .cap { font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.promo-info .btn { align-self: flex-start; margin-top: 6px; }
.promo-dots { display: flex; gap: 6px; }
.promo-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: var(--line-strong, #ccc); cursor: pointer; }
.promo-dot[aria-current="true"] { background: var(--ink, #222); }
@media (max-width: 640px) {
  .promo-slide { grid-template-columns: 132px minmax(0, 1fr); }
  .promo-vid { height: 132px; aspect-ratio: auto; width: 132px; }
  .promo-info { padding: 8px 10px; gap: 2px; }
  .promo-info .cap { -webkit-line-clamp: 2; font-size: .82rem; }
  .promo-info .btn { margin-top: 4px; padding: 4px 10px; font-size: .8rem; }
  .rail-head .tiny { display: none; }
}
/* Bank details for a refund the card couldn't take */
.rb-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.rb-form input { width: 100%; box-sizing: border-box; }

.pass-perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.pass-hint { font-size: .85rem; color: var(--ok, #1b7a3d); }

/* Fees shown upfront: restaurant cards and above the menu */
.rcard .fee-tag { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.fee-line { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: .88rem; line-height: 1.45; }

/* Phones: the top bar stays on one row (label-only address, logo mark only on small phones) */
.addr-btn .txt.short { display: none; }
@media (max-width: 759px) {
  .topbar .wrap { flex-wrap: nowrap; }
  .addr-btn .txt.full { display: none; }
  .addr-btn .txt.short { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 9em; }
  .addr-btn { padding: 0 10px; }
}
@media (max-width: 420px) { .topbar .logo { font-size: 0; gap: 0; } .topbar .logo .logo-mark { font-size: 1rem; } }

/* Home: short swipe rows (Featured near you, Deals near you) */
.rail-section { margin: 0 0 16px; }
.rail-head { margin-bottom: 8px; }
.rail-head h2 { font-size: 1.05rem; margin: 0; }
.rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; scrollbar-width: thin; }
.rail-item { flex: 0 0 auto; scroll-snap-align: start; }
.rail-arrow { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink); }
@media (max-width: 640px) { .rail-arrow { display: none; } }
.mini-card { display: flex; gap: 10px; align-items: center; width: 250px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; text-decoration: none; box-sizing: border-box; }
.mini-card:hover { border-color: var(--line-2); }
.mini-thumb { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.mini-thumb img, .mini-logo img { width: 100%; height: 100%; object-fit: cover; }
/* A logo (not a photo) is shown whole on white: logos are framed squares, older ones may be any shape. */
.mini-thumb.is-logo, .mini-logo:has(img) { background: #fff; border: 1px solid var(--line); }
.mini-thumb.is-logo img, .mini-logo img { object-fit: contain; }
.mini-logo { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
img.mini-logo, .mini-logo:has(img) { background: #fff; border: 1px solid var(--line); object-fit: contain; }
.logo-img { object-fit: contain; background: #fff; }
.mini-body { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.mini-name { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-sub { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured-chip { align-self: flex-start; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); }
.deal-card { width: 240px; padding: 8px 10px; }
.deal-text { font-size: .8rem; font-weight: 700; color: var(--ok); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- table bookings ---------- */
.tb-steps { display: flex; gap: 4px; margin: 4px 0 6px; } .tb-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); } .tb-steps span.on { background: var(--brand); }
.tb-step { font-size: .78rem; font-weight: 700; color: var(--brand-dark); text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.day-chip { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.2; min-height: 44px; padding: 4px 12px; }
.day-chip .left { font-size: .72rem; font-weight: 600; color: var(--ok); }
.day-chip .left.full { color: var(--bad); } .day-chip .left.closed { color: var(--muted); }
.day-chip[aria-pressed=true] .left { color: #bfe9cc; } .day-chip[aria-pressed=true] .left.full { color: #ffb3a8; }
.time-group { margin: 6px 0 2px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.time-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.time-grid .chip { justify-content: center; padding: 0 4px; }
.chip.full { text-decoration: line-through; border-style: dashed; color: var(--muted); background: var(--surface-2); }
.hold-bar { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.pay-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: start; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: var(--surface); }
.pay-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay-opt input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--brand); }
.pay-opt .amt { font-weight: 800; }
.paid-badge { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .03em; border-radius: 999px; padding: 4px 12px; color: #fff; background: var(--ok); }
.paid-badge.dep { background: var(--warn); }
.tb-code { font: 800 2rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em; text-align: center; padding: 8px 0 2px; }
.tb-steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tb-steps-list li { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center; }
.tb-steps-list .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); }
.tb-steps-list .dot.on { background: var(--ok); border-color: var(--ok); }
.table-cta { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--brand); color: #fff; border-radius: 14px; padding: 12px 16px; text-decoration: none; margin: 10px 0; }
.table-cta:hover { background: var(--brand-dark); color: #fff; }
.table-cta strong { font-size: 1rem; } .table-cta .small { color: #fff; opacity: .95; }
.table-cta .arr { font-size: 1.5rem; font-weight: 700; }
.table-tag { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; background: var(--ok-soft); color: var(--ok); margin-top: 4px; }
.table-tag.full { background: var(--bad-soft); color: var(--bad); }
.near-list { display: grid; gap: 10px; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand-dark); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 24px; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper strong { min-width: 6em; text-align: center; }
a.chip { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.near-list .card, .near-list .card > *, .tb-filter > * { min-width: 0; }
.near-list .chips { flex-wrap: wrap; }
/* Invite your table: a table code that came with an invite is filled in and locked (the friend only taps Join). */
.locked-code { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 8px; background: var(--bg-soft, #f1ece7); font-weight: 700; letter-spacing: .2em; font-variant-numeric: tabular-nums; user-select: all; }
/* Dish deals and specials on the menu */
.tag.deal-tag { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.tag.deal-tag.later { font-weight: 600; opacity: .85; }
.tag.special-tag { background: var(--info-soft); color: var(--info); font-weight: 700; }
.deal-nudge { color: var(--brand-dark); font-weight: 600; }

/* A restaurant with no logo or cover: its letters on a soft colour from its name (state.js logoImg / coverImg). */
.letter-logo { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; letter-spacing: .02em; line-height: 1; user-select: none; box-sizing: border-box; }
.rhead .logo-img.letter-logo { font-size: 1.7rem; }
.orow .orow-logo { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line); font-size: 1rem; }
span.mini-logo.letter-logo, .mini-thumb.letter-logo { border: 0; font-size: 1rem; }
.cover-band { width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: flex-end; padding: 10px 14px; box-sizing: border-box; font-weight: 600; font-size: .9rem; }
.hero .cover-band { padding: 14px max(16px, 4vw); font-size: 1rem; }
.rcard.closed .cover-band, .hero.closed .cover-band { filter: grayscale(.8); opacity: .7; }
.tone-0 { background: #FAECE7 !important; color: #712B13 !important; }
.tone-1 { background: #E1F5EE !important; color: #085041 !important; }
.tone-2 { background: #FBEAF0 !important; color: #72243E !important; }
.tone-3 { background: #EEEDFE !important; color: #3C3489 !important; }
.tone-4 { background: #FAEEDA !important; color: #633806 !important; }
.tone-5 { background: #E6F1FB !important; color: #0C447C !important; }
.tone-6 { background: #EAF3DE !important; color: #27500A !important; }
.tone-7 { background: #F1EFE8 !important; color: #444441 !important; }
/* On cards the bottom-right corner holds the delivery time: the cuisine goes top-left instead. */
.rcard .cover-band, .spcard .cover-band { align-items: flex-start; justify-content: flex-start; }
