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

: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: "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(320px, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.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: cover; background: #f1f5f9; }

/* ---------- 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 { 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; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.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; }

@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .sidebar { width: auto; height: auto; position: static; border-left: 0; border-bottom: 1px solid var(--line); }
  .sidebar nav { flex-direction: row; overflow-x: auto; padding-bottom: 10px; }
  .sidebar nav a, .sidebar nav button { white-space: nowrap; }
  .main { padding: 18px 14px; }
}

/* ---------- 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 { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.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 { width: 96px; height: 96px; border-radius: 22px; object-fit: cover; 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 { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 12px; max-width: 1240px; margin: 0 auto; }
.chip { flex-shrink: 0; padding: 8px 16px; border-radius: 999px; background: #f1f5f9; color: var(--ink-2); font-weight: 600; font-size: .88rem; text-decoration: none; border: 0; cursor: pointer; }
.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: 330px; flex-shrink: 0; }
.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 { 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:disabled { opacity: .55; cursor: not-allowed; }
.product .info { flex: 1; display: flex; flex-direction: column; padding: 14px 16px; min-width: 0; }
.product .info .name { font-weight: 700; font-size: 1.02rem; }
.product .info .desc { color: var(--muted); font-size: .85rem; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product .info .price { margin-top: auto; padding-top: 10px; font-weight: 700; }
.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.off { border-color: #fca5a5; background: #fef2f2; color: #b91c1c; text-decoration: line-through; }
.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: 40px; width: 40px; 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; }
