:root {
  color-scheme: light;
  --paper: #f8f5ed;
  --white: #fffefa;
  --ink: #192e25;
  --green: #17382e;
  --green-soft: #e8efe8;
  --muted: #516256;
  --line: #e3e1d6;
  --orange: #ffb477;
  --accent-ink: #3c251a;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #b85b22; outline-offset: 4px; }

.shell { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  z-index: 3;
  padding: .8rem 1rem;
  background: var(--white);
}

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-row, .footer-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.header-row { min-height: 4.6rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font: bold 1.66rem/.87 var(--serif); letter-spacing: -.055em; }
.brand small { display: block; margin-top: .4rem; color: var(--muted); font: 700 .58rem/1 var(--sans); letter-spacing: .17em; text-transform: uppercase; }
.brand-mark { position: relative; display: grid; place-items: center; width: 2.65rem; height: 2.65rem; border-radius: 50%; background: var(--green); color: var(--orange); }
.brand-mark::before { position: absolute; bottom: .61rem; width: 1.32rem; height: .55rem; border: 2px solid currentColor; border-radius: .12rem .12rem .65rem .65rem; content: ''; }
.brand-mark::after, .brand-mark span { position: absolute; top: .57rem; width: .32rem; height: .56rem; border-left: 2px solid currentColor; border-radius: 50%; transform: rotate(17deg); }
.brand-mark::after { left: 1.06rem; content: ''; }
.brand-mark span { left: 1.39rem; }
.header-link { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 0 .55rem .55rem; text-decoration: none; font-size: .9rem; font-weight: 650; }
.header-link span { color: #98602f; }
.header-link:hover, .footer-row a:hover { text-decoration: underline; }
.header-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem 1rem; }
.header-link .cart-count { min-width: 1.4rem; padding: .1rem .35rem; border-radius: 2rem; background: var(--green-soft); color: var(--green); font-size: .76rem; text-align: center; }
.staff-order .hero { display: none; }
.staff-order #account-link { display: none; }
.staff-order .menu { margin-top: 1.8rem; }

.hero { display: grid; grid-template-columns: 1fr 1.03fr; margin: 1.8rem 0 3.1rem; overflow: hidden; border-radius: 1.5rem; background: var(--green); color: var(--white); }
.hero-copy { padding: clamp(2rem, 5.2vw, 4.5rem); }
.hero-kicker { display: flex; gap: .55rem; align-items: center; margin: 0 0 1rem; color: #f9dabe; font-size: .73rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
.hero-kicker span[aria-hidden] { width: .45rem; height: .45rem; border-radius: 50%; background: var(--orange); }
.hero h1 { font: 400 clamp(2.65rem, 5.5vw, 5.3rem)/.97 var(--serif); letter-spacing: -.064em; }
.hero h1 em { color: #ffc08a; font-weight: 400; }
.hero-copy > p:not(.hero-kicker) { max-width: 25ch; margin: 1.35rem 0 0; color: #e2eae0; font-size: 1.04rem; }
.hero-image { min-height: 100%; background: #1a382d url('/images/marmita-do-dia.jpg') center 49% / cover no-repeat; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .75rem; min-height: 2.9rem; padding: .68rem 1.1rem; border: 1px solid transparent; border-radius: .7rem; text-decoration: none; font-weight: 700; text-align: center; }
.button-accent { background: var(--orange); color: var(--accent-ink); }
.button-accent:hover:not(:disabled) { background: #ffa75e; }
.button-secondary { border-color: #cbd5cb; background: var(--white); color: var(--green); }
.button-secondary:hover { background: var(--green-soft); }
.button:disabled { background: #ece9e0; color: #657066; }
.hero-button { margin-top: 1.6rem; }

.menu { margin-bottom: 4rem; scroll-margin-top: 1rem; }
.menu:focus { outline: none; }
.menu-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: .65rem 1.5rem; margin: 0 0 1.3rem; }
.menu-heading h2 { font: 400 clamp(2.15rem, 4vw, 3.35rem)/.96 var(--serif); letter-spacing: -.052em; }
.menu-date { margin-bottom: .5rem; color: #815132; font-size: .79rem; font-weight: 700; }
.hours { color: var(--muted); font-size: .86rem; }
.panel { border: 1px solid var(--line); border-radius: 1rem; background: var(--white); }
.menu-state { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.3rem; }
.menu-notice { padding: .7rem .9rem; border: 1px solid #e5c3a4; border-radius: .6rem; background: #fff3e8; color: #6d351e; font-size: .88rem; }
.menu > .menu-notice { margin-bottom: .9rem; }
.delivery-status { margin-top: 1rem; font-size: .96rem; font-weight: 650; }
.delivery-status[data-state="advance"] { border-color: #aec4b4; background: var(--green-soft); color: var(--green); }
.checkout-choices { color: var(--muted); font-size: .88rem; }
.builder { display: grid; grid-template-columns: minmax(0, 2.17fr) minmax(16rem, 1fr); gap: 1.3rem; align-items: start; }
.builder-options { display: grid; min-width: 0; gap: 1rem; }
.selection-step { min-width: 0; margin: 0; padding: 1.25rem; }
.selection-step > .menu-notice { margin-bottom: .75rem; }
.step-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; margin-bottom: 1rem; }
.step-heading h3 { font-size: 1.16rem; letter-spacing: -.025em; }
.step-heading p { margin-top: .32rem; color: var(--muted); font-size: .86rem; }
.count { flex: none; padding: .16rem .53rem; border-radius: 2rem; background: var(--green-soft); color: var(--green); font-size: .77rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.count[data-complete='true'] { background: var(--green); color: var(--white); }
.size-grid, .choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.option { position: relative; display: flex; min-width: 0; padding: .78rem .82rem; border: 1px solid #dedfd4; border-radius: .75rem; color: var(--ink); cursor: pointer; }
.option:has(input:checked) { border-color: #37745a; background: #f0f5ec; box-shadow: inset 0 0 0 1px #37745a; }
.option:has(input:focus-visible) { outline: 3px solid #b85b22; outline-offset: 3px; }
.option:not(:has(input:checked, input:disabled)):hover { border-color: #7d9685; background: #fafaf4; }
.option:has(input:disabled) { background: #f8f7f2; color: var(--muted); cursor: default; }
.option input { position: absolute; left: .75rem; top: .75rem; width: 1px; height: 1px; opacity: 0; }
.option-content { flex: 1; min-width: 0; }
.option-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .4rem; }
.option-name { display: block; font-size: .94rem; font-weight: 700; overflow-wrap: anywhere; }
.option-info, .option-unavailable { display: block; margin-top: .18rem; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.option-unavailable { color: #875032; }
.option-price { display: block; margin-top: .43rem; color: var(--green); font-size: .91rem; font-weight: 750; }
.choice-dot { display: grid; flex: none; place-items: center; width: 1.04rem; height: 1.04rem; margin-top: .15rem; border: 1px solid #a0aa9c; border-radius: .3rem; }
.size-grid .choice-dot { border-radius: 50%; }
.option input:checked ~ .option-content .choice-dot { border-color: var(--green); background: var(--green); color: white; }
.option input:checked ~ .option-content .choice-dot::before { width: .3rem; height: .55rem; margin-top: -.1rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); content: ''; }
.size-grid .option input:checked ~ .option-content .choice-dot::before { width: .35rem; height: .35rem; margin: 0; border: 0; border-radius: 50%; background: currentColor; transform: none; }

.quantity-option { display: flex; align-items: center; gap: .6rem; min-width: 0; padding: .73rem; border: 1px solid #dedfd4; border-radius: .75rem; }
.quantity-option:focus-within { border-color: #7d9685; }
.quantity-option .option-price:empty { display: none; }
#drink-options { display: grid; gap: 1.05rem; }
.drink-category-title { margin-bottom: .45rem; color: var(--green); font-size: .94rem; }
.drink-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.counter-drink-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .6rem; }
.counter-drink-shortcuts button { min-height: 3rem; }
.counter-drink-details { margin-top: .75rem; }
.counter-drink-details summary { cursor: pointer; padding-block: .5rem; }
.weight-option { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.weight-option button { min-height: 3rem; flex: 1; }
#weight-form, #tracking-weight-review { display: grid; gap: .7rem; }
#tracking-weight-review > div { display: flex; flex-wrap: wrap; gap: .6rem; }
.drink-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.drink-option:has(.drink-image) { grid-template-columns: auto minmax(0, 1fr) auto; }
.drink-image { width: 3.3rem; height: 3.3rem; border-radius: .48rem; object-fit: contain; background: var(--paper); }
.stepper { display: inline-flex; flex: none; align-items: center; gap: .16rem; }
.item-quantity { min-width: 1.35rem; color: var(--ink); font-size: .83rem; font-variant-numeric: tabular-nums; font-weight: 700; text-align: center; }
.quantity-input { width: 3.4rem; min-height: 2rem; padding: .15rem; border: 1px solid #cbd5cb; border-radius: .4rem; background: var(--white); appearance: textfield; }
.quantity-input::-webkit-inner-spin-button, .quantity-input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.item-action { min-height: 2rem; padding: .14rem .42rem; border: 1px solid #cbd5cb; border-radius: .4rem; background: var(--white); color: var(--green); font-size: .76rem; font-weight: 680; }
.stepper .item-action { min-width: 2rem; font-size: 1rem; }
.item-action:hover:not(:disabled) { background: var(--green-soft); }
.item-action:disabled { opacity: .5; }
.meal-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .8rem; }
.meal-controls > div { flex: 1 0 7rem; }
.meal-subtotal-label { display: block; color: var(--muted); font-size: .8rem; }

.summary { position: sticky; top: 1rem; padding: 1.18rem; }
.summary-header { display: flex; align-items: center; gap: .65rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.summary-header h3 { font: 400 1.62rem/1 var(--serif); letter-spacing: -.05em; }
.box-mark { position: relative; display: grid; flex: none; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .6rem; background: var(--green-soft); color: var(--green); }
.box-mark::before { width: 1rem; height: .69rem; margin-top: .18rem; border: 1.5px solid currentColor; border-radius: .15rem .15rem .25rem .25rem; content: ''; }
.box-mark::after { position: absolute; top: .73rem; width: 1.08rem; border-top: 1.5px solid currentColor; content: ''; }
.summary-empty { padding: 1rem 0; color: var(--muted); font-size: .9rem; }
.cart-list { display: grid; align-content: start; max-height: min(38vh, 25rem); margin: 0; padding: 0 .25rem 0 0; overflow: auto; list-style: none; }
.cart-item { min-width: 0; padding: .63rem .15rem .7rem; overflow-wrap: anywhere; font-size: .84rem; }
.cart-item + .cart-item { border-top: 1px solid var(--line); }
.cart-item-title { display: flex; justify-content: space-between; align-items: flex-start; gap: .4rem; }
.cart-item-title span { flex: none; }
.cart-item p { margin-top: .24rem; color: var(--muted); }
.cart-item .item-issue { color: #875032; font-weight: 650; }
.cart-item-notes { font-style: italic; }
.item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .5rem; }
.item-actions > .item-action[data-action$="-remove"] { margin-left: auto; }
.cart-notice { margin: .55rem 0 .7rem; }
.summary-total { display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: .88rem 0; border-top: 1px solid var(--line); font-weight: 650; }
.summary-total strong { font-size: 1.25rem; }
.summary-button { width: 100%; }
.summary-help, .price-note { margin-top: .63rem; color: var(--muted); font-size: .77rem; }
.price-note { padding-top: .6rem; border-top: 1px solid var(--line); }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-row { min-height: 4rem; font-size: .83rem; }
.footer-row a { padding: .5rem 0 .5rem .5rem; text-decoration: none; }

.order-dialog { width: min(100% - 2rem, 34rem); max-height: calc(100% - 2rem); padding: 1.3rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--white); color: var(--ink); }
.order-dialog::backdrop { background: #142f25b8; }
.meal-added-dialog { width: min(100% - 2rem, 28rem); }
.meal-added-dialog h2 { margin-bottom: 1rem; color: var(--green); font: 400 1.65rem/1.1 var(--serif); }
.meal-added-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.dialog-heading h2 { font: 400 2rem/1 var(--serif); letter-spacing: -.045em; }
.close-button { display: grid; flex: none; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid #cdd7ce; border-radius: 50%; background: var(--white); color: var(--green); font-size: 1.4rem; }
.close-button:hover { background: var(--green-soft); }
#order-form, .order-fields, .confirmation { display: grid; gap: .95rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.form-grid label, .form-field { display: grid; min-width: 0; gap: .25rem; font-size: .87rem; font-weight: 660; }
.form-grid input, .form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 2.65rem; padding: .42rem .55rem; border: 1px solid #b7c3b9; border-radius: .43rem; background: var(--white); color: var(--ink); font-size: 1rem; font-weight: 400; }
.form-field textarea { resize: vertical; }
.form-field small { color: var(--muted); font-weight: 400; }
.customer-lookup { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .8rem; }
.customer-lookup .button { min-height: 2.5rem; }
.customer-lookup p { color: var(--muted); font-size: .85rem; }
.customer-lookup p:empty { display: none; }
.device-welcome { margin-top: .8rem; }
.device-welcome p, #checkout-device p { overflow-wrap: anywhere; }
.saved-address { margin-bottom: .65rem; }
.form-section { min-width: 0; margin: 0; padding: .5rem .72rem .72rem; border: 1px solid var(--line); border-radius: .55rem; }
.form-section legend { padding: 0 .22rem; font-size: .87rem; font-weight: 660; }
.form-options { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.form-options label, .check-inline { display: flex; align-items: center; gap: .35rem; min-height: 2rem; }
.form-options input, .check-inline input { accent-color: var(--green); }
.full-width { grid-column: 1 / -1; }
.form-errors { margin: 0; padding: .6rem .8rem .6rem 1.9rem; border: 1px solid #be8f71; border-radius: .5rem; background: #fff1e7; color: #6d351e; font-size: .87rem; }
.order-totals { display: grid; gap: .3rem; margin: 0; font-size: .9rem; }
.order-totals div, .confirmed-total { display: flex; justify-content: space-between; gap: .75rem; }
.order-totals dd { margin: 0; font-weight: 660; }
.order-total, .confirmed-total { margin-top: .25rem; padding-top: .6rem; border-top: 1px solid var(--line); font-size: 1rem; font-weight: 700; }
.confirmation details { padding: .7rem; border: 1px solid var(--line); border-radius: .5rem; }
.confirmation summary { cursor: pointer; font-weight: 650; }
.confirmation pre { margin: .55rem 0 0; font: .9rem/1.45 var(--sans); overflow-wrap: anywhere; white-space: pre-wrap; }

.counter-result { margin: 0 0 1rem; padding: .75rem 1rem; border: 1px solid #aec4b4; border-radius: .6rem; background: var(--green-soft); color: var(--green); font-weight: 700; }
.counter-order .option, .counter-order .button { min-height: 3rem; }
.counter-order .item-action { min-height: 3rem; font-size: .85rem; }
.counter-order .stepper .item-action { min-width: 3rem; font-size: 1.25rem; }
.counter-order .quantity-input { min-height: 3rem; }
.counter-order .choice-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.counter-order .form-grid { grid-template-columns: minmax(0, 1fr); }
.counter-order .order-fields, .counter-order #order-form { gap: .65rem; }
.counter-payment { min-width: 0; margin: 0; padding: 0; border: 0; }
.counter-payment legend, #counter-order-notes summary { margin-bottom: .2rem; color: var(--ink); font-size: .87rem; font-weight: 660; }
.counter-payment > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
.counter-payment .option { align-items: center; justify-content: center; padding: .3rem; font-size: .88rem; font-weight: 700; }
#counter-order-notes summary { min-height: 2.75rem; padding-block: .65rem; cursor: pointer; }

@media (min-width: 651px) {
  .counter-order .summary { max-height: calc(100vh - 2rem); overflow: auto; }
  .counter-order .cart-list { max-height: min(26vh, 16rem); }
}

@media (max-width: 650px) {
  .counter-order .site-header { position: sticky; z-index: 2; top: 0; }
  .counter-order .menu, .counter-order .summary { scroll-margin-top: 5rem; }
}

@media (max-width: 820px) {
  .builder { grid-template-columns: minmax(0, 1fr) minmax(14rem, .65fr); gap: .8rem; }
  .selection-step, .summary { padding: .9rem; }
  .choice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .shell { width: calc(100% - 1.5rem); }
  .header-row { min-height: 3.8rem; }
  .header-nav { justify-content: flex-end; gap: 0 .5rem; }
  .header-link { font-size: .81rem; }
  .hero { grid-template-columns: minmax(0, 1fr); margin: .8rem 0 2.1rem; border-radius: 1rem; }
  .hero-copy { padding: 1.55rem 1.25rem; }
  .hero h1 { font-size: clamp(2.52rem, 10vw, 3.6rem); }
  .hero-copy > p:not(.hero-kicker) { margin-top: .85rem; }
  .hero-button { margin-top: 1.1rem; }
  .hero-image { min-height: 0; aspect-ratio: 2.4; background-position: center 47%; }
  .menu { margin-bottom: 2.2rem; }
  .menu-heading { margin-bottom: .8rem; }
  .builder { grid-template-columns: minmax(0, 1fr); }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #protein-options, #side-options { grid-template-columns: minmax(0, 1fr); }
  .drink-option:has(.drink-image) { grid-template-columns: auto minmax(0, 1fr); }
  .drink-option:has(.drink-image) .stepper { grid-column: 1 / -1; justify-self: end; }
  .drink-option .stepper :is(.item-action, .quantity-input) { min-height: 2.75rem; }
  .drink-option .stepper .item-action { min-width: 2.75rem; }
  .meal-added-dialog { margin: auto auto max(1rem, env(safe-area-inset-bottom)); }
  .meal-added-actions { grid-template-columns: 1fr; }
  .summary { position: static; }
  .cart-list { max-height: none; }
}

@media (max-width: 345px) {
  .size-grid, .choice-grid, .form-grid { grid-template-columns: 1fr; }
}
