/* One stylesheet for the whole platform. --brand is set per takeaway. */
:root {
  --brand: #b3261e;
  --ink: #1f1c1a;
  --muted: #6d6660;
  --line: #e6e1dc;
  --bg: #f6f4f1;
  --card: #ffffff;
  --ok: #1d7a35;
  --warn: #9a5800;
  --bad: #b3261e;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.error { color: var(--bad); font-weight: 600; }
.ok { color: var(--ok); }
.loading { padding: 2rem 1rem; text-align: center; color: var(--muted); }
.noscript { padding: 1rem; background: #fff3cd; }

/* Buttons and form controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 44px; padding: .6em 1.1em; border: 0; border-radius: 10px;
  background: var(--brand); color: var(--brand-ink, #fff); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.danger { background: #fff; color: var(--bad); border: 1px solid #f0c9c6; }
.btn.good { background: var(--ok); color: #fff; }
.btn.small { min-height: 34px; padding: .35em .75em; font-size: .9rem; border-radius: 8px; }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; }
label { display: block; font-weight: 600; font-size: .95rem; }
label .hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
input, select, textarea { width: 100%; margin-top: .3em; padding: .65em .75em; border: 1px solid #cfc8c1; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .link:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 1px; }
input[type=checkbox], input[type=radio] { width: 1.15em; height: 1.15em; margin: 0; accent-color: var(--brand); flex: none; }
textarea { min-height: 80px; resize: vertical; }
.check { display: flex; gap: .6em; align-items: flex-start; font-weight: 500; }
.check input { margin-top: .15em; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.spread { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (max-width: 560px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.pill { display: inline-block; padding: .15em .6em; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #eee; color: var(--ink); }
.pill.ok { background: #e3f3e7; color: var(--ok); }
.pill.warn { background: #fff1db; color: var(--warn); }
.pill.bad { background: #fde7e5; color: var(--bad); }
.pill.brand { background: var(--brand); color: var(--brand-ink, #fff); }
.banner { padding: .75rem 1rem; text-align: center; font-weight: 600; }
.banner.warn { background: #fff1db; color: var(--warn); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(92vw, 520px); padding: .8em 1.1em; border-radius: 10px;
  background: #222; color: #fff; z-index: 2000; box-shadow: var(--shadow); font-weight: 600; }
.toast.bad { background: var(--bad); }
.toast.ok { background: var(--ok); }

/* Pop-up sheet used for items, basket and editors */
.sheet { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 16, 12, .5); display: flex; align-items: flex-end; justify-content: center; }
.sheet-panel { background: #fff; width: min(100%, 640px); max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 1.1rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-panel { border-radius: 18px; } }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .75rem; }
.sheet-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; cursor: pointer; }
body.no-scroll { overflow: hidden; }

/* Plain pages (login, errors) */
.plain-body { display: grid; place-items: center; min-height: 100vh; padding: 1rem; }
.center-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 2rem; width: min(100%, 420px); box-shadow: var(--shadow); }

/* ---------- Customer ordering page */
.shop { max-width: 820px; margin: 0 auto; padding-bottom: 110px; }
.shop-header { position: relative; background: var(--brand); color: var(--brand-ink, #fff); padding: 1.4rem 1rem 1.1rem; }
.shop-header h1 { font-size: 1.7rem; margin-bottom: .25em; }
.shop-header .meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .92rem; opacity: .95; align-items: center; }
.shop-header a { color: inherit; }
.status-pill { background: rgba(255, 255, 255, .95); color: var(--ink); }
.status-pill.ok { color: var(--ok); }
.status-pill.bad { color: var(--bad); }
.shop-intro { margin: 1rem; padding: .85rem 1rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.notice { margin: 1rem; padding: .85rem 1rem; border-radius: var(--radius); background: #fff1db; color: #5c3900; font-weight: 600; }
.cat-nav { position: sticky; top: 0; z-index: 10; display: flex; gap: .5rem; overflow-x: auto; padding: .7rem 1rem; background: rgba(246, 244, 241, .97);
  border-bottom: 1px solid var(--line); scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; padding: .45em .9em; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.cat-nav a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat { padding: 1rem 1rem 0; scroll-margin-top: 64px; }
.cat h2 { margin: .4rem 0 .7rem; }
.items { display: grid; gap: .65rem; }
.item { display: flex; gap: .8rem; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem; cursor: pointer; font: inherit; color: inherit; }
.item:hover { border-color: #cfc6bd; }
.item .info { flex: 1; min-width: 0; }
.item .name { font-weight: 700; }
.item .desc { color: var(--muted); font-size: .9rem; margin: .2em 0 .35em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .price { font-weight: 650; }
.item img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; flex: none; }
.item.soldout { opacity: .55; cursor: not-allowed; }
.hours-list { margin: 1rem; }
.hours-list summary { cursor: pointer; font-weight: 600; }
.hours-list table { margin-top: .5rem; border-collapse: collapse; }
.hours-list td { padding: .2rem 1rem .2rem 0; }
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(246, 244, 241, .95) 30%); }
.cart-bar .btn { width: min(100%, 788px); margin: 0 auto; display: flex; justify-content: space-between; min-height: 54px; font-size: 1.05rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.opt-group { margin: 1rem 0; }
.opt-group legend { font-weight: 700; padding: 0; margin-bottom: .4rem; }
.opt-group fieldset { border: 0; padding: 0; margin: 0; }
.opt { display: flex; align-items: center; gap: .7rem; padding: .6rem .2rem; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 500; }
.opt .opt-price { margin-left: auto; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: .6rem; }
.qty button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; cursor: pointer; }
.qty b { min-width: 1.5em; text-align: center; }
.basket-line { display: flex; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.basket-line .info { flex: 1; }
.basket-line .opts { color: var(--muted); font-size: .88rem; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { flex: 1; padding: .7em; border: 0; background: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.seg button.on { background: var(--ink); color: #fff; }
.totals { margin-top: .75rem; }
.totals div { display: flex; justify-content: space-between; padding: .2rem 0; }
.totals .grand { font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Order status page */
.status-page { max-width: 640px; margin: 0 auto; padding: 1rem; }
.status-hero { text-align: center; padding: 1.5rem 1rem; }
.status-hero .big { font-size: 1.5rem; font-weight: 800; margin: .5rem 0; }
.status-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; font-size: 2rem; background: #fff; border: 1px solid var(--line); }
.steps { display: flex; justify-content: space-between; gap: .4rem; margin: 1rem 0; }
.steps span { flex: 1; text-align: center; font-size: .8rem; padding-top: .5rem; border-top: 4px solid var(--line); color: var(--muted); }
.steps span.done { border-color: var(--brand); color: var(--ink); font-weight: 650; }

/* ---------- Admin */
.admin-body { background: var(--bg); }
.masterbar { background: #1f1c1a; color: #fff; padding: .45rem 1rem; font-size: .9rem; text-align: center; }
.masterbar a { color: #ffd9a8; }
.topbar { display: flex; align-items: center; gap: 1rem; padding: .6rem 1rem; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; position: sticky; top: 0; z-index: 20; }
.topbar .brand { font-weight: 800; }
.tabs { display: flex; gap: .25rem; overflow-x: auto; flex: 1; }
.tabs a { padding: .5em .8em; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.tabs a.active { background: var(--ink); color: #fff; }
.topbar-right { display: flex; gap: 1rem; align-items: center; font-size: .92rem; }
main.admin { max-width: 1200px; margin: 0 auto; padding: 1rem; }
.section { margin-bottom: 1.25rem; }
.section > h2 { margin-bottom: .75rem; }
table.list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.list th, table.list td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .93rem; }
table.list th { background: #faf8f6; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
table.list tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.stat .v { font-size: 1.5rem; font-weight: 800; }
.stat .l { color: var(--muted); font-size: .85rem; }
.stat.highlight { background: var(--ink); color: #fff; }
.stat.highlight .l { color: #d8d2cc; }

/* Live order screen */
.orders-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.conn { font-weight: 700; font-size: .9rem; }
.conn.on { color: var(--ok); }
.conn.off { color: var(--bad); }
.orders-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; align-items: start; }
.col h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; margin-bottom: .75rem; box-shadow: var(--shadow); }
.order-card.pending { border: 3px solid var(--bad); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(179, 38, 30, .18); } }
.order-card .top { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.order-card .num { font-size: 1.3rem; font-weight: 800; }
.order-card ul { list-style: none; padding: 0; margin: .5rem 0; }
.order-card li { padding: .25rem 0; border-bottom: 1px dashed var(--line); }
.order-card li .opts { color: var(--muted); font-size: .88rem; }
.order-card .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.minutes { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.minutes .btn { flex: 1 0 auto; }
.start-overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(20, 16, 12, .88); display: grid; place-items: center; padding: 1rem; color: #fff; text-align: center; }
.start-overlay .btn { font-size: 1.25rem; min-height: 64px; padding: 0 2rem; margin-top: 1rem; }
.switch { display: inline-flex; align-items: center; gap: .5rem; font-weight: 650; cursor: pointer; }

/* Menu builder */
.cat-block { margin-bottom: 1rem; }
.cat-block .cat-head { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .5rem; }
.cat-block .cat-head h2 { margin: 0; flex: 1; }
.menu-item-row { display: flex; gap: .75rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.menu-item-row .info { flex: 1; min-width: 180px; }
.menu-item-row img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.group-editor { border: 1px solid var(--line); border-radius: 10px; padding: .75rem; margin-top: .75rem; background: #faf8f6; }
.opt-row { display: grid; grid-template-columns: 1fr 110px auto; gap: .5rem; align-items: end; margin-top: .4rem; }
.photo-preview { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.hours-row { display: grid; grid-template-columns: 70px 1fr; gap: .5rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.hours-row .times { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.hours-row input[type=time] { width: auto; margin: 0; }
code.snippet { display: block; padding: .7rem; background: #1f1c1a; color: #f5efe9; border-radius: 8px; overflow-x: auto; font-size: .85rem; white-space: pre-wrap; word-break: break-all; }

/* ---------- Kitchen ticket (80mm printers) */
.ticket-body { background: #fff; }
.ticket { width: 72mm; margin: 0 auto; padding: 2mm; font: 13px/1.35 "Courier New", ui-monospace, monospace; color: #000; }
.ticket hr { border: 0; border-top: 1px dashed #000; margin: 2mm 0; }
.tcenter { text-align: center; }
.tbig { font-size: 16px; font-weight: 700; }
.tbold { font-weight: 700; }
.tinvert { background: #000; color: #fff; font-weight: 700; padding: 1mm; }
.tline { display: flex; justify-content: space-between; gap: 2mm; }
.topt { padding-left: 4mm; font-size: 12px; }
.noprint { text-align: center; margin: 1rem; }
@media print {
  @page { size: 80mm auto; margin: 0; }
  .noprint, .toast { display: none !important; }
  .ticket-body { background: #fff; }
}

/* New-order alert on admin pages other than Live orders */
.new-order-alert { display: block; position: sticky; top: 0; z-index: 60; background: var(--bad); color: #fff; text-align: center;
  padding: .85rem 1rem; font-weight: 700; text-decoration: none; animation: alertflash 1s steps(2, start) infinite; }
.new-order-alert:hover, .new-order-alert:focus { color: #fff; text-decoration: underline; }
@keyframes alertflash { 50% { background: #7a1712; } }
@media (prefers-reduced-motion: reduce) { .new-order-alert { animation: none; } }

/* Privacy notice and ordering-page footer */
.legal-body { background: var(--bg, #f4f2ee); }
.legal { max-width: 720px; margin: 0 auto; padding: 1.5rem 1rem 3rem; line-height: 1.6; }
.legal h1 { font-size: 1.6rem; margin: 1rem 0; }
.legal h2 { font-size: 1.1rem; margin: 1.6rem 0 .4rem; }
.legal ul { padding-left: 1.2rem; }
.shop-footer { text-align: center; margin: 1.5rem 0 6rem; font-size: .9rem; }
.allergy-note { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .75rem 1rem; font-size: .92rem; margin: 1rem 0; }

/* ---------- Takeaway branding: banner photo, logo, heading style, info cards */
.shop-header.has-cover { background: #1b1714 var(--cover) center / cover no-repeat; color: #fff; padding-top: 8.5rem; }
.shop-header.has-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .25) 38%, rgba(0, 0, 0, .8) 100%); }
.shop-header > * { position: relative; }
.shop-head { display: flex; gap: .9rem; align-items: center; }
.shop-logo { width: 76px; height: 76px; border-radius: 16px; object-fit: contain; background: #fff; padding: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); flex: none; }
.shop-title { min-width: 0; }
.shop-title h1 { margin-bottom: .15em; overflow-wrap: anywhere; }
.shop-header .tagline { margin: 0 0 .5rem; font-size: 1rem; opacity: .95; }
.shop-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.chip { display: inline-flex; align-items: center; gap: .35em; min-height: 36px; padding: .4em .85em; border-radius: 999px; font: inherit; font-weight: 650; font-size: .9rem;
  color: inherit; text-decoration: none; cursor: pointer; background: color-mix(in srgb, currentColor 14%, transparent); border: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.shop[data-font="serif"] :is(h1, h2, h3) { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.01em; }
.shop[data-font="rounded"] :is(h1, h2, h3) { font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif; }
.shop[data-font="condensed"] :is(h1, h2, h3) { font-family: "Oswald", "Bebas Neue", "Arial Narrow", "Roboto Condensed", Impact, sans-serif; font-stretch: condensed; text-transform: uppercase; letter-spacing: .02em; }
.info-cards { display: grid; gap: .75rem; margin: 1rem; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.info-card h2 { font-size: 1.15rem; }
.about-text { white-space: pre-line; color: #3b3632; margin: 0; }
.info-line { margin: 0 0 .45rem; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.socials a { padding: .4em .85em; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 650; font-size: .9rem; color: var(--ink); }
.preview-ribbon { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: #111; color: #fff; font-size: .78rem; font-weight: 700; text-align: center; padding: .3rem; pointer-events: none; }

/* ---------- "Your page" designer (admin) */
.design-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.25rem; align-items: start; }
.design-preview { position: sticky; top: 72px; }
.preview-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.preview-stage { background: #e8e2dc; border-radius: 16px; padding: 14px; display: flex; justify-content: center; }
.preview-frame { width: 390px; max-width: 100%; height: 720px; border: 0; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.preview-stage.desktop .preview-frame { width: 100%; border-radius: 10px; }
.image-field { display: flex; gap: .9rem; align-items: center; margin-top: .4rem; }
.thumb { width: 84px; height: 84px; border-radius: 12px; background: #f1ede8; border: 1px dashed #cfc8c1; display: grid; place-items: center; color: var(--muted); font-size: .8rem; flex: none; overflow: hidden; }
.thumb.wide { width: 160px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.logo img { object-fit: contain; background: #fff; }
.swatches { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .45rem; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #cfc8c1; cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.font-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; margin-top: .45rem; }
.font-choice { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: .6rem; cursor: pointer; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.font-choice[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.font-choice.serif { font-family: Georgia, "Times New Roman", serif; }
.font-choice.rounded { font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif; }
.font-choice.condensed { font-family: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif; text-transform: uppercase; }
.savebar { position: sticky; bottom: 0; z-index: 15; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; background: rgba(255, 255, 255, .97);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.savebar .state { font-size: .9rem; color: var(--muted); }
.savebar .state.dirty { color: var(--warn); font-weight: 650; }
@media (max-width: 900px) { .design-layout { grid-template-columns: 1fr; } .design-preview { position: static; } .preview-frame { height: 640px; } }
.shop > .allergy-note { margin: 1rem; }
.btn.secondary[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.help-steps { margin-top: 1rem; background: #faf8f6; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; }
.help-steps summary { font-weight: 650; cursor: pointer; }
.help-steps ol { margin: .6rem 0 0; padding-left: 1.2rem; }
.help-steps li { margin-bottom: .45rem; }
p.ok { color: var(--ok); font-weight: 650; }
.good-notice { background: #e7f4ea; color: #1d5b2c; font-weight: 600; }
.stripe-box { margin-top: .9rem; }
b.ok { color: var(--ok); }

/* ---------- Help pages */
.help-page { max-width: 860px; margin: 0 auto; }
#help-search { margin: .25rem 0 1rem; }
.help-topic { padding: .85rem 1.1rem; margin-bottom: .6rem; }
.help-topic summary { font-weight: 700; cursor: pointer; font-size: 1.04rem; }
.help-body { margin-top: .7rem; color: #3b3632; }
.help-body li { margin-bottom: .45rem; }
.help-body ol, .help-body ul { padding-left: 1.25rem; margin: .4rem 0 .6rem; }
.help-contact { margin-top: 1.5rem; background: #fff7ea; }
.booking-alert { background: #283593; animation: none; }
.bookings-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.booking-card .num { font-size: 1.5rem; }
.booking-day { margin: 1rem 0 .5rem; font-size: 1rem; color: var(--muted); }
.order-card.booking-card.pending { border: 3px solid #283593; animation: none; }
@media (max-width: 760px) { .bookings-cols { grid-template-columns: 1fr; } }
.tabs a { padding: .5em .7em; }
@media (min-width: 900px) { .tabs { flex-wrap: wrap; } }
/* Sections jumped to (e.g. back from Stripe) stop below the sticky top bar, not under it. */
.card.section[id] { scroll-margin-top: 7.5rem; }
@media (min-width: 900px) { .card.section[id] { scroll-margin-top: 4.5rem; } }
/* Keep the admin tabs on one line on a landscape iPad (1180px wide). */
@media (min-width: 900px) and (max-width: 1280px) { .topbar { gap: .6rem; } .tabs { gap: .1rem; } .tabs a { padding: .45em .55em; font-size: .95rem; } }
.plans-editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .75rem; }
.plan-editor { padding: .9rem; display: grid; gap: .6rem; background: #faf8f6; }
.plan-editor details summary { cursor: pointer; font-weight: 600; font-size: .95rem; }
.history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.history-list li { padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* Offers & loyalty, Your page choices, owner controls */
.loyalty-preview { margin: 1rem 0; padding: .75rem 1rem; border-radius: 10px; background: #fff8e1; border: 1px solid #f3dc8b; font-weight: 600; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.plain legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: .4rem; }
fieldset.plain > .check + .check { margin-top: .5rem; }
.stack > fieldset.plain:not(:first-child) { margin-top: 1.25rem; }
.day-check { display: inline-flex; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.choice-row .font-choice { font-size: .95rem; display: flex; flex-direction: column; gap: .15rem; align-items: flex-start; text-align: left; }
.choice-row .font-choice small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.danger-zone { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.danger-zone summary { cursor: pointer; color: var(--bad); font-weight: 650; }
.filters { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.filters select, .filters input { margin-top: 0; }
.later-head { margin-top: 1.5rem; }

/* New-enquiry count on the owner's Enquiries tab */
.tabs .count { display: inline-block; min-width: 1.4em; padding: 0 .4em; margin-left: .25em; border-radius: 999px; background: #e8590c; color: #fff; font-size: .75rem; line-height: 1.4em; text-align: center; font-weight: 700; }
.enq-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; }
.enq-details { margin: .4rem 0 0; padding: 0; list-style: none; font-size: .85rem; color: #555; }
.enq-details li { margin: .1rem 0; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .75rem 0 1rem; }
.filters select { width: auto; }

/* Ready-made looks on the "Your page" screen */
.look-row .look-choice { display: inline-flex; align-items: center; gap: .45rem; font-size: .95rem; }
.look-dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); flex: none; }
