/* Ordering refresh: use tenant colors so every restaurant keeps its identity. */
:root { --radius: 12px; }
.layout { max-width: 1440px; padding-top: 20px; }
.hero-banner img { height: clamp(120px, 14vw, 190px); min-height: 0; }
.hero-business-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 20px;
  text-align: left;
  margin: 0 0 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.hbi-name { display: none; }
.hbi-tagline { grid-column: 1; font-style: normal; font-size: 15px; margin: 0; }
.hbi-address { grid-column: 1; font-size: 14px; margin: 0; }
.hbi-status { grid-column: 1; font-size: 14px; margin: 2px 0 0; color: var(--nori); }
.hbi-status-dot { width: 8px; height: 8px; background: currentColor; animation: none; }
.hbi-status.closed { color: var(--accent); }
.hbi-fulfillment-toggle-slot { grid-column: 2; grid-row: 1 / 3; min-width: 250px; }
.hbi-pickup-toggle-slot { grid-column: 2; grid-row: 3; margin: 0; }
.hero-business-info .pickup-toggle,
.hero-business-info .pickup-time-box,
.hero-business-info .delivery-address-box { margin: 0; width: 100%; }
.catnav-wrap { margin-top: 0; padding: 12px 0; border-top: 0; }
.catnav-search-row { display: block; margin-bottom: 12px; }
.catnav-wrap { display: flex; flex-direction: column; }
.catnav-search-row { order: -1; }
.catnav-wrap.search-open .catnav { display: flex; }
.catnav-search-btn { display: none; }
.catnav-search-pill { border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); padding: 6px 6px 6px 14px; }
.catnav-search-pill svg { color: var(--ink-soft); }
.catnav-search-input { color: var(--ink); font-weight: 400; min-height: 32px; }
.catnav-search-input::placeholder { color: var(--ink-soft); }
.catnav-search-close { width: 36px; height: 36px; background: var(--paper-alt); color: var(--ink-soft); font-size: 22px; }
.catnav-search-close:hover { background: var(--line); }
.catmenu-btn { width: auto; height: 44px; padding: 8px 10px; gap: 6px; }
.catmenu-btn svg { width: 20px; height: 20px; }
.catmenu-label { font-size: 13px; font-weight: 600; }
.catnav-chip { min-height: 44px; }
.cat-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; align-items: start; flex-wrap: wrap; }
.cat-head h2 { font-size: 22px; }
.cat-head .cat-note { flex-basis: 100%; font-size: 13px; font-style: normal; }
.menu-group-head { border-bottom-width: 1px; flex-wrap: wrap; }
.menu-group-hours { white-space: normal; font-size: 14px; }
section.category { scroll-margin-top: 160px; margin-bottom: 32px; }
.items { align-items: stretch; gap: 14px; }
.item { height: auto; min-height: 156px; border-radius: 12px; }
.item-photo { width: 120px; min-height: 156px; }
.item-main { padding: 14px; }
.item-title-row { align-items: start; flex-wrap: wrap; gap: 4px 8px; }
.item-name { white-space: normal; overflow: visible; font-size: 16px; line-height: 1.35; }
.item-desc { font-size: 14px; line-height: 1.45; -webkit-line-clamp: 3; }
.item-price { font-size: 15px; }
.item-no-photo { min-height: 108px; }
.item-no-photo .item-main { padding: 16px; }
.item.item-single-line .item-main { padding: 0; }
.item.item-single-line .item-name { white-space: normal; }
.item.item-single-line { min-height: 64px; }
.add-btn.icon-only { width: 44px; height: 44px; flex: none; }
.item-foot .add-btn { min-height: 44px; }
.item-unavailable { opacity: 0.7; }
.item-popup:not(.open) { visibility: hidden; }
.item-popup.open { visibility: visible; }
.item-popup-photo { height: 180px; max-height: 25dvh; object-fit: cover; flex-shrink: 0; }
.item-popup-name { font-size: 22px; }
.item-popup-name-row { align-items: start; }
.item-popup-name-row .item-popup-price { white-space: normal; }
.item-edit-heading { margin: 0 0 8px; color: var(--accent); font-size: 13px; font-weight: 700; }
.item-choice-notice { padding: 10px; background: var(--accent-soft); border-radius: 8px; font-size: 14px; }
.item-choice-progress { margin: 18px 0 0; font-size: 14px; font-weight: 600; }
.mod-group--incomplete { border-left: 3px solid var(--accent); padding-left: 12px; }
.mod-option { min-height: 48px; }
.mod-option label { min-height: 44px; flex: 1; }
.mod-option input { accent-color: var(--accent); }
.qty-btn { min-width: 36px; min-height: 36px; }
.item-popup-actions .qty-btn { min-width: 40px; min-height: 44px; }
.drawer-head-cart { display: flex; align-items: center; justify-content: space-between; }
.cart-edit-btn { display: inline-block; border: 0; background: transparent; color: var(--accent); padding: 8px 0; min-height: 36px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cart-line { gap: 12px; }
.cart-line-main { min-width: 0; }
.cart-line-name, .cart-line-variant { overflow-wrap: anywhere; }
.cart-line-photo-empty { display: none; }
.cart-line-controls { flex-wrap: wrap; flex-shrink: 0; }
.cart-subtotal, .checkout-pay-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 17px; }
.cart-total-note { margin: 6px 0 0; color: var(--ink-soft); font-size: 12px; }
.primary-btn { min-height: 48px; border-radius: 12px; font-size: 15px; }
.cart-bar { width: min(540px, calc(100% - 28px)); bottom: max(12px, env(safe-area-inset-bottom)); }
.cart-bar-main { width: 100%; justify-content: space-between; border-radius: 12px; color: #fff; }
.cart-bar-label { text-align: center; }
.drawer-foot { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.drawer[data-view="checkout"] .drawer-body { display: flex; flex-direction: column; gap: 16px; background: var(--paper-alt); }
.checkout-section { flex: none; padding: 18px; border: 1px solid var(--line); border-radius: 12px; margin: 0; background: var(--card); }
.checkout-contact { order: 1; }
.checkout-fulfillment { order: 2; }
.checkout-summary { order: 3; }
.checkout-payment { order: 4; }
.checkout-totals-section { order: 5; }
#checkoutError { order: 6; }
/* Keep a pay-at-pickup verification widget immediately before its errors. */
.drawer[data-view="checkout"] .drawer-body > .field { order: 5; }
.checkout-section-title { display: flex; align-items: center; gap: 10px; font: inherit; font-size: 18px; font-weight: 700; margin: 0 0 18px; }
.checkout-section-title > span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; flex: none; }
.checkout-signin { border: 0; padding: 10px 0 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 14px; text-align: left; min-height: 44px; }
.checkout-summary .field-inline { display: block; margin: 12px 0 0; }
.checkout-summary .field-inline label { margin-bottom: 6px; }
.checkout-summary .field-inline textarea { width: 100%; }
.checkout-section .field:last-child { margin-bottom: 0; }
.checkout-pay-total { margin-bottom: 4px; }
.checkout-pay-total strong { font-size: 20px; }
.checkout-section input, .checkout-section textarea, .checkout-section select { border-radius: 8px; }
.checkout-section .phone-input-row input { border-radius: 0 8px 8px 0; }
.checkout-section .phone-prefix { border-radius: 8px 0 0 8px; }
@media (min-width: 1180px) {
  .has-docked-cart .menu-scroll { padding-right: 28px; }
  .drawer.drawer--docked {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto !important;
    transform: none;
    flex: 0 0 340px;
    width: 340px;
    height: 100%;
    max-height: 100% !important;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    z-index: auto;
    visibility: visible;
  }
  .drawer--docked #drawerContent { max-height: 100% !important; }
  .drawer--docked .drawer-head { padding-top: 6px; }
  .drawer--docked .drawer-head-cart .drawer-close { display: none; }
  .drawer--docked .drawer-body { padding: 16px; }
  .drawer--docked .cart-toggle-row { flex-direction: column; }
  .drawer--docked .cart-toggle-col { width: 100%; }
  .drawer--docked .cart-line { flex-wrap: wrap; }
  .drawer--docked .cart-line-controls { margin-left: auto; }
  .drawer--docked .cart-line-photo { width: 44px; height: 44px; }
  .drawer--docked .cart-line-main { flex-basis: 180px; }
  .drawer--docked .cart-popular-row { display: none; }
  .has-docked-cart .cart-bar { display: none; }
}
@media (max-width: 1179px) {
  .drawer:not(.open) { visibility: hidden; }
}
@media (min-width: 701px) and (max-width: 1320px) {
  .has-docked-cart .items { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .layout { padding-top: 8px; }
  .hero-business-info { grid-template-columns: 1fr; gap: 8px; padding-top: 12px; margin-bottom: 8px; }
  .hbi-fulfillment-toggle-slot, .hbi-pickup-toggle-slot { grid-column: 1; grid-row: auto; min-width: 0; }
  .hbi-fulfillment-toggle-slot { margin-top: 4px; }
  .hbi-pickup-toggle-slot { margin-top: 0; }
  .hbi-tagline { font-size: 14px; }
  .hbi-address { font-size: 13px; }
  .catmenu-label { display: none; }
  .catmenu-btn { width: 44px; justify-content: center; }
  .cat-head h2 { font-size: 20px; }
  .item-photo { width: 110px; min-height: 150px; }
  .item-main { padding: 12px; }
  .item-desc { font-size: 14px; }
  .item-title-row { gap: 4px; }
  .theme-row { gap: 8px; }
  .theme-toggle { padding: 6px; font-size: 11px; }
  .drawer[data-view="checkout"] .drawer-body { padding: 14px; gap: 12px; }
  .checkout-section { padding: 14px; }
  .checkout-section-title { font-size: 17px; }
  .sms-consent-row { font-size: 13px; }
}
@media (max-width: 380px) {
  .item-photo { width: 92px; }
  .item-name { font-size: 15px; }
  .item-popup-actions { gap: 8px; padding: 12px; }
  .item-popup-actions .qty-btn { min-width: 32px; }
}
@media (min-width: 1000px) {
  .drawer.drawer--wide[data-view="checkout"] { width: min(940px, 94vw); }
  .drawer[data-view="checkout"] .drawer-body {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    align-items: start;
  }
  .checkout-contact { grid-column: 1; grid-row: 1; }
  .checkout-fulfillment { grid-column: 1; grid-row: 2; }
  .checkout-payment { grid-column: 1; grid-row: 3; }
  .checkout-summary { grid-column: 2; grid-row: 1; }
  .checkout-totals-section { grid-column: 2; grid-row: 2 / 4; }
  .drawer[data-view="checkout"] .drawer-body > .field,
  #checkoutError { grid-column: 1 / -1; }
  .checkout-summary .order-summary-chevron { display: none; }
  .checkout-summary .cart-line { flex-wrap: wrap; }
  .checkout-summary .cart-line-photo { width: 40px; height: 40px; }
  .checkout-summary .cart-line-main { flex-basis: 120px; }
}
.hbi-fulfillment-toggle-slot, .hbi-pickup-toggle-slot { max-width: none; margin: 0; }
.hbi-order-direct { display: none; }
.pickup-toggle { border: 1px solid var(--line); border-radius: 12px; padding: 3px; background: var(--paper-alt); }
.pickup-toggle-thumb { top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); background: var(--accent); border-radius: 9px; }
.pickup-toggle-option { min-height: 38px; border-radius: 9px; font-size: 14px; padding: 7px 12px; }
.pickup-toggle.mode-asap .pickup-toggle-option:first-of-type,
.pickup-toggle.mode-delivery .pickup-toggle-option:last-of-type { color: #fff; }
.pickup-time-box { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.checkout-section .field > label { font-size: 14px; text-transform: none; letter-spacing: normal; color: var(--ink); }
.checkout-section .field label.sms-consent-row { font-size: 12px; font-weight: 400; color: var(--ink-soft); border: 0; border-radius: 8px; padding: 8px; line-height: 1.5; }
.checkout-section .disclaimer { font-size: 13px; line-height: 1.5; }
.checkout-terms.disclaimer { border: 0; background: transparent; padding: 0; margin-top: 10px; font-size: 12px; line-height: 1.5; }
.remove-line { min-width: 36px; min-height: 36px; }
.drawer[data-view="cart"] .cart-line { flex-wrap: wrap; }
.drawer[data-view="cart"] .cart-line-main { flex-basis: calc(100% - 72px); }
.drawer[data-view="cart"] .cart-line-controls { margin-left: auto; }
/* Absolute images let card content determine height even with portrait uploads. */
.item-photo img { position: absolute; inset: 0; }
.masthead-inner { max-width: 1440px; }
.drawer[data-view="cart"] .field > label { font-size: 14px; text-transform: none; letter-spacing: normal; color: var(--ink); }
