/*
  CSS map
  1. Design tokens and base elements
  2. Header, navigation, and hero
  3. Customer menu, item cards, basket, and checkout
  4. Status, dashboard, order history, and customer database
  5. Admin, onboarding, menu builder, and settings forms
  6. Modals, toast, utility states, and responsive rules

  This file is still single-bundle for the static Vercel app. If it keeps
  growing, split by these sections into base.css, customer.css, dashboard.css,
  admin.css, and responsive.css.
*/

:root {
  --ink: #201c18;
  --muted: #6b6259;
  --paper: #fffaf2;
  --panel: #ffffff;
  --line: #eadfce;
  --red: #b92727;
  --brand-color: #b92727;
  --red-dark: #8f1f1f;
  --green: #1d7a54;
  --gold: #d9a441;
  --teal: #0e6f73;
  --order-new: #e86f1f;
  --order-accepted: #d99a18;
  --order-ready: #176a48;
  --shadow: 0 18px 50px rgba(40, 27, 16, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.is-overlay-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(255, 250, 242, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--red);
  border-radius: 8px;
  font-weight: 850;
}

.brand-mark.has-logo {
  color: transparent;
  background-color: #fff;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(32, 28, 24, 0.08);
  border: 1px solid var(--line);
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.eyebrow,
.service-note,
.basket-empty span,
.menu-card p,
.dashboard-head p {
  color: var(--muted);
}

.nav-tabs {
  flex: 1;
  display: flex;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px;
  background: #f1e6d6;
  border-radius: 8px;
}

.nav-tab,
.category-chip,
.basket-toggle,
.icon-button,
.quantity button,
.filter-toggle {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.nav-tab {
  flex: 1 1 0;
  position: relative;
  min-width: 92px;
  padding: 10px 16px;
}

.nav-badge {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 860;
  place-items: center;
}

.nav-tab.is-active,
.category-chip.is-active {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 8px 18px rgba(69, 44, 25, 0.08);
}

.basket-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
}

.basket-toggle strong {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  background: var(--gold);
  color: #2d210e;
  border-radius: 50%;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: clamp(460px, 62vh, 620px);
  padding: clamp(18px, 3vw, 42px) clamp(16px, 5vw, 72px) 24px;
}

.hero h1,
.dashboard-head h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  font-size: 18px;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions,
.checkout-footer,
.drawer-head,
.basket-header,
.menu-toolbar,
.service-strip {
  display: flex;
  align-items: center;
}

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

.primary-action,
.checkout-button {
  border: 0;
  border-radius: 8px;
  background: var(--brand-color, var(--red));
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  padding: 14px 18px;
}

.primary-action:hover,
.checkout-button:hover {
  background: var(--red-dark);
}

.primary-action.full-width {
  width: 100%;
}

.status-pill {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font-weight: 760;
}

.status-pill.is-closed {
  color: var(--red);
}

.availability-notice {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #e7c2b8;
  border-radius: 8px;
  background: #fff3ed;
  color: var(--red-dark);
}

.availability-notice[hidden] {
  display: none;
}

.availability-notice span {
  color: var(--muted);
}

.food-photo {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 221, 132, 0.9), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.85), transparent 14%),
    linear-gradient(135deg, #321915, #773123 42%, #f2b94f);
  box-shadow: var(--shadow);
}

.hero-visual.has-hero-image {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.hero-visual.has-hero-image.is-sliding {
  animation: heroPhotoDrift 5.5s ease-in-out infinite;
}

.hero-visual.has-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.26));
}

.hero-visual.has-hero-image .food-photo {
  opacity: 0;
}

@keyframes heroPhotoDrift {
  0% {
    background-position: center 48%;
  }

  100% {
    background-position: center 52%;
  }
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 8%;
  background:
    radial-gradient(circle at 32% 34%, #f7db91 0 6%, transparent 7%),
    radial-gradient(circle at 42% 42%, #cf3629 0 4%, transparent 5%),
    radial-gradient(circle at 53% 30%, #f8f1d7 0 5%, transparent 6%),
    radial-gradient(circle at 60% 55%, #185f3a 0 4%, transparent 5%),
    radial-gradient(circle at 70% 40%, #eec869 0 5%, transparent 6%);
  filter: blur(0.2px);
}

.plate {
  position: absolute;
  display: block;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 45%, rgba(255, 255, 255, 0.86) 46% 52%, transparent 53%),
    radial-gradient(circle at 48% 42%, #d83f2b 0 8%, transparent 9%),
    radial-gradient(circle at 60% 54%, #f0c157 0 9%, transparent 10%),
    radial-gradient(circle at 42% 58%, #1f774e 0 7%, transparent 8%),
    radial-gradient(circle, #f7f0df 0 55%, #d7c2a2 56% 63%, transparent 64%);
  box-shadow: 0 18px 40px rgba(16, 12, 8, 0.22);
}

.plate-one {
  left: 9%;
  bottom: 15%;
}

.plate-two {
  right: 7%;
  top: 14%;
  transform: scale(0.82);
}

.plate-three {
  right: 19%;
  bottom: 4%;
  transform: scale(0.62);
}

.service-strip {
  gap: 14px;
  margin: 0 clamp(16px, 5vw, 72px) 24px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(69, 44, 25, 0.05);
}

.segmented {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf6ed;
}

.segmented span,
.search-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.field-label {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.required-marker {
  color: var(--red);
  font-weight: 900;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
}

.segmented select {
  width: auto;
  min-width: 126px;
  padding: 6px 8px;
}

.service-note {
  margin-left: auto;
}

.about-view {
  padding: clamp(18px, 4vw, 48px) clamp(16px, 5vw, 72px) 60px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.about-hero > div:first-child,
.about-info-card,
.about-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(69, 44, 25, 0.06);
}

.about-hero > div:first-child {
  padding: clamp(20px, 4vw, 36px);
}

.about-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.about-hero p {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.about-info-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
}

.about-logo-card {
  place-items: center;
  text-align: center;
}

.about-logo-photo {
  display: grid;
  place-items: center;
  width: min(150px, 42vw);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 34px rgba(69, 44, 25, 0.12);
  font-size: 38px;
  font-weight: 880;
}

.about-logo-photo.has-logo {
  color: transparent;
  background-color: #fff;
}

.about-info-card strong,
.about-panel h2 {
  margin: 0;
}

.about-info-card span {
  color: var(--green);
  font-size: 22px;
  font-weight: 840;
}

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

.about-panel {
  padding: 22px;
}

.about-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.about-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.about-socials a,
.about-socials span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf6ed;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.about-socials span {
  color: var(--muted);
}

.about-faq {
  margin-top: 18px;
}

.about-faq-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.about-faq-head .eyebrow {
  margin-bottom: 4px;
}

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

.faq-item {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf6ed;
}

.faq-item h3 {
  margin: 0;
  font-size: 18px;
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.about-gallery-photo {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #fff;
  background-position: center;
  background-size: cover;
  box-shadow: 0 10px 30px rgba(69, 44, 25, 0.06);
}

.about-gallery .empty-column {
  grid-column: 1 / -1;
}

.order-shell {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
  padding: 0 clamp(16px, 5vw, 72px) 56px;
}

.category-rail,
.basket-panel,
.menu-panel,
.ops-column,
.checkout-card,
.modal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(69, 44, 25, 0.06);
}

.category-rail {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 10px;
}

.category-chip {
  padding: 12px;
  text-align: left;
}

.menu-panel {
  padding: 16px;
}

.menu-toolbar {
  gap: 12px;
  margin-bottom: 16px;
}

.menu-period-note {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.search-box {
  display: grid;
  gap: 6px;
  flex: 1;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  background: #fbf6ed;
  border-color: var(--line);
}

.filter-toggle input {
  width: auto;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr));
  gap: 9px;
}

.menu-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 11px;
  min-height: 140px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.dish-art {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 46% 45%, var(--dish-a) 0 16%, transparent 17%),
    radial-gradient(circle at 62% 58%, var(--dish-b) 0 15%, transparent 16%),
    radial-gradient(circle at 32% 62%, var(--dish-c) 0 13%, transparent 14%),
    radial-gradient(circle, #fff7df 0 48%, #d8c098 49% 57%, transparent 58%),
    linear-gradient(135deg, #50322a, #ba6544);
}

.dish-photo {
  background-position: center !important;
  background-size: cover !important;
}

.dish-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.65), transparent 22%),
    linear-gradient(135deg, color-mix(in srgb, var(--dish-a) 78%, #ffffff), var(--dish-b));
}

.dish-placeholder::before {
  content: "";
  position: absolute;
  inset: 16%;
  border: 10px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(32, 28, 24, 0.16);
}

.dish-placeholder span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.menu-card h3,
.menu-card p {
  margin: 0;
}

.menu-card p {
  line-height: 1.45;
  font-size: 14px;
}

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

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.tag {
  padding: 4px 7px;
  border-radius: 8px;
  background: #f2e7d8;
  color: #5c4a38;
  font-size: 12px;
  font-weight: 720;
}

.add-button {
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  padding: 10px 12px;
}

.basket-panel {
  position: sticky;
  top: 94px;
  padding: 16px;
  overscroll-behavior: contain;
}

.close-basket {
  display: none !important;
}

.basket-header {
  justify-content: space-between;
  margin-bottom: 14px;
}

.basket-header h2,
.dashboard h2,
.drawer-head h2,
.modal-body h2 {
  margin: 0;
}

.basket-items {
  display: grid;
  gap: 10px;
  max-height: 42vh;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.basket-line {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.basket-line header,
.quantity,
.line-actions,
.basket-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.basket-line small {
  color: var(--muted);
  line-height: 1.4;
}

.quantity {
  justify-content: flex-start;
}

.quantity button,
.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #f1e6d6;
  border-color: var(--line);
  font-weight: 850;
}

.remove-button {
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 750;
}

.basket-empty {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed #d7c9b5;
  border-radius: 8px;
  background: #fffaf2;
  text-align: center;
}

.basket-summary {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.total-row {
  font-size: 20px;
}

.checkout-button {
  width: 100%;
  margin-top: 16px;
}

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

.checkout-drawer,
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: stretch;
  justify-content: center;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(32, 28, 24, 0.48);
}

.checkout-drawer.is-open,
.modal.is-open {
  display: flex;
}

.checkout-card,
.waiting-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  margin: auto 0;
}

.checkout-card {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.checkout-service-choice {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
}

.checkout-service-choice > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.service-choice-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-choice-buttons button {
  display: grid;
  gap: 4px;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 14px;
  text-align: left;
}

.service-choice-buttons button.is-active {
  border-color: var(--brand-color, var(--red));
  background: color-mix(in srgb, var(--brand-color, var(--red)) 8%, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-color, var(--red)) 16%, transparent);
}

.service-choice-buttons strong {
  font-size: 16px;
}

.service-choice-buttons small {
  color: var(--muted);
}

.service-choice-buttons small.is-fee-highlight {
  color: var(--ink);
  font-weight: 880;
}

.checkout-privacy-note {
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf6;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.checkout-privacy-note a,
.site-footer a,
.legal-panel a {
  color: var(--brand-color, var(--red));
  font-weight: 800;
}

.checkout-payment-select {
  /* Kept as the submitted form value while the visible card buttons drive the checkout UI. */
  display: none !important;
}

.stripe-checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(32, 28, 24, 0.62);
}

.stripe-checkout-modal.is-open {
  display: flex;
}

.stripe-checkout-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: var(--shadow);
  padding: 18px;
}

.stripe-embedded-checkout {
  min-height: 520px;
  margin-top: 12px;
}

.stripe-checkout-help {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.payment-loading {
  position: fixed;
  inset: 0;
  z-index: 68;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(32, 28, 24, 0.5);
}

.payment-loading.is-visible {
  display: flex;
}

.payment-loading div {
  display: grid;
  gap: 6px;
  width: min(360px, 100%);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: var(--shadow);
  text-align: center;
}

.payment-loading strong {
  font-size: 18px;
}

.payment-loading span {
  color: var(--muted);
  font-size: 14px;
}

.waiting-panel {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(32, 28, 24, 0.55);
}

.waiting-card {
  position: relative;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.waiting-panel.is-open {
  display: flex;
}

.waiting-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.order-status-mini {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 54;
  display: grid;
  gap: 2px;
  min-width: 176px;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-align: left;
  box-shadow: var(--shadow);
}

.order-status-mini[hidden] {
  display: none;
}

.order-status-mini span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.order-status-mini.is-accepted span {
  color: #8fe0b8;
}

.order-status-mini.is-rejected span {
  color: #ffaaa0;
}

.waiting-card h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.05;
}

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

.waiting-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf6ed;
}

.waiting-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(217, 164, 65, 0.18);
}

.waiting-dot.is-accepted {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(29, 122, 84, 0.16);
}

.waiting-dot.is-rejected {
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(185, 39, 39, 0.16);
}

.waiting-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.waiting-details div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.waiting-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.waiting-details dd {
  margin: 5px 0 0;
  font-weight: 850;
}

.drawer-head {
  justify-content: space-between;
  margin-bottom: 18px;
}

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

.admin-field-full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 720;
}

textarea {
  resize: vertical;
}

.address-lookup {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.address-lookup .address-select-field,
.address-lookup .manual-address-field,
.address-lookup .lookup-help {
  grid-column: 1 / -1;
}

.address-select-field[hidden],
.manual-address-field[hidden] {
  display: none !important;
}

.lookup-button {
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 11px 14px;
  font-weight: 820;
}

.lookup-button:disabled {
  opacity: 0.62;
}

.lookup-help {
  color: var(--muted);
  font-size: 12px;
}

.manual-address-field:not([hidden]) {
  padding: 12px;
  border: 1px dashed #d7c9b5;
  border-radius: 8px;
  background: #fbf6ed;
}

.manual-address-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.checkout-footer {
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.checkout-footer span {
  font-size: 22px;
  font-weight: 850;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 22px clamp(16px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #fffaf2;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover,
.checkout-privacy-note a:hover,
.legal-panel a:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

.legal-back-link {
  text-decoration: none;
}

.legal-page {
  padding: clamp(22px, 5vw, 56px) clamp(16px, 5vw, 72px) 64px;
}

.legal-panel {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 10px 30px rgba(69, 44, 25, 0.06);
}

.legal-panel h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.legal-panel h2 {
  margin: 28px 0 8px;
  font-size: 22px;
}

.legal-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.legal-updated {
  margin: 12px 0 28px;
  font-weight: 740;
}

.modal-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  width: min(940px, 100%);
  height: calc(100vh - 36px);
  height: calc(100dvh - 36px);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  min-height: 0;
  overflow: hidden;
  margin: auto 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.modal-visual {
  min-height: 0;
  height: 100%;
  border-radius: 8px 0 0 8px;
}

.modal-visual.has-item-image {
  background-position: center;
  background-size: cover;
}

.modal-visual.has-item-image .plate {
  display: none;
}

.modal-body {
  display: grid;
  align-content: start;
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-body h2 {
  margin-bottom: 8px;
}

#customiseForm {
  display: grid;
  gap: 14px;
}

fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

legend {
  font-weight: 850;
  padding: 0 4px;
}

fieldset label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff;
  font-weight: 620;
}

fieldset label:has(input:checked) {
  border-color: #9fcdb4;
  background: #f1fbf5;
}

fieldset label span {
  color: var(--green);
  font-size: 13px;
  font-weight: 820;
}

.option-choice {
  display: grid;
  gap: 8px;
}

.nested-option-groups {
  display: grid;
  gap: 10px;
  margin-left: 18px;
  padding: 10px;
  border-left: 3px solid color-mix(in srgb, var(--brand-color, var(--red)) 42%, #eadfce);
  background: #fff8ef;
  border-radius: 0 8px 8px 0;
}

.nested-option-groups[hidden] {
  display: none;
}

.nested-option-groups > strong {
  color: var(--muted);
  font-size: 13px;
}

.nested-option-groups fieldset {
  background: #fff;
}

.option-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 680;
}

fieldset input {
  width: auto;
}

#customiseForm > label {
  margin-top: 2px;
}

#addToBasket {
  position: sticky;
  bottom: -24px;
  z-index: 2;
  margin-top: 2px;
  box-shadow: 0 -10px 20px rgba(255, 253, 249, 0.92);
}

.dashboard,
.admin {
  padding: clamp(20px, 5vw, 64px);
}

.dashboard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: start;
  max-width: 1180px;
  gap: 10px;
  margin-bottom: 24px;
}

.dashboard-head h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.dashboard-status-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 8px 22px rgba(69, 44, 25, 0.06);
}

.dashboard-status-card strong {
  color: var(--green);
  font-size: 14px;
}

.dashboard-status-card strong[data-status="error"] {
  color: #9d241b;
}

.dashboard-status-card span {
  color: var(--muted);
  font-size: 13px;
}

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

.dashboard-login-panel {
  max-width: 560px;
}

.dashboard-login-form {
  margin-top: 16px;
}

.ops-column {
  min-height: 420px;
  padding: 14px;
  border-color: transparent;
  color: #fff;
}

.ops-column h2 {
  color: #fff;
}

.ops-column-new {
  background: var(--order-new);
}

.ops-column-accepted {
  background: var(--order-accepted);
}

.ops-column-ready {
  background: var(--order-ready);
}

.order-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.order-ticket {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(32, 28, 24, 0.1);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(32, 28, 24, 0.12);
}

.order-ticket.is-timed-collection {
  background: #fff;
}

.order-ticket.is-asap {
  background: #fff;
}

.order-ticket.is-delivery {
  background: #fff;
}

.order-ticket.is-collapsed {
  gap: 8px;
}

.ticket-customer-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ticket-customer-summary > div {
  display: grid;
  gap: 2px;
}

.ticket-details-toggle {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(32, 28, 24, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
}

.ticket-details-toggle:hover {
  background: rgba(255, 255, 255, 0.88);
}

.ticket-collapsible {
  display: grid;
  gap: 8px;
}

.order-ticket-pending {
  background: #fff;
  animation: pendingOrderFlash 1.15s ease-in-out infinite;
}

.order-ticket.order-ticket-accepted {
  background: #fff;
  color: var(--ink);
}

.order-ticket.order-ticket-ready {
  background: #fff;
  color: var(--ink);
}

@keyframes pendingOrderFlash {
  0%,
  100% {
    border-color: rgba(32, 28, 24, 0.1);
    box-shadow: 0 8px 18px rgba(32, 28, 24, 0.12);
  }

  50% {
    border-color: #fff2b8;
    box-shadow:
      0 0 0 4px rgba(255, 242, 184, 0.72),
      0 12px 24px rgba(32, 28, 24, 0.18);
  }
}

.delivery-avatar {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid #bfddf0;
  border-radius: 999px;
  background: #ffffff;
  color: #184d75;
  font-size: 12px;
  font-weight: 840;
}

.delivery-avatar span {
  line-height: 1;
}

.ticket-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ticket-payment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid #d9cab6;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 840;
}

.ticket-payment span {
  color: var(--muted);
  font-weight: 760;
}

.ticket-payment.is-paid {
  border-color: #8fc9a8;
  background: #e8f7ee;
  color: #0f5b3c;
}

.ticket-payment.is-paid span {
  color: #176a48;
}

.ticket-payment.is-cash {
  border-color: #dfbd79;
  background: #fff6df;
  color: #6b4300;
}

.ticket-payment.is-cash span {
  color: #78530d;
}

.ticket-items,
.ticket-items-text,
.ticket-totals {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(32, 28, 24, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.ticket-items-text {
  color: inherit;
  line-height: 1.45;
}

.ticket-item-row,
.ticket-total-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.ticket-item-row span {
  display: grid;
  gap: 2px;
}

.ticket-item-name {
  display: block;
}

b.ticket-item-name {
  font-weight: 800;
}

.ticket-item-row small {
  color: inherit;
  opacity: 0.78;
}

.ticket-item-row strong,
.ticket-total-row strong {
  white-space: nowrap;
}

.ticket-included-list {
  display: grid;
  gap: 5px;
  margin: 6px 0 0 14px;
  padding: 7px 0 0 10px;
  border-left: 2px solid rgba(32, 28, 24, 0.14);
}

.ticket-included-item {
  display: grid;
  gap: 2px;
  color: inherit;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.86;
}

.ticket-included-item span {
  font-weight: 700;
}

.ticket-included-item small {
  opacity: 0.82;
}

.ticket-total-row {
  color: inherit;
  font-size: 13px;
}

.ticket-total-row.is-total {
  margin-top: 4px;
  padding-top: 7px;
  border-top: 1px solid rgba(32, 28, 24, 0.12);
  font-size: 15px;
  font-weight: 880;
}

.ticket-totals-compact {
  margin-top: 8px;
  padding: 8px;
  font-size: 12px;
}

.ticket-time {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f2e7d8;
  color: var(--ink);
  font-size: 13px;
  font-weight: 840;
}

.ticket-time.is-timed-collection {
  background: #ffe7ad;
  color: #694400;
}

.ticket-time.is-asap {
  background: #dff4e8;
  color: var(--green);
}

.ticket-time.is-delivery {
  background: #dff1ff;
  color: #184d75;
}

.order-ticket header,
.ticket-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.order-ticket ul {
  margin: 0;
  padding-left: 18px;
  color: #463d34;
}

.ticket-actions button {
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 9px 11px;
  font-weight: 780;
}

.ticket-actions-pending {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ticket-actions .danger-ticket-action {
  background: #8f3d2d;
}

.empty-column {
  color: var(--ink);
  padding: 16px;
  border: 1px dashed rgba(32, 28, 24, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.history-panel {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.compact-field {
  display: grid;
  gap: 6px;
  min-width: 170px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.compact-field input,
.compact-field select {
  min-height: 42px;
  padding: 9px 10px;
  text-transform: none;
}

.secondary-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font-weight: 820;
}

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

.danger-action {
  border: 1px solid #d8a19a;
  border-radius: 8px;
  background: #fff8f6;
  color: #9d241b;
  padding: 10px 12px;
  font-weight: 820;
}

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

.history-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.history-stat {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.history-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.history-stat strong {
  font-size: 18px;
}

.history-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.history-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 14px;
}

.history-table th,
.history-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.history-table th {
  background: #f7efe4;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

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

.status-label {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f2e7d8;
  font-size: 12px;
  font-weight: 820;
  text-transform: capitalize;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
  margin-bottom: 16px;
}

.admin-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.demo-readonly-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 0 0 16px;
  padding: 13px 16px;
  border: 1px solid #dfbd79;
  border-radius: 8px;
  background: #fff6df;
  color: #6b4300;
}

.demo-readonly-banner strong {
  color: #4d3100;
}

.demo-readonly-banner span {
  color: #78530d;
}

.is-readonly-demo .admin-form input:disabled,
.is-readonly-demo .admin-form select:disabled,
.is-readonly-demo .admin-form textarea:disabled {
  background: #f7efe4;
  color: #6b6259;
  opacity: 1;
}

.admin-panel label,
.admin-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.admin-panel input,
.admin-panel select,
.admin-panel textarea {
  display: block;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  border: 1px solid #d9cab6;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
}

.admin-panel input[type="file"] {
  padding: 9px 10px;
  font-size: 13px;
}

.admin-panel input[type="time"],
.admin-panel input[type="number"] {
  appearance: none;
  -webkit-appearance: none;
  min-inline-size: 0;
  max-inline-size: 100%;
}

.admin-panel input[type="time"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}

.admin-panel input[type="time"]::-webkit-calendar-picker-indicator {
  flex-shrink: 0;
}

.asset-preview {
  display: grid;
  min-height: 86px;
  border: 1px dashed #d9cab6;
  border-radius: 8px;
  background: #fbf6ed;
  background-position: center;
  background-size: cover;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  place-items: center;
}

.asset-preview-wide {
  min-height: 132px;
}

.asset-preview.has-image {
  border-style: solid;
}

.asset-preview.has-image span {
  opacity: 0;
}

.save-status {
  display: block;
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.save-status[data-tone="success"] {
  color: #216b4d;
}

.save-status[data-tone="error"] {
  color: #9d241b;
}

.save-status[data-tone="pending"] {
  color: var(--muted);
}

.admin-help {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.setup-result {
  margin: 14px 0 0;
  padding: 0;
}

.setup-success-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #b9dac8;
  border-radius: 8px;
  background: #edf8f1;
}

.setup-success-head h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.setup-success-head p {
  margin: 0;
  color: var(--muted);
}

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

.handover-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.handover-card h4 {
  margin: 0;
  font-size: 17px;
}

.handover-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.handover-card dl div {
  display: grid;
  gap: 6px;
}

.handover-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 840;
  text-transform: uppercase;
}

.handover-card dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.handover-card dd span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 760;
}

.handover-card small,
.handover-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.handover-card-muted {
  background: #f7efe4;
}

.copy-action {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 820;
}

.handover-checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.handover-checklist li {
  display: flex;
  gap: 10px;
  line-height: 1.45;
}

.handover-checklist span {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 2px solid #b9aa96;
  border-radius: 4px;
}

.admin-divider {
  width: 100%;
  margin: 16px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-sectioned-form {
  gap: 18px;
}

.settings-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.admin-subsection {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #efe3d2;
  border-radius: 8px;
  background: #fffaf6;
}

.admin-subsection h4 {
  margin: 0;
  font-size: 15px;
}

.asset-field-grid,
.gallery-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.7fr);
  gap: 12px;
  align-items: start;
}

.asset-field-grid label:nth-of-type(2n),
.gallery-field-grid label:nth-of-type(2n) {
  grid-column: 1 / -1;
}

.settings-section-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.settings-section-head span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 860;
}

.settings-section-head h3 {
  margin: 0;
  font-size: 18px;
}

.settings-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.staff-account-panel {
  display: grid;
  gap: 12px;
}

.staff-account-panel .admin-help {
  margin-top: 0;
}

.staff-password-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.menu-options-builder {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.menu-type-guide {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff;
}

.menu-type-guide strong {
  font-size: 15px;
}

.menu-type-guide span {
  color: var(--muted);
  line-height: 1.45;
}

.option-template-actions,
.option-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-option-groups {
  display: grid;
  gap: 12px;
}

.admin-option-group {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff;
}

.admin-option-group-head {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 0.8fr) minmax(130px, 0.6fr);
  gap: 10px;
}

.admin-choice-list {
  display: grid;
  gap: 8px;
}

.admin-choice-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1fr) 130px auto;
  align-items: end;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.admin-choice-row.is-manual-choice {
  grid-template-columns: minmax(0, 1fr) 130px auto;
}

.admin-choice-row .icon-button {
  width: 42px;
  height: 42px;
}

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

.switch-group {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.switch-group legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-switches label,
.admin-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.admin-switches input,
.admin-check input {
  width: auto;
}

.admin-menu-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 16px;
}

.history-actions [data-menu-builder] {
  min-width: 104px;
}

.admin-menu-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}

.admin-menu-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.admin-menu-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.admin-menu-section {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4eadc;
  color: var(--ink);
  font-size: 12px;
  font-weight: 880;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: grab;
}

.admin-menu-section.is-dragging,
.admin-menu-row.is-dragging {
  opacity: 0.58;
  cursor: grabbing;
}

.admin-menu-section.is-drop-target,
.admin-menu-row.is-drop-target {
  border-color: #2f6f9f;
  box-shadow: 0 0 0 2px rgba(47, 111, 159, 0.14);
}

.admin-menu-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  text-align: left;
  cursor: grab;
}

.admin-menu-row.is-active {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(185, 39, 39, 0.12);
}

.drag-handle {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbf6ed;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-menu-row-main {
  display: grid;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.admin-menu-row small {
  color: var(--muted);
}

.admin-menu-row em {
  align-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2e7d8;
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
}

.sort-order-field {
  /* Drag-to-reorder now owns display order; this hidden input preserves the saved value. */
  display: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  transform: translateY(150%);
  max-width: 340px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.toast.is-visible {
  transform: translateY(0);
}

@media (max-width: 1120px) {
  #restaurantSettingsForm .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .order-shell {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .basket-panel {
    position: fixed;
    inset: 76px 0 0 auto;
    z-index: 35;
    display: flex;
    flex-direction: column;
    width: min(420px, 100%);
    max-height: calc(100dvh - 76px);
    transform: translateX(105%);
    transition: transform 0.2s ease;
    border-radius: 0;
    overflow: hidden;
    touch-action: pan-y;
  }

  .basket-items {
    flex: 1;
    min-height: 0;
    max-height: none;
  }

  .basket-panel.is-open {
    transform: translateX(0);
  }

  .close-basket {
    display: grid !important;
  }
}

@media (max-width: 860px) {
  .dashboard,
  .admin {
    padding: 18px 12px 28px;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand {
    order: 1;
    width: 100%;
    min-width: 0;
  }

  .nav-tabs {
    order: 2;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .basket-toggle {
    order: 3;
    flex: 0 0 auto;
    margin-left: 0;
  }

  .nav-tab {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 10px;
    text-align: center;
  }

  .hero,
  .modal-card,
  .about-hero,
  .dashboard-head,
  .ops-grid,
  .about-grid,
  .faq-grid,
  .admin-grid,
  .admin-menu-layout {
    grid-template-columns: 1fr;
  }

  .admin .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-option-group-head,
  .admin-choice-row {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .history-head,
  .history-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .history-panel,
  .admin-panel,
  .ops-column {
    padding: 12px;
  }

  .history-panel {
    margin-top: 14px;
  }

  .compact-field {
    min-width: 0;
  }

  .history-actions .secondary-action,
  .admin-actions .primary-action,
  .admin-actions .secondary-action,
  .admin-actions .danger-action,
  .admin-panel > .primary-action,
  .admin-form > .primary-action {
    width: 100%;
  }

  .ops-column {
    min-height: 0;
  }

  .order-ticket header,
  .about-faq-head,
  .admin-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .admin-menu-card {
    padding: 12px;
  }

  .admin-menu-list {
    max-height: none;
    padding-right: 0;
  }

  .admin-switches {
    grid-template-columns: 1fr;
  }

  .checkout-card .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .setup-success-head,
  .handover-card dd {
    align-items: stretch;
    flex-direction: column;
  }

  .handover-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .about-view {
    padding: 18px 12px 32px;
  }

  .about-hero > div:first-child,
  .about-info-card,
  .about-panel {
    padding: 16px;
  }

  .about-gallery {
    grid-template-columns: 1fr;
  }

  .about-gallery-photo {
    min-height: 210px;
  }

  .food-photo {
    min-height: 310px;
  }

  .service-strip,
  .menu-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .service-note {
    margin-left: 0;
  }

  .order-shell {
    grid-template-columns: 1fr;
  }

  .category-rail {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .category-chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .menu-grid,
  .form-grid,
  .waiting-details {
    grid-template-columns: 1fr;
  }

  .modal-visual {
    min-height: 220px;
    border-radius: 8px 8px 0 0;
  }
}

@media (max-width: 700px) {
  .asset-field-grid,
  .gallery-field-grid {
    grid-template-columns: 1fr;
  }

  .asset-field-grid label,
  .gallery-field-grid label {
    grid-column: 1 / -1;
  }

  .modal {
    align-items: stretch;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }

  .modal-visual {
    min-height: 120px;
    max-height: 140px;
    border-radius: 0;
  }

  .modal-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 18px;
    padding-bottom: 28px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    background: #fff;
  }

  #addToBasket {
    bottom: -18px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 38px;
  }

  .menu-card {
    grid-template-columns: 112px 1fr;
    gap: 10px;
    min-height: 132px;
    padding: 9px;
  }

  .dish-art {
    min-height: 118px;
  }

  .checkout-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .service-choice-buttons {
    grid-template-columns: 1fr;
  }

  .ticket-customer-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .ticket-details-toggle {
    width: 100%;
  }

  .checkout-card {
    padding: 16px;
  }
}

@media (max-width: 620px) {
  .checkout-drawer {
    align-items: stretch;
    padding: 0;
  }

  .checkout-card {
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual.has-hero-image.is-sliding {
    animation: none;
  }
}
