/* A business's public website. Platform look (navy and gold, dark mode from theme.js) with the
   business's own accent colour (--brand, set by site.js from its settings). Mobile first, logical
   properties only (works RTL and LTR), no inline styles anywhere (strict CSP). */
:root {
  --navy: #1b2a4a; --navy-2: #2b3f6b; --gold: #c8a24a; --gold-text: #8a6a1f;
  --ink: #1a2233; --muted: #5f6b7a; --line: #e3e7ee; --bg: #f5f6f8; --card: #fff; --field: #fff; --field-line: #cdd5e0;
  --soft: #eef1f6; --ok: #1f7a4d; --ok-bg: #e6f4ec; --bad: #b3261e; --bad-bg: #fdecea; --warn: #8a5c00; --warn-bg: #fff4dc; /* #9a6700 was 4.46:1 on --warn-bg (the order page's «تجريبي», 04-12-2026) */
  --top: var(--navy); --top-ink: #fff; --brand: var(--navy); --brand-ink: #fff; --r: 14px; color-scheme: light;
}
[data-mode="dark"] {
  --ink: #e7ecf3; --muted: #9aa6b8; --line: #24304a; --bg: #0b1220; --card: #141d2e; --field: #0e1626; --field-line: #2e3b57;
  --soft: #1c2740; --ok: #5cc98d; --ok-bg: #133325; --bad: #ff8a80; --bad-bg: #3a1a1c; --warn: #f0c060; --warn-bg: #362b12;
  --top: #101a2c; --top-ink: #e7ecf3; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Owner 01-12-2026 (iPhone): tapping +, − or an item again and again must not zoom. manipulation = no double-tap zoom;
   pinch zoom and scrolling stay (never user-scalable=no / maximum-scale). Every input is 16px+ (no zoom on focus). */
html, body, .sheet, .sheet-body, button, a, input, select, textarea, label, summary, [role="button"], [role="radio"] { touch-action: manipulation; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "SF Arabic", "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  color: var(--ink); background: var(--bg); font-variant-numeric: tabular-nums lining-nums; padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.center { text-align: center; } .muted { color: var(--muted); } .small { font-size: .85rem; } .pad { padding: 2rem 1rem; }
#site > p.pad { margin: 0; } /* the page's first paint (the shop's name before the menu): no margin that moves the page when the menu replaces it (CLS, the owner 04-12-2026) */
.bad { color: var(--bad); } .ok { color: var(--ok); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; } /* the bots' field */

.top { background: var(--top); color: var(--top-ink); padding: calc(env(safe-area-inset-top) + .7rem) 1rem .7rem; display: flex; align-items: center; gap: .7rem;
  border-bottom: 3px solid var(--gold); position: sticky; inset-block-start: 0; z-index: 4; }
.top .logo { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; flex: none; }
.top h1 { font-size: 1.1rem; margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .lang { background: transparent; border: 1px solid rgba(255,255,255,.35); color: var(--top-ink); border-radius: 99px; padding: .25rem .75rem; font-size: .85rem; }

main { max-width: 820px; margin: 0 auto; padding: 1rem; }
.cover { background: var(--card); border: 1px solid var(--line); border-inline-start: 5px solid var(--brand); border-radius: var(--r); padding: 1rem; margin-bottom: 1rem; }
.cover p { margin: 0 0 .6rem; font-size: 1.05rem; }
.state { display: inline-block; font-size: .8rem; padding: .15rem .6rem; border-radius: 99px; }
.state.open { background: var(--ok-bg); color: var(--ok); } .state.closed { background: var(--bad-bg); color: var(--bad); }
.links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.links a { border: 1px solid var(--line); border-radius: 99px; padding: .3rem .8rem; font-size: .85rem; text-decoration: none; background: var(--soft); }
.notice { background: var(--warn-bg); color: var(--warn); border-radius: var(--r); padding: .7rem 1rem; margin-bottom: 1rem; }
/* order 21 (hunt H3): «طلبك الحالي» above the menu, for an open order made on this device; the minutes left to pay */
.myorders { display: grid; gap: .5rem; margin-bottom: 1rem; }
.myorder { display: flex; align-items: center; gap: .65rem; min-height: 56px; padding: .5rem .8rem; border-radius: var(--r); border: 1.5px solid var(--accent); color: inherit; text-decoration: none; flex-wrap: wrap; }
.myorder .mo-ic { display: none; } .myorder bdi { white-space: nowrap; } .myorder .mo-txt { flex: 1; min-width: 0; display: grid; } .myorder .mo-txt small { font-size: .82rem; opacity: .85; }
.myorder .mo-go { font-weight: 700; font-size: .9rem; color: var(--accent); white-space: nowrap; margin-inline-start: auto; }
.myorder.pay { border-color: var(--bad); } .myorder.pay .mo-go { color: var(--bad); }
.payleft { margin: .2rem 0 .5rem; font-size: .88rem; font-weight: 700; }

.chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .6rem; margin-bottom: .4rem; }
.chip { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: .35rem .9rem; font-size: .9rem; }
.chip.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.chip.out { opacity: .45; text-decoration: line-through; }
.chip:disabled { opacity: .45; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .85rem; display: flex; flex-direction: column; gap: .35rem; min-height: 8.5rem; }
.item .n { font-weight: 700; line-height: 1.35; flex: 1; }
.item .p { color: var(--brand); font-weight: 700; }
[data-mode="dark"] .item .p { color: var(--gold); }
.item.sold { opacity: .6; }
.tag { align-self: flex-start; font-size: .72rem; padding: .1rem .5rem; border-radius: 99px; background: var(--bad-bg); color: var(--bad); }
.btn { border: 0; border-radius: 10px; background: var(--brand); color: var(--brand-ink); padding: .55rem .9rem; font-weight: 700; cursor: pointer; }
.btn.light { background: var(--soft); color: var(--ink); }
.btn.wide { width: 100%; padding: .8rem; font-size: 1.05rem; }
.btn:disabled { opacity: .5; }

.bar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 5; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
.bar .btn { width: 100%; max-width: 820px; display: block; margin: 0 auto; padding: .85rem; font-size: 1.05rem; }

.sheet { position: fixed; inset: 0; z-index: 10; background: rgba(10, 15, 30, .55); display: flex; align-items: flex-end; justify-content: center; }
.sheet-body { background: var(--bg); width: 100%; max-width: 620px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 18px 18px 0 0; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
.sheet-body h2 { margin: 0 0 .7rem; font-size: 1.15rem; }
.group { margin-bottom: .9rem; } .group b { display: block; margin-bottom: .35rem; }
.opt { display: flex; align-items: center; gap: .6rem; padding: .55rem .2rem; border-bottom: 1px solid var(--line); }
.opt span.main { flex: 1; }
.line { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.line .main { flex: 1; min-width: 0; }
.qty { display: flex; align-items: center; gap: .3rem; }
.qty button { width: 2rem; height: 2rem; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: 1.1rem; line-height: 1; }
.sum { display: flex; justify-content: space-between; padding: .3rem 0; }
.sum.total { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .5rem; }
.seg { display: flex; gap: .4rem; margin: .6rem 0; }
.seg button { flex: 1; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: .6rem; font-weight: 600; }
.seg button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
label { display: block; margin: .55rem 0; font-size: .9rem; color: var(--muted); }
input, textarea { display: block; width: 100%; margin-top: .25rem; padding: .65rem .75rem; border: 1px solid var(--field-line); border-radius: 10px; background: var(--field); font-size: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .6rem; }
.msg { border-radius: 10px; padding: .6rem .8rem; margin: .6rem 0; }
.msg.err { background: var(--bad-bg); color: var(--bad); } .msg.ok { background: var(--ok-bg); color: var(--ok); }
.pay { background: var(--soft); border-radius: 10px; padding: .6rem .8rem; margin: .7rem 0; font-size: .9rem; }

.status { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1rem; text-align: center; margin-bottom: 1rem; }
.status .big { font-size: 1.25rem; font-weight: 800; margin: .4rem 0; }
.steps { display: flex; gap: .3rem; justify-content: center; margin: .8rem 0 .2rem; }
.steps span { width: 2.6rem; height: .4rem; border-radius: 99px; background: var(--line); }
.steps span.on { background: var(--brand); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem 1rem; margin-bottom: 1rem; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; font-size: .9rem; }
.hours .today { font-weight: 800; }
footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 1.5rem 1rem; }
.toast { position: fixed; inset-inline: 1rem; inset-block-end: calc(5.5rem + env(safe-area-inset-bottom)); z-index: 20; margin: 0 auto; max-width: 420px;
  background: var(--ink); color: var(--bg); padding: .7rem 1rem; border-radius: 10px; text-align: center; }
.item img.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--soft); }
select { display: block; width: 100%; margin-top: .25rem; padding: .65rem .75rem; border: 1px solid var(--field-line); border-radius: 10px; background: var(--field); font-size: 16px; }
.reconnect[hidden] { display: none; }
/* a long shop name takes two lines instead of being cut (QA order 13, M1); short names look the same */
.top h1 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; overflow-wrap: anywhere; }
.zone-q { margin-bottom: .4rem; }
/* order 15 polish (design review 01-12-2026): fields with a 3:1 edge, «+965» before the phone, a message
   under a wrong field, the basket's button kept at the bottom */
:root { --field-line: #808b9c; } [data-mode="dark"] { --field-line: #5f6f90; }
.pfx { display: flex; align-items: center; direction: ltr; margin-top: .25rem; border: 1px solid var(--field-line); border-radius: 10px; background: var(--field); padding-inline-start: .75rem; }
.pfx .pre { color: var(--muted); padding-inline-end: .6rem; border-inline-end: 1px solid var(--line); }
.pfx input { margin: 0; border: 0; background: transparent; }
.pfx input:focus { outline: none; } .pfx:focus-within { outline: 2px solid var(--brand); }
.bad-fld input, .bad-fld .pfx { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.bad-fld .pfx input { box-shadow: none; }
.fld-msg { color: var(--bad); font-size: .82rem; margin-top: .25rem; }
.sheet .foot { position: sticky; inset-block-end: calc(-1rem - env(safe-area-inset-bottom)); margin: .6rem -1rem calc(-1rem - env(safe-area-inset-bottom)); padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.btn.off { opacity: .6; }
.pay .btn { padding: .35rem .8rem; min-height: 44px; }
.seg button { min-height: 44px; }
/* order 15, batch A: the dots under «ي» at the end of the shop's name were cut by the two-line clamp: a
   taller line and a little room above and below (measured: no ink cut and the hidden third line never peeks) */
.top h1 { line-height: 1.75; padding-block: .1em; }
/* order 15 batch B: the shop's card at the end (contact + hours); its buttons are 44 px */
.shopcard .links a { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 1rem; }
.shopcard .hours-h { display: block; margin: .9rem 0 .3rem; }
/* order 15, QA journey fixes for the simple look */
.sheet-h { display: flex; align-items: center; gap: .5rem; } .sheet-h h2 { flex: 1; margin: 0; }
.sheet-h .x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); font-size: 1.1rem; display: grid; place-items: center; flex: none; }
.sheet-body > .sheet-h { margin-bottom: .6rem; }
.opt input[type=checkbox] { width: 22px; height: 22px; min-height: 0; flex: none; margin: 0; padding: 0; order: 0; accent-color: var(--brand); }
.opt .main { order: 1; flex: 1; } .opt > span:last-child { order: 2; white-space: nowrap; }
.item .linklike { all: unset; touch-action: manipulation; cursor: pointer; font-weight: 700; line-height: 1.35; flex: 1; min-height: 44px; display: block; }
.item .linklike:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.item img.tap { cursor: pointer; }
.minnote { padding: .55rem .8rem; border-radius: 10px; background: var(--soft); color: var(--ink); font-size: .9rem; margin: .4rem 0; }
.toast--err { background: #fdecea; color: #b3261e; } [data-mode="dark"] .toast--err { background: #3a1b19; color: #ff8f86; }
.closed-hint { margin: .3rem 0 0; color: var(--ink); }
.panelcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem 1rem; margin-bottom: 1rem; }
/* Order 15: «اطلب لوقت لاحق» — «متى تبيه؟», the days and the slots */
.whenbox { margin: .7rem 0; padding: .7rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.whenbox > b { display: block; margin-bottom: .45rem; }
.when-seg button { display: flex; flex-direction: column; align-items: center; min-height: 52px; }
.when-seg button small { font-size: .74rem; font-weight: 500; opacity: .85; }
.when-seg button.off { opacity: .55; }
.chip.day { min-height: 44px; } .chip.day.none { opacity: .55; }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; } /* two a row: «11:30 م – 12:00 ص» (12-hour, owner 01-12-2026) fits a 390 px phone */
.slot { min-height: 44px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--card); color: var(--ink); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.slot.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.slot.full { background: var(--soft); color: var(--muted); text-decoration: line-through; border-style: dashed; }
.whenline { margin: .4rem 0; }

/* order 19: the shop's terms and privacy pages (classic look) */
.legal { line-height: 1.75; max-width: 760px; margin: 0 auto; }
.legal-title { font-size: 1.4rem; } .legal-meta { color: #667; font-size: .85rem; }
.legal-lead { background: rgba(0, 0, 0, .04); border-radius: 12px; padding: .8rem .9rem; }
.legal-h { font-size: 1.05rem; margin-top: 1.2rem; }
.legal-list { padding-inline-start: 1.2rem; } .legal-list li { margin: .3rem 0; } .legal-list li.sub { list-style: circle; margin-inline-start: 1rem; }
.legal-agree { margin: 0 0 .4rem; } .legal-agree a { display: inline-block; min-height: 44px; line-height: 44px; } .legal-foot p { margin: .25rem 0; }

/* order 19 (presale #2): the platform's status line («نواجه عطل، نشتغل عليه») */
.platform-notice { position: relative; z-index: 60; padding: .55rem 1rem; text-align: center; font-size: .92rem; font-weight: 600; line-height: 1.6; }
.platform-notice.warn { background: #fff4d6; color: #5c4300; border-bottom: 1px solid #e9cf86; }
.platform-notice.info { background: #e6f0ff; color: #12345e; border-bottom: 1px solid #b9cff2; }

/* «عندك كوبون؟» in the basket (order 21, public/sitecoupon.js) */
.cpn { margin: .5rem 0; }
.cpn-ask { min-height: 44px; padding: 0; border: 0; background: none; color: var(--gold-text); font: inherit; font-weight: 700; text-decoration: underline; }
[data-mode="dark"] .cpn-ask, [data-mode="dark"] .cpn-x { color: var(--gold); }
.cpn-row { display: flex; align-items: center; gap: .5rem; }
.cpn-row input { flex: 1; min-width: 0; min-height: 46px; margin: 0; font-size: 16px; text-transform: uppercase; }
.cpn-row input[aria-invalid="true"] { border-color: var(--bad); }
.cpn-go { flex: none; white-space: nowrap; }
.cpn.on { padding: .55rem .8rem; border-radius: 10px; background: var(--ok-bg); }
.cpn-main { flex: 1; min-width: 0; overflow-wrap: anywhere; } .cpn-code { font-weight: 800; letter-spacing: .03em; }
.cpn-x { flex: none; min-height: 44px; padding: 0 .4rem; border: 0; background: none; color: var(--gold-text); font: inherit; font-weight: 700; text-decoration: underline; }
.cpn-msg { display: block; margin-top: .3rem; color: var(--bad); font-size: .85rem; }
.cpn-note { display: block; margin-top: .2rem; color: var(--muted); font-size: .82rem; }
.sum.off span:last-child { color: var(--ok); }

/* Order 21 (B2 + B3): «استخدم نقاطي» in the basket, and under a delivered order «قيّم طلبك» and the loyalty card. */
.lyl { margin: .5rem 0; } .lyl.on { padding: .55rem .8rem; border-radius: 10px; background: var(--ok-bg); }
.lyl-row { display: flex; align-items: center; gap: .6rem; min-height: 44px; margin: 0; font-weight: 700; }
.lyl-row input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--brand); }
.lyl-note { display: block; color: var(--muted); font-size: .82rem; } .lyl-msg { display: block; margin-top: .3rem; color: var(--bad); font-size: .85rem; }
.after { margin: 0 1rem; } .after:empty { display: none; }
.after-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; margin: .8rem 0; display: flex; flex-direction: column; gap: .5rem; }
.rvw-pick { display: flex; gap: .2rem; justify-content: center; direction: ltr; }
.rvw-star { min-width: 48px; min-height: 48px; border: 0; background: none; font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; padding: 0; }
.rvw-star.on { color: var(--gold); } .rvw-stars { color: var(--gold); letter-spacing: .1em; } .rvw-stars .off { color: var(--line); }
.rvw-items { display: flex; flex-direction: column; gap: .2rem; } .rvw-item { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.rvw-item > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; } .rvw-thumbs { display: flex; gap: .3rem; flex: none; }
.rvw-thumb { min-width: 44px; min-height: 44px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--field); color: var(--muted); cursor: pointer; }
.rvw-thumb.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.after-box textarea { width: 100%; margin: 0; font-size: 16px; } .after-box .btn.wide { width: 100%; }

/* «ادفع أونلاين» (order 21 C, public/sitepay.js): the choice in the basket and the payment box on the order's page.
   Taps are 48px+; «تجريبي» is always visible in test mode. No card field anywhere: the gateway's own page takes it. */
.paychoice { border: 0; padding: 0; margin: .7rem 0; min-width: 0; display: grid; gap: .45rem; }
.paychoice legend { padding: 0; margin-bottom: .35rem; font-weight: 700; font-size: .95rem; }
.payopt { display: flex; align-items: center; gap: .65rem; min-height: 52px; padding: .55rem .8rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface, var(--card)); cursor: pointer; }
.payopt.on { border-color: var(--accent-line, var(--brand, currentColor)); background: var(--surface-2, var(--soft)); }
.payopt input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent, var(--brand)); }
.payopt-main { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.payopt-main small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.paytest { display: inline-block; padding: .05rem .5rem; border-radius: 99px; background: var(--warn-bg, #fff4dc); color: var(--warn, #8a5c00); font-size: .75rem; font-weight: 700; vertical-align: middle; }
.paytest-note { display: block; color: var(--warn, #8a5c00); font-size: .82rem; }
.paybox { margin: .8rem 0; padding: .8rem .9rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface, var(--card)); display: grid; gap: .5rem; text-align: start; }
.paybox.ok { border-color: var(--ok); background: var(--ok-bg, var(--surface-2, var(--soft))); }
.paybox.bad { border-color: var(--bad); background: var(--bad-bg, var(--surface-2, var(--soft))); }
.paybox p { margin: 0; }
.paybox b { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.payacts { display: flex; flex-wrap: wrap; gap: .5rem; }
.payacts .btn { flex: 1 1 9rem; min-height: 48px; }
.paymsg { color: var(--bad); font-size: .9rem; }
.paybox .spin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--muted); animation: payspin .9s linear infinite; flex: none; }
@keyframes payspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .paybox .spin { animation-duration: 3s; } }

/* Order 21: the page's shape while the menu loads (design demos/micro-motion.html «هيكل التحميل»): grey blocks, no words */
.skel-page { max-width: 760px; margin: 0 auto; padding: 0 1rem 2rem; }
.skel { border-radius: 12px; margin-bottom: 10px; background: linear-gradient(90deg, rgba(127,127,127,.14) 25%, rgba(127,127,127,.26) 50%, rgba(127,127,127,.14) 75%); background-size: 200% 100%; animation: skel 1.2s infinite linear; }
.skel-cover { height: 150px; border-radius: 0; margin: 0 -1rem 16px; }
/* the lines sit in the middle: the page's direction is known only when the words arrive (an English page turned them over: CLS 0.015) */
.skel-line { height: 20px; width: 55%; margin-inline: auto; } .skel-line.short { width: 32%; height: 14px; margin-bottom: 18px; }
.skel-row { height: 76px; }
@keyframes skel { to { background-position: -200% 0 } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
/* order 21 (location): «حدّد موقعي» in the basket (the panel's own styles come with store/locate.css, on tap) */
.locbtn { margin: .25rem 0; }
.loc-link { background: none; border: 0; padding: .5rem .2rem; min-height: 44px; text-decoration: underline; color: inherit; cursor: pointer; }
.loc-pin, .loc-last, .loc-before { margin: .25rem 0; }
/* order 21 (bundles): the entry cards on the menu and the item's «شوفي الإطلالة كاملة» (the builder's styles: /store/bundle.css, on tap) */
.bx-entries { display: flex; flex-direction: column; gap: .6rem; margin: .7rem 0; }
.bx-entry { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 72px; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); text-align: start; font: inherit; }
.bx-entry img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.bx-et { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.bx-et small { color: var(--brand); }
.bx-look { margin: .3rem 0; }
/* order 21 (owner: «حق الخانات اللي لازم نجمه»): required fields end with a red «*», optional ones say so */
.req { color: var(--bad); font-weight: 700; text-decoration: none; margin-inline-start: .15rem; }
.optl { color: var(--muted); font-weight: 400; font-size: .85em; }
/* order 21 (map): the map buttons, the pinned box with its small map, the kind of address (بيت / شقة / مكتب) */
.locmap { margin: .25rem 0; }
.loc-or { margin: .35rem 0 .1rem; }
.loc-pinned { display: grid; gap: .4rem; margin: .25rem 0; padding: .6rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.loc-preview { height: 120px; border-radius: 10px; overflow: hidden; direction: ltr; }
.loc-acts { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.addr-kind { display: grid; gap: .3rem; margin: .5rem 0 .25rem; }
.addr-types { display: flex; gap: .5rem; }
.addr-type { flex: 1; min-height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.addr-type.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* Order 21 (boot guard, public/theme.js): «ما قدرنا نفتح الصفحة» when the page's files did not arrive twice. The shop's colour
   comes as --bf-accent / --bf-ink (CSSOM, only when readable on this mode); else the platform's navy by day, gold by night. */
.bootfail { width: calc(100% - 2rem); max-width: 420px; margin-block: 12vh 0; margin-inline: auto; padding: 1.6rem 1.2rem; display: flex; flex-direction: column; align-items: center; gap: .8rem; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-block-start: 4px solid var(--bf-accent, var(--navy)); border-radius: 16px; color: var(--ink); }
[data-mode="dark"] .bootfail { border-block-start-color: var(--bf-accent, #d4b062); }
.bootfail-logo { width: 72px; height: 72px; border-radius: 14px; object-fit: contain; background: #fff; }
.bootfail-name { margin: 0; font-size: 1.25rem; line-height: 1.4; overflow-wrap: anywhere; }
.bootfail-msg { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.bootfail-btn { width: 100%; min-height: 48px; margin-block-start: .4rem; padding: .7rem 1rem; border: 0; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--bf-accent, var(--navy)); color: var(--bf-ink, #fff); }
[data-mode="dark"] .bootfail-btn { background: var(--bf-accent, #d4b062); color: var(--bf-ink, #0b1220); }
.bootfail-btn:focus-visible { outline: 3px solid #c8a24a; outline-offset: 2px; }
