@font-face {
  font-family: "Lexend Deca";
  src: url("./assets/brand/LexendDeca-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --cream: #fffaf1;
  --paper: #ffffff;
  --ink: #243027;
  --muted: #667067;
  --sage: #58745f;
  --sage-dark: #2e5039;
  --leaf: #8fb071;
  --tomato: #c65f46;
  --gold: #e3b85a;
  --line: #e4ddce;
  --shadow: 0 18px 48px rgba(41, 55, 42, 0.14);
  --hero-image: url("https://images.unsplash.com/photo-1543353071-10c8ba85a904?auto=format&fit=crop&w=1800&q=80");
  --admin-hero-image: url("https://images.unsplash.com/photo-1556911220-bff31c812dba?auto=format&fit=crop&w=1800&q=80");
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body,
header,
main,
.hero,
.admin-header {
  max-width: 100%;
}

@supports (overflow: clip) {
  html,
  body,
  .hero,
  .admin-header {
    overflow-x: clip;
  }
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  min-height: 86vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    linear-gradient(90deg, rgba(21, 39, 26, 0.76), rgba(21, 39, 26, 0.3)),
    var(--hero-image) center/cover;
  color: #fffdf6;
}

.topbar {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fffdf6;
  color: var(--sage-dark);
}

.nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  font-weight: 700;
}

.hero-content {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  align-self: center;
  padding: 52px 0 76px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 253, 246, 0.88);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-meta {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.hero-meta span {
  max-width: 620px;
  display: block;
  border-left: 4px solid var(--gold);
  padding: 2px 0 2px 12px;
  background: transparent;
  color: rgba(255, 253, 246, 0.92);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--tomato);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 850px;
  margin: 42px 0 0;
}

.quick-facts div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.quick-facts dt {
  color: rgba(255, 253, 246, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: 34px;
  align-items: end;
  padding: 58px 0 36px;
}

.steps {
  padding: 58px 0 36px;
}

.steps-heading {
  max-width: 760px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 12px 30px rgba(41, 55, 42, 0.08);
}

.step-card span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-dark);
  color: #fffdf6;
  font-weight: 900;
}

.step-card h3 {
  margin: 0;
  color: var(--sage-dark);
  font-size: 1.12rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

.intro p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.order-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 24px;
  align-items: start;
  padding-bottom: 62px;
}

.menu-panel,
.cart-panel,
.confirmation {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.menu-panel,
.cart-sticky,
.confirmation {
  padding: 22px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.menu-context {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.menu-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.menu-photo {
  min-height: 170px;
  background: var(--leaf) center/cover;
}

.menu-card-body {
  padding: 16px;
}

.menu-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.menu-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.price {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--sage-dark);
}

.stepper {
  display: grid;
  grid-template-columns: 38px 42px 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.stepper button {
  width: 38px;
  height: 38px;
  border: 0;
  background: #f4efe4;
  color: var(--sage-dark);
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}

.stepper span {
  text-align: center;
  font-weight: 900;
}

.cart-sticky {
  position: sticky;
  top: 18px;
}

.cart-items {
  display: grid;
  gap: 10px;
  min-height: 58px;
  margin-bottom: 18px;
}

.empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row strong {
  display: block;
}

.cart-item-copy {
  min-width: 0;
}

.cart-row span {
  color: var(--muted);
  font-size: 0.92rem;
}

form {
  display: grid;
  gap: 18px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.segmented label {
  display: block;
}

.segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  opacity: 0;
}

.segmented span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbf7ef;
  color: var(--muted);
  cursor: pointer;
}

.segmented input:checked + span {
  border-color: var(--sage);
  background: var(--sage-dark);
  color: #fff;
}

.segmented label.is-disabled span {
  border-color: var(--line);
  background: #eee9df;
  color: #8b8f87;
  cursor: not-allowed;
  opacity: 0.72;
}

.hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid label {
  display: grid;
  gap: 7px;
}

.full,
.check-row {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 12px;
  font-size: 1rem;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(88, 116, 95, 0.17);
}

#instructions {
  resize: none;
}

.field-counter {
  justify-self: end;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.check-row {
  grid-template-columns: 20px 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.error,
.form-error {
  color: #a83b2d;
  font-size: 0.84rem;
  font-weight: 800;
}

.field-invalid input,
.field-invalid textarea {
  border-color: #b94739;
  background: #fff7f5;
}

.address-autocomplete {
  position: relative;
  display: block;
}

.address-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf8;
  box-shadow: 0 14px 32px rgba(32, 48, 38, 0.18);
}

.address-suggestion {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 12px;
  text-align: left;
  font: inherit;
  line-height: 1.35;
  cursor: pointer;
}

.address-suggestion:hover,
.address-suggestion:focus-visible {
  background: #f5efe3;
  outline: none;
}

.address-attribution {
  display: block;
  padding: 8px 12px;
  color: var(--muted);
  text-align: right;
  font-weight: 700;
}

.address-status {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.address-status[data-state="ready"] {
  color: var(--sage-dark);
  font-weight: 800;
}

.address-status[data-state="error"] {
  color: #a83b2d;
  font-weight: 800;
}

.totals {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 8px;
  background: #f5efe3;
}

.totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.delivery-message {
  margin: -8px 0 0;
  padding: 12px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff8e8;
  color: var(--sage-dark);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
}

.total-line {
  padding-top: 10px;
  border-top: 1px solid #ded3bf;
  font-size: 1.18rem;
}

.submit-button {
  width: 100%;
}

.confirmation {
  margin-bottom: 58px;
}

.confirmation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.summary-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.summary-box h3 {
  margin: 0 0 8px;
}

.summary-box p,
.summary-box ul {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.payment-note {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.confirmation-policy {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(103, 118, 77, 0.3);
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  background: rgba(130, 155, 109, 0.1);
}

.confirmation-policy strong {
  color: var(--sage-dark);
}

.confirmation-policy p,
.confirmation-policy span {
  display: block;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.confirmation-policy a {
  color: var(--sage-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 920px) {
  .intro,
  .order-shell {
    grid-template-columns: 1fr;
  }

  .cart-sticky {
    position: static;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .hero {
    min-height: auto;
    background-position: center;
    width: 100%;
  }

  .hero-content {
    padding: 30px 0 38px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 12vw, 3.4rem);
    line-height: 1.02;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-meta {
    margin-top: 18px;
  }

  .hero-meta span {
    width: 100%;
    text-align: left;
  }

  .quick-facts,
  .menu-grid,
  .steps-grid,
  .form-grid,
  .confirmation-grid {
    grid-template-columns: 1fr;
  }

  .menu-panel,
  .cart-sticky,
  .confirmation {
    padding: 14px;
  }

  .topbar {
    min-height: 66px;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
    font-size: 1rem;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section {
    width: min(100% - 24px, 1160px);
  }

  .intro {
    gap: 16px;
    padding: 34px 0 24px;
  }

  .steps {
    padding: 34px 0 24px;
  }

  h2 {
    font-size: clamp(1.45rem, 8vw, 2.1rem);
    line-height: 1.12;
  }

  .order-shell {
    gap: 16px;
    padding-bottom: 34px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .status-pill {
    max-width: 100%;
    white-space: normal;
  }

  .dish-photo,
  .admin-dish-photo {
    min-height: 160px;
  }

  .dish-body,
  .admin-dish-body {
    padding: 14px;
  }

  .dish-heading {
    display: grid;
  }

  .dish-heading strong {
    white-space: normal;
  }

  .segmented {
    gap: 7px;
  }

  .segmented span {
    min-height: 46px;
    padding: 8px 10px;
    text-align: center;
  }

  .cart-row {
    align-items: start;
  }

  .cart-row-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .totals {
    padding: 14px;
  }

  .totals div {
    align-items: start;
  }

  .delivery-message {
    margin-top: -6px;
    padding: 10px 12px;
  }

  .summary-box {
    padding: 12px;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link.ghost {
  background: rgba(255, 255, 255, 0.12);
}

.button.secondary.dark {
  background: #f4efe4;
  color: var(--sage-dark);
  border: 1px solid var(--line);
}

.button.secondary.light {
  background: rgba(255, 255, 255, 0.12);
  color: #fffdf6;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.text-button,
.icon-button {
  border: 0;
  background: transparent;
  color: var(--sage-dark);
  font-weight: 900;
  cursor: pointer;
}

.text-button.danger {
  color: #a83b2d;
}

.icon-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f4efe4;
}

.meal-builder {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: stretch;
}

.weekly-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.dish-card,
.admin-dish-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.dish-card.sold-out,
.admin-dish-card.sold-out {
  opacity: 0.72;
}

.dish-photo,
.admin-dish-photo {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  background: var(--leaf) center/cover;
}

.dish-gallery {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5efe3;
}

.dish-gallery-track {
  height: 100%;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.dish-gallery-track::-webkit-scrollbar {
  display: none;
}

.dish-gallery-track > * {
  scroll-snap-align: start;
}

.dish-gallery-nav {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(36, 48, 39, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.dish-gallery-nav.prev {
  left: 10px;
}

.dish-gallery-nav.next {
  right: 10px;
}

.dish-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.dish-gallery-dots button {
  width: 9px;
  height: 9px;
  min-height: 0;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
}

.dish-gallery-dots button:first-child {
  background: #fff;
}

.dish-body,
.admin-dish-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.dish-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.dish-heading h3 {
  margin: 0 0 8px;
  font-size: 1.24rem;
}

.product-category {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f5efe3;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.dish-heading strong {
  color: var(--sage-dark);
  font-size: 1.2rem;
  white-space: nowrap;
}

.dish-body p,
.admin-dish-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.includes {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: #f5efe3;
}

.includes strong {
  color: var(--sage-dark);
}

.includes span {
  color: var(--muted);
  line-height: 1.45;
}

.no-photo-gallery {
  display: grid;
}

.no-photo {
  display: grid;
  place-items: center;
  color: #f8f3e9;
  background:
    linear-gradient(135deg, rgba(38, 77, 53, 0.96), rgba(102, 133, 83, 0.9));
}

.no-photo span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dish-more {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dish-more summary {
  padding: 12px;
  color: var(--sage-dark);
  cursor: pointer;
  font-weight: 900;
}

.dish-more-content {
  display: grid;
  gap: 14px;
  padding: 0 12px 14px;
}

.dish-more-content section {
  display: grid;
  gap: 7px;
}

.dish-more-content h4,
.dish-more-content ul,
.dish-more-content p {
  margin: 0;
}

.dish-more-content h4 {
  color: var(--sage-dark);
  font-size: 0.92rem;
}

.dish-more-content small {
  color: var(--muted);
  line-height: 1.4;
}

.serving-list,
.component-list {
  display: grid;
  gap: 6px;
  padding-left: 20px;
  color: var(--muted);
}

.component-list li strong,
.component-list li span {
  display: block;
}

.component-list li span {
  margin-top: 2px;
  line-height: 1.45;
}

.allergen-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.allergen-pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff0dc;
  color: #7b4a17;
  font-size: 0.8rem;
  font-weight: 900;
}

.internal-note {
  padding: 10px;
  border-radius: 8px;
  background: #fff8e9;
  color: #76511d !important;
}

.cart-feedback {
  margin: -2px 0 0;
  color: var(--sage-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.quantity-warning {
  margin: -2px 0 0;
  color: #a83b2d;
  font-size: 0.88rem;
  font-weight: 900;
}

.order-minimum-hint {
  color: var(--sage-dark) !important;
  font-size: 0.84rem;
  font-weight: 900;
}

.dish-actions {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: end;
}

.dish-actions label {
  display: grid;
  gap: 6px;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 42px minmax(42px, 1fr) 42px;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
}

.quantity-stepper button,
.quantity-stepper input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sage-dark);
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.quantity-stepper button {
  padding: 0;
  cursor: pointer;
  font-size: 1.25rem;
}

.quantity-stepper button:hover:not(:disabled) {
  background: #f2ebdd;
}

.quantity-stepper input {
  width: 100%;
  padding: 0 4px;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.minimum-order-status {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #e3b85a;
  border-radius: 8px;
  background: #fff8e6;
}

.minimum-order-status strong {
  color: var(--sage-dark);
}

.minimum-order-status span {
  color: var(--muted);
  line-height: 1.4;
}

.minimum-order-status.ready {
  border-color: #9db79f;
  background: #f1f7ef;
}

.builder-photo {
  min-height: 430px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(36, 48, 39, 0.05), rgba(36, 48, 39, 0.22)),
    url("https://images.unsplash.com/photo-1498837167922-ddd27525d352?auto=format&fit=crop&w=1000&q=80")
      center/cover;
}

.builder-content {
  display: grid;
  gap: 16px;
  align-content: start;
}

.builder-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background: #f5efe3;
}

.builder-price strong {
  font-size: 2rem;
  color: var(--sage-dark);
}

.builder-price span {
  color: var(--muted);
  font-weight: 800;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option-grid label {
  display: grid;
  gap: 7px;
}

.add-meal {
  width: 100%;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e7f0dd;
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.warning {
  background: #fff1d2;
  color: #7a4b00;
}

.cart-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-quantity-stepper {
  display: grid;
  grid-template-columns: 34px 34px 34px;
  min-height: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
}

.cart-quantity-stepper button,
.cart-quantity-stepper span {
  display: grid;
  place-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sage-dark);
  font: inherit;
  font-weight: 900;
}

.cart-quantity-stepper span {
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-size: 0.9rem;
}

.cart-quantity-stepper button {
  cursor: pointer;
  font-size: 1.05rem;
}

.cart-quantity-stepper button:hover:not(:disabled) {
  background: #f2ebdd;
}

.cart-quantity-stepper button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.segmented.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.confirmation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.embedded-checkout-shell {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(21, 39, 26, 0.08);
}

.embedded-checkout-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.embedded-checkout-head h3 {
  margin: 4px 0 0;
  font-size: 1.2rem;
}

.secure-payment-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.embedded-checkout-status {
  margin: 12px 0;
  padding: 12px;
  border-left: 4px solid var(--gold);
  background: #fff8e8;
  color: var(--sage-dark);
  font-weight: 800;
}

.checkout-back {
  margin-top: 12px;
}

.success-panel {
  margin-bottom: 58px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sage-dark);
  color: #fffdf6;
  box-shadow: var(--shadow);
}

.success-panel.payment-processing {
  background: #2f573d;
}

.payment-processing-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 150px;
}

.payment-processing-card h2,
.payment-processing-card p {
  margin: 0;
}

.payment-processing-card h2 {
  margin-bottom: 8px;
}

.payment-processing-card p:not(.eyebrow) {
  color: rgba(255, 253, 246, 0.82);
  line-height: 1.55;
}

.payment-processing-indicator {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 3px solid rgba(255, 253, 246, 0.28);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: payment-processing-spin 820ms linear infinite;
}

.success-panel.payment-confirmation-enter {
  animation: payment-confirmation-enter 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes payment-processing-spin {
  to { transform: rotate(360deg); }
}

@keyframes payment-confirmation-enter {
  from {
    opacity: 0.2;
    transform: translateY(10px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.success-head h2 {
  margin-bottom: 10px;
}

.success-copy,
.success-note {
  max-width: 720px;
  color: rgba(255, 253, 246, 0.82);
  line-height: 1.65;
}

.success-copy {
  margin: 0;
}

.success-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.success-summary article,
.success-items {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.09);
}

.success-summary span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.success-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
}

.success-summary p {
  margin: 8px 0 0;
  color: rgba(255, 253, 246, 0.78);
  line-height: 1.5;
}

.success-items {
  margin-top: 12px;
}

.success-items h3 {
  margin: 0 0 10px;
}

.success-items ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.success-items li {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.success-items li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.success-items span {
  display: block;
  color: rgba(255, 253, 246, 0.76);
  line-height: 1.45;
}

.success-items small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 253, 246, 0.62);
  font-weight: 800;
}

.success-items li > strong {
  white-space: nowrap;
}

.success-note {
  margin: 16px 0 0;
}

.success-receipt-help {
  margin: 18px 0 0;
  color: rgba(255, 253, 246, 0.84);
  line-height: 1.55;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.success-download-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: rgba(255, 253, 246, 0.82);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media print {
  body.print-order-confirmation * {
    visibility: hidden;
  }

  body.print-order-confirmation #successPanel,
  body.print-order-confirmation #successPanel * {
    visibility: visible;
  }

  body.print-order-confirmation #successPanel {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #111;
    box-shadow: none;
  }

  body.print-order-confirmation #successPanel .success-copy,
  body.print-order-confirmation #successPanel .success-summary p,
  body.print-order-confirmation #successPanel .success-items span,
  body.print-order-confirmation #successPanel .success-items small {
    color: #333;
  }

  body.print-order-confirmation #successPanel .success-summary article,
  body.print-order-confirmation #successPanel .success-items {
    border-color: #aaa;
    background: #fff;
  }

  body.print-order-confirmation #successPanel .success-items li {
    border-color: #ccc;
  }

  body.print-order-confirmation #successPanel .success-summary span {
    color: #2f573d;
  }

  body.print-order-confirmation #successPanel .success-actions {
    display: none;
  }
}

.admin-body {
  background: #f7f2e8;
}

.admin-header {
  color: #fffdf6;
  background:
    linear-gradient(90deg, rgba(21, 39, 26, 0.9), rgba(46, 80, 57, 0.74)),
    var(--admin-hero-image) center/cover;
}

.admin-topbar {
  color: #fffdf6;
}

.admin-nav {
  border-color: rgba(255, 255, 255, 0.42);
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-lock-button {
  cursor: pointer;
}

.admin-sound-button {
  cursor: pointer;
}

.admin-sound-button.active {
  border-color: rgba(255, 253, 246, 0.86);
  background: rgba(255, 253, 246, 0.18);
}

.admin-locked .admin-header,
.admin-locked .admin-layout,
.admin-locked .toast,
.admin-locked .admin-lock-button {
  display: none;
}

.admin-unlocked .admin-auth {
  display: none;
}

.admin-auth {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-block: 42px;
}

.admin-auth-card {
  width: min(100%, 460px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.admin-auth-card h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  color: var(--sage-dark);
}

.admin-auth-card p {
  color: var(--muted);
  line-height: 1.55;
}

.admin-auth-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-auth-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.admin-auth-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
}

.admin-hero {
  padding: 46px 0 58px;
}

.admin-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
}

.admin-hero p {
  max-width: 650px;
  color: rgba(255, 253, 246, 0.86);
  line-height: 1.7;
}

.admin-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 32px 0 62px;
}

.dish-form {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  margin-bottom: 18px;
}

.component-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(88, 116, 95, 0.3);
  border-radius: 12px;
  background: #f7faf4;
}

.component-form label,
.dish-composition label,
.dish-advanced-grid label {
  display: grid;
  gap: 7px;
}

.component-form .full {
  grid-column: 1 / -1;
}

.section-copy,
.dish-composition > p {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.component-catalog-list {
  display: grid;
  gap: 18px;
}

.component-group {
  display: grid;
  gap: 8px;
}

.component-group h3 {
  margin: 0;
  color: var(--sage-dark);
  font-size: 1rem;
}

.component-card-list {
  display: grid;
  gap: 8px;
}

.component-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf8;
}

.component-card.inactive {
  opacity: 0.66;
}

.component-card > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.component-card span,
.component-card small {
  color: var(--muted);
}

.component-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.component-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.dish-composition {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(88, 116, 95, 0.34);
  border-radius: 12px;
  padding: 16px;
  background: #f7faf4;
}

.dish-composition legend {
  padding: 0 6px;
  color: var(--sage-dark);
  font-weight: 900;
}

.dish-composition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dish-addon-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dish-addon-picker > span {
  width: 100%;
  color: var(--sage-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.dish-addon-picker label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
  cursor: pointer;
}

.dish-addon-picker input {
  width: 17px;
  height: 17px;
}

.dish-advanced-fields {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
}

.dish-advanced-fields summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--sage-dark);
  font-weight: 900;
}

.dish-advanced-grid {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  padding: 4px 0 16px;
}

.menu-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button.compact {
  min-height: 40px;
  padding: 0 14px;
}

.dish-form label {
  display: grid;
  gap: 7px;
}

.dish-form .full {
  grid-column: 1 / -1;
}

.serving-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.serving-fields legend {
  padding: 0 6px;
  color: var(--sage-dark);
  font-weight: 900;
}

.publish-control {
  align-content: center;
  grid-template-columns: auto 1fr !important;
  align-items: center;
}

.publish-control input {
  width: 20px;
  height: 20px;
}

.dish-form input[type="file"] {
  padding: 10px;
}

.field-help {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.dish-photo-preview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dish-photo-preview {
  position: relative;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5efe3 center/cover;
}

.dish-photo-preview span {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(36, 48, 39, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.photo-remove-button {
  position: absolute;
  right: 8px;
  top: 8px;
  width: auto;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(36, 48, 39, 0.82);
  color: #fff;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
}

.dish-photo-preview-list[hidden] {
  display: none;
}

.admin-menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.orders-panel {
  grid-column: 1 / -1;
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.94);
  backdrop-filter: blur(12px);
}

.admin-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: #fffdf8;
  color: var(--sage-dark);
  font-weight: 900;
  cursor: pointer;
}

.admin-tab.active {
  border-color: var(--sage-dark);
  background: var(--sage-dark);
  color: #fff;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.control-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.inventory-grid,
.prep-grid,
.orders-list {
  display: grid;
  gap: 12px;
}

.inventory-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.inventory-item div {
  display: grid;
  gap: 4px;
}

.inventory-item span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.inventory-item.sold-out {
  background: #fff7f5;
  border-color: #edc7c0;
}

.prep-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.new-orders-list {
  min-width: 0;
}

.new-orders-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(227, 184, 90, 0.72);
  border-radius: 8px;
  background: #fff9e8;
  box-shadow: 0 8px 18px rgba(41, 55, 42, 0.07);
}

.new-orders-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.new-orders-table th,
.new-orders-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(228, 221, 206, 0.9);
  text-align: left;
  vertical-align: top;
  font-size: 0.88rem;
  line-height: 1.35;
}

.new-orders-table th {
  background: rgba(244, 239, 228, 0.86);
  color: var(--sage-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.new-orders-table tbody tr:last-child td {
  border-bottom: 0;
}

.new-orders-table strong {
  color: var(--ink);
}

.new-orders-table span {
  color: var(--muted);
  font-size: 0.82rem;
}

.new-orders-table td:first-child {
  white-space: nowrap;
}

.new-orders-table td:last-child {
  min-width: 150px;
}

.prep-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.prep-item strong {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-dark);
  color: #fff;
}

.prep-item span {
  color: var(--muted);
  font-weight: 800;
}

.kitchen-stats {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.kitchen-stat {
  display: grid;
  gap: 4px;
  min-height: 72px;
  align-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.kitchen-stat strong {
  color: var(--sage-dark);
  font-size: 1.45rem;
  line-height: 1;
}

.kitchen-stat span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.kitchen-stat.warning {
  background: #fff7f5;
  border-color: #edc7c0;
}

.admin-day-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
}

.admin-day-filter button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.admin-day-filter button.active {
  background: var(--sage-dark);
  color: #fff;
}

.master-toolbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}

.master-toolbar label {
  display: grid;
  gap: 7px;
  color: var(--sage-dark);
  font-weight: 900;
}

.master-toolbar p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.master-toolbar .text-button {
  justify-self: start;
  min-height: 42px;
}

.detail-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.daily-report-toolbar {
  display: flex;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.daily-report-toolbar label {
  display: grid;
  gap: 7px;
  min-width: 190px;
  color: var(--sage-dark);
  font-weight: 900;
}

.daily-report-toolbar p,
.daily-report-heading p {
  margin: 0;
  color: var(--muted);
}

.daily-report {
  display: grid;
  gap: 18px;
}

.daily-report-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-left: 5px solid var(--mustard);
  border-radius: 8px;
  background: #fff8e6;
}

.daily-report-heading div {
  display: grid;
  gap: 3px;
}

.daily-report-heading span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-report-heading strong {
  color: var(--sage-dark);
  font-size: 1.35rem;
}

.daily-report-group {
  display: grid;
  gap: 10px;
}

.daily-report-group h3 {
  margin: 0;
  color: var(--sage-dark);
}

.daily-report-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.daily-report-metric {
  display: grid;
  gap: 6px;
  min-height: 88px;
  align-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.daily-report-metric span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.daily-report-metric strong {
  color: var(--sage-dark);
  font-size: 1.35rem;
}

.daily-report-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.daily-report-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: #fffdf8;
}

.daily-report-table th,
.daily-report-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.daily-report-table th {
  color: var(--sage-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.daily-report-table tr:last-child td {
  border-bottom: 0;
}

.master-table-block {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.master-table-head,
.closed-orders summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.master-table-head h3 {
  margin: 0;
  color: var(--sage-dark);
  font-size: 1rem;
}

.master-table-head span,
.closed-orders summary span {
  min-width: 30px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-dark);
  color: #fff;
  font-weight: 900;
}

.master-table {
  min-width: 1180px;
}

.master-table .text-button {
  white-space: nowrap;
}

.master-detail-row {
  display: none;
  background: #fbf6ec;
}

.master-detail-row.is-open {
  display: table-row;
  background: #fff8df;
}

.master-detail-box {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(260px, 1.2fr) minmax(150px, 0.8fr);
  gap: 12px;
}

.master-detail-box h3 {
  margin: 0 0 6px;
  color: var(--sage-dark);
  font-size: 0.86rem;
}

.master-detail-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.closed-orders {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.closed-orders summary {
  cursor: pointer;
  padding: 14px;
  color: var(--sage-dark);
  font-weight: 900;
}

.closed-orders .master-table-block {
  margin: 0;
  padding: 0 14px 14px;
}

.kitchen-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.kitchen-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
}

.kitchen-table th,
.kitchen-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  text-align: left;
  vertical-align: top;
}

.kitchen-table th {
  background: #f5efe3;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kitchen-table tr:last-child td {
  border-bottom: 0;
}

.kitchen-table tr.is-done {
  opacity: 0.62;
}

.kitchen-table td span {
  color: var(--muted);
}

.kitchen-table select {
  min-width: 130px;
  padding: 9px 10px;
}

.table-empty {
  color: var(--muted);
  text-align: center;
}

.flow-board {
  display: grid;
  gap: 10px;
}

.flow-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.flow-section.status-aceptado {
  background: #eef5ef;
}

.flow-section.status-preparando {
  background: #fff4e8;
}

.flow-section.status-listo {
  background: #eef7e8;
}

.flow-section.status-entregado {
  background: #f2f2ef;
}

.flow-section.status-cancelado {
  background: #fff2f0;
}

.flow-section-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--sage-dark);
  cursor: pointer;
  font-weight: 900;
}

.flow-section-head::-webkit-details-marker {
  display: none;
}

.flow-section-head::before {
  content: "+";
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4efe4;
  color: var(--sage-dark);
}

.flow-section[open] .flow-section-head::before {
  content: "-";
}

.flow-section-head span {
  flex: 1;
}

.flow-section-head strong {
  min-width: 32px;
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4efe4;
  color: var(--sage-dark);
}

.flow-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  background: #fffdf8;
}

.flow-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.flow-table th,
.flow-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.35;
  text-align: left;
  vertical-align: top;
}

.flow-table th {
  background: #f5efe3;
  color: var(--sage-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.flow-table tr:last-child td {
  border-bottom: 0;
}

.flow-table span {
  color: var(--muted);
  font-size: 0.82rem;
}

.flow-table select {
  min-width: 130px;
  padding: 9px 10px;
}

.flow-empty {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.mobile-order-card-list {
  display: none;
}

[data-order-transition].order-status-leaving {
  pointer-events: none;
  will-change: opacity, transform;
  animation: order-status-leave 200ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

[data-order-transition].order-status-entering {
  will-change: opacity, transform;
  animation: order-status-enter 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes order-status-leave {
  to {
    opacity: 0.28;
    transform: translateY(-3px) scale(0.985);
  }
}

@keyframes order-status-enter {
  from {
    opacity: 0.18;
    transform: translateY(7px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mobile-order-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf8;
  box-shadow: 0 8px 18px rgba(41, 55, 42, 0.07);
}

.mobile-order-card-head,
.mobile-order-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-order-card-head {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: #f5efe3;
}

.mobile-order-card-head > div,
.mobile-order-customer,
.mobile-order-essential,
.mobile-order-status-control {
  display: grid;
  gap: 4px;
}

.mobile-order-reference,
.mobile-order-customer > span,
.mobile-order-essential > span,
.mobile-order-status-control > span,
.mobile-order-detail-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-order-reference {
  color: var(--sage-dark);
}

.mobile-order-time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.mobile-order-customer,
.mobile-order-essential,
.mobile-order-controls {
  padding: 12px 14px;
}

.mobile-order-customer strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.mobile-order-meta {
  padding: 0 14px 12px;
  color: var(--sage-dark);
  font-size: 0.84rem;
  font-weight: 900;
}

.mobile-order-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef5ef;
}

.mobile-order-essential {
  border-top: 1px solid var(--line);
}

.mobile-order-essential ul,
.mobile-order-essential p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.mobile-order-essential ul {
  display: grid;
  gap: 5px;
  padding-left: 20px;
}

.mobile-order-instructions {
  background: #fff8df;
}

.mobile-order-controls {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.mobile-order-controls select {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
}

.mobile-order-details {
  border-top: 1px solid var(--line);
  background: #fbf6ec;
}

.mobile-order-details summary {
  padding: 12px 14px;
  color: var(--sage-dark);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
}

.mobile-order-detail-grid {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.mobile-order-detail-grid > div {
  min-width: 0;
}

.mobile-order-detail-grid p {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  line-height: 1.4;
}

.order-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.order-card-head,
.order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.order-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.order-controls label {
  display: grid;
  gap: 7px;
}

.next-actions,
.table-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-payment-control {
  display: grid;
  gap: 8px;
  align-items: start;
}

.admin-payment-control .quick-status-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  text-align: center;
  text-decoration: none;
}

.next-actions {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.table-next-actions {
  margin-top: 8px;
}

.quick-status-action {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 12px;
  background: #f4efe4;
  color: var(--sage-dark);
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.quick-status-action.primary {
  background: var(--sage-dark);
  color: #fff;
}

.quick-status-action.ready {
  background: var(--gold);
  color: #243027;
}

.quick-status-action.done {
  background: var(--leaf);
  color: #243027;
}

.quick-status-action.notify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: #96b49b;
  background: #e7f3e8;
  color: var(--sage-dark);
  text-align: center;
  text-decoration: none;
}

.quick-status-action.danger {
  border-color: #edc7c0;
  background: #fff7f5;
  color: #a83b2d;
}

.refund-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: #fffdf8;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(36, 48, 39, 0.28);
}

.refund-dialog::backdrop {
  background: rgba(26, 34, 28, 0.62);
}

.refund-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.refund-dialog-head,
.refund-actions,
.refund-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.refund-dialog-head h2 {
  margin: 2px 0 4px;
  font-size: 1.5rem;
}

.refund-dialog-head p:last-child {
  margin: 0;
  color: var(--muted);
}

.refund-close {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.refund-items {
  display: grid;
  gap: 10px;
}

.refund-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.refund-item-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
}

.refund-item-main input {
  grid-row: 1 / span 2;
  width: 20px;
  height: 20px;
}

.refund-item-main span {
  color: var(--muted);
  font-size: 0.86rem;
}

.refund-quantity {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.refund-quantity input {
  width: 76px;
  min-height: 40px;
}

.refund-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.refund-summary strong {
  color: var(--sage-dark);
  font-size: 1.2rem;
}

.refund-summary small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.45;
}

.refund-actions {
  justify-content: flex-end;
}

.refund-actions .button {
  width: auto;
}

.next-action-note {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.next-action-note.blocked {
  display: block;
  width: 100%;
  border: 0;
  border-left: 3px solid #c46d5e;
  border-radius: 0;
  padding: 8px 10px;
  background: #fff7f5;
  color: #a83b2d;
  line-height: 1.4;
}

.order-card-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.order-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.order-card h3 {
  margin: 0 0 6px;
  font-size: 0.92rem;
}

.order-card p,
.order-card ul {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.invoice-box {
  display: grid;
  gap: 10px;
}

.invoice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.invoice-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #f4efe4;
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.invoice-lines {
  display: grid;
  gap: 7px;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.invoice-row div {
  display: grid;
  gap: 2px;
}

.invoice-row span {
  color: var(--muted);
}

.invoice-row strong {
  color: var(--ink);
  text-align: right;
}

.invoice-subtotal {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.invoice-total {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
}

.invoice-total strong {
  color: var(--sage-dark);
}

.order-food {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.order-actions {
  justify-content: flex-start;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--sage-dark);
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.mobile-cart-bar {
  display: none;
}

@media (max-width: 920px) {
  .meal-builder,
  .admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .orders-panel {
    grid-column: auto;
  }

  .admin-wide {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .refund-form {
    padding: 18px;
  }

  .refund-item,
  .refund-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .refund-quantity input,
  .refund-actions .button {
    width: 100%;
  }

  .weekly-menu-grid,
  .admin-menu-list,
  .dish-form,
  .component-form,
  .dish-composition-grid,
  .dish-advanced-grid,
  .serving-fields,
  .option-grid,
  .order-card-grid,
  .order-controls,
  .master-toolbar,
  .master-detail-box,
  .kitchen-stats,
  .new-orders-list,
  .prep-grid {
    grid-template-columns: 1fr;
  }

  .detail-heading-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .daily-report-toolbar,
  .daily-report-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-report-toolbar label {
    min-width: 0;
  }

  .daily-report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dish-photo-preview-list {
    grid-template-columns: 1fr;
  }

  .component-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .component-card-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-actions {
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .admin-top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .admin-topbar {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 0;
  }

  .admin-top-actions .admin-nav {
    min-width: 0;
    justify-content: center;
    padding: 8px 6px;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }

  .admin-tabs {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-tab {
    min-width: 0;
    width: 100%;
    padding: 0 10px;
    white-space: normal;
    line-height: 1.2;
  }

  .admin-day-filter {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 12px;
  }

  .admin-day-filter button {
    padding: 0 8px;
  }

  .nav-link {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .segmented.three {
    grid-template-columns: 1fr;
  }

  .builder-photo {
    min-height: 230px;
  }

  .dish-actions {
    grid-template-columns: 1fr;
  }

  .success-actions,
  .order-actions,
  .next-actions,
  .control-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .confirmation-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 8px;
  }

  .embedded-checkout-shell {
    padding: 12px;
  }

  .embedded-checkout-head {
    display: grid;
  }

  .secure-payment-label {
    white-space: normal;
  }

  .button,
  .submit-button,
  .dish-actions .button,
  .control-row .button,
  .success-actions .button,
  .quick-status-action {
    width: 100%;
  }

  .confirmation-actions .button {
    width: auto;
    min-height: 46px;
    padding: 0 16px;
  }

  .confirmation-actions #editOrder {
    min-width: 96px;
  }

  .success-summary {
    grid-template-columns: 1fr;
  }

  .success-items li {
    display: grid;
    gap: 8px;
  }

  .success-items li > strong {
    justify-self: end;
  }

  .admin-header {
    background-position: center;
  }

  .admin-hero {
    padding: 30px 0 38px;
  }

  .admin-hero h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
    line-height: 1.04;
  }

  .admin-hero p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .admin-layout {
    gap: 14px;
    padding: 22px 0 40px;
  }

  .admin-panel {
    padding: 14px;
  }

  .kitchen-table-wrap {
    margin-inline: -4px;
  }

  .kitchen-table {
    min-width: 920px;
  }

  .new-orders-table-wrap,
  .flow-table-wrap,
  .operational-kitchen-table-wrap {
    display: none;
  }

  .mobile-order-card-list {
    display: grid;
    gap: 12px;
  }

  .flow-section .mobile-order-card-list {
    padding: 0 10px 10px;
    border-top: 1px solid var(--line);
  }

  .mobile-order-card .table-next-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    text-align: center;
  }

  body.has-mobile-cart {
    padding-bottom: 88px;
  }

  .has-mobile-cart .toast {
    bottom: 86px;
  }

  .mobile-cart-bar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 62px;
    border: 1px solid rgba(36, 48, 39, 0.18);
    border-radius: 8px;
    padding: 10px 14px;
    background: var(--sage-dark);
    color: #fffdf6;
    box-shadow: 0 18px 42px rgba(21, 39, 26, 0.28);
  }

  .mobile-cart-bar[hidden] {
    display: none;
  }

  .mobile-cart-bar span {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .mobile-cart-bar strong {
    white-space: nowrap;
  }

  .mobile-cart-bar small {
    overflow: hidden;
    color: rgba(255, 253, 246, 0.78);
    font-size: 0.78rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  .section {
    width: min(100% - 18px, 1160px);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .admin-hero h1 {
    font-size: 2rem;
  }

  .admin-top-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-lock-button {
    grid-column: 1 / -1;
  }

  .nav-link {
    padding: 0 10px;
  }

  .menu-panel,
  .cart-sticky,
  .confirmation,
  .admin-panel {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-order-transition].order-status-leaving,
  [data-order-transition].order-status-entering,
  .success-panel.payment-confirmation-enter,
  .payment-processing-indicator {
    animation: none;
    transform: none;
  }
}

/* Experimento: carrito flotante con apertura expansiva. */
.order-shell {
  display: block;
}

.topbar .nav-actions {
  padding-right: 68px;
}

.floating-cart-trigger {
  position: fixed;
  z-index: 1202;
  top: 14px;
  right: max(16px, calc((100vw - 1160px) / 2));
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: var(--sage-dark);
  color: #fffdf6;
  box-shadow: 0 12px 28px rgba(21, 39, 26, 0.3);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.floating-cart-trigger:hover,
.floating-cart-trigger:focus-visible,
.floating-cart-open .floating-cart-trigger {
  background: #203f2a;
  box-shadow: 0 15px 34px rgba(21, 39, 26, 0.38);
  outline: none;
  transform: translateY(-1px) scale(1.04);
}

.floating-cart-trigger svg {
  width: 25px;
  height: 25px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.floating-cart-trigger svg circle {
  fill: currentColor;
  stroke: none;
}

.floating-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fffdf6;
  border-radius: 999px;
  background: var(--gold);
  color: #243027;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.floating-cart-trigger.has-items .floating-cart-count {
  background: #f7c967;
}

.floating-cart-backdrop {
  position: fixed;
  z-index: 1200;
  inset: 0;
  background: rgba(18, 29, 22, 0.32);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(2px);
  transition: opacity 260ms ease;
}

.floating-cart-panel {
  position: fixed;
  z-index: 1201;
  top: 78px;
  right: max(16px, calc((100vw - 1160px) / 2));
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 94px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 24px;
  background: #fffdf8;
  box-shadow: 0 28px 70px rgba(21, 39, 26, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px) scale(0.2);
  transform-origin: calc(100% - 26px) 0;
  clip-path: circle(0 at calc(100% - 26px) 0);
  transition:
    clip-path 430ms cubic-bezier(0.2, 0.78, 0.2, 1),
    opacity 180ms ease,
    transform 430ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

.floating-cart-open {
  overflow: hidden;
}

.floating-cart-open .floating-cart-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.floating-cart-open .floating-cart-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  clip-path: circle(150% at calc(100% - 26px) 0);
}

.floating-cart-panel .cart-sticky {
  position: static;
}

.floating-cart-panel .section-heading {
  align-items: center;
}

.cart-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-close-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f5efe3;
  color: var(--sage-dark);
  font: inherit;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.cart-close-button:hover,
.cart-close-button:focus-visible {
  background: #e9e1d2;
  outline: 3px solid rgba(88, 116, 95, 0.2);
}

.floating-cart-panel .cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.floating-cart-panel .cart-item-copy strong {
  line-height: 1.25;
}

.floating-cart-panel .cart-row-actions {
  flex-wrap: nowrap;
  gap: 7px;
}

.floating-cart-panel .address-suggestions {
  position: static;
  max-height: 260px;
  margin-top: 6px;
  overflow-x: hidden;
  overflow-y: auto;
}

@media (max-width: 680px) {
  .topbar .nav-actions {
    padding-right: 58px;
  }

  .floating-cart-trigger {
    top: 11px;
    right: 12px;
    width: 46px;
    height: 46px;
  }

  .floating-cart-trigger svg {
    width: 22px;
    height: 22px;
  }

  .floating-cart-panel {
    top: 68px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    max-height: none;
    border-radius: 22px;
  }

  .floating-cart-panel .section-heading {
    flex-direction: row;
  }

  .floating-cart-panel .cart-row-actions {
    gap: 5px;
  }

  .floating-cart-panel .cart-quantity-stepper {
    grid-template-columns: 31px 31px 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-cart-trigger,
  .floating-cart-backdrop,
  .floating-cart-panel {
    transition: none;
  }
}

/* Identidad visual Good For You: alcance exclusivo de la pagina del cliente. */
.customer-page {
  background: var(--cream);
  font-family: "Lexend Deca", Inter, ui-sans-serif, system-ui, sans-serif;
}

.customer-page .hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  border-bottom: 8px solid var(--gold);
  background:
    linear-gradient(92deg, rgba(47, 51, 45, 0.94) 0%, rgba(103, 118, 77, 0.78) 48%, rgba(103, 118, 77, 0.2) 82%),
    var(--hero-image) center/cover;
}

.customer-page .hero::before {
  position: absolute;
  top: -180px;
  right: -130px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(247, 168, 46, 0.42);
  border-radius: 50%;
  box-shadow:
    0 0 0 46px rgba(247, 168, 46, 0.06),
    0 0 0 92px rgba(247, 168, 46, 0.04);
  content: "";
  pointer-events: none;
}

.customer-page .topbar,
.customer-page .hero-content {
  position: relative;
  z-index: 1;
}

.customer-page .brand {
  gap: 0;
}

.customer-page .brand-mark {
  width: 190px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 0;
  background-color: transparent;
}

.customer-page .brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.customer-page .nav-link {
  border-color: rgba(249, 242, 234, 0.58);
  background: rgba(47, 51, 45, 0.2);
  backdrop-filter: blur(12px);
}

.customer-page .nav-link:hover,
.customer-page .nav-link:focus-visible {
  border-color: var(--gold);
  background: rgba(247, 168, 46, 0.16);
  outline: none;
}

.customer-page .hero-content {
  padding-block: 64px 84px;
}

.customer-page .hero h1,
.customer-page h2,
.customer-page h3 {
  font-family: Adero, "Lexend Deca", Inter, ui-sans-serif, system-ui, sans-serif;
}

.customer-page .hero h1 {
  max-width: 780px;
  font-size: clamp(3.4rem, 6.7vw, 6rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.customer-page .hero-copy {
  max-width: 650px;
  color: rgba(255, 253, 248, 0.9);
  font-size: 1.08rem;
}

.customer-page .eyebrow {
  color: var(--gold);
  letter-spacing: 0.11em;
}

.customer-page main .eyebrow {
  color: var(--sage-dark);
}

.customer-page .button {
  border-radius: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.customer-page .button.primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(247, 168, 46, 0.24);
}

.customer-page .button.primary:hover:not(:disabled),
.customer-page .button.primary:focus-visible:not(:disabled) {
  background: #ffb94f;
  box-shadow: 0 16px 34px rgba(247, 168, 46, 0.3);
  outline: 3px solid rgba(249, 242, 234, 0.42);
  transform: translateY(-2px);
}

.customer-page .button.secondary {
  border-color: rgba(249, 242, 234, 0.5);
  background: rgba(249, 242, 234, 0.1);
}

.customer-page .quick-facts {
  gap: 16px;
}

.customer-page .quick-facts div {
  border: 1px solid rgba(247, 168, 46, 0.42);
  border-radius: 18px;
  background: rgba(47, 51, 45, 0.24);
}

.customer-page .quick-facts dt {
  color: #ffd18a;
}

.customer-page main {
  position: relative;
  background:
    radial-gradient(circle at 94% 8%, rgba(130, 155, 109, 0.16), transparent 18rem),
    var(--cream);
}

.customer-page .steps {
  padding-block: 78px 44px;
}

.customer-page .steps-heading {
  max-width: none;
  align-items: center;
}

.customer-page .steps-heading > div {
  max-width: 760px;
}

.customer-page .brand-tagline {
  width: 190px;
  height: auto;
  flex: 0 0 auto;
}

.customer-page .steps-grid {
  gap: 20px;
}

.customer-page .step-card {
  min-height: 220px;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(103, 118, 77, 0.2);
  border-top: 4px solid var(--gold);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 18px 44px rgba(71, 82, 63, 0.1);
}

.customer-page .step-card span {
  width: 42px;
  height: 42px;
  background: var(--gold);
  color: var(--ink);
}

.customer-page .step-card h3 {
  color: var(--sage-dark);
  font-size: 1.2rem;
}

.customer-page .order-shell {
  padding-block: 24px 76px;
}

.customer-page .menu-panel,
.customer-page .cart-panel,
.customer-page .confirmation {
  border-color: rgba(103, 118, 77, 0.2);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 24px 60px rgba(71, 82, 63, 0.13);
}

.customer-page .menu-panel {
  padding: 30px;
}

.customer-page .weekly-menu-grid {
  gap: 22px;
}

.customer-page .dish-card {
  border-color: rgba(103, 118, 77, 0.18);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(71, 82, 63, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.customer-page .dish-card:hover {
  border-color: rgba(247, 168, 46, 0.6);
  box-shadow: 0 20px 42px rgba(71, 82, 63, 0.14);
  transform: translateY(-3px);
}

.customer-page .dish-gallery {
  background: var(--cream);
}

.customer-page .product-category {
  background: rgba(247, 168, 46, 0.14);
  color: var(--sage-dark);
}

.customer-page .dish-heading strong,
.customer-page .price {
  color: var(--sage-dark);
}

.customer-page .floating-cart-trigger {
  border-color: rgba(249, 242, 234, 0.76);
  background: var(--sage-dark);
  box-shadow: 0 12px 30px rgba(47, 51, 45, 0.28);
}

.customer-page .floating-cart-trigger:hover,
.customer-page .floating-cart-trigger:focus-visible,
.customer-page.floating-cart-open .floating-cart-trigger {
  background: #505d3f;
  box-shadow: 0 16px 36px rgba(47, 51, 45, 0.34);
}

.customer-page .floating-cart-count,
.customer-page .floating-cart-trigger.has-items .floating-cart-count {
  background: var(--gold);
  color: var(--ink);
}

.customer-page .floating-cart-panel {
  border-radius: 28px;
  background: var(--paper);
}

.customer-page .cart-close-button {
  background: var(--cream);
}

.customer-page .success-panel {
  border-color: var(--sage-dark);
  border-radius: 24px;
  background: var(--sage-dark);
}

.customer-page .faq-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 42px;
  align-items: start;
  padding-block: 34px 86px;
}

.customer-page .faq-heading {
  position: sticky;
  top: 24px;
}

.customer-page .faq-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.customer-page .faq-heading a,
.customer-page .faq-item a {
  color: var(--sage-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.customer-page .faq-list {
  display: grid;
  gap: 12px;
}

.customer-page .faq-item {
  overflow: hidden;
  border: 1px solid rgba(103, 118, 77, 0.24);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(71, 82, 63, 0.07);
}

.customer-page .faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 18px 58px 18px 20px;
  color: var(--sage-dark);
  font-weight: 850;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.customer-page .faq-item summary::-webkit-details-marker {
  display: none;
}

.customer-page .faq-item summary::after {
  position: absolute;
  right: 20px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(247, 168, 46, 0.18);
  color: var(--sage-dark);
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
}

.customer-page .faq-item[open] summary::after {
  content: "−";
}

.customer-page .faq-item summary:focus-visible {
  outline: 3px solid rgba(247, 168, 46, 0.55);
  outline-offset: -3px;
}

.customer-page .faq-item > div {
  padding: 0 20px 20px;
}

.customer-page .faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 680px) {
  .customer-page .hero {
    min-height: auto;
    border-bottom-width: 6px;
    background:
      linear-gradient(105deg, rgba(47, 51, 45, 0.96) 0%, rgba(103, 118, 77, 0.78) 68%, rgba(103, 118, 77, 0.4) 100%),
      var(--hero-image) 62% center/cover;
  }

  .customer-page .hero::before {
    top: -120px;
    right: -170px;
    width: 340px;
    height: 340px;
  }

  .customer-page .topbar {
    min-height: 72px;
  }

  .customer-page .brand-mark {
    width: 142px;
    height: 42px;
  }

  .customer-page .topbar .nav-link {
    display: none;
  }

  .customer-page .topbar .nav-actions {
    padding-right: 54px;
  }

  .customer-page .hero-content {
    padding-block: 48px 56px;
  }

  .customer-page .hero h1 {
    max-width: 360px;
    font-size: clamp(2.35rem, 12vw, 3.25rem);
    line-height: 1;
  }

  .customer-page .hero-copy {
    font-size: 0.98rem;
  }

  .customer-page .quick-facts {
    gap: 10px;
    margin-top: 30px;
  }

  .customer-page .quick-facts div {
    border-radius: 16px;
  }

  .customer-page .steps {
    padding-block: 48px 28px;
  }

  .customer-page .steps-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    align-items: end;
    gap: 10px;
  }

  .customer-page .brand-tagline {
    width: 112px;
  }

  .customer-page .step-card {
    min-height: 0;
    padding: 20px;
    border-radius: 18px;
  }

  .customer-page .faq-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 24px 58px;
  }

  .customer-page .faq-heading {
    position: static;
  }

  .customer-page .faq-item {
    border-radius: 16px;
  }

  .customer-page .faq-item summary {
    min-height: 62px;
    padding: 16px 54px 16px 17px;
  }

  .customer-page .faq-item summary::after {
    right: 16px;
  }

  .customer-page .faq-item > div {
    padding: 0 17px 17px;
  }

  .customer-page .order-shell {
    padding-block: 18px 54px;
  }

  .customer-page .menu-panel,
  .customer-page .cart-panel,
  .customer-page .confirmation {
    border-radius: 22px;
  }

  .customer-page .menu-panel {
    padding: 16px;
  }

  .customer-page .dish-card {
    border-radius: 18px;
  }
}

/* Customer legal content and consent */
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.terms-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(103, 118, 77, 0.28);
  border-radius: 14px;
  background: rgba(130, 155, 109, 0.1);
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.55;
}

.terms-consent input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--sage-dark);
}

.terms-consent a,
.legal-document a {
  color: var(--sage-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.terms-consent .error {
  grid-column: 2;
}

.terms-consent.field-invalid {
  border-color: #b94739;
  background: #fff7f5;
}

.site-footer {
  border-top: 7px solid var(--gold);
  background: var(--sage-dark);
  color: var(--cream);
}

.site-footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(150px, 0.72fr));
  gap: 28px;
  padding: 48px 0 34px;
}

.site-footer .brand {
  width: fit-content;
  margin-bottom: 16px;
}

.site-footer .brand-mark {
  width: 150px;
  height: 46px;
  border-radius: 0;
  background-color: transparent;
}

.site-footer h2 {
  margin: 4px 0 14px;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer p,
.site-footer address {
  margin: 0;
  color: rgba(249, 242, 234, 0.8);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.65;
}

.site-footer address + p {
  margin-top: 8px;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 10px;
}

.site-footer nav a {
  width: fit-content;
  color: rgba(249, 242, 234, 0.88);
  font-size: 0.9rem;
  line-height: 1.35;
}

.site-footer p a {
  color: inherit;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible,
.site-footer nav a[aria-current="page"] {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer-note {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto !important;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(249, 242, 234, 0.15);
  font-size: 0.78rem !important;
}

.legal-page {
  background: var(--cream);
}

.legal-header {
  border-bottom: 7px solid var(--gold);
  background:
    radial-gradient(circle at 85% 0%, rgba(247, 168, 46, 0.24), transparent 25rem),
    var(--sage-dark);
  color: var(--cream);
}

.legal-header .topbar {
  min-height: 82px;
}

.legal-header .brand-mark {
  width: 150px;
  height: 46px;
  border-radius: 0;
  background-color: transparent;
}

.legal-heading {
  width: min(940px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 72px;
}

.legal-heading h1 {
  max-width: 850px;
  margin: 0;
  color: var(--cream);
  font-size: clamp(2.35rem, 7vw, 5.2rem);
  line-height: 1;
}

.legal-heading > p:last-child {
  margin: 20px 0 0;
  color: rgba(249, 242, 234, 0.74);
  font-weight: 700;
}

.legal-main {
  width: min(940px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 76px;
}

.legal-safety-callout {
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(247, 168, 46, 0.48);
  border-left: 6px solid var(--gold);
  border-radius: 14px;
  background: #fff7e9;
  color: var(--ink);
  line-height: 1.65;
}

.legal-safety-callout {
  border-color: rgba(103, 118, 77, 0.35);
  border-left-color: var(--sage-dark);
  background: rgba(130, 155, 109, 0.12);
}

.legal-document {
  overflow: hidden;
  border: 1px solid rgba(103, 118, 77, 0.2);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(71, 82, 63, 0.11);
}

.legal-document section {
  padding: 28px 34px;
  border-bottom: 1px solid var(--line);
}

.legal-document section:last-child {
  border-bottom: 0;
}

.legal-document h2 {
  margin: 0 0 12px;
  color: var(--sage-dark);
  font-size: 1.22rem;
  line-height: 1.3;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  line-height: 1.75;
}

.legal-document p {
  margin: 0;
}

.legal-document p + p {
  margin-top: 12px;
}

.legal-document ul {
  margin: 0;
  padding-left: 22px;
}

.legal-document strong {
  color: var(--ink);
}

.legal-footer .site-footer-inner {
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 1fr);
}

@media (max-width: 760px) {
  .site-footer-inner,
  .legal-footer .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 38px;
  }

  .legal-header .topbar {
    min-height: 72px;
  }

  .legal-header .brand-mark {
    width: 132px;
    height: 40px;
  }

  .legal-header .nav-link {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 0.82rem;
  }

  .legal-heading {
    padding: 44px 0 52px;
  }

  .legal-heading h1 {
    font-size: clamp(2.2rem, 12vw, 3.35rem);
  }

  .legal-main {
    padding: 30px 0 52px;
  }

  .legal-document {
    border-radius: 18px;
  }

  .legal-document section {
    padding: 22px 20px;
  }
}
