:root {
  --brand: #c2410c;
  --brand-ink: #ffffff;
  --brand-text: #c2410c;
  --ink: #1c1917;
  --muted: #57534e;
  --bg: color-mix(in srgb, var(--brand) 6%, #faf8f5);
  --card: #ffffff;
  --line: color-mix(in srgb, var(--brand) 16%, #e7e1d8);
  --good: #15803d;
  --bad: #b91c1c;
  --radius: 12px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #fb923c;
    --brand-ink: #1c1917;
    --brand-text: #fb923c;
    --ink: #f5f5f4;
    --muted: #a8a29e;
    --bg: color-mix(in srgb, var(--brand) 8%, #1c1917);
    --card: #292524;
    --line: color-mix(in srgb, var(--brand) 25%, #44403c);
    --good: #4ade80;
    --bad: #f87171;
  }
}

* { box-sizing: border-box; }
body.shop {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--brand-text); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .25em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.muted { color: var(--muted); margin: 0; }
.small { font-size: .875rem; }

/* The header is the restaurant's own colour, with its logo on a white disc. */
.top { background: var(--brand); color: var(--brand-ink); padding: 18px 0 16px; }
.brand-row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.logo {
  width: 72px; height: 72px; border-radius: 14px; padding: 4px; object-fit: contain; flex: none;
  background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), 0 4px 12px rgba(0, 0, 0, .2);
}
/* The logo goes back to the menu. */
.logo-link { flex: none; display: block; line-height: 0; border-radius: 14px; }
.logo-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn.back-btn { text-align: center; text-decoration: none; margin-top: 20px; }
.top h1 { font-size: 1.6rem; }
.site-top { padding-block: 32px; }
.site-main { padding-block: 16px 48px; display: grid; gap: 16px; }
.site .panel { padding: 16px; }
.site-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.site-list { padding-left: 20px; line-height: 1.6; }
.site-login { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.site-login dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.site-form { display: grid; gap: 16px; }
.site-form label { display: block; margin: 12px 0; font-weight: 600; }
.site-form input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), .site-form select, .site-form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px; font: inherit; border: 1px solid var(--line); border-radius: 8px;
}
.site-form input[type=color] { display: block; width: 72px; height: 44px; margin-top: 4px; }
.site-form fieldset { border: 0; margin: 12px 0; padding: 0; }
.site-form fieldset legend { font-weight: 600; padding: 0; }
.site-form fieldset label { font-weight: 400; margin: 8px 0; }
.site-hidden { position: absolute; left: -9999px; }
.contact { margin: 4px 0 0; opacity: .92; }
.top .contact-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: var(--brand-text); }
.contact-btn svg { width: 21px; height: 21px; fill: currentColor; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 12px; border-radius: 19px;
  background: #fff; color: #1c1917; font-size: .875rem; font-weight: 600; line-height: 1.25; }
.status-pill::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #b91c1c; }
.status-pill.open::before { background: #15803d; }
.top a { color: inherit; }

.cats {
  position: sticky; top: 0; z-index: 5; background: var(--card);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}
.cats .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; }
.cats a {
  flex: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; white-space: nowrap; font-weight: 600;
}
.cats a:hover { border-color: var(--brand); }
.cats a[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

.layout { display: block; padding-top: 16px; padding-bottom: 96px; }
@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
  .basket { position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow-y: auto; }
}

.note {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: 12px;
}
.category { margin: 24px 0; scroll-margin-top: 56px; }
.category h2 { font-size: 1.3rem; border-left: 5px solid var(--brand); padding-left: 10px; }
.category h2 + .muted { padding-left: 15px; }
.item {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; margin-top: 10px;
}
.item h3 { font-size: 1.05rem; }
.item .desc { font-size: .92rem; }
.thumb { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; flex: none; cursor: pointer; }
.item-text { flex: 1; cursor: pointer; }
.item-text { min-width: 0; }
.item-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.price { font-weight: 700; white-space: nowrap; color: var(--brand-text); }
.allergens { font-size: .8rem; color: var(--muted); margin: 4px 0 0; }
.allergen-box { margin-top: 6px; }
.item > .allergen-box { flex: 0 0 100%; margin-top: 0; }
.allergen-box > summary {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer; list-style: none;
  font-size: .8rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px;
}
.allergen-box > summary::-webkit-details-marker { display: none; }
.allergen-box > summary::before { content: "ⓘ"; }
.allergen-box[open] > summary { color: var(--ink); border-color: var(--muted); }
.allergen-body { padding: 6px 0 2px; }
.tag-head { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 6px 0 4px; }
.tags { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); align-items: start; gap: 10px 6px; }
.tag { min-width: 0; }
.tag-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; font-size: 1.25rem; line-height: 1; }
.tag-name { display: block; margin-top: 3px; font-size: .75rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.tag-name::first-letter { text-transform: uppercase; }
.tag.contains .tag-icon { background: #fde2e1; }
.tag.contains .tag-name { color: #9f1d1d; }
.tag.may .tag-icon { background: #fef1c7; }
.tag.may .tag-name { color: #85520a; }
.tag-none { font-size: .85rem; color: var(--good); margin: 4px 0; }
.tag-ask { font-size: .85rem; color: var(--bad); margin: 4px 0; }
@media (prefers-color-scheme: dark) {
  .tag.contains .tag-icon { background: #5b1a1a; }
  .tag.contains .tag-name { color: #fecaca; }
  .tag.may .tag-icon { background: #4a3510; }
  .tag.may .tag-name { color: #fde68a; }
}
.soldout { opacity: .6; }
.tag-sold { font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }

.btn {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 999px; border: 0;
  background: var(--brand); color: var(--brand-ink); padding: 8px 18px;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.block { display: block; width: 100%; padding: 12px; }
.icon-btn {
  font: inherit; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer;
}

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 16px; }
.basket .panel { margin-top: 0; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 8px 0 12px; }
.seg button { flex: 1; font: inherit; padding: 8px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); font-weight: 600; }

.lines { list-style: none; padding: 0; margin: 8px 0; }
.lines li { border-bottom: 1px solid var(--line); padding: 8px 0; }
.line-head { display: flex; justify-content: space-between; gap: 8px; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 4px; margin: 8px 0; }
.totals dd { margin: 0; text-align: right; }
.total { font-weight: 700; font-size: 1.1rem; }
.msg { color: var(--bad); font-weight: 600; }

label { display: block; font-weight: 600; margin-top: 10px; }
.deals h2 { margin: 12px 0 8px; }
.deal-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.deal { flex: 0 0 210px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 3px; padding: 0 0 10px; overflow: hidden;
  background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.deal:hover { border-color: var(--brand); }
.deal-img { width: 100%; height: 124px; object-fit: cover; display: block; margin-bottom: 4px; }
.deal-name { font-weight: 700; padding: 0 10px; }
.deal-desc { font-size: .82rem; color: var(--muted); padding: 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deal-foot { display: flex; justify-content: space-between; gap: 8px; align-items: flex-end; padding: 0 10px; margin-top: auto; }
.deal-foot .terms { font-size: .72rem; font-weight: 600; color: var(--brand-text); }
.deal-foot .price { font-weight: 700; color: var(--brand-text); white-space: nowrap; }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.hint { font-weight: 600; color: var(--brand-text); }
.offers { margin-top: 12px; }
.offers h3 { margin: 0 0 4px; font-size: 1rem; }
.offer { border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; overflow: hidden; background: var(--card, #fff); }
.offer.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.offer-head, .offer-item { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0;
  font: inherit; color: inherit; cursor: pointer; text-align: left; }
.offer-head { padding: 10px 12px; justify-content: space-between; }
.offer-text { flex: 1; min-width: 0; }
.offer-name { display: block; font-weight: 600; }
.offer-sub { display: block; font-size: .85rem; color: var(--muted, #6b7280); }
.offer-action { color: var(--brand-text); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.offer-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); }
.offer.on .offer-dot { border: 5px solid var(--brand); }
.offer-list { border-top: 1px solid var(--line); }
.offer-item { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.offer-item:last-child { border-bottom: 0; }
.offer-item:hover, .offer-head:hover { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.offer-item img { flex: none; width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.when { margin-top: 12px; }
.when h3 { margin: 0 0 4px; font-size: 1rem; }
input[type=text], input[type=tel], input[type=email], input[type=password], textarea, select {
  display: block; width: 100%; font: inherit; padding: 10px; margin-top: 4px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink);
}
.choice { display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 6px 0; }
.choice .grow { flex: 1; }

dialog {
  border: 0; border-radius: var(--radius); padding: 0; width: min(560px, 100vw - 16px);
  max-height: calc(100dvh - 16px); background: var(--card); color: var(--ink);
  display: none; flex-direction: column; overflow: hidden;
}
dialog[open] { display: flex; }
.dlg-photo { width: 100%; max-height: 38dvh; object-fit: cover; display: block; flex: none; }
.dlg-close {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
dialog::backdrop { background: rgba(0, 0, 0, .5); }
.dlg-body { padding: 16px; overflow-y: auto; flex: 1; min-height: 0; }
.dlg-foot { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); flex: none; }
.dlg-foot .btn { flex: 1; }
fieldset { border: 0; padding: 0; margin: 16px 0 0; }
legend { font-weight: 700; }

.basket-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10;
  font: inherit; font-weight: 700; padding: 14px; border: 0; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
@media (max-width: 899px) {
  .basket { display: none; }
  body.basket-open .basket {
    display: block; position: fixed; inset: 0; z-index: 20; overflow-y: auto;
    background: var(--bg); padding: 16px;
  }
  body.basket-open .basket-bar { display: none; }
}
@media (min-width: 900px) {
  .basket-bar { display: none; }
  .close-basket { display: none; }
}

.foot { padding-top: 24px; padding-bottom: 120px; color: var(--muted); }
.hours th { text-align: left; padding-right: 24px; font-weight: 400; }
.status-card h2 { font-size: 1.5rem; }
.status-rejected h2, .status-cancelled h2 { color: var(--bad); }
.status-completed h2, .status-accepted h2 { color: var(--brand-text); }
.btn.small-btn { padding: 4px 14px; font-size: .85rem; margin-top: 10px; }

.cats .wrap { scrollbar-width: none; }
.cats .wrap::-webkit-scrollbar { display: none; }

.swatch-title { font-weight: 600; margin: 12px 0 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--card); padding: 0; cursor: pointer; }
.swatch[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 1px; }
.bp {
  --p-brand: var(--brand); --p-ink: var(--brand-ink); --p-text: var(--brand-text);
  margin-top: 8px; max-width: 360px; overflow: hidden; background: #fff; color: #1c1917;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.bp-top { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--p-brand); color: var(--p-ink); font-weight: 700; font-size: 1.1rem; }
.bp-logo { width: 44px; height: 44px; padding: 3px; border-radius: 8px; background: #fff; object-fit: contain; flex: none; }
.bp-logo[hidden] { display: none; }
.bp-body { display: grid; gap: 10px; padding: 12px; }
.bp-row { display: flex; justify-content: space-between; gap: 12px; }
.bp-price { color: var(--p-text); font-weight: 700; }
.bp .btn { background: var(--p-brand); color: var(--p-ink); text-align: center; cursor: default; }

/* The customer's account */
.top .brand-row > div { min-width: 0; flex: 1; }
.top .brand-row > .brand-actions { flex: 0 0 100%; display: flex; align-items: center; gap: 8px; }
.top .brand-row > .brand-status { flex: 0 0 100%; }
@media (min-width: 900px) {
  .top .brand-row > .brand-actions { flex: none; }
}
.account-btn {
  margin-left: auto; min-height: 38px;
  font: inherit; font-size: .875rem; font-weight: 600; padding: 6px 16px; border: 0; border-radius: 999px; white-space: nowrap;
  background: #fff; color: var(--brand-text); cursor: pointer;
}
.account-btn[hidden] { display: none; }
#account-dialog h2 { padding-right: 44px; margin: 0 0 8px; }
.account-tabs button { padding: 8px 4px; }
.btn.account-gap { margin-top: 10px; }
#account-form .btn.block, #address-form .btn.block { margin-top: 10px; }
.saved-list { list-style: none; margin: 12px 0; padding: 0; }
.saved-list li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.saved-list .grow { flex: 1; min-width: 0; }
.saved-list .btn.small-btn { margin-top: 0; flex: none; }
.saved-list .past-order { display: block; }
.saved-list .past-order .btn.small-btn { margin-top: 8px; }
.pin-wrap { position: relative; height: 50dvh; min-height: 260px; margin: 8px 0; border-radius: 8px; overflow: hidden; }
.pin-map { position: absolute; inset: 0; }
/* The tip of the pin sits exactly on the centre of the map. */
.map-pin {
  position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -34px 0 0 -14px; z-index: 1000; pointer-events: none;
  box-sizing: border-box; border: 3px solid #fff; border-radius: 50% 50% 50% 0; background: var(--brand);
  transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.stamps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: 310px; margin: 8px 0 12px; }
.stamp { position: relative; display: block; aspect-ratio: 1; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.stamp .mark { position: absolute; inset: -2px; display: flex; box-sizing: border-box; padding: 15%; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }
.stamp .mark.plain { background: var(--brand); }
.stamp .mark img { width: 100%; height: 100%; object-fit: contain; }
.stamp.pale .mark { opacity: .45; }
.stamp .mark.drop { animation: stamp-drop .7s ease-out both; }
@keyframes stamp-drop {
  0% { transform: scale(0); }
  55% { transform: scale(1.22); }
  78% { transform: scale(.93); }
  100% { transform: scale(1); }
}
.after-drop { font-weight: 600; }
.after-drop.fade { animation: after-drop .4s ease-out both; }
@keyframes after-drop { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stamp .mark.drop, .after-drop.fade { animation: none; } }
#stamp-popup { width: min(420px, 100vw - 16px); }
.stamp-card h2 { margin-top: 0; }
.stamp-card .stamps { margin-inline: auto; }
.deliver-to { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.deliver-to .grow { flex: 1; min-width: 0; }
.deliver-to .btn.small-btn { flex: none; margin-top: 0; }
.deliver-to p { margin: 2px 0 0; }
.address-choice small { display: block; }
.save-name.off { display: none; }
.ordering-as { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 4px; font-weight: 600; overflow-wrap: anywhere; }
.ordering-as .btn.small-btn { flex: none; margin-top: 0; }

/* Table bookings */
.book-row { display: flex; gap: 12px; flex-wrap: wrap; }
.book-row label { flex: 1 1 140px; }
input[type=date] { font: inherit; width: 100%; padding: 10px; margin-top: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); box-sizing: border-box; }
fieldset.book-times { border: 0; padding: 0; margin: 14px 0 0; }
fieldset.book-times legend { font-weight: 600; padding: 0; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-top: 8px; }
.time-grid button { font: inherit; padding: 10px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.time-grid button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }
.time-grid button:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.booking-banner { border-color: var(--brand); }
/* A link, so .top a would otherwise make its text white on the white button. */
.top .book-btn { color: var(--brand-text); text-decoration: none; display: inline-flex; align-items: center; }
body.embed { background: transparent; }
body.embed main { padding-top: 0; }
.table-counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0 12px; }
input[type=number] { display: block; width: 100%; font: inherit; padding: 10px; margin-top: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); box-sizing: border-box; }
#logoCanvas { display: block; width: 280px; max-width: 100%; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; touch-action: none; cursor: grab; background: #fff; }
#logoCrop input[type=range] { display: block; width: 280px; max-width: 100%; padding: 0; }
