:root {
  color-scheme: light;
  --ink: #261615;
  --muted: #6b514a;
  --cream: #fff4e9;
  --surface: #fffaf5;
  --paper: #fffdf9;
  --line: #ead8cc;
  --wine: #591015;
  --red: #b91323;
  --red-deep: #8d101a;
  --orange: #ffae53;
  --tint: #fbe9df;
  --heading: system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --s1: .375rem;
  --s2: .75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2rem;
  --radius-sm: .65rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow: 0 4px 15px #5424120a, 0 1px 3px #54241212;
  --shadow-lg: 0 16px 40px #61131922;
  background: var(--cream);
  color: var(--ink);
  font: 100%/1.55 var(--body);
}
* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0 }
body[data-menu-theme="dourado"] {
  --ink: #301f14;
  --muted: #674f39;
  --cream: #f9f0df;
  --surface: #fff9ed;
  --paper: #fffdf6;
  --line: #e2cdb0;
  --wine: #402817;
  --red: #875016;
  --red-deep: #674015;
  --orange: #e8b65d;
  --tint: #f4e5cb;
  --store-dark: #241810;
  --store-accent: #67401f;
  --store-overlay: #241810ef;
  --store-overlay-light: #24181036;
}
body[data-menu-theme="vinho"] {
  --ink: #301c26;
  --muted: #684c59;
  --cream: #f9edf0;
  --surface: #fff7f9;
  --paper: #fffcfd;
  --line: #e7cdd6;
  --wine: #48172e;
  --red: #8b2c54;
  --red-deep: #64203e;
  --orange: #f7bd83;
  --tint: #f4dee6;
  --store-dark: #301021;
  --store-accent: #6f2345;
  --store-overlay: #301021ef;
  --store-overlay-light: #30102136;
}
body[data-menu-theme="verde"] {
  --ink: #222819;
  --muted: #515942;
  --cream: #f2f4e7;
  --surface: #fafbf3;
  --paper: #fffffa;
  --line: #d9dfc9;
  --wine: #2e3b1f;
  --red: #536a31;
  --red-deep: #394b23;
  --orange: #edcb7b;
  --tint: #e7ebda;
  --store-dark: #232b1a;
  --store-accent: #495a2e;
  --store-overlay: #232b1aef;
  --store-overlay-light: #232b1a36;
}
body[data-menu-theme] { background: var(--cream); color: var(--ink) }
body[data-menu-theme] .top { background: linear-gradient(110deg, var(--store-dark, #4f0c10), var(--store-accent, #7f1721)) }
a { color: var(--red-deep) }
img { display: block; max-width: 100% }
button, input, textarea, select { font: inherit }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 44px;
  padding: .55rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: linear-gradient(165deg, var(--red), var(--red-deep));
  color: white;
  cursor: pointer;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}
button:hover, .button:hover { filter: brightness(.94) }
button:disabled { opacity: .6; cursor: wait }
.secondary { background: var(--paper); color: var(--red-deep); border-color: var(--line) }
:focus-visible { outline: 3px solid #934017; outline-offset: 3px }
.top { background: linear-gradient(110deg, #4f0c10, #7f1721); color: white }
.top > div, main, footer { width: min(76rem, calc(100% - 2rem)); margin-inline: auto }
.top > div, .top nav, .actions, .line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  flex-wrap: wrap;
}
.top > div { min-height: 75px; padding-block: var(--s2) }
.top nav > a:not(.button) { color: white; text-underline-offset: .25em; font-weight: 650 }
.top nav .button:not(.secondary), .hero .button {
  background: var(--orange); color: #3c160d; box-shadow: none;
}
.top :focus-visible, .hero :focus-visible { outline-color: var(--orange) }
.brand { display: inline-flex; align-items: center; gap: .28em; color: white; font: 850 clamp(1.3rem, 3vw, 1.95rem)/1 var(--heading); letter-spacing: -.045em; text-decoration: none }
.brand em { color: var(--orange); font-style: italic }
.brand-mark { display: grid; place-items: center; width: 1.5em; height: 1.5em; margin-right: .13em; border: 1px solid #ffffff82; border-radius: .45em; font-size: .85em }
main { min-height: 70vh; padding-block: var(--s3) var(--s5) }
h1, h2, h3, p { margin: 0 0 var(--s1) }
h1, h2, h3 { font-family: var(--heading); line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere }
h1 { font-size: clamp(2.2rem, 6vw, 4.35rem); font-weight: 850 }
h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); font-weight: 820 }
h3 { font-size: 1.08rem; font-weight: 820 }
p { color: var(--muted) }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: clamp(1.15rem, 4.5vw, 3.5rem);
  margin-bottom: var(--s4);
  border-radius: var(--radius-lg);
  background: linear-gradient(115deg, #4e0d12, #8b2027);
  color: white;
  box-shadow: var(--shadow-lg);
}
.hero-copy { max-width: 36rem; position: relative }
.hero h1 { margin-bottom: var(--s2) }
.hero p { color: #fff0e3; max-width: 46ch }
.hero .button { margin-top: var(--s2) }
.hero .secondary { background: #fff8ed; color: var(--wine) }
.hero .location {
  width: fit-content;
  padding: .25rem .65rem;
  margin-bottom: var(--s2);
  border: 1px solid #ffffff63;
  border-radius: 99rem;
  background: #35080e65;
  font-size: .875rem;
  font-weight: 700;
}
.home-hero {
  min-height: 20rem;
  background: linear-gradient(90deg, #420b10 5%, #480d13e8 32%, #480d1340 72%),
    #65151c url('/share-cover.jpg') center right / cover no-repeat;
}
.home-hero h1 { max-width: 14ch }

.store-hero { background: linear-gradient(115deg, var(--store-dark, #4e0d12), var(--store-accent, #8b2027)) }
.store-hero.has-cover { background: var(--store-dark, #2e100d) }
.store-hero:not(.has-cover) {
  background: var(--menu-background, linear-gradient(115deg, var(--store-dark, #4e0d12), var(--store-accent, #8b2027)));
  color: var(--menu-background-contrast, white);
}
.store-hero:not(.has-cover) p { color: var(--menu-background-contrast, #fff0e3) }
.store-cover, .store-hero.has-cover::after { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100% }
.store-cover { object-fit: cover; object-position: 50% 48% }
.store-hero.has-cover::after { content: ""; background: linear-gradient(90deg, var(--store-overlay, #270b09ee), var(--store-overlay-light, #290b0952) 75%), linear-gradient(0deg, #240808a3, transparent 65%) }
.panel, .dish { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); box-shadow: var(--shadow) }
.forms, .columns, .dishes, .stack { display: grid; gap: var(--s3); align-items: start; grid-template-columns: minmax(0, 1fr) }
.registration { max-width: 50rem; margin-inline: auto }
.merchant-invite { background: var(--tint) }
.actions { justify-content: flex-start }
label { display: grid; gap: .25rem; margin: .65rem 0; font-weight: 650 }
input, textarea, select { width: 100%; border: 1px solid #cdb2a4; border-radius: var(--radius-sm); padding: .58rem .7rem; color: var(--ink); background: var(--paper) }
textarea { resize: vertical }
.check { display: flex; align-items: center }
.check input { width: auto; accent-color: var(--red) }
.error { color: var(--red-deep) }
.notice { margin: .5rem 0 0 }
.notice:empty, #dashboard-status:empty, .schedule-note:empty { display: none }
.price { font-weight: 850; color: var(--red-deep); white-space: nowrap }
.item { border-bottom: 1px solid var(--line); padding: .65rem 0 }
.details, .menu-address, #admin-list .item p { white-space: pre-wrap; overflow-wrap: anywhere }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: .75rem 0; padding: .45rem .75rem .65rem; min-width: 0 }
legend { font-weight: 750; padding: 0 .25rem }
.payment-options { display: flex; flex-wrap: wrap; gap: .15rem 1rem }
.payment-options .check { margin: .15rem 0; min-height: 1.8rem }
.schedule-display { margin: 0 }
.schedule-display div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .6rem; padding: .25rem 0 }
.schedule-display dd { margin: 0; color: var(--muted) }
.schedule-group { padding: .5rem 0 }
.schedule-group + .schedule-group { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .85rem }
.schedule-days { display: flex; flex-wrap: wrap; gap: .35rem }
.day-choice { position: relative; display: block; margin: 0; font-size: .875rem; cursor: pointer }
.day-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer }
.day-choice span { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .32rem .52rem }
.day-choice input:checked + span { background: var(--red-deep); border-color: var(--red-deep); color: white }
.day-choice input:focus-visible + span { outline: 3px solid #934017; outline-offset: 2px }
.schedule-times { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; max-width: 24rem }
.schedule-times label { margin: .5rem 0 0; font-size: .875rem }
.schedule-times input { min-width: 0; padding: .35rem .5rem }
.schedule-action { background: transparent; color: var(--red-deep); padding: .35rem 0; font-size: .875rem; text-align: left }
.schedule-action:hover { text-decoration: underline }
.schedule-note, .item-step { font-size: .875rem }
.item-step { font-weight: 750; color: var(--red-deep) }
.item-summary { background: var(--tint); border-radius: var(--radius-sm); padding: .55rem .7rem; overflow-wrap: anywhere }
.category-picker { position: relative }
.category-options { position: absolute; top: 100%; inset-inline: 0; z-index: 5; max-height: 13rem; overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg) }
.category-options [role=option] { padding: .55rem .7rem; cursor: pointer; overflow-wrap: anywhere }
.category-options [role=option]:hover, .category-options [aria-selected=true] { background: var(--tint); color: var(--red-deep) }
.admin-login { max-width: 32rem; margin: var(--s4) auto }
.admin-login h1, #admin-list h1 { font-size: clamp(1.8rem, 5vw, 3rem) }
.category-nav { display: flex; gap: .5rem; overflow: auto; padding: .25rem .2rem .55rem; scroll-padding-inline: .25rem }
.category-nav a { flex: 0 0 auto; max-width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 99rem; padding: .52rem .9rem; text-decoration: none; font-size: .9rem; font-weight: 750; box-shadow: var(--shadow); overflow-wrap: anywhere }
.category-nav a:hover, .category-nav a[aria-current] { background: var(--red-deep); color: white; border-color: var(--red-deep) }
.menu-section, #informacoes, #seu-pedido, #cadastro, #entrar { scroll-margin-top: 1rem }
.menu-section h2 { margin-bottom: var(--s2) }
.dish { display: grid; align-items: stretch; gap: var(--s2); padding: var(--s2) }
.dish-with-photo { grid-template-columns: minmax(75px, 29%) minmax(0, 1fr) }
.dish img { width: 100%; height: 100%; min-height: 100px; max-height: 155px; object-fit: cover; border-radius: var(--radius-sm) }
.dish-body { display: grid; align-content: space-between; min-width: 0 }
.dish-body .details { font-size: .9rem }
.dish-body .line { margin-top: .2rem; flex-wrap: nowrap }
.dish .price { font-size: clamp(1rem, 3vw, 1.21rem) }
.add-item { width: 44px; padding: 0; font-size: 1.45rem; line-height: 1 }
.storefront .add-item {
  background: var(--menu-add, linear-gradient(165deg, var(--red), var(--red-deep)));
  color: var(--menu-add-contrast, white);
}
.cart h2 { padding-bottom: var(--s2); border-bottom: 1px solid var(--line) }
.cart .button { width: 100% }
.cart-items { padding: 0; margin: 0; list-style: none }
.cart-item { display: flex; align-items: center; gap: .55rem; padding: .65rem 0; border-bottom: 1px solid var(--line) }
.cart-item img { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover }
.cart-item-body { flex: 1; min-width: 0; overflow-wrap: anywhere }
.quantity { display: flex; align-items: center; gap: .5rem; margin-top: .25rem }
.quantity button { min-height: 36px; width: 36px; padding: 0 }
.item-quantity button { min-height: 44px; width: 44px; font-size: 1.2rem; flex-shrink: 0 }
.item-quantity button[aria-disabled=true] { opacity: .45; cursor: default }
.item-quantity input { width: 4.25rem; min-height: 44px; text-align: center; appearance: textfield }
.item-quantity input::-webkit-inner-spin-button, .item-quantity input::-webkit-outer-spin-button { appearance: none; margin: 0 }
.cart-total { padding: .8rem 0; color: var(--red-deep); font-size: 1.15rem }
.cart-payment { border: 0; padding: 0; margin: 0 0 var(--s3) }
.cart-payment-options { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .45rem }
.cart-payment-options button { min-height: 44px; padding: .45rem .8rem; border-radius: 99rem; font-size: .9rem }
.cart-payment-options [aria-pressed=true] { background: var(--red-deep); color: white; border-color: var(--red-deep) }
.cart-whatsapp { width: 100%; background: #157347; scroll-margin-block-end: 4.75rem }
.cart-whatsapp:focus { outline: 3px solid #157347; outline-offset: 3px }
.cart-price-note { margin: .55rem 0 0; color: var(--muted); font-size: .8rem; text-align: center }
.mobile-cart { position: fixed; z-index: 4; inset-inline: 1rem; bottom: max(.75rem, env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg) }
body:has(.mobile-cart:not([hidden])) footer { padding-bottom: 5rem }
.mobile-cart.order-in-view { display: none }
footer { display: flex; gap: var(--s2); flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: var(--s3); color: var(--muted); font-size: .9rem }
footer strong { color: var(--wine) }
@media (max-width: 560px) {
  .home-hero { align-items: end; min-height: 21rem; background-position: 65% 20%; background-image: linear-gradient(0deg, #3b080df7 3%, #420b10ca 38%, #480d1317 88%), url('/share-cover.jpg') }

  .store-hero.has-cover::after { background: linear-gradient(0deg, var(--store-overlay, #260808f0), var(--store-overlay-light, #26080820) 85%) }
  .top nav { gap: .45rem }
  .top nav a, .top nav button { font-size: .875rem }
  .top nav .button { padding-inline: .55rem }
}
@media (min-width: 730px) {
  main { padding-top: var(--s5) }
  .forms { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .columns { grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 1fr) }
  .storefront { grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem) }
  .panel { padding: var(--s4) }
  .cart { position: sticky; top: var(--s3) }
  .mobile-cart { display: none }
  body:has(.mobile-cart:not([hidden])) footer { padding-bottom: var(--s3) }
}
@media (min-width: 1010px) {
  .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
.favorites-hero { min-height: 12rem }
.favorites-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); align-items: start }
.saved-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: var(--s2); padding: 0; margin: 0; list-style: none }
.saved-menu { display: grid; grid-template-rows: 1fr auto; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper) }
.saved-menu-link { display: block; border-radius: var(--radius); color: var(--ink); text-decoration: none; overflow-wrap: anywhere }
.saved-menu-link:hover strong { color: var(--red-deep); text-decoration: underline; text-underline-offset: .2em }
.saved-menu-cover { display: block; width: 100%; aspect-ratio: 2 / 1; max-height: 12rem; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0 }
.saved-menu-identity { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) }
.saved-menu-identity > div { min-width: 0 }
.saved-menu-logo { flex: 0 0 auto; width: 48px; height: 48px; object-fit: contain; border-radius: var(--radius-sm); background: white }
.saved-menu p { margin: 0; color: var(--muted); font-size: .875rem }
.saved-menu > button { justify-self: end; margin: 0 var(--s2) var(--s2) }

#favorites-status:empty { display: none }
@media (min-width: 730px) {
  .favorites-layout { grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 1fr) }
}
.install-control { margin-top: var(--s2) }
.install-help { max-width: 27rem; margin-top: var(--s2); padding: var(--s2); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font-size: .9rem }
.hero .install-help p, .install-help p { color: var(--muted); margin: .35rem 0 0 }
#explorar { scroll-margin-top: 1rem }
.menu-directory { margin-bottom: var(--s4) }
.menu-directory label { max-width: 36rem }
.directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); align-items: start; gap: var(--s2) }
.directory-card { --directory-image-size: clamp(5.5rem, 23vw, 7rem); display: grid; grid-template-columns: var(--directory-image-size) minmax(0, 1fr); gap: var(--s2); align-items: start; min-width: 0; padding: var(--s2); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); text-decoration: none; overflow-wrap: anywhere }
.directory-card:hover { border-color: var(--red); background: var(--tint) }
.directory-card img, .directory-placeholder { width: var(--directory-image-size); height: var(--directory-image-size); border-radius: var(--radius-sm); object-fit: contain; background: var(--tint) }
.directory-placeholder { display: grid; place-items: center; background: var(--tint); color: var(--red-deep); font-size: 1.7rem }
.directory-card h3, .directory-card p { margin: 0 0 .18rem }
.directory-action { color: var(--red-deep); font-size: .875rem; font-weight: 750 }
.cover-preview { width: 100%; aspect-ratio: 2 / 1; max-height: 12rem; object-fit: cover; border-radius: var(--radius-sm); margin-block: var(--s2) }


.store-hero .favorite-toggle {
  position: absolute;
  z-index: 1;
  top: var(--s3);
  right: var(--s3);
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid #fff6e9;
  border-radius: 50%;
  background: var(--paper);
  color: var(--red-deep);
  box-shadow: var(--shadow);
}
.favorite-toggle svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; fill: none }
.favorite-toggle[aria-pressed="true"] svg { fill: currentColor }
.store-hero .favorite-toggle {
  background: var(--menu-favorite-contrast, var(--paper));
  color: var(--menu-favorite, var(--red-deep));
}
.storefront .category-nav {
  position: sticky;
  top: 0;
  z-index: 3;
  min-width: 0;
  margin-inline: -.25rem;
  padding: .6rem .25rem;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.storefront .menu-section, .storefront #informacoes { scroll-margin-top: 4.75rem }
.storefront .dish-with-photo { grid-template-columns: minmax(88px, 32%) minmax(0, 1fr) }
.storefront .dish img { min-height: 108px; max-height: 172px }
.dish-description { line-height: 1.45; margin: .35rem 0 .55rem }
.dish-title {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  overflow-wrap: anywhere;
}
.dish-title:hover { color: var(--red-deep); text-decoration: underline; text-underline-offset: .18em }
.item-dialog {
  width: min(31rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.item-dialog::backdrop { background: #261615a8 }
.dialog-close {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 0;
  margin: 0;
  pointer-events: none;
}
.dialog-bar { display: flex; align-items: center; gap: var(--s2); padding: .4rem var(--s2); border-bottom: 1px solid transparent }
.dialog-close.has-item-title .dialog-bar { background: var(--surface); border-color: var(--line) }
.dialog-close button { pointer-events: auto; flex: 0 0 44px; padding: 0; border-radius: 50%; font-size: 1.45rem; line-height: 1; box-shadow: var(--shadow) }
.item-dialog:not(:has(.dialog-photo)) .dialog-intro h2 { padding-right: 2.75rem }
.dialog-sticky-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding-inline-start: .35rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
  visibility: hidden;
}
.dialog-close.has-item-title .dialog-sticky-title { visibility: visible }
.dialog-content { padding: var(--s4); }
.dialog-photo { width: 100%; max-height: 45vh; aspect-ratio: 4 / 3; object-fit: cover }
.dialog-content .line { margin-top: var(--s3) }
.store-identity { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2) }
.store-identity h1 { min-width: 0; margin: 0 }
.store-logo, .logo-preview { width: clamp(58px, 12vw, 88px); aspect-ratio: 1; object-fit: contain; padding: .28rem; border-radius: var(--radius); background: white }
.store-logo { flex-shrink: 0; box-shadow: var(--shadow) }
.logo-preview { margin-block: var(--s2); border: 1px solid var(--line) }
.store-logo, .logo-preview, .saved-menu-logo, .directory-card img { background: #211a15 }
.storefront .menu-toolbar { position: sticky; top: 0; z-index: 3; min-width: 0; padding: .45rem .25rem 0; margin-inline: -.25rem; background: var(--cream); border-bottom: 1px solid var(--line) }
.storefront .menu-toolbar .category-nav { position: static; margin: 0; border: 0 }
.menu-search-label { max-width: 33rem; margin: 0; font-size: .9rem }
#dish-search-status { margin: 0 .25rem .45rem; font-size: .9rem }
.storefront .menu-section, .storefront #informacoes { scroll-margin-top: 9rem }
.option-editor { margin-block: var(--s3) }
.option-editor summary { font-weight: 750; cursor: pointer }
.option-editor p, .cart-options { font-size: .875rem }
.option-editor-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(6rem, .55fr); gap: 0 var(--s2); padding-bottom: var(--s2); border-bottom: 1px solid var(--line); margin-bottom: var(--s1) }
.option-editor-row button { grid-column: 1/-1; justify-self: start }
.choice-line { padding-block: .35rem; gap: var(--s2); border-bottom: 1px solid var(--line) }
.choice-line > :last-child.price { margin-inline-start: auto }
.dish .dish-price { white-space: normal }
.dialog-content > label:has([name=quantity]) { max-width: 9rem }

.store-hero .hero-copy { width: 100%; max-width: 43rem }
.store-hero .favorite-toggle { position: static; flex: 0 0 46px; margin-left: auto }
.store-identity h1 { flex: 1 1 auto }
.choice-line > span:not(.price) { flex: 1; min-width: 0; overflow-wrap: anywhere }
.choice-line small { display: block; color: var(--muted); line-height: 1.3 }
.store-hero,
.store-hero.has-cover {
  align-items: start;
  min-height: 0;
  padding-block: clamp(1.1rem, 3vw, 2rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.favorite-toast {
  position: fixed;
  z-index: 6;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(25rem, calc(100% - 2rem));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.favorite-toast-body { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .55rem .35rem .85rem; font-size: .925rem; font-weight: 650 }
.favorite-toast-body button { flex: 0 0 44px; padding: 0; font-size: 1.25rem }
.favorite-toast-track { height: 3px; background: var(--tint) }
.favorite-toast-track > div { height: 100%; background: var(--red-deep); transform-origin: left }
@media (max-width: 729px) {
  body:has(.mobile-cart:not([hidden], .order-in-view)) .favorite-toast {
    bottom: calc(max(.75rem, env(safe-area-inset-bottom)) + 52px);
  }
}
.item-order-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 11rem);
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s3);
}
.item-order-actions .price { white-space: normal; min-block-size: 2.7em; line-height: 1.35; align-content: center }
.item-order-actions button {
  min-width: 0;
  padding-inline: .5rem;
  background: var(--menu-action, linear-gradient(165deg, var(--red), var(--red-deep)));
  color: var(--menu-action-contrast, white);
}
@media (max-width: 400px) {
  .item-order-actions { grid-template-columns: minmax(0, 1fr) }
  .item-order-actions button { width: 100% }
}
html { scrollbar-gutter: stable }
html:has(.item-dialog[open]) { overflow: hidden; overscroll-behavior: none }
.item-dialog { overscroll-behavior: contain }

.choice-stepper-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s2) }
.choice-summary { display: grid; gap: .15rem; flex: 1 1 8.5rem; min-width: 0; overflow-wrap: anywhere }
.choice-stepper { flex: 0 0 auto; margin: 0; gap: .25rem }
.choice-stepper button { min-height: 42px; width: 42px }
.choice-stepper button[aria-disabled="true"] { opacity: .45 }
.choice-stepper output { min-width: 1.6rem; text-align: center; font-variant-numeric: tabular-nums }
.manager-header { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s3) }
.manager-header h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0 }
.manager-header p { margin-bottom: .2rem }
.manager-header #dashboard-status { flex-basis: 100%; overflow-wrap: anywhere; margin: 0; color: var(--red-deep) }
.manager-nav { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s3) }
.manager-nav [aria-pressed=true] { color: white; background: var(--red-deep); border-color: var(--red-deep) }
.manager-filters, .manager-settings { display: grid; gap: var(--s2); align-items: start }
.manager-filters label { margin-bottom: 0 }
.menu-palette-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .25rem var(--s2) }
.menu-palette-fields label { display: flex; align-items: center; gap: .5rem; margin: .25rem 0 }
.menu-palette-fields input[type=color] { width: 44px; height: 44px; padding: .25rem; flex-shrink: 0; cursor: pointer }
.manager-category-controls { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: stretch; gap: .35rem }
.manager-category-controls button { padding: 0; font-size: 1.35rem; line-height: 1 }
.manager-category-controls button:disabled { opacity: .45 }
.manager-category-controls select { min-width: 0; margin: 0 }
#manage-count { margin-top: var(--s2); font-size: .875rem }
.manager-category + .manager-category { margin-top: var(--s3) }
.manager-category h3 { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); margin: 0; padding: .55rem .7rem; border-radius: var(--radius-sm); background: var(--tint); overflow-wrap: anywhere }
.manager-category h3 small { flex-shrink: 0; color: var(--muted); font-size: .8rem; font-weight: 650 }
.manager-list { list-style: none; padding: 0; margin: 0 }
.manager-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: 'photo description edit' 'photo price edit'; align-items: center; column-gap: var(--s2); padding: var(--s2) 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere }
.manager-row:last-child { border-bottom: 0 }
.manager-row img, .manager-row:not(:has(img))::before { grid-area: photo; width: 46px; height: 46px; border-radius: var(--radius-sm); object-fit: cover }
.manager-row:not(:has(img))::before { content: ''; background: var(--tint) }
.manager-row > div { grid-area: description; min-width: 0 }
.manager-row p { margin: 0; font-size: .85rem }
.manager-item-groups { color: var(--muted) }
.manager-row > .price { grid-area: price; font-size: .925rem; white-space: normal }
.manager-row > button { grid-area: edit; padding-inline: .65rem }
.manager-editor { width: min(43rem, calc(100% - 1.5rem)) }
.manager-editor-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: .45rem var(--s3); background: var(--surface); border-bottom: 1px solid var(--line) }
.manager-editor-bar button { flex: 0 0 44px; padding: 0; border-radius: 50%; font-size: 1.35rem }
.manager-editor #dish { padding: var(--s3) }
.manager-items-heading { flex-wrap: wrap; gap: var(--s2) }
.manager-items-heading h2 { margin: 0 }
.manager-section-order { padding: var(--s3) var(--s3) 0 }
.manager-section-order ol { display: grid; gap: .45rem; padding: 0; margin: 0 0 var(--s3); list-style: none }
.manager-section-order li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s2); min-width: 0; padding: .45rem .55rem .45rem var(--s2); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); overflow-wrap: anywhere }
.section-order-handle { width: 44px; min-height: 44px; padding: 0; font-size: 1.35rem; touch-action: none; cursor: grab }
.manager-section-order .is-dragging { border-color: var(--red); background: var(--tint); user-select: none }
.is-dragging .section-order-handle { cursor: grabbing }
.manager-section-order button:disabled { cursor: default }
.manager-editor-actions { position: sticky; bottom: 0; z-index: 2; margin-inline: calc(-1 * var(--s3)); padding: var(--s2) var(--s3); border-top: 1px solid var(--line); background: var(--surface) }
.manager-editor-actions .notice:not(:empty) { margin: 0 0 .35rem }
.manager-delete { margin-left: auto }
@media (min-width: 660px) {
  .manager-filters { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s3) }
  .manager-settings { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s3) }
  .manager-row { grid-template-columns: 46px minmax(0, 1fr) minmax(8rem, 12rem) auto; grid-template-areas: 'photo description price edit' }
}
.manager-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow) }
.manager-metrics > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .2rem; min-width: 0; padding: clamp(.5rem, 2.1vw, 1rem) }
.manager-metrics > div + div { border-left: 1px solid var(--line) }
.manager-metrics dt { color: var(--muted); font-size: .875rem; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere }
.manager-metrics dd { margin: 0; color: var(--red-deep); font-size: clamp(1.3rem, 4vw, 1.9rem); font-weight: 850; line-height: 1.1; font-variant-numeric: tabular-nums }
.admin-support { margin-top: var(--s3) }
.admin-support label { max-width: 25rem }
.opening-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s2); padding: .55rem var(--s3); margin: calc(-1 * var(--s2)) 0 var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm) }
.opening-strip a { font-weight: 700; font-size: .875rem; text-underline-offset: .18em }
#opening-status { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .9rem; font-weight: 750 }
#opening-status::before { content: ''; height: .6rem; width: .6rem; border-radius: 50%; background: currentColor }
#opening-status[data-state=open] { color: #216343 }
#opening-status[data-state=closed] { color: var(--red-deep) }
.address-settings form + form { border-top: 1px solid var(--line); margin-top: var(--s3); padding-top: var(--s3) }
.address-settings h3 { margin-top: var(--s2) }
.address-list { padding-left: 1.2rem; overflow-wrap: anywhere }
.manager-editor .option-editor { padding: var(--s2); border: 1px solid var(--line); border-radius: var(--radius-sm) }
.manager-editor .option-editor h3 { margin: 0 0 .2rem }
[data-options-count] { color: var(--muted); margin-bottom: var(--s2) }
.option-group-editor { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-block: var(--s2); background: var(--paper) }
.option-group-editor summary { padding: .6rem .7rem; min-height: 44px; overflow-wrap: anywhere }
.option-group-editor summary small { display: block; margin-inline-start: 1.05rem; color: var(--muted); font-size: .8rem; font-weight: 550 }
.option-group-editor[open] summary { border-bottom: 1px solid var(--line) }
.option-group-content { padding: var(--s2) .7rem }
.reuse-option-group { display: flex; align-items: end; flex-wrap: wrap; gap: var(--s2); padding-block: var(--s2); margin-bottom: var(--s2) }
.reuse-option-group label { flex: 1 1 15rem; min-width: 0; margin: 0 }
.reuse-option-group select { min-width: 0 }
.address-list { list-style: none; padding-left: 0 }
.address-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-block: .35rem }
.address-list li button { flex: 0 0 36px; min-height: 36px; padding: 0; font-size: 1.2rem }
