.order-lead {
  margin: 0.85rem 0 1.75rem;
  color: #526257;
  font-size: 1.04rem;
}
.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(285px, 340px);
  gap: clamp(26px, 4vw, 64px);
  align-items: start;
}
.order-catalog {
  min-width: 0;
}
.order-catalog .menu-tools {
  margin-top: 0;
  grid-template-columns: minmax(0, 1fr) minmax(155px, 33%);
}
.order-catalog .menu-list {
  grid-template-columns: 1fr;
}
.dish-buy {
  flex-shrink: 0;
  display: grid;
  justify-items: end;
  gap: 7px;
}
.add-dish,
.quiet-action,
.stepper button,
.dialog-heading button,
.fulfill button,
.mobile-cart,
.history-link {
  font: inherit;
  cursor: pointer;
}
.add-dish {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 4px 13px;
  background: transparent;
  color: var(--forest);
  border: 1px solid #809584;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 700;
}
.add-dish .icon {
  width: 15px;
  height: 15px;
}
.add-dish:hover,
.add-dish:focus-visible {
  background: var(--forest);
  color: white;
}
.cart-aside,
.ticket,
.kitchen-empty {
  background: #fffcf4;
  border: 1px solid #c9c9b8;
  border-radius: 15px;
}
.cart-aside {
  position: sticky;
  top: 92px;
  max-height: calc(100dvh - 108px);
  overflow: auto;
  padding: clamp(18px, 2vw, 28px);
  box-shadow: 0 8px 28px #3f45280b;
  scroll-margin-top: 96px;
}
.cart-heading,
.dialog-heading,
.basket-row,
.basket-actions,
.cart-sub,
.qty-row,
.receipt-totals > div,
.kitchen-head,
.ticket header,
.kitchen-actions,
.order-lines li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cart-heading {
  justify-content: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}
.cart-heading .icon {
  width: 25px;
  height: 25px;
}
.cart-heading h2,
.dialog-heading h2,
.kitchen h2 {
  font: 400 clamp(1.7rem, 3vw, 2.15rem) / 1.12 var(--display);
  letter-spacing: -0.035em;
}
.cart-empty {
  text-align: center;
  padding: 24px 8px 12px;
}
.cart-empty b {
  display: block;
}
.cart-empty p,
.cart-hint,
.form-help,
.variant-note,
.item-description {
  color: #4c5b4e;
  line-height: 1.5;
}
.cart-empty p,
.cart-hint,
.form-help,
.variant-note {
  font-size: 0.87rem;
}
.empty-bag {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--forest);
  background: #e9ebd9;
  border-radius: 50%;
  margin: 0 auto 12px;
}
.empty-bag .icon {
  width: 23px;
  height: 23px;
}
.basket-lines,
.order-lines {
  padding: 0;
  margin: 0;
  list-style: none;
}
.basket-lines li,
.order-lines li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.basket-row,
.order-lines li {
  align-items: flex-start;
}
.basket-row strong,
.order-lines li > b {
  white-space: nowrap;
}
.basket-lines small,
.order-lines small {
  display: block;
  margin-top: 2px;
  color: #566356;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
.basket-actions {
  justify-content: flex-start;
  margin-top: 10px;
  gap: 11px;
}
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #b8c1ac;
  border-radius: 35px;
  background: #fffcf5;
  overflow: hidden;
}
.stepper button {
  border: 0;
  background: transparent;
  color: var(--forest);
  width: 32px;
  height: 33px;
  font-size: 1.2rem;
}
.stepper button:hover {
  background: #e7eadb;
}
.stepper b {
  min-width: 20px;
  text-align: center;
  font-size: 0.88rem;
}
.stepper input {
  appearance: textfield;
  text-align: center;
  width: 42px;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
}
.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button {
  appearance: none;
}
.quiet-action {
  background: transparent;
  padding: 4px 0;
  color: var(--forest);
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.84rem;
}
.cart-sub {
  margin: 15px 0 2px;
  font-weight: 600;
}
.checkout-go {
  width: 100%;
  justify-content: center;
  min-height: 46px;
  margin-top: 14px;
}
.receipt-links:not(:empty) {
  padding-top: 12px;
}
.back-cart {
  display: block;
  margin: 12px auto 0;
}
.mobile-cart {
  display: none;
}
.nav-order .cart-count {
  font-size: 0.83em;
  display: inline-grid;
  place-items: center;
  min-width: 1.5em;
  height: 1.5em;
  padding: 0 0.2em;
  background: #ffffff29;
  border-radius: 100%;
}
.order-dialog {
  color: var(--ink);
  background: var(--cream);
  border: 1px solid #c4c5b4;
  border-radius: 18px;
  margin: auto;
  padding: clamp(20px, 4vw, 32px);
  width: min(500px, calc(100% - 28px));
  max-width: 100%;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 25px 85px #0004;
}
.order-dialog::backdrop {
  background: #12291fe0;
}
.order-dialog[open] {
  animation: arrive 0.17s ease-out;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
body:has(.order-dialog[open]) {
  overflow: hidden;
}
.dialog-heading {
  align-items: flex-start;
  margin-bottom: 16px;
}
.dialog-heading button {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--forest);
}
.dialog-heading .icon {
  width: 17px;
  height: 17px;
}
.item-sub {
  font-weight: 700;
  color: var(--rust);
  font-size: 0.93rem;
}
.item-description {
  margin-top: 5px;
}
.variant-list {
  margin: 18px 0 10px;
  padding: 0;
  border: 0;
}
.variant-list legend,
.order-field,
.qty-row > label {
  font-size: 0.88rem;
  font-weight: 700;
}
.variant-list legend {
  padding-bottom: 6px;
}
.variant-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  margin: 5px 0;
  cursor: pointer;
}
.variant-list label:has(:checked) {
  border-color: var(--forest);
  background: #e9eddd;
}
.variant-list label input {
  accent-color: var(--forest);
  width: 17px;
  height: 17px;
}
.variant-list label small {
  margin-left: auto;
  text-align: right;
}
.order-field {
  display: block;
  margin: 12px 0 0;
}
.order-field small {
  font-weight: 400;
}
.order-field input,
.order-field select,
.order-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  margin-top: 4px;
  border: 1px solid #a5b09b;
  border-radius: 7px;
  color: var(--ink);
  background: #fffefa;
  font: 400 1rem/1.36 var(--sans);
}
.order-field textarea {
  resize: vertical;
}
.qty-row {
  margin-top: 17px;
}
.variant-note,
.checkout-error {
  margin-top: 10px;
}
.checkout-error {
  color: #872423;
  background: #f6e6df;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
}
.fulfill {
  display: flex;
  background: #e5e8d9;
  padding: 4px;
  border-radius: 30px;
  gap: 4px;
}
.fulfill button {
  flex: 1;
  padding: 9px 6px;
  border: 0;
  border-radius: 22px;
  color: var(--forest);
  background: transparent;
  font-weight: 700;
}
.fulfill button[aria-pressed="true"] {
  background: var(--forest);
  color: white;
}
.form-help {
  margin: 8px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.checkout-detail,
.kitchen-history {
  margin-top: 16px;
}
.checkout-detail summary,
.kitchen-history summary {
  cursor: pointer;
  font-weight: 700;
}
.order-lines li {
  font-size: 0.9rem;
}
.order-state {
  display: inline-flex;
  border-radius: 50px;
  background: #e2ead5;
  color: #254c31;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 10px;
  margin: 5px 0;
}
.receipt-code,
.ticket h3 {
  font-weight: 700;
  letter-spacing: 0.05em;
}
.receipt-totals > div {
  padding: 5px 0;
  font-size: 0.91rem;
}
.receipt-totals {
  margin: 10px 0;
}
.receipt-totals .grand {
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
  margin-top: 4px;
  padding-top: 9px;
}
.kitchen-reply,
.ticket-contact {
  background: #edf0e2;
  border-radius: 7px;
  padding: 10px 12px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.history-link {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  padding: 13px 9px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.order-toast {
  position: fixed;
  bottom: 21px;
  z-index: 50;
  left: 50%;
  transform: translate(-50%, 10px);
  padding: 9px 16px;
  border-radius: 30px;
  background: var(--forest);
  color: #fff;
  box-shadow: 0 4px 14px #0002;
  opacity: 0;
  pointer-events: none;
  transition: 0.15s;
  white-space: nowrap;
  font-size: 0.88rem;
}
.order-toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.order-dialog button:disabled,
.cart-aside button:disabled {
  opacity: 0.55;
  cursor: default;
}
.kitchen {
  padding-block: clamp(32px, 6vw, 80px);
}
.kitchen-head {
  margin: 12px 0;
}
.kitchen h1 {
  font: 400 clamp(2.8rem, 6vw, 5rem) / 1 var(--display);
  letter-spacing: -0.04em;
}
.kitchen h2 {
  margin-block: 22px 12px;
}
.kitchen-empty {
  padding: clamp(20px, 4vw, 40px);
  margin-top: 22px;
}
.kitchen-empty h2 {
  margin-top: 0;
}
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  align-items: start;
  gap: 18px;
}
.ticket {
  padding: 22px;
  overflow-wrap: anywhere;
}
.ticket header {
  align-items: flex-start;
}
.ticket header > span,
#kitchen-status {
  font-size: 0.86rem;
  color: #526352;
}
.ticket h3 {
  margin: 5px 0 9px;
}
.ticket-contact a {
  text-decoration: underline;
}
.kitchen-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 13px;
}
.kitchen-history summary {
  padding: 12px 0;
}
.kitchen-actions .button {
  min-height: 42px;
}
@media (min-width: 1500px) {
  .order-catalog .menu-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 850px) {
  .order-layout {
    display: block;
  }
  .cart-aside {
    display: none;
  }
  .mobile-cart:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: fixed;
    z-index: 35;
    left: max(14px, env(safe-area-inset-left));
    right: max(14px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 14px;
    color: var(--cream);
    background: var(--forest);
    padding: 13px 18px;
    box-shadow: 0 6px 24px #10241440;
    font-weight: 700;
  }
  .mobile-cart .icon {
    width: 22px;
    height: 22px;
  }
  .mobile-cart > span {
    margin-right: auto;
  }
  .order-toast {
    bottom: 80px;
  }
  .full-menu:has(.mobile-cart:not([hidden])) ~ footer {
    padding-bottom: 78px;
  }
}
@media (max-width: 580px) {
  .order-catalog .menu-tools {
    grid-template-columns: 1fr;
  }
  .dish-buy {
    gap: 4px;
  }
  .order-dialog {
    max-height: calc(100dvh - 20px);
  }
  .kitchen-head {
    align-items: flex-start;
  }
  .kitchen-head .button {
    padding: 0.6rem;
  }
  .order-toast {
    max-width: 95%;
    white-space: normal;
  }
}
@media (max-width: 365px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .order-dialog[open] {
    animation: none;
  }
  .order-toast {
    transition: none;
  }
}
.demo-notice{margin:0;text-align:center;padding:.5rem 1rem;background:#f4e8c6;color:#384232;font-size:.88rem}
html[data-order-mode="live"] .demo-notice{display:none}
.kitchen .staff-form:not([hidden]){display:block;position:static;max-width:380px;margin:1.4rem 0;padding:1rem 1.4rem}
.staff-form [role=alert]{color:#872423;margin-top:.4rem}

.demo-dialog{margin:0 0 1rem;border-radius:8px;text-align:left}
