:root {
  color-scheme: light;
  --bg: #eef2f7;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --panel-3: #eef2f7;
  --line: #d6dee8;
  --text: #19140d;
  --muted: #657184;
  --faint: #8a96a6;
  --accent: #d9941f;
  --accent-2: #0f9f63;
  --danger: #d64b3d;
  --shadow: 0 24px 80px rgba(32, 39, 48, 0.2);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  margin: 0;
}

.demo-store-banner {
  align-items: center;
  background: rgba(25, 20, 13, 0.88);
  border: 1px solid rgba(217, 148, 31, 0.58);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(25, 20, 13, 0.18);
  color: #f3ba45;
  display: flex;
  gap: 0;
  justify-content: center;
  min-height: 0;
  padding: 4px 10px;
  pointer-events: none;
  position: fixed;
  text-align: center;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
}

.demo-store-banner strong {
  background: transparent;
  border: 0;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0;
  text-transform: uppercase;
}

.demo-store-banner span {
  display: none;
}

.demo-lock-note {
  background: #fff3f3;
  border: 2px solid rgba(214, 75, 61, 0.36);
  border-radius: 8px;
  color: #8f1f16;
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  padding: 12px;
}

.demo-lock-note strong {
  font-size: 14px;
  font-weight: 950;
}

.demo-lock-note span {
  color: #8f1f16;
  font-weight: 800;
  line-height: 1.35;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

input,
textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.kiosk {
  background: var(--panel-2);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  box-shadow: 0 18px 70px rgba(32, 39, 48, 0.12);
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 360px;
  margin-inline: auto;
  max-width: 1540px;
  min-height: 100vh;
  width: min(100%, calc(100vw - 48px));
}

.side-nav,
.checkout {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--line);
}

.side-nav {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-height: 60px;
}

.brand .mark {
  align-items: center;
  background: var(--accent);
  border-radius: 8px;
  color: #15100a;
  display: flex;
  font-weight: 950;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.brand strong,
.brand span,
.info-card strong,
.info-card span {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand span,
.info-card span {
  color: var(--muted);
  font-size: 13px;
}

.brand-powered {
  color: var(--accent);
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  margin-top: 2px;
  text-decoration: none;
  text-transform: uppercase;
}

.platform-credit {
  color: var(--faint);
  display: grid;
  font-size: 11px;
  gap: 3px;
  margin-top: auto;
}

.platform-credit a {
  color: inherit;
  text-decoration: none;
}

.categories {
  background: rgba(255, 255, 255, 0.98);
  display: grid;
  gap: 8px;
  margin: -4px -4px 0;
  padding: 4px;
  position: sticky;
  top: 38px;
  z-index: 12;
}

.categories button,
.step,
.ghost {
  background: transparent;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  text-align: left;
}

.categories button {
  border: 1px solid transparent;
  padding: 0 14px;
  text-transform: capitalize;
}

.categories button.is-active,
.step.is-active {
  background: linear-gradient(90deg, rgba(224, 170, 62, 0.26), rgba(224, 170, 62, 0.06));
  border-color: rgba(224, 170, 62, 0.55);
  color: var(--text);
}

.info-card,
.payment-box,
.cash-note,
.ip-warning,
.pickup-card {
  border: 1px solid rgba(224, 170, 62, 0.42);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.info-card {
  margin-top: auto;
}

.payment-box.is-success {
  background: #e8f7ef;
  border-color: #42aa78;
  color: #075d39;
}

.payment-box.is-success span {
  color: #17734b;
}

.payment-box.is-error {
  background: #fff0ef;
  border-color: #d94b43;
  color: #8d1914;
}

.payment-box.is-error span {
  color: #9b302a;
}

.payment-box.is-pending {
  background: #fff8e8;
}

.catalog {
  min-width: 0;
  padding: 18px;
}

.topbar,
.top-sellers header,
.menu-list-section header,
.checkout-head {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.topbar {
  margin-bottom: 8px;
}

.topbar h1 {
  font-size: 30px;
  line-height: 1;
  margin: 0;
  max-width: 540px;
}

.topbar p {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.step {
  align-items: center;
  border: 1px solid var(--line);
  display: flex;
  font-size: 13px;
  gap: 6px;
  min-height: 34px;
  padding: 0 9px;
}

.step span {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: flex;
  font-size: 11px;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.fulfilment-start {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 118px minmax(240px, 1fr) minmax(240px, 0.95fr);
  margin-bottom: 10px;
  padding: 9px;
}

.fulfilment-summary {
  display: none;
}

.fulfilment-start h2,
.top-sellers h2,
.menu-list-section h2,
.checkout-head h2 {
  margin: 3px 0 0;
}

.fulfilment-start h2 {
  font-size: 20px;
  line-height: 1.08;
}

.fulfilment-choice,
.location-choice,
.start-location-options,
.segmented,
.payment-methods {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.fulfilment-choice button,
.location-choice button,
.start-location-options button,
.segmented button,
.payment-methods button {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  min-height: 62px;
  padding: 10px 11px;
  position: relative;
  text-align: left;
}

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

.segmented button span,
.segmented button small {
  display: block;
}

.segmented button small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  margin-top: 4px;
}

.fulfilment-choice button strong,
.location-choice button strong,
.start-location-options button strong {
  display: block;
  font-size: 16px;
  line-height: 1.15;
}

.fulfilment-choice button span,
.location-choice button span,
.start-location-options button span,
.payment-methods button span,
.pickup-card span,
.payment-box span,
.cash-note span,
.ip-warning span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 3px;
}

.fulfilment-choice button em,
.location-choice button em,
.start-location-options button em {
  background: var(--accent);
  border-radius: 999px;
  color: #16100b;
  display: inline-block;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  margin-top: 8px;
  padding: 5px 9px;
}

.fulfilment-choice button.is-selected,
.location-choice button.is-selected,
.start-location-options button.is-selected,
.start-options button.is-selected,
.segmented button.is-selected,
.payment-methods button.is-selected,
.choice-grid button.is-selected {
  background: linear-gradient(135deg, #fff1d2, #fff8ed);
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: inset 0 0 0 2px rgba(217, 148, 31, 0.42), 0 10px 22px rgba(217, 148, 31, 0.18);
}

.fulfilment-choice button.is-selected strong,
.location-choice button.is-selected strong,
.start-location-options button.is-selected strong {
  color: #7a4300;
  font-size: 17px;
}

.fulfilment-choice button.is-selected span,
.location-choice button.is-selected span,
.start-location-options button.is-selected span {
  color: #4b3a25;
}

.choice-grid button.is-selected span {
  color: var(--accent);
}

.choice-grid .choice-quantity.is-selected {
  background: linear-gradient(135deg, #fff1d2, #fff8ed);
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: inset 0 0 0 2px rgba(217, 148, 31, 0.3);
}

.promo-grid {
  display: block;
  margin-bottom: 12px;
}

.promo-card {
  align-items: center;
  background: linear-gradient(90deg, #ffffff, #f3f6fb);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: flex;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  text-align: left;
  width: 100%;
}

.promo-card.is-main {
  background: linear-gradient(90deg, rgba(217, 148, 31, 0.2), #fff7e8);
  cursor: pointer;
}

.promo-card span,
.category-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.promo-card strong {
  font-size: 18px;
  line-height: 1;
}

.promo-card em {
  color: var(--muted);
  font-style: normal;
  margin-left: auto;
  white-space: nowrap;
}

.top-sellers,
.menu-list-section {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.top-sellers header button,
.menu-card footer button,
.modal-actions > button,
.submit,
.inline button,
#geocode,
.location-button {
  background: var(--accent);
  border-radius: 7px;
  color: #16100b;
  cursor: pointer;
  font-weight: 900;
  min-height: 44px;
  padding: 0 14px;
}

.top-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seller-card,
.menu-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  overflow: hidden;
}

.seller-card {
  contain-intrinsic-size: 220px;
  content-visibility: auto;
  cursor: pointer;
  display: grid;
  min-height: 220px;
  padding: 0;
  position: relative;
  text-align: left;
}

.seller-card picture,
.seller-card img {
  height: 135px;
}

.seller-card picture,
.image-button picture,
.cart-item picture,
.upsell-grid picture,
.modal-picture {
  display: block;
  overflow: hidden;
  width: 100%;
}

.seller-card img {
  object-fit: cover;
  object-position: center 68%;
  width: 100%;
}

.seller-card span {
  background: var(--accent);
  border-radius: 6px;
  color: #15100a;
  font-size: 12px;
  font-weight: 950;
  left: 10px;
  padding: 5px 8px;
  position: absolute;
  top: 10px;
}

.seller-card strong,
.seller-card em {
  display: block;
  padding: 0 12px;
}

.seller-card strong {
  font-size: 16px;
  margin-top: 8px;
}

.seller-card em {
  color: var(--accent);
  font-style: normal;
  font-weight: 900;
  margin-bottom: 12px;
}

.menu-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.menu-card {
  display: grid;
  min-height: 360px;
}

.image-button {
  background: var(--panel-3);
  cursor: pointer;
  height: 155px;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.image-button picture,
.modal-picture {
  height: 100%;
}

.image-button img,
.cart-item img,
.modal-image {
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
  width: 100%;
}

.menu-card-body {
  display: grid;
  gap: 9px;
  grid-template-rows: 1fr auto auto;
  padding: 13px;
}

h2,
h3,
p {
  margin-top: 0;
}

.menu-card h3 {
  font-size: 20px;
  line-height: 1.08;
  margin: 3px 0 6px;
}

.menu-card p,
.modal-heading p,
.cart-item p,
.done p,
.option-group header p {
  color: var(--muted);
}

.badges,
.included {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badges span,
.included span {
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
}

.menu-card footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.menu-card footer strong {
  color: var(--accent);
  font-size: 22px;
}

.checkout {
  border-left: 1px solid var(--line);
  max-height: 100vh;
  overflow: auto;
  padding: 18px;
  position: sticky;
  top: 0;
}

.has-checkout-modal {
  overflow: hidden;
}

.checkout-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 30;
}

.checkout-modal-backdrop {
  background: rgba(20, 28, 38, 0.5);
  border: 0;
  cursor: default;
  inset: 0;
  padding: 0;
  position: absolute;
}

.checkout-dialog {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  max-height: calc(100vh - 48px);
  max-width: 1180px;
  overflow: auto;
  padding: 26px;
  position: relative;
  width: min(1180px, calc(100vw - 48px));
}

.checkout-dialog .checkout-head h2 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 0.95;
}

.checkout-dialog .cart-lines {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-dialog .checkout-section {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 18px;
  padding: 16px;
}

.checkout-dialog .submit {
  font-size: 18px;
  min-height: 58px;
  position: sticky;
  bottom: 0;
}

.checkout-close {
  align-items: center;
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-size: 18px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  position: sticky;
  top: 0;
  justify-self: end;
  width: 42px;
  z-index: 2;
}

.cart-lines.is-compact .cart-item {
  grid-template-columns: 56px minmax(0, 1fr);
}

.cart-lines.is-compact .cart-item img {
  height: 56px;
}

.cart-lines.is-compact .cart-item ul,
.cart-lines.is-compact .cart-item footer {
  display: none;
}

.checkout-head {
  margin-bottom: 16px;
}

.checkout-head h2 {
  font-size: 28px;
}

.checkout-head > strong {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: #15100a;
  display: flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.cart-lines {
  display: grid;
  gap: 12px;
}

.cart-item {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 76px minmax(0, 1fr);
  padding: 10px;
}

.cart-item img {
  border-radius: 7px;
  height: 76px;
}

.cart-item picture {
  border-radius: 7px;
  height: 76px;
}

.cart-item header,
.cart-item li,
.totals div,
.limit-box div,
.delivery-calculator div {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.cart-item header strong {
  min-width: 0;
}

.cart-item p {
  font-size: 13px;
  margin: 3px 0 6px;
}

.cart-item ul {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-item em {
  color: var(--faint);
  font-style: normal;
  white-space: nowrap;
}

.cart-item footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.cart-item footer strong {
  min-width: 26px;
  text-align: center;
}

.cart-item footer button,
.qty-control button,
.icon-close {
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  min-height: 32px;
  min-width: 34px;
}

.cart-item footer button[data-edit],
.cart-item footer button[data-remove] {
  padding: 0 10px;
}

.cart-item footer button[data-edit] {
  margin-left: auto;
}

.cart-item footer button[data-remove] {
  margin-left: 0;
}

.upsell {
  background: #fff7e8;
  border: 1px solid rgba(217, 148, 31, 0.38);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
}

.upsell header {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.upsell h3 {
  margin: 3px 0 0;
}

.upsell header > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  text-align: right;
}

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

.upsell-grid button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 64px;
  padding: 8px;
  text-align: left;
}

.upsell-grid img {
  border-radius: 6px;
  height: 48px;
  object-fit: cover;
  width: 48px;
}

.upsell-grid picture {
  border-radius: 6px;
  height: 48px;
  width: 48px;
}

.upsell-grid strong,
.upsell-grid span {
  display: block;
}

.upsell-grid span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  margin-top: 2px;
}

.upsell.is-compact .upsell-grid {
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upsell.is-compact {
  gap: 8px;
  margin-top: 10px;
  padding: 9px;
}

.upsell.is-compact header {
  align-items: center;
}

.upsell.is-compact header > span {
  display: none;
}

.upsell.is-compact h3 {
  font-size: 14px;
  margin-top: 1px;
}

.upsell.is-compact .category-label {
  font-size: 10px;
}

.upsell.is-compact .upsell-grid button {
  gap: 6px;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 48px;
  padding: 6px;
}

.upsell.is-compact .upsell-grid img {
  border-radius: 5px;
  height: 34px;
  width: 34px;
}

.upsell.is-compact .upsell-grid picture {
  border-radius: 5px;
  height: 34px;
  width: 34px;
}

.upsell.is-compact .upsell-grid strong {
  font-size: 12px;
  line-height: 1.1;
}

.upsell.is-compact .upsell-grid span {
  font-size: 11px;
  margin-top: 1px;
}

.empty-cart {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 20px;
}

.cart-lite {
  background: rgba(236, 246, 239, 0.88);
  border: 1px solid rgba(15, 159, 99, 0.22);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 5px;
  padding: 14px;
}

.cart-lite strong {
  font-size: 18px;
}

.cart-lite span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.cart-lite-lines {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.cart-lite-line {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 159, 99, 0.16);
  border-radius: 7px;
  display: grid;
  gap: 3px;
  padding: 8px 9px;
}

.cart-lite-line header {
  align-items: baseline;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.cart-lite-line strong {
  font-size: 14px;
  line-height: 1.18;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-lite-line header span {
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.cart-lite-line p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-lite-more {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin: 0;
}

.checkout-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
}

.checkout-section h3 {
  margin: 0;
}

.customer-fields-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(170px, 0.9fr) minmax(190px, 1.1fr);
}

.customer-notes-field {
  grid-column: 1 / -1;
}

label {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.field-label {
  scroll-margin-top: 96px;
}

.field-title {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  gap: 4px;
  font-weight: 800;
}

.field-title small {
  background: #eef2ff;
  border: 1px solid #dbe3ff;
  border-radius: 999px;
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  text-transform: uppercase;
}

.field-title em {
  color: #dc2626;
  font-style: normal;
  font-weight: 1000;
}

.field-label.is-auto-filled:not(.is-missing) {
  color: #8a4f00;
}

.field-label.is-auto-filled:not(.is-missing) .field-title {
  color: #8a4f00;
}

.field-label.is-auto-filled:not(.is-missing) input {
  background: #fff8e8;
  border-color: #e59a1a;
  box-shadow: 0 0 0 3px rgba(229, 154, 26, 0.16);
}

.field-label.is-missing {
  color: #991b1b;
  scroll-margin-block: 24px;
}

.field-label.is-missing .field-title {
  color: #991b1b;
}

.field-label.is-missing input {
  background: #fff1f2;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.field-error {
  color: #b91c1c;
  font-size: 12px;
  font-weight: 900;
}

.field-hint {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.check-row {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-columns: 20px 1fr;
}

.check-row input {
  min-height: auto;
  width: 18px;
}

.inline {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
}

#suggestions {
  display: grid;
  gap: 8px;
}

.address-suggestions {
  display: grid;
  gap: 8px;
}

.address-suggestions p,
#suggestions > p {
  background: #fff7e5;
  border: 1px solid #efc46f;
  border-radius: 7px;
  color: #5d3b06;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  padding: 10px 12px;
}

#suggestions button {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  line-height: 1.35;
  padding: 10px;
  text-align: left;
}

.delivery-map-card {
  background: linear-gradient(180deg, #ffffff, #f4f7fb);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 10px;
}

.schedule-box {
  background: #f8fbff;
  border: 1px solid #dbe6f4;
  border-radius: 10px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.schedule-box.is-required {
  background: #fff7ed;
  border-color: #fdba74;
}

.schedule-box.is-blocked {
  background: #fff1f2;
  border-color: #fda4af;
}

.schedule-box strong {
  color: var(--text);
}

.schedule-box-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.schedule-box-head > div {
  display: grid;
  gap: 4px;
}

.schedule-box span,
.schedule-box p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}

.schedule-box .schedule-error {
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 10px;
  color: #991b1b;
  font-weight: 800;
  padding: 10px 12px;
}

.schedule-box label {
  margin-top: 2px;
}

.schedule-box .schedule-time-field {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  gap: 8px;
  padding: 10px;
}

.schedule-box .schedule-time-field span {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.schedule-box .schedule-time-field input {
  background: #f8fafc;
  border-color: #dbe6f4;
  font-size: 16px;
  font-weight: 800;
}

.schedule-box .schedule-hint {
  color: #475569;
  font-weight: 700;
}

.timing-asap {
  justify-self: start;
  min-height: 40px;
  padding: 0 12px;
}

.delivery-map-card > header,
.delivery-map-preview-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.delivery-map-card > header strong,
.delivery-map-card > header span,
.delivery-map-preview-head strong,
.delivery-map-preview-head span {
  display: block;
}

.delivery-map-card > header span,
.delivery-map-preview-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
}

.delivery-map-preview {
  background: #f8fafc;
  border: 1px solid #dbe6f4;
  border-radius: 10px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.delivery-map-preview .osm-map {
  height: 180px;
}

.delivery-map-preview-head button {
  background: var(--panel-3);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
  min-height: 36px;
  padding: 0 10px;
}

.location-button {
  width: 100%;
}

.delivery-address-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 150px;
}

.delivery-address-grid input,
.delivery-map-card > label input {
  background: #fff;
}

.delivery-address-grid label:nth-child(3) {
  grid-column: span 1;
}

.delivery-address-grid label:nth-child(4) {
  grid-column: span 1;
}

.delivery-apply-button {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.delivery-apply-button.is-required {
  background: #0f9f63;
  border-color: #0f9f63;
  color: #ffffff;
}

.delivery-apply-button:disabled {
  background: #d9e0e8;
  border-color: #c9d2dd;
  color: #6b7785;
  cursor: not-allowed;
}

.location-confirmation {
  background: #fff7e5;
  border: 1px solid #efc46f;
  border-radius: 7px;
  color: #5d3b06;
  display: grid;
  gap: 3px;
  line-height: 1.35;
  padding: 10px;
}

.location-confirmation strong,
.location-confirmation span {
  display: block;
}

.location-confirmation span {
  font-size: 12px;
}

.location-confirmation.is-review {
  background: #fff4d6;
  border: 2px solid #e59a1a;
  color: #744000;
  box-shadow: 0 0 0 3px rgba(229, 154, 26, 0.12);
}

.location-confirmation.is-ok {
  background: #e9fbf2;
  border-color: #71d3a2;
  color: #0f5f3b;
}

.location-confirmation.is-pending {
  background: #eef8ff;
  border-color: #6bb9f0;
  color: #0d4f78;
}

.location-confirmation.is-required {
  background: #fff1f1;
  border-color: #ef6f6f;
  color: #8f1f1f;
}

.osm-map {
  background: #dce7f1;
  border: 1px solid #bdcad8;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  cursor: grab;
  height: 250px;
  isolation: isolate;
  overscroll-behavior: contain;
  overflow: hidden;
  position: relative;
  touch-action: none;
  user-select: none;
}

.osm-map.is-dragging {
  cursor: grabbing;
}

.delivery-map-card.is-expanded .osm-map {
  height: clamp(520px, 72vh, 780px);
}

.map-tile {
  height: 256px;
  max-width: none;
  position: absolute;
  transform: translateZ(0);
  user-select: none;
  width: 256px;
  z-index: 1;
}

.map-zone {
  background: rgba(224, 170, 62, 0.08);
  background: color-mix(in srgb, var(--zone-color) 12%, transparent);
  border: 2px solid var(--zone-color);
  border-radius: 50%;
  opacity: 0.85;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.map-controls {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(20, 31, 45, 0.16);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(28, 36, 46, 0.18);
  display: flex;
  gap: 6px;
  left: 8px;
  padding: 5px;
  position: absolute;
  top: 8px;
  z-index: 8;
}

.map-controls button {
  align-items: center;
  background: #111827;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  line-height: 1;
  min-height: 34px;
  padding: 0;
  width: 34px;
}

.map-controls span {
  color: #182231;
  font-size: 11px;
  font-weight: 900;
  min-width: 52px;
  text-align: center;
}

.map-marker {
  align-items: center;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.map-marker.is-restaurant {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #15100a;
  font-size: 12px;
  font-weight: 950;
  height: 38px;
  min-width: 38px;
  padding: 0;
  white-space: nowrap;
  width: 38px;
}

.map-marker.is-restaurant.is-active {
  z-index: 5;
}

.map-marker-dot {
  align-items: center;
  background: #ffffff;
  border: 3px solid #15100a;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(28, 36, 46, 0.28);
  display: flex;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}

.map-marker.is-restaurant.is-active .map-marker-dot {
  background: var(--accent);
  border-color: #15100a;
}

.map-marker-label {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(20, 31, 45, 0.16);
  border-radius: 999px;
  bottom: 42px;
  box-shadow: 0 8px 18px rgba(28, 36, 46, 0.18);
  color: #15100a;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  left: 50%;
  line-height: 1;
  max-width: 150px;
  overflow: hidden;
  padding: 6px 8px;
  position: absolute;
  text-overflow: ellipsis;
  transform: translateX(-50%);
  white-space: nowrap;
}

.map-marker.is-selected {
  background: #fff;
  border: 5px solid var(--accent-2);
  box-shadow: 0 0 0 4px rgba(15, 159, 99, 0.24), 0 10px 24px rgba(28, 36, 46, 0.28);
  height: 24px;
  width: 24px;
}

.map-marker.is-pending {
  background: #fff;
  border: 5px solid #ef9f1a;
  box-shadow: 0 0 0 5px rgba(239, 159, 26, 0.26), 0 10px 24px rgba(28, 36, 46, 0.28);
  height: 28px;
  width: 28px;
  z-index: 6;
}

.map-hint,
.map-attribution {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 7px 8px;
  position: absolute;
  z-index: 5;
}

.map-hint {
  bottom: 8px;
  left: 8px;
}

.map-attribution {
  bottom: 8px;
  color: var(--muted);
  right: 8px;
  text-decoration: none;
}

.delivery-calculator,
.limit-box,
.totals {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
}

.delivery-calculator {
  background: rgba(238, 242, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-top: 0;
  padding: 10px;
}

.limit-box {
  color: var(--muted);
}

.limit-box.is-warning {
  border-color: var(--danger);
  color: var(--text);
}

.limit-box p {
  color: var(--danger);
  font-size: 13px;
  margin: 0;
}

.fee-note,
.message {
  color: var(--accent);
  font-size: 13px;
  margin: 0;
  min-height: 20px;
}

.grand {
  color: var(--accent);
  font-size: 21px;
}

.submit {
  background: var(--accent-2);
  margin-top: 12px;
  width: 100%;
}

.submit.is-required {
  background: #0f9f63;
  color: #ffffff;
}

.payment-action {
  align-items: center;
  border: 0;
  display: flex;
  justify-content: center;
  text-decoration: none;
}

.payment-qr {
  display: grid;
  justify-content: center;
  margin-top: 12px;
}

.payment-qr img {
  background: #fff;
  border-radius: 8px;
  max-width: min(240px, 80vw);
  padding: 12px;
}

.ghost {
  border: 1px solid var(--line);
  margin-top: 8px;
  padding: 0 14px;
  text-align: center;
  width: 100%;
}

.cash-note {
  border-color: rgba(131, 196, 127, 0.55);
}

.ip-warning {
  border-color: rgba(223, 113, 93, 0.55);
}

.legal-consents {
  display: grid;
  gap: 8px;
}

.legal-consents .check-row {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: 22px 1fr;
  padding: 10px;
}

.legal-consents .check-row input {
  margin-top: 2px;
}

.legal-consents .check-row.legal-collective {
  background: rgba(235, 255, 244, 0.88);
  border-color: rgba(15, 159, 99, 0.62);
  box-shadow: 0 8px 22px rgba(15, 159, 99, 0.08);
}

.legal-consents .check-row.legal-opt-in.is-ok {
  background: rgba(235, 255, 244, 0.88);
  border-color: rgba(15, 159, 99, 0.62);
  box-shadow: 0 8px 22px rgba(15, 159, 99, 0.08);
}

.legal-consents .check-row span {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.legal-consents .check-row.is-required.is-missing {
  border-color: rgba(223, 113, 93, 0.78);
  background: rgba(255, 238, 235, 0.82);
}

.legal-consents .check-row.is-required.has-validation-error {
  background: #fff1f2;
  border: 2px solid #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.13);
  scroll-margin-block: 24px;
}

.legal-error {
  color: #b91c1c;
  font-size: 12px;
  font-weight: 950;
  grid-column: 2;
  line-height: 1.3;
}

.legal-consents .check-row.is-required.is-ok {
  border-color: rgba(15, 159, 99, 0.52);
  background: rgba(235, 255, 244, 0.72);
}

.legal-consents a {
  color: #7a4300;
  font-weight: 900;
}

.legal-order-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.legal-info {
  background: rgba(238, 242, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
}

.legal-info summary {
  cursor: pointer;
  font-weight: 900;
}

.legal-info p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 8px 0 0;
}

.restaurant-notice {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  padding: 10px 12px;
}

#suggestions {
  display: grid;
  gap: 8px;
}

#suggestions button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 3px;
  min-height: 52px;
  padding: 10px 12px;
  text-align: left;
}

#suggestions button strong,
#suggestions button span {
  display: block;
}

#suggestions button span {
  color: var(--muted);
  font-size: 12px;
}

.restaurant-notice em {
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  padding: 7px 10px;
  text-transform: uppercase;
}

.restaurant-notice div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.restaurant-notice strong {
  display: block;
  font-size: 17px;
  line-height: 1.15;
}

.restaurant-notice span {
  color: var(--muted);
  font-size: 13px;
}

.restaurant-notice.is-open {
  background: #f1fff7;
  border-color: rgba(15, 159, 99, 0.4);
}

.restaurant-notice.is-open em {
  background: #0f9f63;
  color: #fff;
}

.restaurant-notice.is-closed {
  background: linear-gradient(90deg, #b91c1c, #dc2626);
  border-color: #991b1b;
  box-shadow: 0 12px 28px rgba(185, 28, 28, 0.22);
  color: #fff;
  padding: 14px 16px;
}

.restaurant-notice.is-closed em {
  background: #fff;
  color: #991b1b;
  font-size: 14px;
}

.restaurant-notice.is-closed strong {
  color: #fff;
  font-size: 23px;
}

.restaurant-notice.is-closed span {
  color: #ffe4e6;
  font-size: 15px;
}

.menu-card.is-disabled,
.seller-card.is-disabled,
.choice-grid button.is-disabled {
  filter: grayscale(0.65);
  opacity: 0.68;
}

.unavailable-note {
  color: var(--danger);
  font-size: 13px;
  margin: 0;
}

.summary-title-row {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.summary-title-row h3 {
  margin: 0;
}

.summary-title-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.summary-box dl,
.summary-grid {
  display: grid;
  gap: 8px;
  margin: 0;
}

.summary-box div,
.summary-card {
  display: grid;
  gap: 4px;
}

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

.summary-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 11px 12px;
}

.summary-card-wide {
  grid-column: 1 / -1;
}

.summary-box dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-box dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.summary-box dd strong {
  font-weight: 900;
}

.summary-box dd span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

.start-modal {
  align-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(217, 148, 31, 0.18), transparent 28%),
    linear-gradient(135deg, #15110d, #2d2415 48%, #111827);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 40;
}

.start-panel {
  color: #fff7eb;
  display: grid;
  gap: 26px;
  max-width: 760px;
  text-align: center;
  width: min(760px, 100%);
}

.start-brand {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.start-brand span {
  align-items: center;
  background: var(--accent);
  border-radius: 9px;
  color: #15100a;
  display: flex;
  font-weight: 950;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.start-panel h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  margin: 0 0 10px;
}

.start-panel p {
  color: rgba(255, 247, 235, 0.72);
  margin: 0;
}

.start-options {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.start-location-options {
  margin-top: 12px;
}

.start-location-options button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  min-height: 76px;
  text-align: center;
}

.start-options button {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 14px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
  color: #1b140d;
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-height: 190px;
  padding: 30px;
  place-items: center;
}

.start-options .start-location-cta {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  min-height: 64px;
  padding: 14px 16px;
  place-items: unset;
  text-align: left;
}

.start-options .start-location-cta strong {
  font-size: 16px;
  line-height: 1.1;
}

.start-options .start-location-cta em {
  grid-column: auto;
  line-height: 1.25;
  margin-top: 0;
}

.start-options button:hover,
.start-options button:focus-visible {
  border-color: var(--accent);
}

.start-icon {
  align-items: center;
  background: #fff7e8;
  border-radius: 12px;
  color: var(--accent);
  display: flex;
  font-size: 34px;
  font-weight: 950;
  height: 76px;
  justify-content: center;
  width: 76px;
}

.start-icon svg {
  fill: none;
  height: 42px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  width: 42px;
}

.start-options strong {
  font-size: 24px;
}

.start-options em {
  color: var(--muted);
  font-style: normal;
}

.cart-toast {
  align-items: center;
  background: var(--accent-2);
  border-radius: 12px;
  bottom: 26px;
  box-shadow: 0 20px 50px rgba(15, 159, 99, 0.34);
  color: #fff;
  display: grid;
  gap: 12px;
  grid-template-columns: 56px 1fr;
  left: 50%;
  min-width: min(430px, calc(100vw - 32px));
  opacity: 0;
  padding: 12px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 18px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 50;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.cart-toast-media {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 9px;
  display: grid;
  height: 56px;
  overflow: hidden;
  place-items: center;
  position: relative;
  width: 56px;
}

.cart-toast-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  transition: opacity 120ms ease;
  width: 100%;
}

.cart-toast-image.is-loaded {
  opacity: 1;
}

.cart-toast-mark {
  align-items: center;
  display: flex;
  font-size: 13px;
  justify-content: center;
  letter-spacing: 0;
}

.cart-toast strong,
.cart-toast span {
  display: block;
}

.cart-toast span {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 3px;
}

.modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: fixed;
  z-index: 70;
}

.modal-backdrop {
  background: rgba(20, 28, 38, 0.46);
  inset: 0;
  position: absolute;
}

.product-dialog {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  max-height: min(760px, calc(100vh - 56px));
  max-width: 980px;
  overflow: hidden;
  position: relative;
  width: min(980px, calc(100vw - 56px));
}

.icon-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  display: flex;
  font-size: 18px;
  height: 36px;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 36px;
  z-index: 1;
}

.modal-picture,
.modal-image {
  background: var(--panel-3);
  height: 100%;
  min-height: 0;
}

.modal-image {
  display: block;
  object-position: center;
}

.modal-content {
  display: grid;
  gap: 16px;
  max-height: min(760px, calc(100vh - 56px));
  overflow: auto;
  padding: 24px;
}

.modal-heading {
  align-items: start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding-right: 36px;
}

.modal-heading h2 {
  font-size: 34px;
  margin: 4px 0 8px;
}

#modal-price {
  color: var(--accent);
  font-size: 26px;
  white-space: nowrap;
}

.modal-rules {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  padding: 10px;
}

.modal-rules:empty {
  display: none;
}

.option-groups {
  display: grid;
  gap: 16px;
}

.option-group {
  border-top: 1px solid var(--line);
  contain: layout paint style;
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.option-group.is-missing {
  border-top-color: rgba(214, 75, 61, 0.7);
}

.option-group.is-open {
  border-top-color: rgba(15, 159, 99, 0.36);
}

.option-group.is-ok {
  border-top-color: rgba(15, 159, 99, 0.72);
}

.option-group header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.option-group h3 {
  margin: 0;
}

.option-group header p {
  font-size: 12px;
  margin: 4px 0 0;
}

.option-group header span,
.option-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 12px;
  padding: 4px 8px;
}

.option-status.is-missing {
  background: #ffe9e5;
  border-color: rgba(214, 75, 61, 0.4);
  color: #a7291d;
}

.option-status.is-open {
  background: #e9fbf2;
  border-color: rgba(15, 159, 99, 0.28);
  color: #0f7a4f;
}

.option-status.is-ok {
  background: #d8f7e7;
  border-color: rgba(15, 159, 99, 0.42);
  color: #075c3b;
}

.choice-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid.is-multiple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid button {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  min-height: 64px;
  padding: 10px;
  text-align: left;
}

.choice-quantity {
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 116px;
  min-height: 64px;
  padding: 10px;
}

.choice-quantity strong {
  display: block;
}

.choice-quantity span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 5px;
}

.choice-quantity.is-disabled {
  opacity: 0.5;
}

.choice-stepper {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  min-height: 36px;
  overflow: hidden;
  text-align: center;
}

.choice-stepper button {
  background: #edf2f7;
  border: 0;
  border-radius: 0;
  color: var(--text);
  cursor: pointer;
  font-weight: 950;
  height: 100%;
  min-height: 36px;
  padding: 0;
  text-align: center;
}

.choice-stepper button:disabled {
  opacity: 0.35;
}

.choice-stepper em {
  color: var(--text);
  font-style: normal;
  font-weight: 950;
}

.picker-trigger.is-open {
  outline: 2px solid rgba(15, 159, 99, 0.24);
}

.addon-picker {
  background: #f4fbf7;
  border: 1px solid rgba(15, 159, 99, 0.28);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.addon-picker header {
  align-items: center;
}

.addon-picker header button {
  background: #0f9f63;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  padding: 7px 12px;
}

.choice-grid button span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 5px;
}

.modal-actions {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  bottom: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 130px 1fr;
  margin: 0 -24px -24px;
  padding: 16px 24px;
  position: sticky;
}

.qty-control {
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  min-height: 44px;
  padding: 5px;
  text-align: center;
}

.done {
  display: grid;
  gap: 14px;
}

.order-status {
  animation: status-in 0.35s ease both;
}

@keyframes status-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.order-status-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-right: 54px;
}

.order-status-head h2 {
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.02em;
  margin: 2px 0 8px;
}

.order-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 6px 14px;
  margin: 0;
}

.order-meta span {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.status-phone {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.status-phone:hover {
  text-decoration: underline;
}

.mini-icon {
  fill: none;
  height: 15px;
  max-height: 15px;
  max-width: 15px;
  min-height: 15px;
  min-width: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 15px;
}

.order-status svg {
  flex: 0 0 auto;
  max-height: 24px;
  max-width: 24px;
}

.live-badge {
  align-items: center;
  background: rgba(15, 159, 99, 0.12);
  border: 1px solid rgba(15, 159, 99, 0.4);
  border-radius: 999px;
  color: #0f9f63;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  padding: 6px 11px;
  white-space: nowrap;
}

.live-badge em {
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

.live-badge.is-off {
  background: rgba(120, 120, 120, 0.12);
  border-color: var(--line);
  color: var(--muted);
}

.live-dot {
  animation: live-pulse 1.8s ease-out infinite;
  background: #12c074;
  border-radius: 50%;
  height: 9px;
  width: 9px;
}

.live-badge.is-off .live-dot {
  animation: none;
  background: var(--muted);
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(18, 192, 116, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(18, 192, 116, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 192, 116, 0); }
}

.status-current {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  margin: 4px 0 8px;
  padding: 12px 14px;
}

.status-timeline {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0 0 14px;
  overflow-x: auto;
  padding: 8px 2px 6px;
}

.status-timeline li {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 7px;
  min-width: 68px;
  position: relative;
  text-align: center;
  transition: color 0.3s ease;
}

.status-timeline li::before {
  background: var(--line);
  content: "";
  height: 2px;
  left: calc(50% + 20px);
  position: absolute;
  top: 23px;
  transition: background 0.3s ease;
  width: calc(100% - 40px);
  z-index: 0;
}

.status-timeline li:last-child::before {
  display: none;
}

.status-timeline li.is-done::before {
  background: rgba(15, 159, 99, 0.55);
}

.step-icon {
  align-items: center;
  background: var(--panel-3);
  border: 2px solid var(--line);
  border-radius: 50%;
  display: flex;
  flex: none;
  height: 38px;
  justify-content: center;
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  width: 38px;
  z-index: 1;
}

.step-icon svg,
.status-step-svg {
  display: block;
  fill: none;
  height: 18px;
  max-height: 18px;
  max-width: 18px;
  min-height: 18px;
  min-width: 18px;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  transition: stroke 0.3s ease;
  width: 18px;
}

.status-timeline li.is-done {
  color: var(--text);
}

.status-timeline li.is-done .step-icon {
  background: rgba(15, 159, 99, 0.16);
  border-color: #12c074;
}

.status-timeline li.is-done .step-icon svg {
  stroke: #0f9f63;
}

.status-timeline li.is-active {
  color: var(--text);
}

.status-timeline li.is-active .step-icon {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}

.status-timeline li.is-active .step-icon svg {
  stroke: #16100b;
}

.status-timeline li.is-active .step-icon::after {
  animation: step-ring 1.8s ease-out infinite;
  border: 2px solid var(--accent);
  border-radius: 50%;
  content: "";
  inset: -5px;
  position: absolute;
}

@keyframes step-ring {
  0% { opacity: 0.55; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.28); }
}

.step-label {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.order-summary-box,
.order-link-box {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}

.order-summary-box > strong {
  display: block;
  margin-bottom: 8px;
}

.order-summary-box ul {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-summary-box li {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.order-summary-box li em {
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
}

.order-summary-total {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  padding-top: 9px;
}

.order-summary-total strong {
  color: var(--accent);
}

.order-link-box {
  background: #e9fbf2;
  border-color: #71d3a2;
  color: #0f5f3b;
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.order-link-box span {
  font-size: 13px;
}

.order-link-box strong {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.order-link-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.order-link-row input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  flex: 1 1 auto;
  font-size: 13px;
  min-width: 0;
  padding: 0 10px;
}

#copy-order-link {
  background: var(--accent);
  border: 0;
  border-radius: 7px;
  color: #16100b;
  cursor: pointer;
  flex: 0 0 auto;
  font-weight: 900;
  min-height: 40px;
  padding: 0 14px;
}

@media (max-width: 1440px) {
  .kiosk {
    box-shadow: none;
    grid-template-columns: 190px minmax(0, 1fr) 350px;
    width: 100%;
  }

  .side-nav,
  .catalog,
  .checkout {
    padding: 14px;
  }

  .topbar h1 {
    font-size: 28px;
  }

  .topbar p {
    font-size: 14px;
  }

  .step {
    font-size: 12px;
    min-height: 32px;
  }

  .step span {
    height: 22px;
    width: 22px;
  }

  .fulfilment-start {
    grid-template-columns: 112px minmax(210px, 1fr) minmax(210px, 0.95fr);
  }

  .fulfilment-start h2 {
    font-size: 19px;
    line-height: 1.12;
  }

  .seller-card {
    min-height: 205px;
  }

  .seller-card picture,
  .seller-card img {
    height: 122px;
  }

  .menu-card {
    min-height: 340px;
  }

  .image-button {
    height: 142px;
  }

  .menu-card h3 {
    font-size: 19px;
  }

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

  .badges span,
  .included span {
    font-size: 11px;
  }
}

@media (max-width: 1240px) {
  .kiosk {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .checkout {
    grid-column: 1 / -1;
    max-height: none;
    position: static;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .demo-store-banner {
    padding: 3px 9px;
    top: 5px;
  }

  .demo-store-banner strong {
    font-size: 10px;
  }

  .demo-store-banner span {
    display: none;
  }

  .kiosk {
    display: block;
  }

  .side-nav {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    gap: 10px;
    padding: 12px;
    position: sticky;
    top: 0;
    z-index: 22;
  }

  .categories {
    border-radius: 10px;
    display: flex;
    overflow-x: auto;
    position: static;
    scroll-padding-inline: 8px;
  }

  .categories button {
    flex: 0 0 auto;
    min-width: 96px;
    min-height: 38px;
    padding: 0 11px;
  }

  .info-card,
  .panel-link {
    display: none;
  }

  .catalog,
  .checkout {
    padding: 12px;
  }

  body.store-has-cart:not(.has-checkout-modal) {
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
  }

  body.has-checkout-modal {
    padding-bottom: 0;
  }

  .checkout {
    display: none;
  }

  body.store-has-cart:not(.has-checkout-modal) .checkout {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 159, 99, 0.22);
    border-radius: 14px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 18px 50px rgba(32, 39, 48, 0.22);
    display: block;
    left: 10px;
    max-height: min(46vh, 245px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 9px;
    position: fixed;
    right: 10px;
    top: auto;
    z-index: 24;
  }

  body.store-has-cart:not(.has-checkout-modal) .checkout-head {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 6px;
  }

  body.store-has-cart:not(.has-checkout-modal) .checkout-head h2 {
    font-size: 20px;
    line-height: 1.05;
  }

  body.store-has-cart:not(.has-checkout-modal) .checkout-head .category-label {
    display: none;
  }

  body.store-has-cart:not(.has-checkout-modal) .checkout-head > strong {
    height: 30px;
    width: 30px;
  }

  body.store-has-cart:not(.has-checkout-modal) .cart-lite {
    gap: 4px;
    padding: 8px;
  }

  body.store-has-cart:not(.has-checkout-modal) .cart-lite > strong {
    font-size: 15px;
  }

  body.store-has-cart:not(.has-checkout-modal) .cart-lite > span {
    display: none;
  }

  body.store-has-cart:not(.has-checkout-modal) .cart-lite-lines {
    gap: 5px;
    margin-top: 0;
  }

  body.store-has-cart:not(.has-checkout-modal) .cart-lite-line {
    padding: 7px 8px;
  }

  body.store-has-cart:not(.has-checkout-modal) .cart-lite-line:nth-of-type(n+3) {
    display: none;
  }

  body.store-has-cart:not(.has-checkout-modal) .checkout .submit {
    margin-top: 8px;
    min-height: 48px;
    width: 100%;
  }

  body.store-has-cart:not(.has-checkout-modal) .cart-toast {
    bottom: calc(176px + env(safe-area-inset-bottom));
  }

  .topbar h1 {
    font-size: 26px;
    line-height: 1;
  }

  .topbar p {
    display: none;
  }

  .topbar,
  .fulfilment-start {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .fulfilment-summary {
    align-items: center;
    background: linear-gradient(135deg, #fff8ed, #ffffff);
    border: 1px solid rgba(217, 148, 31, 0.42);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    min-height: 54px;
    padding: 9px 10px;
    text-align: left;
  }

  .fulfilment-summary span {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .fulfilment-summary strong {
    font-size: 15px;
    line-height: 1.12;
  }

  .fulfilment-summary small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fulfilment-summary em {
    background: var(--accent);
    border-radius: 999px;
    color: #16100b;
    flex: 0 0 auto;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    padding: 7px 9px;
    white-space: nowrap;
  }

  .fulfilment-start.is-collapsed {
    background: transparent;
    border: 0;
    margin-bottom: 8px;
    padding: 0;
  }

  .fulfilment-start.is-collapsed .fulfilment-intro,
  .fulfilment-start.is-collapsed .location-choice,
  .fulfilment-start.is-collapsed .fulfilment-choice {
    display: none;
  }

  .topbar {
    flex-direction: column;
  }

  .stepper {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .step {
    flex: 0 0 auto;
  }

  .top-grid,
  .menu-grid,
  .upsell-grid,
  .segmented,
  .summary-grid,
  .payment-methods,
  .choice-grid,
  .choice-grid.is-multiple {
    grid-template-columns: 1fr;
  }

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

  .fulfilment-choice button,
  .location-choice button {
    min-height: 72px;
    padding: 9px;
  }

  .fulfilment-choice button strong,
  .location-choice button strong {
    font-size: 16px;
  }

  .promo-grid {
    margin-bottom: 10px;
  }

  .promo-card {
    flex-wrap: wrap;
    min-height: 40px;
  }

  .promo-card strong {
    font-size: 16px;
  }

  .promo-card em {
    margin-left: 0;
    white-space: normal;
  }

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

  .choice-stepper {
    max-width: 150px;
  }

  .seller-card {
    grid-template-columns: 120px 1fr;
    min-height: 120px;
  }

  .seller-card picture,
  .seller-card img {
    grid-row: span 3;
    height: 120px;
  }

  .seller-card span {
    left: 8px;
    top: 8px;
  }

  .product-dialog {
    align-self: end;
    border-radius: 12px 12px 0 0;
    grid-template-columns: 1fr;
    max-height: calc(100vh - 10px);
    width: calc(100vw - 10px);
  }

  .modal-picture,
  .modal-image {
    height: 210px;
    min-height: 0;
  }

  .modal-content {
    max-height: calc(100vh - 220px);
    padding: 18px;
  }

  .modal-heading {
    display: grid;
  }

  #modal-price {
    white-space: normal;
  }

  .modal-actions {
    grid-template-columns: 1fr;
    margin: 0 -18px -18px;
    padding: 14px 18px;
  }

  .delivery-map-card > header,
  .delivery-map-preview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .delivery-map-preview-head button {
    width: 100%;
  }

  .delivery-address-grid {
    grid-template-columns: 1fr 118px;
  }

  .delivery-map-preview .osm-map {
    height: 160px;
  }

  .delivery-map-card.is-expanded .osm-map {
    height: clamp(360px, 58vh, 520px);
  }

  .checkout-modal {
    padding: 8px;
  }

  .checkout-dialog {
    border-radius: 12px 12px 0 0;
    max-height: calc(100vh - 8px);
    padding: 16px;
    width: calc(100vw - 8px);
  }

  .checkout-dialog .cart-lines {
    grid-template-columns: 1fr;
  }

  .checkout-dialog .checkout-head h2 {
    font-size: 34px;
  }

  .customer-fields-grid {
    grid-template-columns: 1fr;
  }

  .order-status-head {
    flex-direction: column;
    padding-right: 44px;
  }

  .status-timeline li {
    flex: 0 0 86px;
  }

  .start-options,
  .start-location-options {
    grid-template-columns: 1fr;
  }

  .start-options button {
    min-height: 170px;
  }

  .restaurant-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .restaurant-notice span {
    text-align: left;
  }

  .restaurant-notice.is-closed strong {
    font-size: 20px;
  }

  .cart-toast {
    bottom: 14px;
    grid-template-columns: 48px 1fr;
  }

  .cart-toast-media {
    height: 48px;
    width: 48px;
  }

  .cart-toast-mark {
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .modal {
    align-items: flex-end;
    padding: 4px;
  }

  .product-dialog {
    border-radius: 12px 12px 0 0;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(100svh - 8px);
    width: calc(100vw - 8px);
  }

  .modal-picture,
  .modal-image {
    height: 88px;
  }

  .modal-image {
    object-position: center 58%;
  }

  .modal-content {
    gap: 9px;
    max-height: calc(100svh - 96px);
    padding: 12px;
  }

  .modal-heading {
    align-items: start;
    display: grid;
    gap: 6px 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-right: 38px;
  }

  .modal-heading h2 {
    font-size: clamp(22px, 6.1vw, 26px);
    line-height: 1.02;
    margin: 2px 0 0;
  }

  .modal-heading .category-label {
    font-size: 11px;
    margin-bottom: 2px;
  }

  #modal-description,
  .product-dialog .included,
  .product-dialog .modal-rules {
    display: none;
  }

  #modal-price {
    font-size: 20px;
    line-height: 1;
    padding-top: 20px;
    white-space: nowrap;
  }

  .product-dialog .option-groups {
    gap: 9px;
  }

  .product-dialog .option-group {
    gap: 8px;
    padding-top: 10px;
  }

  .product-dialog .option-group h3 {
    font-size: 17px;
    line-height: 1.1;
  }

  .product-dialog .option-group header p {
    display: none;
  }

  .product-dialog .option-status {
    font-size: 10px;
    padding: 4px 7px;
  }

  .product-dialog .choice-grid,
  .product-dialog .choice-grid.is-multiple {
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-dialog .choice-grid button {
    min-height: 54px;
    padding: 9px;
  }

  .product-dialog .choice-grid button strong {
    font-size: 14px;
    line-height: 1.1;
  }

  .product-dialog .choice-grid button span {
    font-size: 10px;
    margin-top: 3px;
  }

  .product-dialog .modal-actions {
    gap: 8px;
    grid-template-columns: 96px 1fr;
    margin: 0 -12px -12px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  }

  .product-dialog .qty-control {
    grid-template-columns: 28px 1fr 28px;
    min-height: 38px;
    padding: 4px;
  }

  .product-dialog .qty-control button {
    min-height: 28px;
  }

  .product-dialog #add-configured {
    min-height: 42px;
    padding: 0 10px;
  }

  .start-modal {
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    padding: calc(14px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
  }

  .start-panel {
    gap: 14px;
    max-width: none;
    min-height: auto;
    text-align: left;
    width: 100%;
  }

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

  .start-brand span {
    height: 38px;
    width: 38px;
  }

  .start-panel h2 {
    font-size: clamp(30px, 9.8vw, 42px);
    margin-bottom: 6px;
  }

  .start-panel p {
    font-size: 15px;
    line-height: 1.35;
  }

  .start-options {
    gap: 10px;
  }

  .start-options button {
    align-items: center;
    gap: 12px;
    grid-template-columns: 58px 1fr;
    justify-items: start;
    min-height: 116px;
    padding: 14px;
    text-align: left;
  }

  .start-icon {
    border-radius: 10px;
    grid-row: 1 / span 2;
    height: 58px;
    width: 58px;
  }

  .start-icon svg {
    height: 32px;
    width: 32px;
  }

  .start-options strong {
    font-size: 22px;
    line-height: 1.05;
  }

  .start-options em {
    grid-column: 2;
    font-size: 13px;
    line-height: 1.25;
  }

  .start-options .start-location-cta {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    min-height: 58px;
    padding: 10px 12px;
  }

  .start-options .start-location-cta em {
    grid-column: auto;
    font-size: 11px;
    line-height: 1.2;
  }

  .start-location-options {
    display: grid;
    gap: 9px;
    margin-top: 8px;
  }

  .start-location-options button {
    display: flex;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
    min-height: 62px;
    padding: 11px 12px;
    text-align: left;
  }

  .start-location-options button strong {
    font-size: 16px;
  }
}
