/* Rest Platform — hand-authored, RTL-first stylesheet (no build step). */

/* IBM Plex Sans Hebrew, self-hosted (same files as the super-admin console; no third-party font requests) */
/* Assistant (OFL, self-hosted variable font 200–800): the customer site's font – modern, light, fits long product names */
@font-face { font-family: "Assistant"; font-weight: 200 800; font-display: swap; src: url("../fonts/assistant-hebrew-var.woff2") format("woff2-variations"), url("../fonts/assistant-hebrew-var.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Assistant"; font-weight: 200 800; font-display: swap; src: url("../fonts/assistant-latin-var.woff2") format("woff2-variations"), url("../fonts/assistant-latin-var.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Rubik (SIL OFL, LICENSE-OFL-rubik.txt): the customer site's font – variable, weights 300–900 */
@font-face { font-family: "Rubik"; font-weight: 300 900; font-display: swap; src: url("../fonts/rubik-hebrew-var.woff2") format("woff2-variations"), url("../fonts/rubik-hebrew-var.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; font-weight: 300 900; font-display: swap; src: url("../fonts/rubik-latin-var.woff2") format("woff2-variations"), url("../fonts/rubik-latin-var.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Hebrew"; font-weight: 400; font-display: swap; src: url("../fonts/plex-hebrew-hebrew-400.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Plex Hebrew"; font-weight: 500; font-display: swap; src: url("../fonts/plex-hebrew-hebrew-500.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Plex Hebrew"; font-weight: 600; font-display: swap; src: url("../fonts/plex-hebrew-hebrew-600.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Plex Hebrew"; font-weight: 700; font-display: swap; src: url("../fonts/plex-hebrew-hebrew-700.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Plex Hebrew"; font-weight: 400; font-display: swap; src: url("../fonts/plex-hebrew-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Hebrew"; font-weight: 500; font-display: swap; src: url("../fonts/plex-hebrew-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Hebrew"; font-weight: 600; font-display: swap; src: url("../fonts/plex-hebrew-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Hebrew"; font-weight: 700; font-display: swap; src: url("../fonts/plex-hebrew-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand: #e11d48;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --bg: #f8fafc;
  --card: #ffffff;
  --ok: #15803d;
  --ok-bg: #dcfce7;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --err: #dc2626;
  --err-bg: #fee2e2;
  --info: #1d4ed8;
  --info-bg: #dbeafe;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --font: "Plex Hebrew", "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { direction: rtl; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
code, pre, .mono { font-family: ui-monospace, Consolas, "Courier New", monospace; }
[x-cloak] { display: none !important; }
.ltr { direction: ltr; text-align: left; }

/* ---------- layout helpers ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; margin: 0 auto; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-end { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.grid > *, .grid-2 > *, .grid-3 > * { min-width: 0; } /* long content wraps inside its cell instead of widening the page */
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.span-all { grid-column: 1 / -1; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.xs { font-size: .75rem; }
.bold { font-weight: 700; }
.center { text-align: center; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.hide { display: none; }

/* ---------- cards / badges / alerts ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.card h2 { margin-bottom: 12px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--line); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.err { background: var(--err-bg); color: var(--err); }
.badge.info { background: var(--info-bg); color: var(--info); }
.alert { padding: 12px 14px; border-radius: 10px; font-size: .9rem; margin-bottom: 16px; }
.alert.ok { background: var(--ok-bg); color: #14532d; }
.alert.error { background: var(--err-bg); color: #7f1d1d; }
.alert.warn { background: var(--warn-bg); color: #78350f; }
.alert.info { background: var(--info-bg); color: #1e3a8a; }
.secret { border: 1px solid #fcd34d; background: #fffbeb; border-radius: 10px; padding: 12px; }
.secret pre { background: #0f172a; color: #86efac; padding: 12px; border-radius: 8px; overflow-x: auto; margin: 8px 0 0; font-size: .8rem; direction: ltr; text-align: left; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, opacity .15s, box-shadow .15s; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #1e293b; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover:not(:disabled) { opacity: .9; }
.btn-secondary { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-secondary:hover:not(:disabled) { background: #f1f5f9; }
.btn-danger { background: var(--err); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: #f1f5f9; }
.btn-link { background: none; border: 0; padding: 0; color: var(--err); font: inherit; cursor: pointer; text-decoration: underline; }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; border-radius: 12px; }
.btn-xl { padding: 18px 28px; font-size: 1.3rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-sm { padding: 5px 10px; font-size: .8rem; }
.inline { display: inline; }

/* ---------- forms ---------- */
label.lbl, .lbl { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.input, select.input, textarea.input { width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font: inherit; font-size: .92rem; color: var(--ink); }
.input:focus { outline: none; border-color: #64748b; box-shadow: 0 0 0 3px rgba(100, 116, 139, .2); }
.input:disabled { background: #f1f5f9; }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; direction: ltr; text-align: left; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; }
.w-xs { width: 80px; } .w-sm { width: 120px; } .w-md { width: 200px; } .w-lg { width: 300px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0; }
legend { padding: 0 6px; font-weight: 700; font-size: .9rem; }
.help { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: right; font-weight: 700; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--line); }

/* ---------- admin shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 240px; flex-shrink: 0; background: #fff; border-left: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 18px 18px 10px; }
.sidebar .brand b { display: block; font-size: 1.1rem; }
.sidebar nav { display: flex; flex-direction: column; padding: 4px 10px 20px; gap: 2px; }
.sidebar nav a, .sidebar nav button { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-size: .9rem; background: none; border: 0; font: inherit; cursor: pointer; text-align: right; }
.sidebar nav a:hover, .sidebar nav button:hover { background: #f1f5f9; }
.sidebar nav a.active { background: var(--ink); color: #fff; }
.sidebar nav .logout { color: var(--err); }
.main { flex: 1; min-width: 0; padding: 28px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.banner { display: flow-root; background: var(--warn-bg); color: #78350f; padding: 10px 14px; border-radius: 10px; margin-bottom: 18px; font-size: .9rem; }
.stat .label { color: var(--muted); font-size: .85rem; }
.stat .value { font-size: 1.6rem; font-weight: 800; margin-top: 4px; }
.dash-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } /* the five tiles in one row on a computer */
@media (max-width: 1100px) { .dash-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-stats .stat:last-child { grid-column: 1 / -1; } }
.stat .stat-sub { color: var(--muted); font-size: .8rem; margin-top: 2px; }
a.stat-link { color: inherit; text-decoration: none; }
.promo-mini { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: .8rem; }
.promo-mini:empty { display: none; }
.promo-mini li { display: grid; min-width: 0; }
.promo-mini b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-mini span, .promo-mini .more { color: var(--muted); }
a.stat-link:hover { border-color: var(--line-2); box-shadow: 0 4px 14px rgba(15, 23, 42, .08); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
/* /admin/orders: tabs + view (full / compact with chosen details) */
.orders-bar { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-bottom: 16px; } /* the view sits under the tabs, on the right, in both modes */
.orders-bar .tabs { margin-bottom: 0; }
.order-view { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; font: inherit; font-size: .88rem; padding: 7px 14px; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: #fff; font-weight: 700; }
.order-view-fields { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .85rem; cursor: pointer; background: #fff; }
.chip-check:has(input:checked) { border-color: var(--ink); background: #f1f5f9; font-weight: 600; }
.chip-check input { width: 16px; height: 16px; margin: 0; }
.oc-meta { display: flex; flex-wrap: wrap; column-gap: 4px; }
.oc-meta [data-part="details"]::before { content: "· "; }
.hide-name .oc-meta [data-part="details"]::before { content: none; }
.oc-address { color: var(--ink-2); overflow-wrap: anywhere; }
.orders-compact .order-card { gap: 6px; }
.hide-name [data-part="name"], .hide-address [data-part="address"], .hide-date [data-part="date"], .hide-total [data-part="total"],
.hide-details [data-part="details"], .hide-status [data-part="status"] { display: none !important; }
.chart-box { position: relative; height: 280px; }
.list-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }

/* phones / tablets: top bar with ☰, the menu slides in as a drawer (never a sideways-scrolling strip) */
.topbar { display: none; }
@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .topbar .tb-name { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .tb-menu { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: #fff; border-radius: 10px; padding: 7px 12px; font: inherit; font-weight: 600; cursor: pointer; }
  .sidebar { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 70; width: min(300px, 86vw); height: 100%; border-left: 1px solid var(--line); transform: translateX(105%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.18); padding-top: env(safe-area-inset-top, 0px); }
  body.nav-open .sidebar { transform: none; }
  .nav-scrim { display: none; position: fixed; inset: 0; z-index: 69; background: rgba(15,23,42,.4); }
  body.nav-open .nav-scrim { display: block; }
  body.nav-open { overflow: hidden; }
  .main { padding: 16px 14px 90px; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth-card { width: 100%; max-width: 380px; }
.big-icon { font-size: 3rem; text-align: center; }

/* ---------- order cards ---------- */
.order-card { display: block; text-decoration: none; transition: box-shadow .15s; }
.order-card:hover { box-shadow: 0 4px 14px rgba(15, 23, 42, .1); }
.order-card .num { font-size: 1.4rem; font-weight: 800; }
.st-PENDING_PAYMENT { background: var(--line); color: var(--ink-2); }
.st-NEW { background: #ffe4e6; color: #9f1239; }
.st-PREPARING { background: var(--warn-bg); color: var(--warn); }
.st-READY { background: var(--info-bg); color: var(--info); }
.st-COMPLETED { background: var(--ok-bg); color: var(--ok); }
.st-CANCELLED { background: var(--line); color: var(--muted); text-decoration: line-through; }

/* ---------- uploads ---------- */
.upload { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.upload .preview { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.upload .empty { width: 64px; height: 64px; border-radius: 10px; border: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: center; font-size: .7rem; color: var(--muted); }
.gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery .item { position: relative; }
.gallery img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.gallery .x { position: absolute; top: -6px; left: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--err); color: #fff; cursor: pointer; font-size: .75rem; }
.file-btn input { display: none; }

/* ---------- hours editor ---------- */
.hours-day { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours-day .day { width: 64px; font-weight: 700; }
.range { display: inline-flex; gap: 4px; align-items: center; background: #f1f5f9; padding: 4px 8px; border-radius: 9px; }
.range input, .range select { width: 108px; padding: 4px 6px; }
.range .range-lbl { font-size: .75rem; color: var(--muted); font-weight: 600; }
.range button { border: 0; background: none; color: var(--err); cursor: pointer; }

/* =========================================================
   Customer portal
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; max-width: 1180px; margin: 0 auto; }
.site-header .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.site-header .logo img { height: var(--logo-h, 80px); width: auto; max-width: min(600px, 55vw); border-radius: 10px; object-fit: contain; }
.site-header nav { display: flex; gap: 16px; font-size: .9rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
@media (max-width: 760px) { .site-header nav { display: none; } }

.hero { position: relative; background: #0f172a; color: #fff; overflow: hidden; text-align: center; }
.hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.hero .inner { position: relative; padding: 90px 16px; }
.hero .logo-lg { height: var(--logo-h, 80px); width: auto; max-width: min(420px, 80vw); border-radius: 22px; object-fit: contain; margin: 0 auto 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.hero h1 { font-size: 2.6rem; }
.section { padding: 48px 0; }
.section h2.title { text-align: center; font-size: 1.6rem; margin-bottom: 24px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.stars { color: #f59e0b; letter-spacing: 2px; }
.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li { display: flex; justify-content: space-between; padding: 4px 0; font-size: .92rem; }

.site-footer { margin-top: auto; background: #fff; border-top: 1px solid var(--line); }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding: 32px 16px; max-width: 1180px; margin: 0 auto; font-size: .9rem; color: var(--ink-2); }
.site-footer a { text-decoration: none; }
.site-footer .social { display: flex; gap: 10px; }
.site-footer .social a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: #f1f5f9; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
.page-wrap { display: flex; flex-direction: column; min-height: 100vh; }

.wa-float { position: fixed; bottom: 90px; right: 20px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }
@media (max-width: 640px) { .wa-float { width: 46px; height: 46px; right: 14px; bottom: 84px; } .wa-float svg { width: 24px; height: 24px; } }
@media (min-width: 1024px) { .wa-float { bottom: 20px; } }

.prose h1, .prose h2, .prose h3 { margin: 1em 0 .5em; }
.prose p { margin: 0 0 1em; }
.prose a { color: var(--info); }
.prose ul, .prose ol { padding-right: 1.4em; }
.prose img { border-radius: 10px; }

/* ---------- ordering app ---------- */
.order-top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.order-top .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; max-width: 1240px; margin: 0 auto; }
.closed-strip { background: var(--err); color: #fff; text-align: center; padding: 8px; font-size: .9rem; }
.chips-wrap { position: relative; max-width: 1240px; margin: 0 auto; }
/* category bar: swipe / drag sideways, no visible scrollbar */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 12px; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips.dragging { cursor: grabbing; user-select: none; }
.chips.dragging .chip { pointer-events: none; }
.chips-wrap::before, .chips-wrap::after { content: ""; position: absolute; top: 0; bottom: 12px; width: 44px; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 1; }
.chips-wrap::before { right: 0; background: linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)); }
.chips-wrap::after { left: 0; background: linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)); }
.chips-wrap.can-prev::before, .chips-wrap.can-next::after { opacity: 1; }
.chips-arrow { position: absolute; top: calc(50% - 6px); transform: translateY(-50%); z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .12); font-size: 1.15rem; line-height: 1; color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; }
.chips-arrow.prev { right: 6px; }
.chips-arrow.next { left: 6px; }
@media (hover: none) { .chips-arrow { width: 26px; height: 26px; opacity: .9; } }
.chip { flex-shrink: 0; padding: 8px 16px; border-radius: 999px; background: #f1f5f9; color: var(--ink-2); font: inherit; font-weight: 600; font-size: .88rem; text-decoration: none; border: 0; cursor: pointer; transition: background-color .15s, color .15s; white-space: nowrap; }
.chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip.active { background: var(--brand); color: #fff; }
.order-body { display: flex; gap: 24px; max-width: 1240px; margin: 0 auto; padding: 24px 16px 110px; }
.order-body .menu { flex: 1; min-width: 0; }
.order-body .menu section { scroll-margin-top: 140px; margin-bottom: 36px; }
.order-body .menu h2 { font-size: 1.5rem; margin-bottom: 14px; }
.order-body aside { width: 340px; flex-shrink: 0; } /* the cart on the left (after the menu in RTL) */
.order-body aside .sticky { position: sticky; top: 140px; }
@media (max-width: 1023px) { .order-body aside { display: none; } }

.products { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.product { position: relative; display: flex; text-align: right; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; padding: 0; font: inherit; color: inherit; box-shadow: var(--shadow); transition: box-shadow .15s; }
.product:hover { box-shadow: 0 6px 16px rgba(15, 23, 42, .1); }
.product[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.product:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.product .info { flex: 1; display: flex; flex-direction: column; padding: 14px 16px; min-width: 0; }
.product .info .name { font-weight: 600; font-size: 1rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.product .info .desc { color: var(--muted); font-size: .85rem; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.product .info .price { font-weight: 700; font-size: 1.02rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.product .info .price .unit { font-weight: 400; font-size: .8rem; color: var(--muted); margin-inline-start: 4px; } /* the space next to a number collapses in RTL */
.product img { width: 116px; object-fit: cover; flex-shrink: 0; }

.cart-line { padding: 12px 0; border-bottom: 1px solid var(--line); }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: #fff; font-size: 1.1rem; cursor: pointer; }
.qty span { min-width: 40px; text-align: center; font-weight: 700; }
.cart-fab { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
@media (min-width: 1024px) { .cart-fab { display: none; } }

.overlay { position: fixed; inset: 0; z-index: 70; background: rgba(15, 23, 42, .55); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .overlay { align-items: center; } }
.sheet { background: #fff; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; border-radius: 18px 18px 0 0; }
@media (min-width: 640px) { .sheet { border-radius: 18px; } }
.sheet .cover { display: block; width: 100%; height: auto; max-height: min(320px, 40vh); object-fit: contain; background: #f8fafc; padding: 12px; box-sizing: border-box; }
.sheet .body { padding: 20px; }
.pill { display: inline-block; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: .85rem; cursor: pointer; margin: 0 0 6px 6px; }
.pill.opt { background: #e5e7eb; border-color: #d1d5db; color: #374151; }
.pill.opt.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.pill.fixed { background: #f1f5f9; border-color: transparent; color: var(--muted); cursor: default; }
.option { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice button { padding: 16px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.choice button.on { border-color: var(--brand); background: #fff1f2; }
.otp-input { text-align: center; font-size: 1.6rem; letter-spacing: .5em; direction: ltr; }
.phone-input { text-align: center; font-size: 1.2rem; letter-spacing: .1em; direction: ltr; }
.done-num { font-size: 3rem; font-weight: 800; }

/* ---------- kiosk ---------- */
.kiosk { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; user-select: none; font-size: 18px; }
.kiosk .welcome { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; border: 0; background: none; font: inherit; cursor: pointer; }
.kiosk .welcome img { width: 170px; height: 170px; border-radius: 28px; object-fit: cover; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.kiosk .welcome h1 { font-size: 3rem; }
.kiosk .products { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.kiosk .product img { width: 160px; }
.kiosk .product .info .name { font-size: 1.25rem; }
.kiosk .chip { padding: 12px 22px; font-size: 1rem; }
.kiosk .qty button { width: 46px; height: 46px; }
.kiosk .huge { font-size: 7rem; font-weight: 900; color: var(--brand); line-height: 1; }
.full-center { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 24px; }

/* product form: reusable ingredient library */
.ing-lib { display: grid; gap: 10px; padding: 12px 14px; margin-bottom: 12px; border: 1px dashed var(--line-2); border-radius: 12px; background: #f8fafc; }
.ing-chips { display: flex; flex-wrap: wrap; align-items: center; max-height: 168px; overflow-y: auto; }
.ing-chips .pill:hover { border-color: var(--brand); }

/* toggle switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 44px; height: 24px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .15s; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: inset-inline-start .15s; }
.switch input:checked + .track { background: var(--ok, #16a34a); }
.switch input:checked + .track::after { inset-inline-start: 23px; }
.switch input:focus-visible + .track { outline: 2px solid #64748b; outline-offset: 2px; }

/* products table: sortable headers + inline cells */
.th-sort { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-weight: inherit; }
.th-sort:focus-visible { outline: 2px solid #64748b; outline-offset: 2px; border-radius: 4px; }
.th-sort .arrow { font-size: .7em; color: var(--muted); }
th[aria-sort="ascending"] .arrow, th[aria-sort="descending"] .arrow { color: var(--ink); }
.cell-input { font: inherit; color: inherit; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 5px 8px; width: 100%; min-width: 120px; }
.cell-input:hover { border-color: var(--line-2); background: #fff; }
.cell-input:focus { outline: none; border-color: #64748b; background: #fff; box-shadow: 0 0 0 3px rgba(100, 116, 139, .2); }
.cell-input.num { width: 90px; min-width: 0; }
.price-cell { display: inline-flex; align-items: center; gap: 2px; }
.products-table tr.saving { opacity: .55; }
.nowrap { white-space: nowrap; }
.confirm-dialog { border: 0; border-radius: 14px; padding: 20px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgba(15, 23, 42, .3); }
.confirm-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.change-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 12px; background: #f8fafc; border-radius: 10px; }
.change-row .from { text-decoration: line-through; color: var(--muted); }
.change-row .to { font-weight: 700; }
.toast-ok { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(50%); background: #0f172a; color: #fff; padding: 8px 16px; border-radius: 999px; font-size: .9rem; z-index: 90; }

.hours-status { display: grid; gap: 2px; padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; font-size: .88rem; }
.hours-status.open { background: #f0fdf4; color: #166534; }
.hours-status.closed { background: #fef2f2; color: #991b1b; }

/* kashrut bar shown at the top of every page of a kosher business */
.kosher-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; padding: 6px 16px; background: #eff6ff; color: #1e3a8a; font-size: .85rem; border-bottom: 1px solid #dbeafe; text-align: center; }
.kosher-bar .kosher-mark { color: #1d4ed8; }
.kosher-bar .sep { color: #93c5fd; }
.kosher-logo { height: 26px; width: auto; max-width: 80px; object-fit: contain; border-radius: 4px; background: #fff; }
.kiosk .kosher-bar { font-size: 1rem; padding: 8px 16px; }
.order-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.order-brand img { height: var(--logo-h, 80px); width: auto; max-width: min(600px, 55vw); object-fit: contain; border-radius: 10px; }

/* product form: option groups */
.og-head { margin-top: 24px; display: grid; gap: 4px; }
.og-head h3 { font-size: 1.05rem; }
.og-card { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; margin-top: 12px; display: grid; gap: 10px; background: #fff; }
.og-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.og-row .grow { flex: 1 1 200px; min-width: 0; }
.og-req { padding-bottom: 9px; }
.og-del { color: var(--err); padding-bottom: 9px; margin-inline-start: auto; }
.og-table td { padding-top: 4px; padding-bottom: 4px; }

/* customer product dialog: option groups */
.opt-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.opt-group legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; padding: 0; }
.opt-rule { font-weight: 400; font-size: .8rem; color: var(--muted); }
.opt-badge { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; }
.opt-badge.ok { background: #dcfce7; color: #166534; }
.opt-group.invalid .option { border-color: #fca5a5; }
.option.disabled { opacity: .45; cursor: not-allowed; }
.option.disabled input { cursor: not-allowed; }
.btn.is-incomplete { opacity: .6; }

/* ---------- /admin/ingredients: ingredient library + selection groups ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lib-head { align-items: flex-start; }
.lib-head p { max-width: 62ch; margin-top: 4px; }
.save-pill { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); white-space: nowrap; }
.save-pill.dirty, .save-pill.saving { background: #f1f5f9; color: var(--muted); }
.save-pill.error { background: var(--err-bg); color: var(--err); }
.lib-import { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 16px; margin-bottom: 18px; border-radius: var(--radius); background: var(--info-bg); color: #1e3a8a; font-size: .9rem; }
.lib-empty { margin-bottom: 18px; display: grid; gap: 14px; }
.lib-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.lib-steps li { counter-increment: s; display: grid; gap: 4px; padding: 12px 14px 12px 14px; border-radius: 10px; background: var(--bg); font-size: .9rem; }
.lib-steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; margin-bottom: 4px; }
.lib-steps span { color: var(--muted); }

.lib-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .lib-grid { grid-template-columns: minmax(0, 1fr); } }
.lib h2 .count { font-size: .8rem; font-weight: 600; color: var(--muted); background: #f1f5f9; border-radius: 999px; padding: 1px 8px; margin-inline-start: 4px; vertical-align: middle; }

.lib-ings { display: grid; gap: 12px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
@media (max-width: 900px) { .lib-ings { position: static; max-height: none; } }
.lib-add { display: flex; gap: 6px; }
.lib-add .input:first-of-type { flex: 1; min-width: 0; }
.money-in { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .85rem; }
.money-in .input { width: 76px; }
.money-in.sm .cell-input.num { width: 70px; }
.ing-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ing-row { display: flex; align-items: center; gap: 6px; padding: 2px 4px; border-radius: 8px; flex-wrap: wrap; }
.ing-row:hover { background: var(--bg); }
.ing-row.is-dragging { opacity: .5; }
.ing-row > .cell-input:not(.num) { flex: 1; min-width: 90px; }
.handle { cursor: grab; color: var(--line-2); font-size: 1.1rem; padding: 0 2px; user-select: none; }
.ing-row:hover .handle { color: var(--muted); }
.chip-sm { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: var(--ink-2); white-space: nowrap; }
.chip-sm.ok { background: var(--ok-bg); color: var(--ok); }
.icon-btn { border: 0; background: none; color: var(--muted); cursor: pointer; width: 28px; height: 28px; border-radius: 8px; font-size: .9rem; flex-shrink: 0; }
.icon-btn:hover { background: var(--err-bg); color: var(--err); }
.icon-btn:focus-visible, .stepper button:focus-visible, .handle:focus-visible { outline: 2px solid #64748b; outline-offset: 1px; }
.inline-confirm { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--err-bg); color: #7f1d1d; font-size: .85rem; }
.inline-confirm span { flex: 1 1 200px; }
.danger-text { color: var(--err); }

.lib-groups { display: grid; gap: 14px; min-width: 0; }
.group-card { display: grid; gap: 12px; transition: box-shadow .15s, border-color .15s; border: 1px solid transparent; }
.group-card.is-over { border-color: var(--info); box-shadow: 0 0 0 4px var(--info-bg); }
.group-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.group-name { flex: 1; min-width: 180px; font: inherit; font-size: 1.15rem; font-weight: 700; color: var(--ink); border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; background: transparent; }
.group-name:hover { border-color: var(--line-2); }
.group-name:focus { outline: none; border-color: #64748b; background: #fff; box-shadow: 0 0 0 3px rgba(100, 116, 139, .2); }
.rule-chip { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #f1f5f9; color: var(--ink-2); }
.rule-chip.req { background: var(--warn-bg); color: var(--warn); }
.group-rules { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper .lbl-inline { font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-inline-end: 4px; }
.stepper button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; font-size: 1.05rem; cursor: pointer; }
.stepper output { min-width: 78px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.group-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.group-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 8px 6px 4px; border: 1px solid var(--line); border-radius: 10px; }
.group-item.is-default { border-color: #86efac; background: #f0fdf4; }
.group-item .name { flex: 1; min-width: 100px; font-weight: 600; padding-inline-start: 6px; }
.group-item .ctrls { display: inline-flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.group-item .def { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--ink-2); cursor: pointer; }
.group-add .input { border-style: dashed; }
.drop-hint { border: 2px dashed var(--info); color: var(--info); border-radius: 10px; padding: 14px; text-align: center; font-weight: 600; font-size: .9rem; background: var(--info-bg); }
.quick-picks { display: flex; flex-wrap: wrap; }
.quick-picks { align-items: center; }
.quick-picks .pill { font-size: .8rem; padding: 4px 10px; color: var(--ink-2); }
.group-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }

.apply-dialog { border: 0; border-radius: 14px; padding: 20px; width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgba(15, 23, 42, .3); }
.apply-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.apply-list { max-height: min(52vh, 460px); overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; }
.apply-list fieldset { border: 0; padding: 8px 0; margin: 0; border-bottom: 1px solid var(--line); }
.apply-list fieldset:last-child { border-bottom: 0; }
.apply-list legend { padding: 0; }
.apply-row { padding: 4px 0 4px 0; padding-inline-start: 24px; display: flex; gap: 8px; align-items: center; }

/* product form: groups from the library */
.og-lib { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; padding: 10px 12px; margin-top: 8px; border-radius: 10px; background: var(--info-bg); }
.og-lib .pill { margin: 0; background: #fff; }
.og-lib .pill.added { background: var(--ok-bg); border-color: transparent; color: var(--ok); cursor: default; }
.og-src { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.more-link { color: var(--info); }

/* special groups (pizza toppings) */
.special { flex-basis: 100%; display: grid; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.special-opts { padding-inline-start: 26px; display: grid; gap: 6px; }
.money-in.half { color: var(--info); }

/* customer dialog: pizza toppings with half / whole */
.toppings { display: grid; gap: 8px; }
.topping { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.topping.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, #fff); }
.topping.disabled { opacity: .45; }
.topping .t-name { display: grid; gap: 1px; min-width: 0; }
.portions { display: inline-flex; gap: 4px; }
.portion { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font: inherit; font-size: .8rem; cursor: pointer; color: var(--ink-2); }
.portion.sel { border-color: var(--brand); background: var(--brand); color: #fff; }
.portion:disabled { cursor: not-allowed; }
.portion:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pie { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; flex-shrink: 0; }
.pie-R { background: linear-gradient(to left, currentColor 50%, transparent 50%); }
.pie-L { background: linear-gradient(to right, currentColor 50%, transparent 50%); }
.pie-F { background: currentColor; }
.kiosk .portion { padding: 10px 14px; font-size: .95rem; }

/* cart lines: edit / remove */
.cart-line .line-name { all: unset; cursor: pointer; font-weight: 700; }
.cart-line .line-name:hover { text-decoration: underline; }
.cart-line .line-name:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.line-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.line-actions .links { display: flex; gap: 12px; font-size: .82rem; }
.line-actions .links button { all: unset; cursor: pointer; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.line-actions .qty button.is-last { font-size: .85rem; } /* the last unit: − removes the item (a bin) */
.line-actions .links button.ed { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink-2); text-decoration: none; cursor: pointer; }
.line-actions .links button.ed:hover, .line-actions .links button.ed:focus-visible { color: var(--brand); border-color: var(--brand); }
.line-actions .links button.ed svg { width: 18px; height: 18px; }
.line-actions .links button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cart-line.just-edited { animation: line-flash 1.2s ease; }
@keyframes line-flash { from { background: color-mix(in srgb, var(--brand) 12%, #fff); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .cart-line.just-edited { animation: none; } }

/* cart line details: one row per group, group name in bold */
.line-details { margin: 6px 0 0; display: grid; gap: 4px; font-size: .86rem; line-height: 1.45; color: var(--ink-2); }
/* group title and its choices flow like a sentence and wrap at word boundaries (the cart column is narrow) */
.ld-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; }
.ld-row dt { font-weight: 700; color: var(--ink); max-width: 100%; }
.ld-row dt::after { content: ":"; }
.ld-row dd { display: contents; }
.ld-item { white-space: nowrap; max-width: 100%; overflow-wrap: anywhere; }
.cart-line { min-width: 0; }
.ld-item .pie { display: inline-block; vertical-align: -1px; width: 11px; height: 11px; border-width: 1.2px; color: var(--ink-2); margin-inline-end: 4px; }
.ld-portion { color: var(--muted); font-size: .8rem; }
.ld-removed dt, .ld-removed dd { color: var(--err); }
.ld-note dd { color: var(--muted); font-style: italic; }

/* /admin/ingredients: groups as collapsible panels */
.group-card { padding: 0; gap: 0; overflow: hidden; }
.group-head { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.group-head:hover { background: var(--bg); }
.group-head:focus-visible { outline: 2px solid #64748b; outline-offset: -2px; }
/* chevron: points left (reading direction) when closed, down when open */
.group-head .chev { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(135deg); transition: transform .15s; flex-shrink: 0; margin-inline: 4px; }
.group-card.is-open .group-head .chev { transform: rotate(45deg); }
.gh-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.gh-name { font-weight: 700; font-size: 1.05rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-preview { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-meta { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.group-card.is-open .group-head { border-bottom: 1px solid var(--line); }
.group-body { display: grid; gap: 12px; padding: 14px 16px 16px; }
.group-card.just-added { animation: group-flash .9s ease; }
@keyframes group-flash { from { box-shadow: 0 0 0 4px var(--ok-bg); border-color: var(--ok); } to { box-shadow: var(--shadow); } }
@media (prefers-reduced-motion: reduce) { .group-card.just-added { animation: none; } .group-head .chev { transition: none; } }
@media (max-width: 560px) { .group-head { flex-wrap: wrap; } .gh-meta { flex-basis: 100%; justify-content: flex-start; padding-inline-start: 24px; } }
.group-body .group-top { display: grid; gap: 4px; max-width: 420px; }
.group-body .group-name { font-size: .95rem; font-weight: 600; padding: 8px 12px; border: 1px solid var(--line-2); background: #fff; }

/* ingredients page v3: unassigned ingredients on top, groups below; read view with edit icons */
.lib .lib-ings { position: static; max-height: none; overflow: visible; margin-bottom: 18px; }
.lib .lib-add { max-width: 560px; }
.ing-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; }
.ing-grid .ing-row { border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; background: #fff; flex-wrap: wrap; }
.ing-grid .ing-row.is-editing { border-color: #64748b; box-shadow: 0 0 0 3px rgba(100, 116, 139, .15); }
.ing-view { flex: 1; min-width: 0; display: grid; }
.ing-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ing-price { font-size: .78rem; color: var(--muted); }
.ing-edit { flex: 1; min-width: 0; display: flex; gap: 6px; align-items: center; }
.ing-edit > .input { flex: 1; min-width: 0; padding: 6px 8px; }
.ing-edit .money-in .input { width: 70px; padding: 6px 8px; }
.row-tools { display: inline-flex; gap: 2px; }
.icon-btn.edit:hover { background: var(--info-bg); color: var(--info); }
.icon-btn.ok { color: var(--ok); }
.icon-btn.ok:hover { background: var(--ok-bg); color: var(--ok); }
.icon-btn.sm { width: 24px; height: 24px; font-size: .82rem; vertical-align: middle; }

.g-settings { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; }
.g-facts { margin: 0; flex: 1; min-width: 240px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 16px; }
.g-facts div { display: grid; gap: 1px; }
.g-facts div.wide { grid-column: 1 / -1; }
.g-facts dt { font-size: .75rem; color: var(--muted); font-weight: 600; }
.g-facts dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.g-facts dd.muted { font-weight: 400; color: var(--muted); }
.g-form { display: grid; gap: 12px; }
.g-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; }
.g-fields .wide { grid-column: 1 / -1; }
.group-item .name { display: flex; align-items: center; }
.group-item .rename { display: grid; gap: 2px; width: 100%; max-width: 280px; }
.group-item .rename .input { padding: 5px 8px; }
.price-read { font-size: .85rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.group-card.is-editing { border-color: #94a3b8; }
.opt-desc { margin: -4px 0 8px; font-size: .85rem; color: var(--muted); }

/* ingredients page v4: rules row first, special inline; unassigned list collapsible */
.g-form .group-rules { order: -1; }
.group-rules .special-opts { flex-basis: 100%; padding-inline-start: 0; }
.lib .lib-ings { padding: 0; gap: 0; }
.ings-head { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.ings-head:hover { background: var(--bg); }
.ings-head:focus-visible { outline: 2px solid #64748b; outline-offset: -2px; }
.ings-head .chev { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(135deg); transition: transform .15s; flex-shrink: 0; margin-inline: 4px; }
.lib-ings.is-open .ings-head .chev { transform: rotate(45deg); }
.lib-ings.is-open .ings-head { border-bottom: 1px solid var(--line); }
.ings-body { display: grid; gap: 12px; padding: 14px 16px 16px; }

/* /admin/shipping */
.ship-list { display: grid; gap: 10px; }
.ship-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.ship-card.is-off { opacity: .6; }
.ship-icon { font-size: 1.4rem; line-height: 1; padding-top: 2px; }
.ship-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ship-title { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 1.02rem; }
.ship-desc { font-size: .9rem; color: var(--ink-2); max-width: 65ch; overflow-wrap: anywhere; }
.ship-desc.muted { color: var(--muted); }
.ship-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ship-facts span:first-child { color: var(--ink); font-weight: 700; }
.ship-tools { display: flex; gap: 2px; }
.ship-dialog { border: 0; border-radius: 14px; padding: 20px; width: min(480px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgba(15, 23, 42, .3); }
.ship-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.ship-types { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.ship-type { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.ship-type:has(input:checked) { border-color: var(--brand, #e11d48); background: color-mix(in srgb, var(--brand, #e11d48) 6%, transparent); }
.ship-type b { display: block; }
.ship-type small { display: block; font-size: .8rem; }
/* checkout: description of the only shipping method */
.ship-note { font-size: .88rem; color: var(--ink-2); background: var(--bg); border-radius: 8px; padding: 8px 10px; }

/* product form: selection groups as collapsible panels */
.og-card { padding: 0; gap: 0; overflow: hidden; }
.og-head-btn { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.og-head-btn:hover { background: var(--bg); }
.og-head-btn:focus-visible { outline: 2px solid #64748b; outline-offset: -2px; }
.og-head-btn .chev { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(135deg); transition: transform .15s; flex-shrink: 0; margin-inline: 4px; }
.og-card.is-open .og-head-btn .chev { transform: rotate(45deg); }
.og-card.is-open .og-head-btn { border-bottom: 1px solid var(--line); }
.og-head-btn .gh-title { font-weight: 400; color: var(--muted); font-size: .9rem; }
.og-body { display: grid; gap: 10px; padding: 12px 14px 14px; }
@media (max-width: 560px) { .og-head-btn { flex-wrap: wrap; } .og-head-btn .gh-meta { flex-basis: 100%; justify-content: flex-start; padding-inline-start: 24px; } }

/* /admin/products: live search */
.prod-filters { flex-wrap: wrap; align-items: center; gap: 10px; }
.search-box { position: relative; flex: 0 1 320px; min-width: 200px; }
.search-box::before { content: ""; position: absolute; top: 50%; inset-inline-start: 12px; width: 12px; height: 12px; border: 2px solid var(--muted); border-radius: 50%; transform: translateY(-60%); pointer-events: none; }
.search-box::after { content: ""; position: absolute; top: 50%; inset-inline-start: 23px; width: 6px; height: 2px; background: var(--muted); transform: translateY(4px) rotate(45deg); pointer-events: none; }
.search-box .input { padding-inline-start: 36px; }
.prod-filters select.input { width: 200px; }

/* product form: reorder selection groups */
.og-head-row { display: flex; align-items: center; }
.og-head-row .og-head-btn { flex: 1; min-width: 0; }
.og-card.is-open .og-head-row { border-bottom: 1px solid var(--line); }
.og-card.is-open .og-head-btn { border-bottom: 0; }
.og-handle { cursor: grab; color: var(--line-2); font-size: 1.1rem; padding: 0 4px 0 10px; padding-inline: 10px 2px; user-select: none; align-self: stretch; display: flex; align-items: center; }
.og-card:hover .og-handle { color: var(--muted); }
.og-move { display: inline-flex; gap: 2px; padding-inline-end: 8px; }
.og-move .icon-btn:disabled { opacity: .3; cursor: default; background: none; color: var(--muted); }
.og-move .icon-btn:not(:disabled):hover { background: var(--info-bg); color: var(--info); }
.og-card.is-dragging { opacity: .5; }
.og-card.drag-over { box-shadow: 0 0 0 3px var(--info-bg); border-color: var(--info); }

/* product form: existing-ingredients chips, collapsed by default */
.ing-lib { gap: 0; padding: 0; }
.ing-lib-head { all: unset; box-sizing: border-box; width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 14px; cursor: pointer; border-radius: 12px; }
.ing-lib-head:hover { background: rgba(15, 23, 42, .03); }
.ing-lib-head:focus-visible { outline: 2px solid #64748b; outline-offset: -2px; }
.ing-lib-head .chev { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(135deg); transition: transform .15s; flex-shrink: 0; }
.ing-lib.is-open .ing-lib-head .chev { transform: rotate(45deg); }
.ing-lib-body { display: grid; gap: 10px; padding: 0 14px 12px; }
.count-sm { font-size: .72rem; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; margin-inline-start: 4px; }
.ing-price .in-group { color: var(--ok); }
.ing-price .no-group { color: var(--warn); }
.ing-lib-head .ing-preview { flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ing-existing { display: grid; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.ing-lib-body .table-wrap { background: #fff; border-radius: 10px; }
.ing-lib-body > .btn { justify-self: start; }
.notes-opt { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; max-width: 560px; }

/* /admin/products: reorder within a category */
.order-hint { padding: 6px 16px 0; font-size: .82rem; color: var(--info); }
.order-hint.muted { color: var(--muted); }
.col-order { white-space: nowrap; width: 1%; }
.row-handle { cursor: grab; color: var(--line-2); font-size: 1.1rem; padding: 0 4px; user-select: none; vertical-align: middle; }
.products-table tr:hover .row-handle { color: var(--muted); }
.products-table tr.is-dragging { opacity: .45; }
.products-table tr.drag-over td { box-shadow: inset 0 2px 0 var(--info); }
.col-order .icon-btn:disabled { opacity: .25; cursor: default; background: none; }

/* /admin/categories: reorder */
.cat-row { align-items: center; }
.cat-order { display: inline-flex; align-items: center; gap: 0; }
.cat-row:hover .row-handle { color: var(--muted); }
.cat-row.is-dragging { opacity: .45; }
.cat-row.drag-over { box-shadow: inset 0 2px 0 var(--info); }
.cat-order .icon-btn:disabled { opacity: .25; cursor: default; background: none; }

/* admin sidebar: collapsible settings group */
.nav-group summary { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-size: .9rem; cursor: pointer; list-style: none; user-select: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover { background: #f1f5f9; }
.nav-group summary:focus-visible { outline: 2px solid #64748b; outline-offset: 1px; }
.nav-group summary.has-active { font-weight: 700; color: var(--ink); }
.nav-chev { margin-inline-start: auto; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(135deg); transition: transform .15s; }
.nav-group[open] > summary > .nav-chev { transform: rotate(45deg); }
.nav-sub .nav-group summary { font-size: .86rem; padding: 7px 10px; gap: 8px; } /* a group inside a group (הגדרות מתקדמות) */
.nav-sub .nav-sub { margin-inline-start: 12px; padding-inline-start: 10px; }
.nav-sub { display: flex; flex-direction: column; gap: 2px; padding-inline-start: 14px; margin-inline-start: 18px; border-inline-start: 1px solid var(--line); margin-top: 2px; }
.sidebar nav .nav-sub a { font-size: .86rem; padding: 7px 10px; }


/* /admin/testimonials */
.testi-list { display: grid; gap: 10px; }
.testi-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.testi-card.is-off { opacity: .6; }
.testi-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.testi-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.testi-stars { color: #f59e0b; letter-spacing: 1px; }
.testi-stars .off { color: var(--line-2); }
.testi-text { color: var(--ink-2); max-width: 70ch; white-space: pre-line; overflow-wrap: anywhere; }
.star-pick { display: flex; align-items: center; gap: 2px; }
.star-pick button { border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--line-2); cursor: pointer; padding: 2px; }
.star-pick button.on { color: #f59e0b; }
.star-pick button:focus-visible { outline: 2px solid #64748b; border-radius: 4px; }
.star-pick .small { margin-inline-start: 8px; }
.testi-panel { margin-top: 18px; scroll-margin-top: 16px; }
.testi-panel .testi-card { box-shadow: none; border: 1px solid var(--line); }

/* /admin/orders: new staff order */
.staff-order .order-top { border-radius: 12px; border: 1px solid var(--line); }

/* profile: payment methods */
.pay-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.pay-opt { align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.pay-opt > span { display: grid; gap: 2px; }
.pay-opt:has(input:checked) { border-color: var(--ok); background: #f0fdf4; }

/* staff order: customer step */
.cust-card { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.cust-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px; }
.cust-facts div { display: grid; gap: 1px; }
.cust-facts dt { font-size: .75rem; color: var(--muted); font-weight: 600; }
.cust-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.cust-facts dd.muted { font-weight: 400; color: var(--muted); }

.start-order { position: relative; float: left; z-index: 60; margin: 0 16px 12px 0; } /* top left corner, next to the page title */
.start-order-btn { font-size: 1.05rem; padding: 10px 22px; border-radius: 12px; box-shadow: 0 4px 12px rgba(15, 23, 42, .12); }
.start-order-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 30; display: flex; gap: 10px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(15, 23, 42, .16); }
.start-order-menu .pick-btn { min-width: 130px; padding: 14px 18px; }
.pick-btn { display: grid; justify-items: center; gap: 4px; min-width: 200px; padding: 18px 22px; border: 2px solid var(--line-2); border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.pick-btn:hover, .pick-btn:focus-visible { border-color: var(--ink); box-shadow: 0 4px 14px rgba(15, 23, 42, .1); outline: none; }
.pick-btn b { font-size: 1.15rem; }
.pick-ico { font-size: 1.8rem; line-height: 1; }

/* product window: floating price label + option search */
.sheet { position: relative; }
.price-float-wrap { position: sticky; top: 0; height: 0; z-index: 5; }
.price-float { position: absolute; top: 12px; inset-inline-end: 12px; display: grid; justify-items: center; gap: 0; padding: 8px 14px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, .25); line-height: 1.2; min-width: 84px; }
.price-float b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.price-float span { font-size: .72rem; opacity: .85; white-space: nowrap; }
.price-float.pulse { animation: price-pulse .45s ease; }
@keyframes price-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.12); background: var(--brand); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .price-float.pulse { animation: none; } }
.opt-search { position: sticky; top: 0; z-index: 4; background: #fff; padding: 6px 0; margin: -6px 0 0; display: grid; gap: 4px; }
.opt-search .input { padding-inline-end: 110px; }

/* product window: step buttons + sticky add-to-cart bar */
/* floats with the user: sticks just above the add-to-cart bar while its section is on screen */
.step-next { position: sticky; bottom: calc(var(--foot-h, 90px) + 10px); z-index: 3; display: flex; justify-content: flex-end; margin-top: 4px; pointer-events: none; }
.step-next .btn { min-width: 120px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: auto; box-shadow: 0 6px 16px rgba(15, 23, 42, .18); }
.sheet-foot { position: sticky; bottom: 0; z-index: 4; background: #fff; margin: 0 -20px; padding: 12px 20px; border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(15, 23, 42, .06); display: grid; gap: 6px; }
.dlg-steps { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; margin-inline: -2px; }
.dlg-steps::-webkit-scrollbar { display: none; }
.dlg-step { flex: 0 0 auto; max-width: 180px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.dlg-step b { font-size: .88rem; font-weight: 600; }
.dlg-step .small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.dlg-step.done { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.dlg-step.done .small { color: var(--ok); }
.dlg-step:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.step-flash { animation: step-flash 1s ease; }
@keyframes step-flash { from { background: color-mix(in srgb, var(--brand) 8%, transparent); border-radius: 10px; } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .step-flash { animation: none; } }

/* staff phone order: delivery choice on the customer step */
.ship-pick { display: grid; gap: 8px; padding: 12px; border-radius: 10px; background: var(--bg); }

/* delivery address: saved list + entrance / floor / apartment */
.addr-pick { display: grid; gap: 8px; }
.addr-pick .option { margin: 0; }
.addr-opt { display: flex; align-items: center; gap: 8px; }
.addr-opt .option { flex: 1; min-width: 0; }
.addr-meta { display: block; }
.addr-x { flex: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); cursor: pointer; }
.addr-x:hover { color: var(--err); border-color: var(--err); }
.addr-edit { flex: none; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-2); font: inherit; font-size: .85rem; cursor: pointer; white-space: nowrap; }
.addr-edit:hover { color: var(--brand); border-color: currentColor; }
.addr-edit-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.addr-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.addr-f { display: grid; gap: 4px; min-width: 0; }
.addr-f .input:disabled { background: var(--bg-2, #f1f5f9); color: var(--muted); }
.addr-one { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* admin as an installed app */
.pwa-ios { margin: 4px 12px 8px; color: var(--muted); line-height: 1.5; }
@media (display-mode: standalone) { .pwa-install { display: none !important; } }

/* Epson Server Direct Print box (printers page) */
.sdp-box { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2, #f8fafc); }
.sdp-steps summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.sdp-steps ol { margin: 8px 0 0; padding-inline-start: 20px; display: grid; gap: 6px; font-size: .9rem; line-height: 1.6; }

/* orders screen: printer health + quick reprint */
.printer-pill { text-decoration: none; }
.order-card-wrap { position: relative; }
.order-card-wrap > .card { height: 100%; }
.card-reprint { position: absolute; bottom: 12px; inset-inline-end: 12px; }

/* printer connection watch: menu dot + notices */
body[data-printer-alert] .sidebar a[href="/admin/printers"]::after,
body[data-printer-alert] .nav-group:not([open]):has(a[href="/admin/printers"]) > summary::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--err); margin-inline-start: auto; box-shadow: 0 0 0 3px rgba(220, 38, 38, .18); }
.printer-toasts { position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 95; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 40px)); }
.printer-toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--err); box-shadow: 0 10px 28px rgba(15, 23, 42, .16); font-size: .92rem; }
.printer-toast.ok { border-inline-start-color: var(--ok); }
.printer-toast span { flex: 1; min-width: 0; }
.printer-toast a { white-space: nowrap; font-weight: 600; }
.printer-toast button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 2px 4px; }
.printer-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* products: quick create */
.quick-create { display: grid; gap: 10px; border: 2px solid var(--brand); }
.qc-preview { display: flex; flex-wrap: wrap; gap: 6px; }
.qc-chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ink); font-size: .85rem; }
.qc-chip span { color: var(--muted); font-size: .8rem; }
.qc-chip.noprice { background: var(--warn-bg); }
.qc-chip.dup { background: var(--line); text-decoration: line-through; opacity: .7; }

/* sidebar: switch between businesses managed by the same login */
.org-switch { margin-top: 8px; }
.org-switch select { padding: 6px 10px; font-size: .85rem; }

/* /admin/hours: שבתות וחגים */
.shabbat-card { display: grid; gap: 14px; }
.shabbat-card .sq { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.shabbat-card .sq:first-of-type { border-top: 0; padding-top: 0; }
.shabbat-card .choice.yn { max-width: 360px; }
.sh-sub { gap: 8px; align-items: center; flex-wrap: wrap; }
.sh-example { margin: 0; font-size: .9rem; color: var(--ink-2); background: var(--bg-2, #f8fafc); padding: 8px 12px; border-radius: 10px; }
.sh-round { font-size: .88rem; line-height: 1.6; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; padding: 10px 12px; border-radius: 10px; }
.hol-cal { display: grid; gap: 8px; }
.hol-table td, .hol-table th { padding: 7px 10px; }
.hol-table tr.on { background: #f0fdf4; }
.hol-table .nowrap { white-space: nowrap; }
.sh-upcoming { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; font-size: .92rem; }
.shabbat-card select.w-sm { width: auto; min-width: 130px; flex: 0 0 auto; }
.shabbat-card .row { display: flex; }

.hol-ctl { gap: 6px; flex-wrap: nowrap; }
.hol-ctl select { width: auto; min-width: 0; padding: 5px 8px; font-size: .85rem; }
.hol-table tr.k-erev td:first-child b { font-weight: 600; color: var(--ink-2); }
.hol-table tr.k-yomtov { border-top: 0; }

.shabbat-card { max-width: 960px; }
.hol-ctl { flex-wrap: wrap; }
.hol-table td:first-child { min-width: 120px; }

/* products list: selection, photo window, notes toggle */
.col-check { width: 34px; text-align: center; }
.col-check input { width: 17px; height: 17px; cursor: pointer; accent-color: var(--ink); }
.bulk-bar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 16px; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; }
.bulk-bar .btn-link { color: #cbd5e1; }
.thumb-btn { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10px; display: block; }
.thumb-btn:hover .thumb, .thumb-btn:focus-visible .thumb { outline: 2px solid var(--brand); outline-offset: 1px; }
.thumb-empty { display: grid; place-items: center; font-size: 1.1rem; opacity: .6; }
.photo-dialog { width: min(440px, 92vw); }
.photo-preview { display: grid; place-items: center; min-height: 180px; background: var(--bg-2, #f8fafc); border-radius: 12px; overflow: hidden; }
.photo-preview img { max-width: 100%; max-height: 320px; object-fit: contain; }
.bulk-names { margin: 0; padding-inline-start: 18px; font-size: .92rem; display: grid; gap: 2px; }
.switch.sm .track { transform: scale(.85); }

.hol-yt { display: grid; gap: 6px; justify-items: start; }
.hol-yt > select { width: auto; padding: 5px 8px; font-size: .85rem; }
.hol-sub { padding-inline-start: 4px; align-items: center; }

/* reports */
.rep-periods { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.rep-periods .chip { text-decoration: none; }
.rep-range { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.rep-range .input { width: auto; padding: 6px 8px; }
.rep-head { display: grid; gap: 4px; margin-bottom: 14px; }
.rep-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { display: grid; gap: 2px; padding: 14px 16px; }
.kpi span { font-size: .82rem; color: var(--muted); }
.kpi b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); font-size: .78rem; }
.rep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-bottom: 14px; }
.rep-block { margin-bottom: 14px; }
.rep-block h2 { font-size: 1rem; padding: 12px 16px 4px; margin: 0; }
.rep-table .num { text-align: left; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media print {
  .sidebar, .no-print, .start-order, .printer-toasts, .banner, .flash { display: none !important; }
  .shell, .main { display: block !important; padding: 0 !important; margin: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid; }
  .rep-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- tax documents ---------- */
.doc-paper { background: var(--card, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 24px; max-width: 820px; margin: 0 auto; }
.doc-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.doc-issuer { font-size: 1.25rem; font-weight: 700; }
.doc-stamp { border: 2px solid currentColor; border-radius: 6px; padding: 4px 14px; font-weight: 700; font-size: 1.1rem; }
.doc-title { margin: 20px 0 8px; text-align: center; }
.doc-meta { display: grid; gap: 2px; margin-bottom: 16px; }
.doc-totals { display: grid; grid-template-columns: auto auto; justify-content: end; gap: 4px 24px; margin: 16px 0; font-variant-numeric: tabular-nums; }
.doc-totals dd { margin: 0; text-align: left; }
.doc-note { font-weight: 600; }
.doc-foot { border-top: 1px solid var(--border, #e5e7eb); padding-top: 10px; margin-top: 16px; overflow-wrap: anywhere; }
.doc-public { padding: 24px 16px; }
@media print { .doc-paper { border: 0; padding: 0; max-width: none; } .doc-public { padding: 0; } }
.doc-electronic { text-align: center; font-weight: 700; letter-spacing: .02em; margin-top: 12px; }
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 820px; margin: 12px auto 0; text-align: center; }
.of-page { max-width: 820px; margin: 0 auto 16px; }
.of-page p { margin: 4px 0; }
.of-title { text-align: center; text-decoration: underline; margin-bottom: 16px; }
.of-ok { text-align: center; font-weight: 700; margin: 12px 0 !important; }
.of-table { margin: 8px 0 16px; font-variant-numeric: tabular-nums; }
.of-foot { border-top: 3px solid var(--line, #888); padding-top: 8px; margin-top: 12px; }
@media print { .of-page { break-after: page; border: 0; box-shadow: none; } }
.letter { max-width: 760px; margin: 16px auto; line-height: 1.8; }
@media print { .letter { border: 0; box-shadow: none; margin: 0; } }
.turnstile-box { min-height: 65px; display: flex; justify-content: center; }

/* shipping methods: one card per method — name, comment, minimum and price inside */
.ship-cards { display: grid; gap: 10px; }
.ship-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: inherit; text-align: start; cursor: pointer; }
.ship-card.on { border-color: var(--brand); background: #fff1f2; }
.ship-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.ship-ico { font-size: 1.5rem; flex: none; }
/* curbside: the licence plate looks like an Israeli plate (yellow, black digits, blue IL strip) */
.veh-box { display: grid; gap: 8px; margin-top: 4px; }
.plate-field { display: inline-flex; direction: ltr; align-items: stretch; width: fit-content; max-width: 100%; border: 3px solid #111; border-radius: 8px; overflow: hidden; background: #ffcc00; }
.plate-il { display: grid; place-items: center; background: #1d4ed8; color: #fff; font: 700 .8rem/1 system-ui, sans-serif; padding: 0 7px; }
.plate-input { border: 0; background: transparent; font: 800 1.6rem/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; color: #111; width: 12ch; max-width: 100%; padding: 6px 10px; text-align: center; direction: ltr; }
.plate-input::placeholder { color: rgba(0, 0, 0, .3); }
.plate-input:focus { outline: none; }
.plate-field:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 45%, transparent); }
.veh-found { margin: 0; font-size: 1.05rem; }
bdi.plate { direction: ltr; unicode-bidi: isolate; font-family: ui-monospace, Menlo, Consolas, monospace; background: #ffcc00; color: #111; padding: 0 6px; border-radius: 4px; font-weight: 700; white-space: nowrap; }
.curb-alerts { display: grid; gap: 10px; margin: 0 0 16px; }
.curb-alert { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: #fef3c7; border: 2px solid #f59e0b; animation: curb-pulse 1.6s ease-in-out infinite; }
.curb-ico { font-size: 2rem; }
.curb-txt { display: grid; gap: 2px; flex: 1; min-width: 180px; }
.curb-txt b { font-size: 1.1rem; }
@keyframes curb-pulse { 50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, .25); } }
@media (prefers-reduced-motion: reduce) { .curb-alert { animation: none; } }
.ship-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ship-txt b { font-size: 1.02rem; }
.ship-txt small { color: var(--muted); font-size: .85rem; }
.ship-price { font-weight: 700; flex: none; }

.curb-box { border: 2px dashed var(--line); border-radius: 14px; padding: 14px; text-align: center; }
.curb-go { font-size: 1.15rem; padding: 14px; }
.waze-go { background: #33ccff; color: #0b1f33; font-weight: 800; font-size: 1.1rem; padding: 13px; border: 0; }
.waze-go:hover { background: #1fbff5; color: #0b1f33; }
.curb-eta { font-weight: 800; color: #b45309; font-variant-numeric: tabular-nums; }
.install-float { position: fixed; left: 16px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; align-items: center; background: #0f172a; color: #fff; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.install-float button { background: none; border: 0; color: inherit; font: inherit; font-weight: 700; padding: 11px 6px 11px 16px; cursor: pointer; }
.install-float .x { padding: 11px 14px 11px 8px; opacity: .7; font-weight: 400; }
/* DPF Curbside tracking-link page */
.curb-land { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, #ecfdf5, #f8fafc 60%); }
.curb-land-card { width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 28px 22px; box-shadow: 0 10px 40px rgba(15, 23, 42, .08); display: grid; gap: 14px; text-align: center; }
.curb-land-brand { display: inline-flex; gap: 8px; align-items: center; justify-content: center; color: #0f766e; font-size: 1.05rem; letter-spacing: .02em; }
.curb-land-pin { font-size: 1.4rem; }
.curb-land h1 { margin: 0; font-size: 1.5rem; text-wrap: balance; }
.curb-land p { margin: 0; }
.curb-land-steps { text-align: start; margin: 4px 0; padding-inline-start: 20px; display: grid; gap: 6px; line-height: 1.5; }
.curb-land-actions { display: grid; gap: 10px; }
.curb-app-go { background: #0f766e; color: #fff; font-weight: 800; font-size: 1.1rem; padding: 13px; border: 0; }
.curb-app-go:hover { background: #115e59; color: #fff; }
/* staff live map (DPF Curbside) */
.curb-map { margin: 0 0 12px; display: grid; gap: 4px; }
.curb-map-canvas { height: 300px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; direction: ltr; z-index: 0; }
.curb-pin { background: none; border: 0; }
.curb-pin-home { font-size: 26px; line-height: 34px; text-align: center; }
.curb-car { display: inline-block; white-space: nowrap; transform: translate(-50%, -50%); background: #0f172a; color: #fff; border-radius: 999px; padding: 4px 10px; font: 600 13px/1.3 system-ui, sans-serif; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); direction: rtl; }
.curb-car.arrived { background: #15803d; }
.curb-car.stale { opacity: .6; }
.curb-map-note { margin: 0; }
.printer-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
.sheet-closed { margin: -4px 0 10px; border-radius: 10px; }
.sched-pick { gap: 10px; }
.sched-pick .lbl { display: block; }
.sched-badge { display: inline-block; background: #ede9fe; color: #5b21b6; font-weight: 700; border-radius: 8px; padding: 2px 10px; font-size: .9rem; }
.avail-cell { white-space: nowrap; }
.avail-cell .pause-btn { margin-inline-start: 6px; }
.paused-chip { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 6px; background: #fef3c7; color: #92400e; border-radius: 999px; padding: 2px 8px; font-size: .8rem; font-weight: 600; }
.pause-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pause-opt { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.pause-opt:has(input[type=radio]:checked) { border-color: var(--brand, #e11d48); background: color-mix(in srgb, var(--brand, #e11d48) 6%, transparent); }
.pause-custom { grid-column: 1 / -1; }
.earned { background: #ecfdf5; color: #065f46; border-radius: 12px; padding: 10px 14px; font-weight: 700; }
/* מבצעים ונקודות */
.promo-master { display: flex; align-items: center; gap: 10px; }
.promo-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.promo-stats div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; }
.promo-stats b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.promo-stats span { color: var(--muted); font-size: .85rem; }
.promo-list { display: grid; gap: 10px; }
.promo-card { display: flex; gap: 14px; align-items: center; padding: 12px 14px; }
.promo-card.is-off { opacity: .6; }
.promo-img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; }
.promo-img-empty { display: grid; place-items: center; background: #fef3c7; font-size: 2rem; }
.promo-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.promo-main p { margin: 0; }
.promo-tools { display: flex; align-items: center; gap: 8px; }
.promo-dialog { border: 0; border-radius: 16px; padding: 20px; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 50px rgba(15, 23, 42, .3); }
.promo-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.promo-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.promo-steps button { width: 100%; font: inherit; font-size: .85rem; border: 0; background: #f1f5f9; color: var(--muted); border-radius: 999px; padding: 6px; cursor: pointer; }
.promo-steps li.on button { background: var(--brand, #e11d48); color: #fff; font-weight: 700; }
.promo-kinds { display: grid; gap: 8px; }
.promo-kind { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "r i t" "r i s"; column-gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.promo-kind input { grid-area: r; }
.promo-kind .ico { grid-area: i; font-size: 1.5rem; }
.promo-kind b { grid-area: t; }
.promo-kind small { grid-area: s; }
button.promo-kind { font: inherit; text-align: right; background: #fff; grid-template-columns: auto 1fr; grid-template-areas: "i t" "i s"; min-height: 56px; }
button.promo-kind:hover, button.promo-kind:focus-visible { border-color: var(--brand); }
.promo-kind-deal { border-style: dashed; }
.promo-kind:has(input:checked) { border-color: var(--brand, #e11d48); background: color-mix(in srgb, var(--brand, #e11d48) 6%, transparent); }
.promo-sentence { line-height: 2.4; }
.promo-sentence .input { display: inline-block; vertical-align: middle; }
.w-xs { width: 84px; }
.prod-pick { display: grid; gap: 10px; }
.prod-pick-list { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; display: grid; gap: 4px; }
/* customer: promotions + recommended products */
.promos h2 { margin: 0 0 8px; }
.promo-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; }
.promo-tile { display: flex; gap: 10px; align-items: center; background: linear-gradient(135deg, #fff7ed, #fff); border: 1px solid #fed7aa; border-radius: 14px; padding: 10px 12px; }
.promo-tile img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.promo-tile p { margin: 2px 0 0; color: var(--muted); }
.promo-box { border: 1px solid #bbf7d0; background: #f0fdf4; }
.promo-line { color: #15803d; }
.earn-hint { color: #92400e; font-weight: 600; margin: 0; }
.upsell { display: grid; gap: 12px; }
.upsell h2 { margin: 0; }
.upsell-list { display: grid; gap: 8px; max-height: 55vh; overflow: auto; }
.upsell-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.upsell-item img, .upsell-noimg { width: 64px; height: 64px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 3px; box-sizing: border-box; flex: none; } /* a product: the whole packshot, never cropped */
.upsell-noimg { display: grid; place-items: center; background: #f1f5f9; font-size: 1.6rem; }
.neg { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sheet.upsell { padding-top: 22px; }
/* another one of a dish with choices: the same again, or other choices */
.again-pop { display: grid; gap: 10px; padding: 22px 16px 16px; }
.again-pop h2 { margin: 0; font-size: 1.15rem; }
.again-pop p { margin: 0; }
.again-list { display: grid; gap: 8px; }
.again-opt { display: grid; gap: 2px; text-align: right; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; font: inherit; cursor: pointer; min-height: 52px; }
.again-opt:hover, .again-opt:focus-visible { border-color: var(--brand); }
.again-opt.other { border-style: dashed; }
/* the cart by dish: versions of one dish under its name, what differs marked */
.cart-group.multi { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.cg-head { display: flex; align-items: center; gap: 8px; }
.cg-qty { color: var(--muted); font-weight: 600; }
.cart-line.version { border-inline-start: 3px solid var(--line-2); padding-inline-start: 10px; }
.cart-line.version .line-name { font-size: .92rem; color: var(--ink-2); }
.ld-same { margin: 0; }
.ld-item.diff, .line-details dd.diff { background: #fef3c7; color: #92400e; border-radius: 4px; padding: 0 3px; font-weight: 600; }
.edit-scope { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; }
.edit-scope .btn-link { margin-inline-start: auto; }
.dlg-more { display: grid; gap: 8px; margin-bottom: 10px; padding: 12px; border-radius: 12px; background: #fffbeb; border: 1.5px solid #fcd34d; }
.dlg-more { min-width: 0; }
.dlg-more-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dlg-more-btns .btn { white-space: normal; min-width: 0; }
.dlg-more .btn-link { justify-self: center; }
@media (max-width: 480px) { .dlg-more-btns { grid-template-columns: minmax(0, 1fr); } }
/* "התאמה אישית": section name + business-wide option list */
.ct-name { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.copt-list { list-style: none; margin: 0; padding: 0; display: grid; }
.copt { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-top: 1px solid var(--line); border-radius: 6px; }
.copt:first-child { border-top: 0; }
.copt-main { display: flex; gap: 6px 12px; align-items: center; flex-wrap: wrap; min-width: 0; flex: 1; }
.copt-meals { flex-basis: 100%; }
.copt-count { color: var(--muted); }
/* מנת פיצה (admin): dish toggle + per-group whole / right / left */
.pizza-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #e5e7eb; color: #374151; font: inherit; font-weight: 600; cursor: pointer; }
.pizza-toggle.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pizza-toggle .pt-state { font-size: .78rem; font-weight: 500; opacity: .85; }
.pizza-err { margin: 0; color: var(--err); font-weight: 600; font-size: .9rem; }
.og-pizza { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 8px; border-radius: 10px; }
.og-pizza.need { outline: 2px solid var(--err); background: var(--err-bg); }
.part-pick { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.part-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; border: 1px solid #d1d5db; background: #e5e7eb; color: #374151; font: inherit; font-size: .8rem; cursor: pointer; }
.part-btn.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
.part-btn .pie { width: 12px; height: 12px; }
/* מנת פיצה (menu): one list of toppings, each for the whole pie or a half */
.opt-wrap { display: contents; }
.pie-group .topping { flex-wrap: wrap; }
.pie-group .portions { flex-wrap: wrap; }
.portion .p-price { font-size: .74rem; opacity: .8; }
.portion:disabled:not(.sel) { opacity: .4; }
@media (max-width: 720px) { .og-head-row { flex-wrap: wrap; } .og-head-row .og-pizza { order: 3; flex-basis: 100%; margin: 0 12px 8px; } }
.g-pizza { margin: 0 16px 10px; }
/* pizza: "without / with toppings" first, then a closed topping list (tap a topping for whole / half) */
.pie-ask { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pie-choice { display: grid; gap: 2px; justify-items: center; padding: 12px 10px; border: 1px solid #d1d5db; border-radius: 12px; background: #e5e7eb; color: #374151; font: inherit; cursor: pointer; text-align: center; }
.pie-choice.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
.pie-choice .small { opacity: .85; }
.pie-list .topping { padding: 0; display: block; }
.pie-list .t-head { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; }
.pie-list .t-head:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 10px; }
.pie-list .t-head b { flex: 1; min-width: 0; }
.pie-list .t-sel { font-size: .8rem; font-weight: 600; color: var(--brand); }
.pie-list .chev { width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; flex-shrink: 0; margin-inline: 2px; }
.pie-list .topping.open .chev { transform: rotate(-135deg); }
.pie-list .portions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.copt.is-sel { background: color-mix(in srgb, var(--brand) 6%, #fff); }
.copt-check { width: 17px; height: 17px; flex-shrink: 0; }
/* the name looks like text until hovered / clicked, then it is an input */
.copt-input { font: inherit; font-weight: 700; color: var(--ink); border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 5px 8px; min-width: 0; width: 16em; max-width: 100%; }
.copt-input:hover { border-color: var(--line-2); }
.copt-input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.copt-price .input { width: 5.5em; padding-block: 4px; }
.copt-bulk { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 34px; padding: 0 4px; }
.saved-tick { color: var(--ok); font-weight: 600; }
.pies-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pie-no .part-btn { font-weight: 600; }
.pie-sel { display: inline-flex; align-items: center; gap: 6px; }
.pie-sel .input { width: auto; padding: 3px 8px; }
/* אשף הקמת תפריט */
.wiz-start { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; border: 1px dashed var(--brand); }
.wiz-dialog { width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; }
.wiz { display: grid; gap: 0; }
.wiz-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; }
.wiz-head h2 { margin: 0; }
.wiz-steps { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; padding: 0 20px 12px; margin: 0; border-bottom: 1px solid var(--line); }
.wiz-steps button { all: unset; font-size: .85rem; padding: 4px 10px; border-radius: 999px; background: #f1f5f9; color: var(--muted); }
.wiz-steps li.done button { background: var(--ok-bg); color: var(--ok); cursor: pointer; }
.wiz-steps li.on button { background: var(--brand); color: #fff; font-weight: 600; }
.wiz-body { display: grid; gap: 12px; padding: 16px 20px; max-height: calc(100vh - 230px); overflow: auto; }
.wiz-body p { margin: 0; }
.wiz-chips { display: flex; flex-wrap: wrap; }
.wiz-add { gap: 8px; flex-wrap: wrap; }
.wiz-prices td, .wiz-prices th { vertical-align: middle; }
.wiz-pair { display: inline-flex; gap: 4px; }
.wiz-pair .input { width: 4.6em; padding: 5px 6px; text-align: center; }
.wiz-fill td { background: #f8fafc; }
.wiz-sum { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; }
.wiz-done h3 { margin: 0; color: var(--ok); }
.wiz-foot { display: flex; align-items: center; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line); }
/* built-in image library picker */
.stock-dialog { width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 40px); display: none; gap: 12px; }
.stock-dialog[open] { display: grid; }
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; padding: 2px; }
.stock-item { all: unset; box-sizing: border-box; display: grid; gap: 4px; cursor: pointer; border: 2px solid transparent; border-radius: 10px; padding: 4px; text-align: center; font-size: .82rem; }
.stock-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.stock-item:hover, .stock-item:focus-visible { border-color: var(--brand); }
.wiz-sizes { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.wiz-size { display: inline-flex; align-items: center; gap: 2px; }
.wiz-size .input { width: 9em; padding: 5px 8px; }
.without-pick { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafafa; }
/* 🎤 voice commands */
.voice-fab { position: fixed; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 1.6rem; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.voice-fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.voice-fab.live { animation: voice-pulse 1.2s ease-in-out infinite; }
@keyframes voice-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); } 50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--brand) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .voice-fab.live { animation: none; outline: 3px solid var(--brand); outline-offset: 4px; } }
.voice-panel { position: fixed; left: 20px; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: min(380px, calc(100vw - 40px)); max-height: min(520px, calc(100vh - 120px)); display: grid; grid-template-rows: auto 1fr auto auto; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.voice-head { display: flex; justify-content: space-between; align-items: center; }
.voice-log { overflow: auto; display: grid; gap: 8px; align-content: start; min-height: 80px; }
.voice-msg { max-width: 88%; padding: 8px 12px; border-radius: 14px; font-size: .92rem; line-height: 1.45; display: grid; gap: 6px; }
.voice-msg.me { justify-self: start; background: #e5e7eb; color: #111827; border-end-start-radius: 4px; }
.voice-msg.bot { justify-self: end; background: color-mix(in srgb, var(--brand) 10%, #fff); border: 1px solid color-mix(in srgb, var(--brand) 25%, #fff); border-end-end-radius: 4px; }
.voice-msg.interim { opacity: .6; font-style: italic; }
.voice-opts { display: flex; flex-wrap: wrap; }
.voice-type { display: flex; gap: 6px; }
.voice-type .input { flex: 1; min-width: 0; }
@media print { .voice { display: none; } }
.voice-pick { display: flex; align-items: center; gap: 6px; }
.voice-pick .input { flex: 1; min-width: 0; padding: 4px 8px; }
/* kiosk app */
.kiosk-offline { position: fixed; top: 0; inset-inline: 0; z-index: 100; background: #b91c1c; color: #fff; text-align: center; padding: 10px; font-weight: 600; }
.kiosk-pair { gap: 8px; flex-wrap: wrap; justify-content: center; width: min(560px, 92vw); }
.kiosk-pair .input { flex: 1; min-width: 240px; }
.kiosk-install ol { margin: 8px 0; padding-inline-start: 18px; display: grid; gap: 6px; }

/* kiosk: no visible scrollbars, cart on the left, two start buttons */
.kiosk, .kiosk * { scrollbar-width: none; }
.kiosk::-webkit-scrollbar, .kiosk *::-webkit-scrollbar { display: none; }
.kiosk .order-body aside { order: 1; }
.kiosk .welcome-choice { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.kiosk .welcome-choice .btn { min-width: 220px; font-size: 1.6rem; padding: 26px 40px; border-radius: 22px; }
.kiosk-link { display: inline-flex; gap: 10px; align-items: center; }
/* public price quote (/offer/…) */
.offer { max-width: 760px; margin: 0 auto; padding: 32px 16px 60px; display: grid; gap: 18px; }
.offer-head { text-align: center; display: grid; gap: 6px; justify-items: center; }
.offer-logo { height: 56px; width: auto; max-width: 220px; object-fit: contain; }
.offer-brand { font-size: 1.2rem; }
.offer-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--brand); text-transform: uppercase; }
.offer-head h1 { font-size: 2rem; margin: 0; text-wrap: balance; }
.offer-head p { margin: 0; }
.offer-intro { background: color-mix(in srgb, var(--brand) 9%, #fff); border: 1px solid color-mix(in srgb, var(--brand) 30%, #fff); border-radius: 16px; padding: 16px 20px; text-align: center; font-size: 1.1rem; display: grid; gap: 2px; }
.offer-intro b { font-size: 1.5rem; color: var(--brand); }
.offer-intro span { font-size: .9rem; color: var(--muted); }
.offer-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.offer-card h2 { font-size: 1.15rem; margin: 0 0 10px; }
.offer-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.offer-table th { text-align: start; font-size: .8rem; color: var(--muted); font-weight: 600; padding: 6px 0; border-bottom: 1px solid var(--line); }
.offer-table td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.offer-table .n { text-align: end; white-space: nowrap; padding-inline-start: 16px; }
.offer-table .desc { display: block; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.offer-table .free { color: var(--ok); font-weight: 700; }
.offer-table tfoot td { border-bottom: 0; padding: 4px 0; color: var(--muted); font-size: .92rem; }
.offer-table tfoot .grand td { color: var(--ink); font-weight: 800; font-size: 1.1rem; padding-top: 10px; border-top: 2px solid var(--ink); }
.offer-notes p { margin: 0; line-height: 1.6; }
.offer-form { display: grid; gap: 10px; }
.offer-form h2 { margin: 0; }
.offer-buttons { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.offer-answer .ok-msg { color: var(--ok); font-weight: 700; margin: 0; }
.offer-foot { text-align: center; margin: 0; }

/* ---------- responsive tables: stacked cards when the table doesn't fit (set by common.js) ---------- */
.table.stacked, .table.stacked tbody, .table.stacked tr, .table.stacked td { display: block; width: 100%; }
.table.stacked thead { display: none; }
.table.stacked tr { border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; margin-bottom: 10px; background: #fff; }
.table.stacked td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; border-bottom: 1px dashed var(--line); padding: 8px 0; text-align: start; min-width: 0; overflow-wrap: anywhere; }
.table.stacked td:last-child { border-bottom: 0; }
.table.stacked td::before { content: attr(data-label); flex: none; max-width: 45%; font-size: .8rem; font-weight: 600; color: var(--muted); }
.table.stacked td[data-label=""]::before { display: none; }
.table.stacked td[data-label=""] { justify-content: flex-end; }
.table.stacked td > * { min-width: 0; }
.table.stacked td .input, .table.stacked td select, .table.stacked td textarea { max-width: 60%; }
.table.stacked td.center { justify-content: space-between; }
.card.flush:has(> .table.stacked) { background: none; border: 0; box-shadow: none; padding: 0; }

/* ---------- rows that used to push pages wider than the screen ---------- */
.rep-range { flex-wrap: wrap; max-width: 100%; }
.rep-range .input { min-width: 0; flex: 1 1 130px; }
.rep-periods { flex-wrap: wrap; }
.range { flex-wrap: wrap; max-width: 100%; }
.range input, .range select { width: 108px; max-width: 100%; }
.promo-card { flex-wrap: wrap; }
.promo-tools { flex-wrap: wrap; }
.ing-lib-head .ing-preview { min-width: 0; overflow-wrap: anywhere; }
textarea.code { white-space: pre-wrap; overflow-wrap: anywhere; }
.page-head { flex-wrap: wrap; }
.main img, .main video { max-width: 100%; }
.order-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 900px) { .order-grid { grid-template-columns: minmax(0, 1fr); } .tpl-grid { grid-template-columns: minmax(0, 1fr) !important; } }
.ing-lib-head { min-width: 0; max-width: 100%; }
.ing-lib-head .ing-preview { flex-basis: min(200px, 100%); }
.table.stacked td { flex-wrap: wrap; }
.table.stacked td > *, .table.stacked td span, .table.stacked td a { white-space: normal; max-width: 100%; }
.offer-tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #e0f2fe; color: #075985; margin-inline-start: 6px; vertical-align: 2px; }
.offer-table .usage { display: block; margin-top: 4px; font-size: .92rem; color: var(--ink); font-weight: 600; }

.offer-choices { display: grid; gap: 10px; }
.offer-choice { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.offer-choice legend { padding: 0; margin-bottom: 6px; }
.offer-choice legend .desc { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; }
.offer-opt { display: grid; gap: 2px; padding: 12px; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; position: relative; }
.offer-opt input { position: absolute; inset-inline-end: 10px; top: 12px; }
.offer-opt:has(input:checked), .offer-opt.picked { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, #fff); }
.offer-opt .o-l { font-weight: 700; }
.offer-opt b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.offer-opt .o-s { font-size: .8rem; color: var(--muted); }

/* product dialog → פרטי מוצר (grocery catalog details) */
.pinfo { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.pinfo-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; background: #f8fafc; border: 0; font: inherit; font-weight: 600; cursor: pointer; text-align: start; }
.pinfo-body { padding: 4px 14px 12px; }
.pinfo dl { margin: 0; display: grid; gap: 10px; }
.pinfo dt { font-size: .8rem; color: var(--muted, #6b7280); }
.pinfo dd { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.pinfo-allergens dd, .pinfo-may_contain dd { font-weight: 600; }
.pinfo-red_symbols dd { color: #b91c1c; font-weight: 600; }
.pinfo .nutri { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
.pinfo .nutri th, .pinfo .nutri td { padding: 5px 6px; border-bottom: 1px solid var(--line-2); text-align: start; }
.pinfo .nutri thead th { font-weight: 600; color: var(--muted, #6b7280); }
.pinfo .nutri tbody th { font-weight: 400; }
/* admin → קטלוג מכולת on phones: no empty picture row, the picture without a label */
.table.stacked.grocery-table td:first-child:not(:has(img)) { display: none; }
.table.stacked.grocery-table td:first-child::before { display: none; }
/* admin → קטלוג מכולת: price adjustment */
.grocery-markup { display: grid; gap: 12px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; padding: 2px; background: #f8fafc; }
.seg button { border: 0; background: none; font: inherit; padding: 8px 14px; border-radius: 8px; cursor: pointer; color: #334155; }
.seg button[aria-pressed="true"] { background: #fff; color: #0f172a; font-weight: 600; box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }



/* admin → משלוחים: reorder */
.ship-order { align-self: center; flex-direction: column; }
.ship-card.is-dragging { opacity: .5; }
.ship-card.drag-over { box-shadow: 0 0 0 3px var(--info-bg); border-color: var(--info); }
.ship-order-hint { margin: 0 0 10px; }

/* admin → פרטי העסק: logo size with a live header preview */
.logo-size { margin-top: 14px; display: grid; gap: 4px; }
.logo-range { flex: 1; min-width: 0; accent-color: var(--brand); }
.logo-preview { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); min-width: 0; }
.logo-preview-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; min-width: 0; margin-inline-end: auto; }
.logo-preview-brand img { width: auto; max-width: min(600px, 100%); object-fit: contain; border-radius: 10px; transition: height .08s; }
.logo-preview-nav { font-size: .9rem; color: var(--muted); }
.logo-preview-btn { background: var(--brand); color: #fff; border-radius: 10px; padding: 8px 16px; font-weight: 700; font-size: .9rem; }

/* ---------- product card (storefront skill: .claude/skills/storefront-design) ----------
   [picture] [name (≤2 lines) · description (1 line) · bottom row: price … + and the in-cart count]
   Controls sit in their own row: they never float over text. */
.products .product { min-height: 112px; }
.product .pfoot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.product .pctrl { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; margin-inline-start: auto; } /* always at the bottom-left corner, wrapped or not */
.quick-add { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font: inherit; font-size: 1.45rem; font-weight: 600; line-height: 1; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 6px rgba(15, 23, 42, .18); transition: transform .12s; flex-shrink: 0; }
.quick-add:hover { transform: scale(1.06); }
.quick-add:active { transform: scale(.94); }
.quick-add:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.in-cart { height: 30px; padding: 0 10px; border-radius: 999px; background: #0f172a; color: #fff; font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.in-cart::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--cart-mask) center / contain no-repeat; mask: var(--cart-mask) center / contain no-repeat; }
.in-cart { min-width: 50px; justify-content: center; box-sizing: border-box; }
.in-cart.kg { min-width: 76px; }
.in-cart.empty { visibility: hidden; } /* keeps its place: the + stays put */
.in-cart.bump { animation: in-cart-bump .45s ease; }
@keyframes in-cart-bump { 30% { transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .in-cart.bump { animation: none; } .quick-add { transition: none; } }
/* shops: packshot small, whole (not cropped), on the right */
/* shops: a grid of vertical cards – 2 per row on phones, 3 on wider screens; packshot on top, whole (not cropped) */
.products.shop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .products.shop { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.products.shop .product { flex-direction: column; align-items: stretch; min-height: 0; }
.products.shop .product img { order: -1; width: 100%; height: 120px; object-fit: contain; align-self: stretch; margin: 0; padding: 12px 12px 0; box-sizing: border-box; background: #fff; border-radius: 0; }
.products.shop .product .info { padding: 10px 12px 12px; flex: 1; }
.products.shop .product .info .name { font-size: .95rem; }
.products.shop .product .pfoot { flex-wrap: wrap; row-gap: 8px; }
@media (max-width: 420px) { .products.shop .product img { height: 104px; } .products.shop .product .info { padding: 8px 10px 10px; } .products.shop .quick-add { width: 34px; height: 34px; } }
.kiosk .quick-add { width: 46px; height: 46px; font-size: 1.8rem; }
.kiosk .products.shop .product img { height: 150px; }

/* cart lines: name and price always share the first row */
.cart-line > .row { flex-wrap: nowrap; align-items: flex-start; gap: 12px; }
.cart-line .line-name { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.cart-line > .row > span { flex-shrink: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* closed notice: information, not an error */
.closed-strip { font-size: .85rem; padding: 7px 12px; }
.closed-strip.preorder { background: #fef3c7; color: #92400e; border-top: 1px solid #fde68a; border-bottom: 1px solid #fde68a; }

/* the cart panel sticks below the (variable height) menu header */
.order-body aside .sticky { top: calc(var(--top-h, 124px) + 16px); }

/* ---------- about page (storefront skill) ---------- */
.ab-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 70%, #0f172a) 0%, var(--brand) 100%); }
.ab-hero.has-photo { background: #0f172a; }
.ab-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ab-hero.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 23, 42, .25), rgba(15, 23, 42, .82)); }
.ab-hero-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 28px; padding-block: 48px 72px; flex-wrap: wrap; }
.ab-logo { flex-shrink: 0; background: #fff; border-radius: 22px; padding: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); display: grid; place-items: center; }
.ab-logo img { height: clamp(80px, var(--logo-h, 80px), 220px); width: auto; max-width: min(420px, 70vw); object-fit: contain; display: block; }
.ab-hero-text { flex: 1 1 320px; min-width: 0; display: grid; gap: 10px; justify-items: start; }
.ab-kind { font-size: .8rem; font-weight: 700; letter-spacing: .04em; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); padding: 3px 10px; border-radius: 999px; }
.ab-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; line-height: 1.15; text-wrap: balance; }
.ab-lead { font-size: 1.05rem; opacity: .92; max-width: 60ch; }
.ab-status { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; font-size: .92rem; background: rgba(255, 255, 255, .95); color: #0f172a; padding: 6px 14px; border-radius: 999px; }
.ab-status .dot { width: 9px; height: 9px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.ab-status.pre .dot { background: #d97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, .2); }
.ab-status.closed .dot { background: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .2); }
.ab-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.ab-cta .btn-brand { background: #fff; color: var(--brand); border-color: #fff; }
.ab-hero.has-photo .ab-cta .btn-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.ab-btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.ab-btn-ghost:hover { background: rgba(255, 255, 255, .22); }

.ab-facts, .ab-main { width: 100%; }
.ab-facts { position: relative; z-index: 2; margin-top: -36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.ab-fact { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: 0 6px 20px rgba(15, 23, 42, .08); min-width: 0; }
.ab-fact > span:nth-child(2) { display: grid; min-width: 0; flex: 1; }
.ab-fact small { color: var(--muted); font-size: .78rem; }
.ab-fact b { font-size: .95rem; overflow-wrap: anywhere; }
.ab-fact-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 10%, #fff); font-size: 1.15rem; }
.ab-fact-link { flex-shrink: 0; font-weight: 700; font-size: .85rem; color: var(--brand); text-decoration: none; border: 1px solid color-mix(in srgb, var(--brand) 35%, #fff); border-radius: 999px; padding: 5px 12px; }

.ab-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 20px; padding-block: 28px 48px; align-items: start; }
@media (max-width: 900px) { .ab-main { grid-template-columns: minmax(0, 1fr); } }
.ab-col { display: grid; gap: 20px; min-width: 0; }
.ab-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.ab-card h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 12px; }
.ab-about { white-space: pre-line; line-height: 1.75; color: #334155; }
.ab-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.ab-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.ab-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.ab-review { margin: 0; background: #f8fafc; border-radius: 12px; padding: 14px; display: grid; gap: 6px; }
.ab-review .stars { color: #f59e0b; letter-spacing: 2px; }
.ab-review footer { font-weight: 700; font-size: .85rem; }
.ab-empty-cta { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 32px 20px; }

.ab-hours { list-style: none; margin: 0; padding: 0; }
.ab-hours li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 10px; font-size: .93rem; font-variant-numeric: tabular-nums; }
.ab-hours li + li { border-top: 1px solid #f1f5f9; }
.ab-hours li.off span:last-child { color: var(--muted); }
.ab-hours li.today { background: color-mix(in srgb, var(--brand) 8%, #fff); font-weight: 700; border-top-color: transparent; }
.ab-hours li.today + li { border-top-color: transparent; }
.ab-hours em { font-style: normal; font-size: .72rem; font-weight: 700; color: #fff; background: var(--brand); border-radius: 999px; padding: 1px 7px; margin-inline-start: 6px; vertical-align: 1px; }
.ab-ship { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ab-ship li { display: flex; align-items: center; gap: 12px; }
.ab-ship-ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: #f1f5f9; display: grid; place-items: center; }
.ab-ship-txt { flex: 1; min-width: 0; display: grid; }
.ab-ship-txt small { color: var(--muted); font-size: .8rem; }
.ab-ship-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ab-badatz { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.ab-contact { display: grid; gap: 8px; }
.ab-cbtn { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; transition: border-color .15s, background .15s; min-width: 0; }
.ab-cbtn:hover { border-color: color-mix(in srgb, var(--brand) 45%, #fff); background: color-mix(in srgb, var(--brand) 5%, #fff); }
.ab-cbtn > span:first-child { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: color-mix(in srgb, var(--brand) 10%, #fff); display: grid; place-items: center; }
.ab-cbtn > span:last-child { display: grid; min-width: 0; }
.ab-cbtn small { color: var(--muted); font-size: .78rem; }
.ab-cbtn b { overflow-wrap: anywhere; }
.ab-social { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ab-social a { font-size: .85rem; font-weight: 600; text-decoration: none; color: #334155; background: #f1f5f9; border-radius: 999px; padding: 6px 12px; }
@media (max-width: 600px) { .ab-hero-in { padding-block: 32px 64px; gap: 18px; } .ab-cta .btn { flex: 1 1 auto; } }
/* category sub-groups (grocery catalog) */
.subgroups { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 14px; }
.sg-chip { border: 1px solid var(--line-2); background: #fff; color: #334155; font: inherit; font-size: .85rem; font-weight: 600; padding: 6px 12px; min-height: 32px; border-radius: 999px; cursor: pointer; }
.sg-chip:hover { border-color: var(--brand); }
.sg-chip.on { background: var(--ink, #0f172a); border-color: var(--ink, #0f172a); color: #fff; }
/* closed notice shown: keep the category bar off it (x-show hides it with an inline display:none) */
.closed-strip:not([style*="none"]) + .chips-wrap .chips { padding-top: 12px; }
.closed-strip:not([style*="none"]) + .chips-wrap .chips-arrow { top: 50%; }
.closed-strip:not([style*="none"]) + .chips-wrap::before, .closed-strip:not([style*="none"]) + .chips-wrap::after { top: 12px; }
/* phones: a big logo would push the menu off the screen */
@media (max-width: 600px) { .site-header .logo img, .order-top .order-brand img { height: min(var(--logo-h, 80px), 96px); } .ab-logo img { height: min(var(--logo-h, 80px), 120px); } }
/* settings forms: the save button floats at the bottom of the screen (sticky inside the form) */
.save-bar { position: sticky; bottom: 0; z-index: 20; grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap;
  margin: 4px -4px 0; padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 14px 14px 0 0; box-shadow: 0 -6px 18px rgba(15, 23, 42, .08); }
.save-bar .small { color: var(--warn, #b45309); font-weight: 600; }

/* menu header: compact; only the category bar stays pinned while scrolling (storefront skill) */
.order-top { top: calc(-1 * var(--top-hide, 0px)); }
.order-top .bar { padding: 8px 16px; flex-wrap: wrap; row-gap: 6px; }
.order-top .chips { padding-top: 2px; padding-bottom: 10px; }
.closed-pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; font-size: .82rem; font-weight: 600; line-height: 1.35; padding: 5px 12px; border-radius: 999px; }
.closed-pill.pre { background: #fef3c7; color: #92400e; }
.closed-pill.off { background: #fee2e2; color: #991b1b; }
.closed-pill .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: currentColor; }
/* desktop: the notice sits between the logo and the links; phones: its own short line under the logo */
/* phones: row 1 = logo + name (+ the customer's greeting, compact); row 2 = the closed notice, full width */
.order-cust { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 760px) {
  .order-top .bar { flex-wrap: wrap; gap: 6px 10px; }
  .order-top .bar { flex-wrap: wrap; }
  .order-brand { flex: 1 1 0; min-width: 0; gap: 8px; }
  .order-top .order-brand img { height: min(var(--logo-h, 80px), 72px); max-width: 40vw; }
  .order-brand span { min-width: 0; overflow-wrap: anywhere; line-height: 1.15; font-size: .95em; }
  .order-cust { font-size: .72rem; gap: 4px; flex-direction: column; align-items: flex-end; line-height: 1.25; }
  .order-cust > .row { flex-direction: column; align-items: flex-end; gap: 0; }
  .closed-pill { order: 3; flex: 1 1 100%; justify-content: center; text-align: center; border-radius: 12px; font-size: .72rem; padding: 5px 10px; }
}

/* white cart icon (an emoji renders grey on some phones) */
:root { --cart-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h2l2.4 10.2a1.5 1.5 0 0 0 1.5 1.1h8.6a1.5 1.5 0 0 0 1.4-1l2.1-6.3H6.2' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='9.5' cy='19.5' r='1.8'/%3E%3Ccircle cx='17' cy='19.5' r='1.8'/%3E%3C/svg%3E"); }
.ico-cart { width: 22px; height: 22px; flex-shrink: 0; color: #fff; }
.cart-fab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; }
@media (min-width: 1024px) { .cart-fab { display: none; } } /* desktop: the cart panel is on the side */
/* product window / cart sheet: a clear close button at the top right */
.sheet-close-wrap { position: sticky; top: 0; height: 0; z-index: 7; }
.sheet-close { position: absolute; top: 10px; inset-inline-start: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(15, 23, 42, .78); color: #fff; font-size: 1.1rem; font-weight: 700; line-height: 1; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(15, 23, 42, .3); }
.sheet-close:hover { background: #0f172a; }
.sheet-close:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
/* keep text clear of the close button: the cart title, and a product name when there is no cover photo */
.overlay .sheet .card > .row:first-child { padding-inline-start: 46px; min-height: 40px; }
.sheet:not(:has(> img.cover)) > .body > div:first-child > h2 { padding-inline-start: 46px; }
/* about page: panels side by side */
.ab-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; align-items: start; }
.ab-links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; }
.ab-links a { color: #fff; opacity: .9; text-decoration: underline; text-underline-offset: 3px; }
.ab-links a:hover { opacity: 1; }

/* phone cart sheet: a small photo on the right of each line; no "edit" link (tapping the name still edits) */
.cl-thumb { display: none; }
.overlay .cart-line { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.overlay .cart-line > :not(.cl-thumb) { grid-column: 2; }
.overlay .cl-thumb { display: grid; place-items: center; grid-column: 1; grid-row: 1 / span 3; width: 56px; height: 56px; border-radius: 10px; background: #f1f5f9; overflow: hidden; }
.overlay .cl-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.overlay .cart-line.version { grid-template-columns: minmax(0, 1fr); } /* a version under its dish: the photo is on the dish */
.overlay .cart-line.version > * { grid-column: 1; }
.overlay .cg-head .cl-thumb { grid-row: auto; width: 44px; height: 44px; flex: none; }

/* ---------- admin: picking a shop order (skill: .claude/skills/order-picking) ---------- */
.pick { position: fixed; inset: 0; z-index: 90; background: #f8fafc; display: flex; flex-direction: column; }
.pick-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); background: #fff; border-bottom: 1px solid var(--line); }
.pick-title { display: grid; gap: 2px; min-width: 0; }
.pick-title h2 { margin: 0; font-size: 1.2rem; }
.pick-title span { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pick-x { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; font-size: 1.1rem; cursor: pointer; }
.pick-bar { height: 6px; background: #e2e8f0; }
.pick-bar span { display: block; height: 100%; background: var(--ok, #16a34a); transition: width .25s ease; }
/* a column of full-height rows: Safari squeezed the rows of a grid to the panel's height (half rows on iPhone) */
.pick-list { list-style: none; margin: 0; padding: 12px 12px 120px; overflow-y: auto; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.pick-list > li { flex: none; }
@media (min-width: 900px) { .pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); grid-auto-rows: max-content; align-content: start; } }
.pick-item { background: #fff; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .2s, background .2s; }
.pick-item.done { border-color: #86efac; background: #f0fdf4; }
.pick-item.missing { border-color: #fecaca; background: #fef2f2; }
.pick-item.missing .pick-info b { text-decoration: line-through; color: var(--muted); }
.pick-tap { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 84px; padding: 12px 14px; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.pick-tap:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.pick-tap:disabled { cursor: default; }
/* the photo is how a picker finds the item on the shelf: large, whole packshot (contain), on white */
.pick-img { width: 88px; height: 88px; flex-shrink: 0; border-radius: 12px; background: #fff; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.pick-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.pick-noimg { font-size: 2rem; opacity: .35; }
.pick-item.missing .pick-img img { filter: grayscale(1); opacity: .6; }
@media (min-width: 600px) { .pick-img { width: 104px; height: 104px; } }
.pick-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.pick-info b { font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
.pick-info small { color: var(--muted); font-size: .82rem; }
.pick-units { display: flex; flex-wrap: wrap; gap: 4px; }
.pick-units i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #cbd5e1; }
.pick-units i.on { background: var(--ok, #16a34a); border-color: var(--ok, #16a34a); }
.pick-units i.miss { background: #fecaca; border-color: #f87171; }
.pick-row { display: flex; align-items: center; }
.pick-row .pick-tap { flex: 1; min-width: 0; }
.pick-count { flex-shrink: 0; min-width: 72px; height: 52px; padding: 0 10px; border-radius: 14px; background: #1e3a8a; color: #fff; white-space: nowrap; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.pick-item.partial { border-color: #fed7aa; background: #fffbf5; }
.pick-item.partial .pick-count { background: #fdba74; color: #7c2d12; }
.pick-item.done .pick-count { background: #16a34a; color: #fff; }
.pick-item.missing .pick-count { background: #94a3b8; }
.pick-actions { display: flex; gap: 8px; justify-content: flex-end; padding: 0 14px 10px; }
.pick-actions:empty { display: none; }
.pick-sm { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 6px 14px; min-height: 36px; font: inherit; font-size: .9rem; cursor: pointer; }
.pick-sm.miss { background: #dc2626; border-color: #dc2626; color: #fff; font-weight: 700; padding: 8px 18px; min-height: 40px; }
.pick-err { margin: 0 16px 8px; color: var(--err); }
.pick-foot { position: fixed; inset-inline: 0; bottom: 0; display: flex; justify-content: center; align-items: center; padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(15, 23, 42, .08); }
.pick-foot { gap: 16px; }
.pick-foot form { width: min(520px, 100%); flex: 1; }
.pick-foot > span { flex: 1; text-align: center; }
.pick-total { display: grid; justify-items: start; line-height: 1.15; flex-shrink: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pick-total small { color: var(--muted); font-size: .8rem; }
.pick-total b { font-size: 1.3rem; }
.pick-total s { color: var(--muted); font-size: .85rem; }
.pick-finish { width: 100%; font-size: 1.2rem; min-height: 56px; background: var(--ok); animation: pick-in .3s ease; }
.pick-finish:hover:not(:disabled) { background: #166534; }
/* the tap animation: the card pulses and the counter pops */
.pick-item.bump { animation: pick-bump .45s ease; }
.pick-item.bump .pick-count { animation: pick-pop .45s ease; }
@keyframes pick-bump { 0% { transform: scale(1); } 35% { transform: scale(.97); } 100% { transform: scale(1); } }
@keyframes pick-pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } } /* scale only: the colour tells the state */
@keyframes pick-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pick-item.bump, .pick-item.bump .pick-count, .pick-finish { animation: none; } }

/* ---------- admin: מבצעים על מוצרים (skill: .claude/skills/product-deals) ---------- */
.deal-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #fef2f2; color: #b91c1c; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.deal-dialog { border: 0; border-radius: 16px; padding: 0; width: min(720px, calc(100vw - 24px)); height: min(820px, calc(100dvh - 24px)); max-height: none; box-shadow: 0 20px 50px rgba(15, 23, 42, .3); }
.deal-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.deal-dlg-in { display: flex; flex-direction: column; height: 100%; }
.deal-dlg-head { padding: 16px 20px 8px; }
.deal-dlg-head .icon-btn { width: 40px; height: 40px; font-size: 1.1rem; }
.deal-pick { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 0 20px; }
.deal-rows { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 0; display: grid; gap: 6px; align-content: start; }
.deal-row { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: grid; gap: 8px; }
.deal-row.on { border-color: #fca5a5; background: #fffafa; }
.deal-row-main { display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; }
.deal-row-main input { width: 20px; height: 20px; flex-shrink: 0; }
.deal-thumb { width: 44px; height: 44px; flex-shrink: 0; border-radius: 8px; border: 1px solid var(--line); background: #fff; overflow: hidden; display: grid; place-items: center; }
.deal-thumb img { width: 100%; height: 100%; object-fit: contain; }
.deal-name { display: grid; min-width: 0; }
.deal-name b { font-size: .92rem; overflow-wrap: anywhere; }
.deal-name small { font-size: .78rem; }
.deal-row-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-inline-start: 30px; }
.deal-row-fields label { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; }
.deal-row-fields .input { width: 92px; }
.deal-bad { color: var(--err); }
.deal-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 20px 0; padding: 10px 12px; border-radius: 12px; background: #f8fafc; }
.deal-bulk label { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; }
.deal-until { display: grid; gap: 6px; padding: 12px 20px 0; }
.deal-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.deal-quick .chip.on { background: var(--ink); color: #fff; }
.deal-dlg-foot { padding: 12px 20px 16px; border-top: 1px solid var(--line); margin-top: 12px; }
.deal-dialog .deal-bad[x-show] { margin: 8px 20px 0; }

/* ---------- storefront: product deals + the − button (skills: storefront-design, product-deals) ---------- */
.quick-rm { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--brand); background: #fff; color: var(--brand); font: inherit; font-size: 1.45rem; font-weight: 700; line-height: 1; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: transform .12s; padding: 0; box-sizing: border-box; }
.quick-rm:active { transform: scale(.94); }
.quick-rm:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.quick-rm.empty { visibility: hidden; } /* keeps its place: the + and the count stay put */
.product .pctrl { gap: 6px; }
@media (max-width: 420px) {
  .products.shop .quick-rm { width: 32px; height: 32px; font-size: 1.3rem; }
  .products.shop .in-cart { min-width: 40px; padding: 0 6px; }
  .products.shop .in-cart.kg { min-width: 58px; }
  .products.shop .in-cart.kg::before { display: none; }
}
.deal-tags { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 1; max-width: calc(100% - 16px); display: grid; justify-items: start; gap: 4px; pointer-events: none; }
.deal-limit { max-width: 100%; padding: 2px 8px; border-radius: 999px; background: #fff; color: #b91c1c; border: 1px solid #fecaca; font-weight: 700; font-size: .7rem; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-badge { max-width: 100%; padding: 3px 10px; border-radius: 999px; background: #dc2626; color: #fff; font-weight: 800; font-size: .78rem; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 6px rgba(220, 38, 38, .35); pointer-events: none; }
.product.has-deal { border-color: #fecaca; }
.price.sale > span:not(.unit) { color: #dc2626; font-weight: 800; }
.price .was { color: var(--muted); font-weight: 400; font-size: .82em; margin-inline-end: 6px; }
/* always two lines tall, so "add N more" → "applied" never moves the card's buttons */
.deal-hint { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; line-height: 1.3; margin-top: 6px; font-size: .78rem; font-weight: 600; color: #b91c1c; }
.deal-hint.more { color: #c2410c; }
.deal-hint.ok { color: #15803d; }
.product.deal-hit { animation: deal-hit .7s ease; }
.product.deal-hit .deal-badge { animation: deal-pop .7s ease; }
.product.deal-hit .deal-hint { animation: deal-glow 1.2s ease; }
@keyframes deal-hit { 0% { box-shadow: var(--shadow); } 30% { box-shadow: 0 0 0 4px rgba(22, 163, 74, .45), var(--shadow); } 100% { box-shadow: var(--shadow); } } /* no transform: the + must not move */
@keyframes deal-pop { 0% { transform: scale(1); } 35% { transform: scale(1.25) rotate(-4deg); background: #16a34a; } 100% { transform: none; } }
@keyframes deal-glow { 0%, 100% { background: transparent; } 25% { background: #dcfce7; } }
/* cart: the regular price struck, the deal price under it */
.cl-price { display: inline-grid; justify-items: end; text-align: end; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cl-price s { color: var(--muted); font-size: .82em; }
.cl-price.deal > span { color: #15803d; font-weight: 700; }
.cl-deal { margin: 2px 0 0; font-size: .78rem; font-weight: 600; color: #c2410c; }
.cl-deal.ok { color: #15803d; }
.cl-deal.hit { animation: deal-glow 1.2s ease; border-radius: 6px; }
.cl-saved { color: #15803d; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .product.deal-hit, .product.deal-hit .deal-badge, .product.deal-hit .deal-hint, .cl-deal.hit { animation: none; } .quick-rm { transition: none; } }

/* ---------- storefront: the desktop side cart, collapsed to its header (count · total · finish) ---------- */
.cart-side { padding: 0; gap: 0; overflow: hidden; border-radius: 16px; }
.cs-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.cs-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #f1f5f9; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; color: var(--ink-2); box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
.cs-title { display: grid; gap: 2px; min-width: 0; }
.cs-title b { font-size: 1.15rem; }
.cs-title small { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
/* how the order is received: a block in the business colour */
.cs-service { display: grid; gap: 2px; padding: 14px 18px; background: var(--brand); color: #fff; }
.cs-service small { opacity: .85; font-size: .8rem; }
.cs-service b { font-size: 1.05rem; overflow-wrap: anywhere; }
.cs-service > span { font-size: .9rem; font-weight: 600; }
.cs-methods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cs-methods button { font: inherit; font-size: .82rem; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .6); background: transparent; color: #fff; cursor: pointer; }
.cs-methods button.on { background: #fff; color: var(--brand); border-color: #fff; font-weight: 700; }
.cs-methods button:disabled { opacity: .5; cursor: not-allowed; }
.cs-body { padding: 12px 18px 18px; gap: 10px; }
/* the panel fits the screen: only the lines scroll, the total and the pay button stay in view */
.order-body aside .sticky:has(.cart-side) { display: flex; flex-direction: column; max-height: calc(100vh - var(--top-h, 124px) - 32px); }
.cart-side { display: flex; flex-direction: column; min-height: 0; max-height: 100%; }
.cart-side > .cs-top, .cart-side > .cs-service { flex: none; }
.cart-side > .cs-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.cart-side .cs-lines { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-inline-end: 4px; }
/* lines with a photo, the price in the business colour */
.cart-side .cart-line { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.cart-side .cart-line > :not(.cl-thumb) { grid-column: 2; }
.cart-side .cl-thumb { display: grid; place-items: center; grid-column: 1; grid-row: 1 / span 3; width: 52px; height: 52px; border-radius: 10px; background: #f1f5f9; overflow: hidden; }
.cart-side .cl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-side .cart-line.version { grid-template-columns: minmax(0, 1fr); }
.cart-side .cart-line.version > * { grid-column: 1; }
.cart-side .cg-head .cl-thumb { grid-row: auto; width: 40px; height: 40px; flex: none; }
.cart-side .cl-price:not(.deal) { color: var(--brand); font-weight: 700; }
.cs-pay { width: 100%; margin-top: 4px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 800; font-size: 1.05rem; padding: 14px 20px; box-shadow: 0 8px 18px rgba(15, 23, 42, .18); cursor: pointer; font-variant-numeric: tabular-nums; }
.cs-pay:hover { filter: brightness(1.05); }
.cs-pay:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
/* no photo: the badge goes above the name (shop) / to the free corner (food), never over the text */
.products.shop .product.no-img .deal-tags { position: static; order: -2; align-self: flex-start; margin: 10px 10px 0; }
.products:not(.shop) .product.no-img .deal-tags { inset-inline-start: auto; inset-inline-end: 8px; top: auto; bottom: 8px; }
.deal-ends { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip-xs { padding: 4px 10px; font-size: .78rem; }
.deal-ends .chip.on { background: var(--ink); color: #fff; }
.deal-ends .deal-date { padding: 4px 8px; font-size: .82rem; min-height: 0; height: 30px; }
.deal-bulk select { padding: 4px 8px; height: 34px; }
.deal-ends .deal-date { width: 150px; }
@media (max-width: 600px) { /* phone: the whole window scrolls (list, bulk), the save bar stays at the bottom */
  .deal-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .deal-dlg-in { overflow-y: auto; }
  .deal-pick { flex: none; }
  .deal-rows { overflow: visible; flex: none; }
  .deal-dlg-head { position: sticky; top: 0; z-index: 2; background: #fff; }
  .deal-dlg-foot { position: sticky; bottom: 0; background: #fff; z-index: 2; margin-top: auto; }
  .deal-row-fields { padding-inline-start: 0; }
}
/* the deal is applied (enough in the cart): the badge stays green */
.product.deal-on .deal-badge { background: #16a34a; box-shadow: 0 2px 6px rgba(22, 163, 74, .35); }
.product.deal-on { border-color: #bbf7d0; }
.deal-row-fields .input.deal-times { width: 72px; }
.products:not(.shop) .deal-tags { inset-inline-start: auto; inset-inline-end: 8px; max-width: 108px; } /* food cards: over the side photo, not the name */
@media (max-width: 480px) { /* phones: room for the name next to the photo, counter and − */
  .pick-tap { gap: 10px; padding: 10px 12px; }
  .pick-img { width: 72px; height: 72px; }
  .pick-count { min-width: 60px; height: 48px; font-size: 1.05rem; padding: 0 8px; }
  .pick-info b { font-size: 1rem; }
}
.pick-count { unicode-bidi: isolate; } /* dir="ltr" for "1 / 3" (as written), rtl for "1.5 ק״ג" */

/* ---------- storefront: a product deal in the product window (skill: product-deals) ---------- */
.dlg-deal { margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid #fecaca; background: #fef2f2; display: grid; gap: 8px; }
.dlg-deal.more { border-color: #fed7aa; background: #fff7ed; }
.dlg-deal.ok { border-color: #bbf7d0; background: #f0fdf4; }
.dlg-deal.ok .deal-badge { background: #16a34a; box-shadow: 0 2px 6px rgba(22, 163, 74, .35); }
.dlg-deal-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.dlg-deal .deal-badge, .dlg-deal .deal-limit { pointer-events: auto; }
.dlg-deal-hint { margin: 0; font-weight: 700; font-size: .92rem; color: #b91c1c; }
.dlg-deal.more .dlg-deal-hint { color: #c2410c; }
.dlg-deal.ok .dlg-deal-hint { color: #15803d; }
.price-float.deal { background: #16a34a; }
.price-float s { font-size: .75rem; opacity: .85; font-variant-numeric: tabular-nums; }
.btn .btn-was { opacity: .75; font-weight: 400; font-size: .9em; }
/* no photo: the floating price sits beside the name, never over it */
.sheet .body.no-cover .dlg-head > h2, .sheet .body.no-cover .dlg-head > p.muted { padding-inline-end: 112px; }
@media (max-width: 480px) { .sheet-foot .btn .btn-was { display: none; } } /* phones: the floating price shows the struck price */

/* picking: "מוצר חסר" on the right, under the name (smaller); a completed line goes lighter but stays editable */
.pick-actions { justify-content: flex-start; padding-inline-start: calc(14px + 88px + 12px); padding-top: 0; }
@media (min-width: 600px) { .pick-actions { padding-inline-start: calc(14px + 104px + 12px); } }
@media (max-width: 480px) { .pick-actions { padding-inline-start: calc(12px + 72px + 10px); } }
.pick-sm.miss { padding: 4px 12px; min-height: 30px; font-size: .82rem; }
.pick-item.done { opacity: .6; filter: grayscale(.35); transition: opacity .25s, filter .25s; }
.pick-item.done:focus-within, .pick-item.done:active { opacity: .85; }
/* picking: the weight field of a line sold by weight */
.pick-wline { color: var(--ink-2); font-weight: 600; }
.pick-item.done .pick-tap[disabled] { cursor: default; }
/* picking: green + and red − of one size on both sides of the counter; the row itself is not tappable */
.pick-tap { cursor: default; user-select: text; }
.pick-plus, .pick-minus { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; color: #fff; font: inherit; font-size: 1.5rem; font-weight: 700; line-height: 1; display: grid; place-items: center; cursor: pointer; padding: 0; margin: 0; box-shadow: 0 2px 6px rgba(15, 23, 42, .18); -webkit-tap-highlight-color: transparent; }
.pick-plus { background: #16a34a; margin-inline-end: 8px; }
.pick-minus { background: #dc2626; margin-inline: 8px 12px; }
.pick-plus:active:not(:disabled), .pick-minus:active:not(:disabled) { transform: scale(.9); }
.pick-plus:focus-visible, .pick-minus:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.pick-plus:disabled { background: #cbd5e1; box-shadow: none; cursor: default; }
.pick-minus.empty { visibility: hidden; }
.pick-item.missing .pick-plus { visibility: hidden; }
@media (max-width: 480px) {
  .pick-plus, .pick-minus { width: 36px; height: 36px; font-size: 1.35rem; }
  .pick-plus { margin-inline-end: 6px; }
  .pick-minus { margin-inline: 6px 10px; }
}

/* picking: the number pad of a line sold by weight (a bottom sheet over the list; no phone keyboard) */
.pick-pad-back { position: fixed; inset: 0; z-index: 95; background: rgba(15, 23, 42, .4); }
.pick-pad { position: fixed; inset-inline: 0; bottom: 0; z-index: 96; background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -10px 30px rgba(15, 23, 42, .25); padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); max-height: 92dvh; overflow-y: auto; }
.pick-pad-in { display: grid; gap: 10px; width: min(460px, 100%); margin: 0 auto; }
.pick-pad-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pick-pad-head h3 { margin: 0; font-size: 1.15rem; }
.pick-pad-show { text-align: center; font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; padding: 8px; border-radius: 14px; background: #eff6ff; border: 2px solid #bfdbfe; line-height: 1.2; }
.pick-pad-show .ph { color: #94a3b8; }
.pick-pad-show small { font-size: 1rem; color: var(--muted); }
.pick-pad-price { margin: 0; text-align: center; color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.pick-pad-err { margin: 0; text-align: center; color: var(--err); font-weight: 700; }
.pick-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick-key { height: 58px; border-radius: 14px; border: 1px solid var(--line-2); background: #f8fafc; font: inherit; font-size: 1.6rem; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pick-key:active { background: #e2e8f0; transform: scale(.97); }
.pick-key[data-k="⌫"] { color: var(--err); }
.pick-pad-foot { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.pick-pad-foot .btn { height: 56px; font-size: 1rem; }
.pick-pad-save { background: #16a34a; font-size: 1.15rem !important; }
@media (max-height: 640px) { .pick-key { height: 48px; } .pick-pad-show { font-size: 2rem; } }
/* settings: how orders are picked */
.pick-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.pick-mode { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.pick-mode:has(input:checked) { border-color: var(--ink); background: #f8fafc; }
.pick-mode input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.pick-mode span { display: grid; gap: 2px; min-width: 0; }

/* picking by scanning: camera button, camera strip, last scan, the scanned row, "not in this order" */
.pick-cam-btn { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; flex-shrink: 0; }
.pick-cam-btn svg { width: 20px; height: 20px; }
.pick-cam-btn.on { background: #1e3a8a; border-color: #1e3a8a; color: #fff; }
.pick-cam { position: relative; flex: none; height: min(30vh, 220px); background: #000; overflow: hidden; }
.pick-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-cam-line { position: absolute; inset-inline: 12%; top: 50%; height: 2px; background: #ef4444; box-shadow: 0 0 8px #ef4444; animation: cam-line 1.6s ease-in-out infinite alternate; }
.pick-cam-hint { position: absolute; bottom: 8px; inset-inline: 0; text-align: center; color: #fff; font-size: .82rem; text-shadow: 0 1px 3px #000; }
@keyframes cam-line { from { transform: translateY(-36px); } to { transform: translateY(36px); } }
.pick-cam-err { flex: none; margin: 8px 12px 0; color: var(--err); font-weight: 600; }
.pick-scan-msg { flex: none; margin: 0; padding: 8px 14px; font-weight: 700; font-size: .95rem; }
.pick-scan-msg.ok { background: #f0fdf4; color: #15803d; }
.pick-scan-msg.bad { background: #fef2f2; color: #b91c1c; }
.pick-item.scanned { box-shadow: 0 0 0 4px rgba(37, 99, 235, .55); }
.pick-nf { position: fixed; z-index: 97; inset-inline: 16px; top: 50%; transform: translateY(-50%); max-width: 420px; margin: 0 auto; background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 20px 50px rgba(15, 23, 42, .35); border-top: 6px solid #dc2626; }
.pick-nf h3 { margin: 0; color: #b91c1c; font-size: 1.2rem; }
.pick-nf-ico { font-size: 2.4rem; line-height: 1; }
.pick-nf-name { margin: 0; font-weight: 700; font-size: 1.05rem; }
.pick-nf p { margin: 0; }
.pick-nf-ok { height: 52px; font-size: 1.05rem; }
@media (prefers-reduced-motion: reduce) { .pick-cam-line { animation: none; } }
/* scanning mode: no + on items sold per unit (they go in by scanning); its place is kept so rows stay aligned */
.pick-plus.scan-only { visibility: hidden; }
.pick-how { color: #1e3a8a; font-weight: 700; font-size: .78rem; }
.pick-how.nobc { color: #b45309; }

/* alcohol / 18+ (skill: age-restricted) */
.age-opts { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: #faf5ff; border: 1px solid #e9d5ff; }
.cat-alc.on { color: #7e22ce; font-weight: 700; }
/* storefront: alcohol / 18+ */
.age-tag { align-self: flex-start; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: #f3e8ff; color: #6b21a8; font-weight: 700; font-size: .72rem; white-space: nowrap; }
.age-note { margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; background: #faf5ff; color: #6b21a8; font-weight: 600; font-size: .88rem; }
.age-confirm { align-items: flex-start; gap: 10px; border: 2px solid #e9d5ff; background: #faf5ff; }
.age-confirm input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; }
.age-confirm span { display: grid; gap: 2px; }
.age-confirm small { color: var(--ink-2); }
.age-confirm.invalid { border-color: var(--err); background: #fef2f2; }
.age-check { border: 2px solid #c084fc; background: #faf5ff; }
.age-check.ok { border-color: #86efac; background: #f0fdf4; }
.pick-info .age-tag { justify-self: start; }
/* checkout: a method that doesn't take orders while closed; a method with one payment option */
.ship-card.off { opacity: .55; cursor: not-allowed; }
.ship-card .ship-off { color: var(--err); font-weight: 600; }
.ship-card .ship-pay { color: var(--ink-2); font-weight: 600; }
.ship-sub { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; margin: 0; display: grid; gap: 8px; }
.ship-sub legend { font-weight: 700; padding: 0 6px; }

/* address directory: street suggestions under an address field (skill: address-directory) */
.addr-ac { position: relative; }
.addr-sug { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 10px 28px rgba(15, 23, 42, .16); max-height: min(340px, 50vh); overflow-y: auto; }
/* a delivery street the address directory doesn't know: the customer may keep it (pick-up if the driver can't find it) */
.addr-unknown { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); border: 2px solid #fcd34d; color: #78350f; }
.addr-unknown b { font-weight: 700; }
.addr-unknown p { margin: 0; font-size: .9rem; line-height: 1.5; }
.addr-unknown .check { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; color: var(--ink); cursor: pointer; }
.addr-unknown .check input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; }
.addr-unknown.invalid { border-color: var(--err); background: #fef2f2; }
.addr-zip { margin: 0; color: #15803d; font-weight: 600; } /* the postcode of a found building (Israel Post) */
.addr-sug li { display: grid; gap: 1px; padding: 8px 12px; border-radius: 8px; cursor: pointer; min-height: 44px; box-sizing: border-box; }
.addr-sug li + li { border-top: 1px solid #f1f5f9; }
.addr-sug li.on, .addr-sug li:hover { background: #f1f5f9; }
.addr-sug li .as-city { color: var(--ink-2); font-size: .9rem; } /* the city under the street: the same street is in many cities */
