body:has(.app-frame--orders) {
  --bg: #fbf8ff; /* surface */
  --bg-elevated: #ffffff; /* surface-container-lowest */
  --surface: #ffffff; /* surface-container-lowest */
  --surface-strong: #ffffff;
  --surface-soft: #f4f2ff; /* surface-container-low */
  --surface-muted: #edecff; /* surface-container */
  --surface-tint: #fbf8ff; /* surface-bright */
  --line: #edecff; /* surface-container */
  --line-strong: #8d7169; /* outline */
  --text: #181a2e; /* on-surface */
  --text-muted: #59413a; /* on-surface-variant */
  --text-soft: #535f72; /* secondary */
  --primary: #ac3509; /* primary */
  --primary-strong: #852300; /* on-primary-fixed-variant */
  --primary-soft: #ffdbd0; /* primary-fixed */
  --secondary: #535f72; /* secondary */
  --secondary-soft: #d7e3fa; /* secondary-container */
  --accent: #ff7043; /* primary-container */
  --accent-soft: #ffdbd0; /* primary-fixed */
  
  --radius-xl: 2rem;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: 0.5rem;

  --font-display: "IBM Plex Sans Hebrew", sans-serif;
  --font-body: "IBM Plex Sans Hebrew", sans-serif;
  
  background: var(--bg);
}

.orders-startup-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #fbf8ff;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.orders-startup-splash.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.orders-startup-splash__branding {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.orders-startup-splash__branding img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: orders-startup-dark-to-bright 2s ease-out forwards;
}

@keyframes orders-startup-dark-to-bright {
  from {
    opacity: 0.82;
    filter: brightness(0.35) saturate(0.8);
  }
  to {
    opacity: 1;
    filter: brightness(1) saturate(1);
  }
}

body:has(.app-frame--orders) :is(
  button,
  input,
  textarea,
  select,
  .ui-button,
  .ui-card,
  .ui-badge,
  .menu-card,
  .menu-card__visual,
  .modifier-group,
  .modifier-card,
  .modifier-option,
  .payment-summary,
  .summary-row,
  .summary-row__image-container,
  .category-tab,
  .orders-cart-count,
  .orders-cart-control .ui-button,
  .payment-page__back
) {
  border-radius: 0 !important;
}

body:has(.app-frame--orders)::before {
  display: none;
}

.app-frame--orders {
  min-height: 100svh;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.app-frame--orders .app-shell {
  width: 100%;
  min-height: 100svh;
}

.app-frame--orders > .app-shell:not(.customer-home__shell) {
  height: 100svh;
  min-height: 0;
  overflow: hidden;
}

@supports (height: 100dvh) {
  .app-frame--orders > .app-shell:not(.customer-home__shell) {
    height: 100dvh;
  }
}

.app-frame--orders input,
.app-frame--orders textarea,
.app-frame--orders select {
  user-select: text;
  -webkit-user-select: text;
}

body:has(.app-frame--orders) {
  overscroll-behavior: none;
}

body:has(.app-frame--orders .editor-modal) {
  overflow: hidden;
}

body:has(.app-frame--orders) .ui-backdrop {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: center !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body:has(.app-frame--orders) .ui-modal {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  width: 100% !important;
  max-width: 520px !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  height: 100svh !important;
  max-height: 100svh !important;
  box-shadow: 0 -8px 30px rgba(24, 26, 46, 0.1) !important;
}

@supports (height: 100dvh) {
  body:has(.app-frame--orders) .ui-modal {
    height: 100dvh !important;
    max-height: 100dvh !important;
  }
}

body:has(.app-frame--orders) img,
body:has(.app-frame--orders) svg,
body:has(.app-frame--orders) .ui-backdrop img,
body:has(.app-frame--orders) .ui-backdrop svg {
  -webkit-user-drag: none;
}

body:has(.app-frame--orders) .ui-backdrop {
  animation: orders-modal-fade-in 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: opacity;
}

body:has(.app-frame--orders) .ui-modal {
  animation: orders-modal-enter 350ms cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform;
}

body:has(.app-frame--orders) .ui-backdrop.is-closing {
  animation: orders-modal-fade-out 250ms ease-in both;
}

body:has(.app-frame--orders) .ui-backdrop.is-closing .ui-modal {
  animation: orders-modal-exit 250ms ease-in both;
}

@keyframes orders-modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes orders-modal-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes orders-modal-enter {
  from {
    transform: translate3d(0, 100%, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes orders-modal-exit {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, 100%, 0);
  }
}

/* Make primary buttons matte / flat (no gradients) */
body:has(.app-frame--orders) .ui-button--primary,
body:has(.app-frame--orders) .primary-button {
  background: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(172, 53, 9, 0.15) !important;
}

body:has(.app-frame--orders) .ui-button--primary:hover,
body:has(.app-frame--orders) .primary-button:hover {
  background: var(--primary-strong) !important;
}

@media (prefers-reduced-motion: reduce) {
  body:has(.app-frame--orders) .ui-backdrop,
  body:has(.app-frame--orders) .ui-modal,
  body:has(.app-frame--orders) .ui-backdrop.is-closing,
  body:has(.app-frame--orders) .ui-backdrop.is-closing .ui-modal {
    animation: none;
  }
}

.app-frame--orders .menu-stage {
  flex: 1 1 auto;
  gap: 16px;
  min-height: 0;
  padding: 12px 12px 104px;
}

.app-frame--orders .orders-menu-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding-top: calc(6px + env(safe-area-inset-top));
  background: var(--bg);
}

.app-frame--orders:has(.orders-menu-shell) {
  background: var(--bg);
}

.app-frame--orders .orders-menu-shell .menu-stage {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: 8px 6px 10px;
}

.app-frame--orders .orders-menu-shell .menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-content: start;
}


.menu-category-section {
  scroll-margin-top: 10px;
  margin-bottom: 24px;
}

.app-frame--orders .orders-menu-shell .empty-state {
  min-height: 140px;
  margin: 8px;
  background: #ffffff;
}

.app-frame--orders .category-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0;
  background: rgba(248, 251, 255, 0.94);
  backdrop-filter: blur(14px);
}

.app-frame--orders .category-tab,
.app-frame--orders .menu-card,
.app-frame--orders .menu-card__cta,
.app-frame--orders .ui-card,
.app-frame--orders .modifier-group,
.app-frame--orders .modifier-card,
.app-frame--orders .modifier-option,
.app-frame--orders .payment-summary,
.app-frame--orders .summary-row {
  border-color: var(--line);
}

.customer-home {
  min-height: 100svh;
}

.customer-home__shell {
  min-height: 100svh;
  display: grid;
  align-items: start;
  padding: 10svh 0 24px;
}

.customer-home__panel {
  display: grid;
  gap: 20px;
  align-content: center;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 22px 16px 28px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.customer-home__hero {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 16svh 18px 18px;
}

.customer-home__hero--backdrop {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  padding: 16svh 18px 18px;
  pointer-events: none;
}

.customer-home__head {
  display: grid;
  gap: 10px;
}

.customer-home__head h1 {
  margin: 0;
  font-size: 2.4rem;
}

.customer-home__copy {
  margin: 0;
  max-width: 60ch;
  color: var(--text-muted);
  line-height: 1.6;
}

.customer-home__back {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.closed-shift-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at top, rgba(172, 53, 9, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(237, 236, 255, 0.6) 0%, var(--bg) 42%, #fff 100%);
}

.closed-shift-page__main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(32px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}

.closed-shift-card {
  width: min(100%, 520px);
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
  padding: 28px 24px 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(83, 95, 114, 0.16);
  box-shadow: 0 24px 60px rgba(24, 26, 46, 0.08);
  backdrop-filter: blur(16px);
}

.closed-shift-card__art-wrap {
  width: min(100%, 320px);
}

.closed-shift-art {
  width: 100%;
  height: auto;
  display: block;
}

.closed-shift-card__copy {
  display: grid;
  gap: 10px;
}

.closed-shift-card__eyebrow {
  margin: 0;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.closed-shift-card__message {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  line-height: 1.8;
  font-weight: 600;
}

.closed-shift-card__footer {
  width: 100%;
  padding-top: 4px;
}

.customer-info-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.customer-info-links button {
  padding: 2px 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.customer-info-links button:hover,
.customer-info-links button:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.customer-info-links button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

.customer-session-actions .ui-button {
  flex: 1 1 160px;
}

.customer-session-actions--modal {
  margin-bottom: 12px;
}

.customer-home-modal .ui-modal__body {
  display: grid;
  gap: 18px;
}

.customer-order-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.customer-orders__panel {
  align-content: start;
  width: min(100%, 760px);
}

.customer-orders__list {
  display: grid;
  gap: 10px;
}

.customer-orders-inline {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.customer-orders-inline__head {
  display: grid;
  gap: 2px;
}

.customer-orders-inline__head h2 {
  margin: 0;
  font-size: 1.18rem;
}

.customer-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: right;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: var(--shadow-xs);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.customer-order-card:hover,
.customer-order-card:focus-visible {
  border-color: rgba(11, 116, 108, 0.28);
  box-shadow: var(--shadow-sm);
}

.customer-order-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.customer-order-card h2 {
  margin: 2px 0 8px;
  font-size: 1.18rem;
}

.customer-order-card__chevron {
  display: inline-flex;
  color: var(--text-muted);
}

.customer-active-order {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(11, 116, 108, 0.22);
  border-radius: 0 !important;
  background: var(--primary-soft);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.customer-active-order:hover,
.customer-active-order:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(11, 43, 52, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.customer-active-order__head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.customer-active-order__head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.customer-active-order__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 6px;
}

.customer-active-order__steps.is-disabled {
  opacity: 0.62;
}

.customer-active-order__steps span {
  min-height: 32px;
  display: grid;
  place-items: center;
  padding: 5px 8px;
  border-radius: 0;
  background: #fff;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.customer-active-order__steps span.is-active {
  background: var(--primary);
  color: #fff;
}

.customer-order-card__meta,
.customer-order-details__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--text-muted);
  font-weight: 800;
}

.customer-order-details {
  width: 100%;
  display: grid;
  gap: 12px;
  text-align: right;
}

.customer-order-details__meta {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}

.legal-page-content {
  max-height: min(54vh, 520px);
  overflow: auto;
  color: var(--text);
  line-height: 1.7;
  white-space: normal;
}

.app-frame--orders .category-tab {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  color: var(--text-muted);
}

.app-frame--orders .category-tab.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.app-frame--orders .menu-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-xl);
}

.app-frame--orders .orders-menu-shell .menu-card {
  width: 100%;
  min-height: auto;
  height: auto;
  padding: 12px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(24, 26, 46, 0.04);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-frame--orders .orders-menu-shell .menu-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 36px rgba(24, 26, 46, 0.08);
}

.app-frame--orders .menu-card__click {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.app-frame--orders .orders-menu-shell .menu-card__click {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: right;
  cursor: pointer;
}

.app-frame--orders .menu-card__visual {
  width: 120px;
  height: 120px;
  aspect-ratio: 1 / 1;
  flex: 0 0 120px;
  overflow: hidden;
  background: #f8fafc;
  position: relative;
  display: grid;
  place-items: center;
}

.app-frame--orders .orders-menu-shell .menu-card__visual {
  position: relative;
  width: 120px;
  height: 120px;
  aspect-ratio: 1 / 1;
  flex: 0 0 120px;
  min-height: 0;
  overflow: hidden;
  background: #f8fafc;
  display: grid;
  place-items: center;
}

.app-frame--orders .menu-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.app-frame--orders .menu-card__body {
  flex: 1 1 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-items: stretch;
  text-align: right;
}

.app-frame--orders .orders-menu-shell .menu-card__body {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  border-top: 0;
  overflow: hidden;
  justify-content: center;
  align-items: stretch;
  text-align: right;
}

.app-frame--orders .menu-card__top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.app-frame--orders .orders-menu-shell .menu-card__top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.app-frame--orders .menu-card__top h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.app-frame--orders .orders-menu-shell .menu-card__top h3 {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-align: right;
  text-overflow: ellipsis;
  white-space: normal;
}

.app-frame--orders .menu-card__top p {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12px;
}

.app-frame--orders .orders-menu-shell .menu-card__body p {
  width: 100%;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12px;
  text-align: right;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.app-frame--orders .orders-menu-shell .menu-card__price {
  flex: 0 0 auto;
  align-self: stretch;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  margin-top: 4px;
  text-align: left;
}

.app-frame--orders .menu-card__bottom {
  min-height: 0;
}

.app-frame--orders .menu-card__bottom .ui-badge {
  min-height: 24px;
  padding: 0 8px;
  font-size: 0.74rem;
}

.app-frame--orders .menu-card__cta {
  min-height: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.app-frame--orders .orders-menu-header {
  flex: 0 0 auto;
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  border-radius: 0;
  background: var(--bg);
  color: var(--primary);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  z-index: 40;
  overflow: hidden;
  transform-origin: top center;
  will-change: min-height, padding, border-radius, transform;
}

.app-frame--orders .orders-menu-back {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(24, 26, 46, 0.08);
  cursor: pointer;
}

.app-frame--orders .orders-menu-header--intro .orders-menu-back {
  animation: orders-header-fields-in 320ms ease-out 260ms both;
}

.app-frame--orders .orders-menu-back svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-frame--orders .orders-menu-header--intro {
  animation: orders-header-from-landing-card 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-frame--orders .orders-category-scroll {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.app-frame--orders .orders-menu-header--intro .orders-category-scroll {
  animation: orders-header-fields-in 320ms ease-out 260ms both;
}

.app-frame--orders .orders-category-scroll::-webkit-scrollbar {
  display: none;
}

.app-frame--orders .orders-menu-header .category-tabs {
  position: static;
  display: flex !important;
  gap: 12px !important;
  align-items: center;
  padding: 4px 0 !important;
  background: transparent !important;
  backdrop-filter: none;
  white-space: nowrap !important;
}

.app-frame--orders .orders-menu-header .category-tab {
  min-width: 0 !important;
  min-height: 38px;
  height: auto !important;
  padding: 8px 18px !important;
  border: 0;
  border-radius: 1rem !important; /* rounded-2xl / 16px */
  background: var(--surface-soft);
  color: var(--text-muted);
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.app-frame--orders .orders-menu-header .category-tab.is-active {
  background: var(--accent) !important; /* bg-primary-container / #ff7043 */
  border-color: transparent;
  color: #641800 !important; /* on-primary-container / #641800 */
  box-shadow: 0 4px 12px rgba(172, 53, 9, 0.15);
  text-decoration: none !important;
}

.app-frame--orders .orders-cart-control {
  position: relative;
  flex: 0 0 auto;
}

.app-frame--orders .orders-menu-header--intro .orders-cart-control {
  animation: orders-header-fields-in 320ms ease-out 260ms both;
}

.app-frame--orders .orders-cart-control .ui-button {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center;
  border: 1px solid var(--line) !important;
  border-radius: 50% !important;
  background: var(--surface) !important;
  color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(24, 26, 46, 0.08) !important;
}

.app-frame--orders .orders-cart-control .ui-button .ui-icon {
  width: 24px;
  height: 24px;
}

.app-frame--orders .orders-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

@keyframes orders-header-from-landing-card {
  0% {
    min-height: 220px;
    padding: calc(32px + env(safe-area-inset-top)) 24px 24px;
    border-radius: 0;
    transform: translate3d(0, 18px, 0);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  }
  58% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    min-height: 76px;
    padding: calc(12px + env(safe-area-inset-top)) 12px 10px;
    border-radius: 0;
    transform: translate3d(0, 0, 0);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  }
}

@keyframes orders-header-fields-in {
  from {
    opacity: 0;
    transform: translate3d(0, -12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-frame--orders .orders-menu-header,
  .app-frame--orders .orders-category-scroll,
  .app-frame--orders .orders-cart-control {
    animation: none;
  }
}

body:has(.app-frame--orders) .editor-modal .ui-modal__head,
body:has(.app-frame--orders) .ui-modal:has(.payment-shell--summary) .ui-modal__head {
  display: none;
}

body:has(.app-frame--orders) .orders-screen-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0 0 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  padding-top: 12px;
  background: var(--bg);
  isolation: isolate;
}

/* The menu header uses the same top-bar foundation while keeping its category navigation. */
body:has(.app-frame--orders) .orders-menu-header.orders-screen-topbar {
  min-height: 64px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  margin-bottom: 0;
  background: var(--bg);
  overflow: hidden;
}

body:has(.app-frame--orders) .orders-screen-topbar__action {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(24, 26, 46, 0.08);
  cursor: pointer;
}

body:has(.app-frame--orders) .orders-screen-topbar__action svg {
  width: 28px;
  height: 28px;
  display: block;
}

body:has(.app-frame--orders) .orders-menu-header .orders-screen-topbar__action {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

body:has(.app-frame--orders) .orders-menu-header .orders-screen-topbar__action svg {
  width: 28px;
  height: 28px;
}

/* Modal content has outer padding; let the sticky bar cover that area while scrolling. */
body:has(.app-frame--orders) .editor-modal .orders-screen-topbar,
body:has(.app-frame--orders) .ui-modal:has(.payment-shell--summary) .orders-screen-topbar {
  margin: -18px -18px 10px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
}

body:has(.app-frame--orders) .orders-screen-topbar__text {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
}

body:has(.app-frame--orders) .orders-screen-topbar__title {
  margin: 0;
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

body:has(.app-frame--orders) .orders-screen-topbar__subtitle {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

body:has(.app-frame--orders) .editor-modal {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  max-height: 100svh !important;
  height: 100svh !important;
  overflow: hidden;
  max-width: 520px !important;
  width: 100% !important;
  border-radius: 0 !important;
}

@supports (max-height: 100dvh) {
  body:has(.app-frame--orders) .editor-modal {
    max-height: 100dvh !important;
    height: 100dvh !important;
  }
}

body:has(.app-frame--orders) .editor-modal .ui-modal__body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

body:has(.app-frame--orders) .editor-content {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body:has(.app-frame--orders) .editor-modal__visual {
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  min-height: 180px;
  margin: 0 auto 1.5rem;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  display: grid;
  place-items: center;
}

body:has(.app-frame--orders) .editor-modal__visual .menu-card__image {
  object-fit: contain;
  object-position: center;
}

body:has(.app-frame--orders) .editor-actions {
  z-index: 2;
  margin: 12px -18px -18px;
  padding: 12px 18px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

body:has(.app-frame--orders) .editor-actions .ui-button {
  flex: 1 1 0;
  min-width: 0;
}

body:has(.app-frame--orders) .editor-modal .modifier-option {
  max-width: 100%;
  min-width: 0;
}

body:has(.app-frame--orders) .editor-modal .modifier-option > div:first-child {
  min-width: 0;
  flex-wrap: wrap !important;
}

body:has(.app-frame--orders) .editor-modal .modal-grid {
  grid-template-columns: 1fr;
}

body:has(.app-frame--orders) .editor-modal .modal-visual {
  width: min(100%, 250px);
  height: 92px;
  min-height: 0;
  justify-self: start;
  border-radius: 18px;
}

.app-frame--orders .modifier-group__pricing {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--primary-soft);
  border: 1px solid rgba(172, 53, 9, 0.16);
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.app-frame--orders .modifier-group__pricing strong {
  color: var(--text);
  font-weight: 700;
}

.app-frame--orders .modifier-option__copy {
  display: grid;
  gap: 3px;
}

.app-frame--orders .modifier-option__price {
  width: fit-content;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.78rem;
  font-weight: 800;
}

.app-frame--orders .modifier-option--disabled {
  opacity: 0.45;
}

.app-frame--orders:has(.editor-modal),
.app-frame--orders:has(.editor-modal) .app-shell {
  max-height: 100svh;
  overflow: hidden;
}

.app-frame--orders .order-package {
  bottom: 18px;
}

.order-choice {
  min-height: 160px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
}

.order-choice__icon .ui-icon {
  width: 32px;
  height: 32px;
}

.order-status {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.order-status-screen {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.order-status-screen .order-status {
  min-height: 0;
}

.order-status__footer {
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.order-status__footer a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.order-status__footer a:hover,
.order-status__footer a:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.order-status__panel {
  width: min(560px, 100%);
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.order-status__panel h1 {
  margin: 0;
  font-size: 2.2rem;
}

.order-status__icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
}

.order-status__icon .ui-icon {
  width: 34px;
  height: 34px;
}

.order-status__steps {
  width: 100%;
  display: grid;
  gap: 10px;
}

.order-status__step {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(24, 26, 46, 0.08);
  border-radius: 4px;
  background: #edf2f7;
  color: var(--text-muted);
  text-align: right;
}

.order-status__step > span:first-child {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #d5dde5;
  font-weight: 700;
}

.order-status__step-label {
  font-weight: 400;
}

.order-status__step.is-active {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.order-status__step.is-active > span:first-child {
  background: var(--primary);
  color: #fff;
}

.order-status__step.is-active .order-status__step-label {
  font-weight: 800;
}

.order-status__live {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid rgba(11, 116, 108, 0.12);
  border-radius: 4px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  text-align: right;
  box-shadow: inset 0 0 0 1px rgba(11, 116, 108, 0.12);
}

.order-status__live-indicator {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
}

.order-status__live .order-status__step-label {
  font-weight: 800;
}

.order-status__spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: order-status-spin 0.8s linear infinite;
}

@keyframes order-status-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Compact customer tracking card */
.order-status-screen .order-status {
  align-items: start;
  padding: 8px 14px 24px;
  overflow-y: auto;
}

.order-status-screen .order-status__panel {
  position: relative;
  width: min(420px, 100%);
  gap: 0;
  justify-items: stretch;
  text-align: right;
  padding: 28px 24px 22px;
  border: 1px solid rgba(24, 26, 46, 0.08);
  border-radius: 0;
  box-shadow: 0 12px 32px rgba(24, 26, 46, 0.12);
}

.order-status__game-banner {
  width: min(420px, calc(100% - 28px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 13px 16px;
  border: 1px solid rgba(36, 56, 156, 0.16);
  border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, #fffdf7 0%, #eef3ff 100%);
  color: var(--text);
  text-align: right;
  text-decoration: none;
  box-shadow: 0 -8px 24px rgba(36, 56, 156, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.order-status__game-banner:hover,
.order-status__game-banner:focus-visible {
  border-color: rgba(36, 56, 156, 0.34);
  box-shadow: 0 -10px 28px rgba(36, 56, 156, 0.16);
  transform: translateY(-2px);
}

.order-status__game-banner:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 2px;
}

.order-status__game-icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  flex: 0 0 47px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 7px 14px rgba(36, 56, 156, 0.22);
}

.order-status__game-icon svg {
  width: 29px;
  height: 29px;
}

.order-status__game-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.order-status__game-copy strong {
  color: var(--primary-strong);
  font-size: 0.92rem;
  line-height: 1.3;
}

.order-status__game-copy span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.77rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-status__game-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.order-status__game-cta span {
  font-size: 1rem;
  line-height: 1;
}

.order-status__home {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-self: start;
  margin: -8px 0 18px;
  padding: 0;
  border: 0 !important;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.order-status__home .ui-icon {
  width: 18px;
  height: 18px;
}

.order-status__home:hover,
.order-status__home:focus-visible {
  color: var(--primary);
}

.order-status__header {
  display: grid;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.order-status__header h1 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: clamp(1.7rem, 7vw, 2rem);
  line-height: 1.1;
}

.order-status__header h1 span {
  font-size: 0.92em;
}

.order-status__header p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.order-status__header .ui-icon {
  width: 17px;
  height: 17px;
}

.order-status__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 0 28px;
  font-size: 1rem;
  font-weight: 800;
}

.order-status__total strong {
  font-size: 1.1rem;
}

.order-status__steps {
  position: relative;
  display: grid;
  gap: 0;
  width: 100%;
  margin-bottom: 20px;
}

.order-status__steps::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  right: 18px;
  width: 1px;
  background: var(--line-strong);
  opacity: 0.3;
}

.order-status__step {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 5px 0;
  border: 0;
  border-radius: 0 !important;
  background: transparent;
  color: var(--text-muted);
  text-align: right;
}

.order-status__step > .order-status__step-marker {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 0 !important;
  background: var(--surface);
  color: var(--text-muted);
}

.order-status__step-marker .ui-icon {
  width: 20px;
  height: 20px;
}

.order-status__step-copy {
  display: grid;
  gap: 2px;
  font-size: 1rem;
  font-weight: 700;
}

.order-status__step-copy small {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.order-status__step.is-active {
  background: transparent;
  color: var(--text);
}

.order-status__step.is-active > .order-status__step-marker {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}

.order-status__step.is-active .order-status__step-copy {
  font-weight: 800;
}

.order-status__step:not(.is-current) > .order-status__step-marker {
  font-size: 1.25rem;
  font-weight: 800;
}

.order-status__step.is-current > .order-status__step-marker {
  animation: order-status-step-pulse 3.4s ease-in-out infinite;
}

@keyframes order-status-step-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-soft) 72%, transparent);
  }
  50% {
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-soft) 22%, transparent);
  }
}

@media (max-width: 420px) {
  .order-status-screen .order-status {
    padding: 0 8px 16px;
  }

  .order-status-screen .order-status__panel {
    padding: 24px 18px 18px;
    border-radius: 0;
  }

  .order-status__game-banner {
    width: calc(100% - 16px);
    gap: 9px;
    padding: 11px 12px;
  }

  .order-status__game-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .order-status__game-copy strong {
    font-size: 0.82rem;
  }

  .order-status__game-copy span {
    font-size: 0.7rem;
  }

  .order-status__game-cta {
    padding: 7px 8px;
    font-size: 0.72rem;
  }
}

.order-status__steps.is-disabled {
  opacity: 0.62;
}

@media (max-width: 760px) {
  .app-frame--orders .menu-grid {
    gap: 12px;
  }

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

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

  .customer-active-order__head {
    display: grid;
  }
}

@media (min-width: 761px) {
  .customer-home__panel {
    width: min(100%, 640px);
    padding: 28px 24px 32px;
  }
}

/* Custom Fullscreen Landing Page (Mockup-based) */
.landing-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  background-color: #f7f7f7;
  position: relative;
  overflow: hidden; /* Crucial to crop the negative inset of landing-bg */
  touch-action: none; /* Prevents viewport panning or scrolling the background */
}

.landing-page::after {
  display: none;
}

/* Background container: inset crops phone rounded edges, and height crops out the printed card at the bottom of the mockup */
.landing-bg {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  height: 55vh;
  background: #f7f7f7;
  z-index: 1;
  pointer-events: none;
}

.landing-hero {
  flex: 1 1 0;
  min-height: clamp(220px, 42vh, 360px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px 18px max(32px, 10vh);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.landing-hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.landing-hero__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 35%;
}

.customer-branding {
  width: min(100%, 220px);
  display: flex;
  justify-content: center;
}

.customer-branding img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(24, 26, 46, 0.12));
}

.customer-branding--compact {
  width: min(100%, 180px);
  margin-inline: auto;
}

.customer-branding--compact img {
  max-height: 88px;
}

.customer-hero-text {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--primary);
  font-size: 1.72rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0;
}

.customer-hero-text--compact {
  font-size: 1.5rem;
}

.landing-card {
  background-color: var(--primary); /* App primary color */
  border-radius: 0;
  padding: 32px 24px calc(24px + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  /* Shade starts from the card shape curve: box shadow on the card itself */
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  z-index: 3;
  position: relative;
  flex-shrink: 0; /* Never let flex compress the card — honour the inline height */
  overflow-y: auto; /* Allow scrolling when height is restricted */
  touch-action: pan-y; /* Allows vertical scrolling inside the card content, but not background panning */
  max-height: 85svh;
}

.landing-card__title {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.landing-card__user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  /* Fluid type: greeting + actions stay on one row on small phones */
  font-size: clamp(0.8rem, 0.5rem + 1.9vw, 0.95rem);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
  padding-bottom: 10px;
  margin-bottom: 2px;
}

.landing-card__user-header--guest {
  justify-content: flex-end;
}

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

.landing-card__logout-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.landing-card__logout-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

.landing-card__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.landing-card__choice-btn {
  background-color: #ffffff;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s, background-color 0.2s;
  box-shadow: 0 6px 18px rgba(20, 33, 42, 0.12);
  width: 100%;
  box-sizing: border-box;
}

.landing-card__choice-btn:hover {
  background-color: #f8fafc;
  transform: none;
  box-shadow: 0 10px 24px rgba(20, 33, 42, 0.18);
}

.landing-card__choice-btn:active {
  transform: none;
  box-shadow: 0 4px 10px rgba(20, 33, 42, 0.08);
}

.landing-card__choice-icon {
  color: var(--primary); /* Match app primary color */
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-card__choice-icon .ui-icon {
  width: 36px;
  height: 36px;
  stroke-width: 1.5;
}

.landing-card__choice-label {
  color: #14212a; /* Dark text */
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Identified customer nested sections styling inside landing card */
.landing-card__extra {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.landing-card__extra .eyebrow {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.landing-card__extra h2 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-top: 1px;
}

.landing-card__extra .customer-active-order {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  color: #ffffff;
  padding: 12px;
}

.landing-card__extra .customer-active-order__head h2 {
  color: #ffffff;
}

.landing-card__extra .customer-active-order__head .secondary-button {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  color: #ffffff;
  padding: 4px 10px;
  min-height: 28px;
}

.landing-card__extra .customer-active-order__head .secondary-button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.landing-card__extra .customer-active-order__steps span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  min-height: 26px;
  border-radius: 0;
  font-size: 0.76rem;
}

.landing-card__extra .customer-active-order__steps span.is-active {
  background: #ffffff;
  color: var(--primary); /* Match app primary color */
  font-weight: 700;
  border-color: #ffffff;
}

/* Ensure absolute contrast and readability of text inside white customer cards (much smaller, tight padding) */
.landing-card__extra .customer-order-card {
  background: #ffffff !important;
  color: #14212a !important; /* Force dark text */
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 0 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.2s ease;
  padding: 8px 12px !important;
  gap: 8px !important;
}

.landing-card__extra .customer-order-card:hover {
  background: #f8fafc !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12) !important;
}

.landing-card__extra .customer-order-card h2 {
  color: #14212a !important; /* Force dark text */
  font-weight: 700;
  font-size: 0.95rem !important;
  margin: 0px 0 3px !important;
}

.landing-card__extra .customer-order-card .eyebrow {
  color: #4f5f6c !important; /* Darker than default muted color on white card */
  font-weight: 600;
  font-size: 0.72rem !important;
}

.landing-card__extra .customer-order-card__meta {
  color: #4f5f6c !important; /* Darker text */
  font-weight: 700;
  font-size: 0.78rem !important;
  gap: 6px !important;
}

.landing-card__extra .customer-order-card__meta .ui-badge {
  min-height: 20px !important;
  padding: 0 6px !important;
  border-radius: 0 !important;
  font-size: 0.7rem !important;
}

.landing-card__extra .customer-order-card__chevron {
  color: var(--primary) !important; /* Use primary color for chevron */
}

/* Empty State / Loading Contrast inside landing card */
.landing-card__extra .ui-empty-state {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important; /* High contrast text on dark teal card */
  border: 1px dashed rgba(255, 255, 255, 0.25) !important;
  min-height: 100px;
  padding: 12px;
}

.landing-card__footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 12px;
}

.landing-card__footer .customer-info-links {
  color: rgba(255, 255, 255, 0.7);
}

.landing-card__footer .customer-info-links button {
  color: #ffffff;
  transition: opacity 0.2s;
}

.landing-card__footer .customer-info-links button:hover {
  opacity: 0.9;
  text-decoration: underline;
}

/* Landing language switch — dropdown inside the landing header */
.landing-lang {
  position: relative;
}

.landing-lang__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(20, 33, 42, 0.35);
  border-radius: 0;
  color: #14212a;
  padding: 5px 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.landing-lang__trigger:hover {
  background: rgba(20, 33, 42, 0.06);
  border-color: rgba(20, 33, 42, 0.55);
}

.landing-lang__chevron {
  display: inline-flex;
  color: inherit;
  transition: transform 0.2s ease;
}

.landing-lang__chevron .ui-icon {
  width: 16px;
  height: 16px;
}

.landing-lang.is-open .landing-lang__chevron {
  transform: rotate(180deg);
}

.landing-lang__menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  transform: translateY(-4px);
  min-width: 168px;
  background: #ffffff;
  border: 1px solid rgba(20, 33, 42, 0.08);
  border-radius: 0;
  box-shadow: 0 8px 20px rgba(20, 33, 42, 0.14);
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 6;
}

.landing-lang.is-open .landing-lang__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.landing-lang__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  color: #14212a;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.landing-lang__option:hover {
  background: rgba(20, 33, 42, 0.06);
}

.landing-lang__option.is-active {
  font-weight: 700;
}

.landing-lang__check {
  display: inline-flex;
  color: var(--accent);
}

.landing-lang__check .ui-icon {
  width: 16px;
  height: 16px;
}

/* Landing is one continuous full-screen canvas. The image and white matte are
   shared by the content, order choices, and footer instead of separate panels. */
.landing-page {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: 100svh;
  height: 100svh;
  padding: 0;
  background: #f7f7f7;
  color: #14212a;
}

.landing-page::after {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.78);
  pointer-events: none;
}

.landing-page__background {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.landing-page__background img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.landing-content {
  width: min(100%, 520px);
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
  padding: 14px 24px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
  position: relative;
  z-index: 1;
  background: transparent;
  color: #14212a;
}

.landing-content .landing-card__user-header {
  width: 100%;
  color: #14212a;
  border-bottom-color: rgba(20, 33, 42, 0.16);
}

.landing-content .landing-card__logout-btn {
  color: #14212a;
  border-color: rgba(20, 33, 42, 0.35);
}

.landing-content .landing-card__title {
  color: #14212a;
  /* Fluid type: keeps the title on one line down to small phones (320px) */
  font-size: clamp(1.4rem, 0.28rem + 5.6vw, 2.1rem);
  line-height: 1.3;
  position: relative;
  padding-bottom: 12px;
}

.landing-content .landing-card__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  width: 28px;
  height: 3px;
  transform: translateX(50%);
  background: var(--accent);
}

.landing-content .landing-card__choices {
  width: 100%;
  max-width: none;
  gap: 12px;
}

.landing-content .landing-card__choice-btn {
  min-height: clamp(150px, 5rem + 21vw, 208px);
  padding: 26px 10px;
  border: 1px solid rgba(20, 33, 42, 0.06);
  box-shadow: 0 8px 20px rgba(20, 33, 42, 0.1);
}

.landing-content .landing-card__choice-icon .ui-icon {
  width: clamp(28px, 1rem + 4.4vw, 42px);
  height: clamp(28px, 1rem + 4.4vw, 42px);
  color: var(--accent);
}

.landing-content .landing-card__choice-label {
  /* Fluid type: keeps labels like "Takeaway" on one line on small phones */
  font-size: clamp(1.3rem, 0.5rem + 5.2vw, 2.1rem);
  white-space: nowrap;
}

.landing-content .landing-card__extra {
  width: 100%;
}

.landing-content .landing-card__extra,
.landing-content .landing-card__extra h2,
.landing-content .landing-card__extra .eyebrow,
.landing-content .landing-card__extra .customer-active-order,
.landing-content .landing-card__extra .customer-active-order__head h2,
.landing-content .landing-card__extra .ui-empty-state {
  color: #14212a !important;
}

.landing-content .landing-card__extra .customer-active-order__steps span {
  color: #14212a;
}

.landing-content .landing-card__extra .customer-active-order__steps span.is-active {
  color: #ffffff;
}

.landing-content .landing-card__extra .customer-active-order__head .secondary-button {
  background: transparent;
  border-color: rgba(20, 33, 42, 0.35);
  color: #14212a !important;
}

.landing-content .landing-card__extra .customer-active-order {
  border-radius: 0 !important;
  border-color: #ffffff !important;
  overflow: visible !important;
}

.landing-content .landing-card__extra .customer-active-order,
.landing-content .landing-card__extra .customer-active-order::before,
.landing-content .landing-card__extra .customer-active-order::after {
  border-radius: 0 !important;
}

.landing-content .landing-card__extra .customer-active-order__head .secondary-button .ui-icon {
  color: #14212a !important;
}

.landing-content .landing-card__extra .customer-order-card__meta,
.landing-content .landing-card__extra .customer-order-card .eyebrow {
  color: #14212a !important;
}

.landing-content .landing-card__footer {
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  border-top: 0;
}

.landing-content .customer-info-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  gap: 0;
  color: var(--accent);
}

.landing-content .customer-info-links button {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 4px;
  color: #6b625d;
  font-size: 0.66rem;
  line-height: 1.1;
  border-inline-start: 1px solid rgba(172, 53, 9, 0.28);
}

.landing-content .customer-info-links button:first-child {
  border-inline-start: 0;
}

.landing-content .customer-info-links button:hover {
  color: var(--accent);
  text-decoration: none;
}

.customer-info-links__icon {
  color: var(--accent);
  display: flex;
}

.customer-info-links__icon .ui-icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.5;
}

@media (max-height: 650px) {
  .landing-content {
    padding-top: 48px;
  }

  .landing-content .landing-card__choice-btn {
    min-height: 168px;
  }
}

@media (max-width: 380px) {
  .landing-card__logout-btn,
  .landing-lang__trigger {
    padding: 4px 10px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .landing-card__user-actions {
    gap: 8px;
  }
}

/* Very narrow phones: stack the header (greeting above the actions row)
   instead of squeezing it, since fonts alone can't make it fit. */
@media (max-width: 374px) {
  .landing-card__user-header {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .landing-card__user-header > span {
    min-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .landing-card__user-actions {
    margin-inline-start: auto;
  }
}

body:has(.app-frame--orders) .customer-modal {
  width: 100%;
  max-width: 520px;
  align-self: end;
  margin-bottom: 0;
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.55);
  font-family: var(--font-body);
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  height: auto !important;
  max-height: none !important;
  flex: 1 1 auto !important;
  box-sizing: border-box;
  will-change: transform;
  animation: customer-modal-slide-up 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@supports (height: 100dvh) {
  body:has(.app-frame--orders) .customer-modal {
    height: auto !important;
    max-height: none !important;
  }
}

body:has(.customer-modal) .ui-backdrop {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
  overflow: hidden;
  background: transparent; /* allow shared background to show through */
  backdrop-filter: none;
  animation: none;
}

body:has(.customer-modal) .ui-backdrop.is-closing .customer-modal {
  animation: customer-modal-slide-down 260ms ease-in both;
}

body:has(.customer-modal) .ui-backdrop.is-closing {
  animation: none;
  opacity: 1;
}

.customer-modal__hero {
  display: grid;
  place-items: center;
  padding: 0;
}

.customer-home-modal .customer-modal__hero {
  padding: 0 0 8px;
}

@keyframes customer-modal-slide-up {
  from {
    transform: translate3d(0, 100%, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes customer-modal-slide-down {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, 100%, 0);
  }
}

body:has(.app-frame--orders) .customer-modal .ui-modal__head {
  display: block;
  margin-bottom: 10px;
}

body:has(.app-frame--orders) .customer-modal .ui-modal__title-block {
  display: block;
  text-align: right;
}

.customer-modal__hero-backdrop {
  position: relative;
  width: min(100%, 520px);
  align-self: center;
}

.customer-modal__hero-backdrop .customer-modal__back {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  right: 8px;
  z-index: 4;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(24, 26, 46, 0.08);
  cursor: pointer;
}

.customer-modal__hero-backdrop .customer-modal__back svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body:has(.app-frame--orders) .customer-modal .ui-modal__title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
}

body:has(.app-frame--orders) .customer-modal .ui-modal__subtitle {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  margin-top: 4px;
}

body:has(.app-frame--orders) .customer-modal .ui-modal__body,
body:has(.app-frame--orders) .customer-modal .catalog-stack {
  display: grid;
  gap: 8px;
}

body:has(.app-frame--orders) .customer-modal .ui-field {
  gap: 0;
}

body:has(.app-frame--orders) .customer-modal .modal-actions > *,
body:has(.app-frame--orders) .customer-modal .secondary-button,
body:has(.app-frame--orders) .customer-modal .primary-button,
body:has(.app-frame--orders) .customer-modal .ui-button--primary,
body:has(.app-frame--orders) .customer-modal .ui-button--secondary {
  border-radius: 0;
}

body:has(.app-frame--orders) .customer-modal .ui-field:nth-child(1) {
  order: 2;
}

body:has(.app-frame--orders) .customer-modal .ui-field:nth-child(2) {
  order: 1;
}

body:has(.app-frame--orders) .customer-modal .ui-field__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body:has(.app-frame--orders) .customer-modal input {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: #14212a;
  box-shadow: none;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
}

body:has(.app-frame--orders) .customer-modal input::placeholder {
  color: #7a8791;
  opacity: 1;
}

body:has(.app-frame--orders) .customer-modal input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.32);
}

body:has(.app-frame--orders) .customer-modal .ui-modal__footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

body:has(.app-frame--orders) .customer-modal .modal-actions {
  justify-content: center;
  width: 100%;
}

body:has(.app-frame--orders) .customer-modal .modal-actions .ui-button {
  flex: 1 1 0;
}

body:has(.app-frame--orders) .customer-modal .modal-actions [data-action="submit-id"] {
  flex: 1 1 0;
  width: auto;
}

body:has(.app-frame--orders) .customer-modal .ui-button--primary {
  width: 100%;
  min-height: 42px;
  border-radius: 0;
  background: #ffffff !important;
  color: var(--primary) !important;
  box-shadow: 0 6px 18px rgba(20, 33, 42, 0.12);
  font-size: 0.98rem;
}

body:has(.app-frame--orders) .customer-modal .ui-button--primary:disabled {
  opacity: 0.72;
}

/* Registration is a single full-screen canvas, sharing the splash/landing image. */
.customer-registration {
  isolation: isolate;
  position: relative;
  display: grid;
  place-items: start center;
  min-height: 100svh;
  height: 100svh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 24px;
  box-sizing: border-box;
  color: #14212a;
  /* Direction follows the document language (inherited from <html>). */
}

.customer-registration .landing-page__background {
  z-index: -2;
}

.customer-registration__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.78);
  pointer-events: none;
}

.customer-registration__back {
  position: absolute;
  top: max(24px, env(safe-area-inset-top));
  right: 24px;
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  cursor: pointer;
  z-index: 1;
}

.customer-registration__back svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.customer-registration__content {
  width: min(100%, 680px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: 12vh;
}

.customer-registration__content h1 {
  margin: 0;
  color: #14212a;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
}

.customer-registration__content p {
  max-width: 620px;
  margin: 0 0 24px;
  color: #314754;
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  line-height: 1.6;
}

.customer-registration__form {
  width: 100%;
  display: grid;
  gap: 22px;
}

.customer-registration__form input,
.customer-registration__submit {
  width: 100%;
  min-height: 106px;
  box-sizing: border-box;
  border: 1px solid rgba(20, 33, 42, 0.12);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 700;
  text-align: start;
}

.customer-registration__form input {
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.94);
  color: #14212a;
  outline: none;
}

.customer-registration__form input::placeholder {
  color: #87939a;
  opacity: 1;
}

.customer-registration__form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(172, 53, 9, 0.18);
}

.customer-registration__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  text-align: center;
}

.customer-registration__submit-arrow {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

.customer-registration__submit:hover .customer-registration__submit-arrow {
  transform: translateX(-4px);
}

.customer-registration__submit:hover {
  background: var(--primary-strong);
}

.customer-registration__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .customer-registration {
    padding: 20px;
  }

  .customer-registration__back {
    top: max(20px, env(safe-area-inset-top));
    right: 20px;
    width: 60px;
    height: 60px;
  }

  .customer-registration__back svg {
    width: 26px;
    height: 26px;
  }

  .customer-registration__content {
    margin-top: 10vh;
  }

  .customer-registration__content p {
    margin-bottom: 12px;
  }

  .customer-registration__form input,
  .customer-registration__submit {
    min-height: 72px;
  }
}

.checkout-terms {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.checkout-terms input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--primary);
}

.checkout-terms__label {
  display: inline;
  color: var(--text);
  cursor: pointer;
}

.legal-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-link:hover {
  color: var(--primary-hover, #0284c7);
}

.payment-page {
  width: min(100%, 560px);
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  margin: 0 auto;
  background: #f8fafc;
  color: var(--text);
}

.payment-page__header,
.payment-page__footer {
  padding: 14px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.payment-page__header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.payment-page__header h1 {
  margin: 0;
  font-size: 1.32rem;
}

.payment-page__back {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.payment-page__content {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}

.payment-page__section,
.payment-provider-placeholder {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

.payment-page__items {
  display: grid;
  gap: 8px;
}

.payment-provider-placeholder {
  border-style: dashed;
  background: var(--primary-soft);
}

.payment-page__section--status {
  gap: 8px;
}

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

.payment-page__section--actions .ui-button {
  flex: 1 1 180px;
}

.payment-status-pill {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.payment-status-pill--pending {
  background: rgba(11, 116, 108, 0.12);
  color: var(--primary-strong);
}

.payment-status-pill--danger {
  background: rgba(180, 35, 24, 0.12);
  color: #b42318;
}

.payment-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text-muted);
  font-weight: 800;
}

.payment-loading__spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(11, 116, 108, 0.18);
  border-top-color: var(--primary);
  border-radius: 999px;
  animation: payment-spin 0.8s linear infinite;
}

.payment-iframe-shell {
  display: grid;
  gap: 10px;
  min-height: 520px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

.payment-form {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.payment-iframe {
  width: 100%;
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.payment-failure-actions .ui-button {
  flex: 1 1 180px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.payment-provider-placeholder h2 {
  margin: 0;
  font-size: 1.08rem;
}

.payment-provider-placeholder p:last-child {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.payment-page__footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}

.payment-page__footer .ui-button {
  width: 100%;
}

/* Dialog Card Style Overrides */
body:has(.app-frame--orders) .modifier-option {
  cursor: pointer;
  padding: 12px 16px !important;
  border: 1px solid var(--line) !important;
  border-radius: 1rem !important; /* rounded-2xl / 16px */
  background: var(--surface) !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

body:has(.app-frame--orders) .modifier-option:hover {
  background: var(--surface) !important;
  border-color: var(--line) !important;
}

body:has(.app-frame--orders) .modifier-option.is-selected {
  background: var(--primary-soft) !important; /* #ffdbd0 */
  border-color: var(--primary) !important; /* #ac3509 */
  color: var(--primary-strong) !important; /* #852300 */
}

body:has(.app-frame--orders) .modifier-option .modifier-option__label {
  color: var(--text) !important;
  font-weight: 400;
  font-size: 15px;
}

body:has(.app-frame--orders) .modifier-option.is-selected .modifier-option__label {
  color: var(--primary-strong) !important;
  font-weight: 600;
}

body:has(.app-frame--orders) .modifier-option span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Cart Review and Summary Modal Card Overrides */
body:has(.app-frame--orders) .summary-row {
  background: var(--surface) !important;
  padding: 16px !important;
  border-radius: 1rem !important; /* rounded-2xl / 16px */
  border: 1px solid var(--line) !important;
  box-shadow: 0 10px 40px -10px rgba(172, 53, 9, 0.08) !important; /* soft-matte-shadow */
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important;
  margin-bottom: 12px;
}

body:has(.app-frame--orders) .summary-order-time {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

body:has(.app-frame--orders) .summary-row__image-container {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: var(--surface-soft);
}

body:has(.app-frame--orders) .summary-row__image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body:has(.app-frame--orders) .summary-row__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body:has(.app-frame--orders) .summary-row__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

body:has(.app-frame--orders) .summary-row__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

body:has(.app-frame--orders) .summary-row__price {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

body:has(.app-frame--orders) .summary-row__mods {
  margin: 4px 0 0;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
}

body:has(.app-frame--orders) .summary-row__actions-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  direction: ltr;
  gap: 16px;
  margin-top: 12px;
  width: 100%;
}

body:has(.app-frame--orders) .summary-row__qty-stepper {
  display: flex;
  align-items: center;
  direction: ltr;
  background: var(--surface-soft); /* #f4f2ff */
  padding: 4px 12px;
  gap: 16px;
  border-radius: 1rem;
}

body:has(.app-frame--orders) .summary-row__qty-stepper button {
  background: transparent;
  border: none;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

body:has(.app-frame--orders) .summary-row__qty-stepper button .ui-icon {
  width: 18px;
  height: 18px;
}

body:has(.app-frame--orders) .summary-row__qty-display {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

body:has(.app-frame--orders) .summary-row__delete-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0;
}

body:has(.app-frame--orders) .summary-row__edit-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0;
}

body:has(.app-frame--orders) .summary-row__edit-btn:hover {
  color: var(--primary);
}

body:has(.app-frame--orders) .summary-row__edit-btn .ui-icon {
  width: 20px;
  height: 20px;
}

body:has(.app-frame--orders) .summary-row__delete-btn:hover {
  color: var(--danger);
}

body:has(.app-frame--orders) .summary-row__delete-btn .ui-icon {
  width: 20px;
  height: 20px;
}

body:has(.app-frame--orders) .payment-summary {
  background: var(--surface) !important;
  padding: 16px !important;
  border-radius: 1rem !important;
  border: 1px solid var(--line) !important;
  margin-top: 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 40px -10px rgba(172, 53, 9, 0.08) !important;
}

body:has(.app-frame--orders) .payment-summary__total {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100%;
}

body:has(.app-frame--orders) .payment-summary__total span {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

body:has(.app-frame--orders) .payment-summary__total strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

body:has(.app-frame--orders) .checkout-terms {
  display: flex !important;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 1rem;
  border: 1px dashed var(--line);
  background: var(--surface-soft);
  margin-bottom: 16px;
}

/* =============================================
   Item Visual (renderItemVisual) — absolute fill
   ============================================= */
body:has(.app-frame--orders) .menu-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body:has(.app-frame--orders) .menu-card__image--placeholder {
  background: #f8fafc;
}

/* =============================================
   Editor Modal — class-based layout
   ============================================= */
body:has(.app-frame--orders) .editor-item-price {
  margin-bottom: 0.5rem;
  padding-top: 0.5rem;
}

body:has(.app-frame--orders) .editor-item-price__value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

body:has(.app-frame--orders) .editor-item-description {
  margin: 0 0 1.5rem;
  color: var(--text-soft);
  line-height: 1.5;
  font-size: 1rem;
}

body:has(.app-frame--orders) .editor-modifier-divider {
  margin: 1.5rem 0;
  border-top: 1px solid var(--line);
}

body:has(.app-frame--orders) .editor-modifier-label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

body:has(.app-frame--orders) .editor-modifier-options {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

body:has(.app-frame--orders) .modifier-option__meta {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex: 1;
  pointer-events: none;
  flex-wrap: nowrap;
  min-width: 0;
}

body:has(.app-frame--orders) .editor-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

body:has(.app-frame--orders) .editor-actions-row {
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

body:has(.app-frame--orders) .editor-total {
  font-size: 1.25rem;
  color: var(--text);
  margin-inline-start: 0;
}

body:has(.app-frame--orders) .editor-add-row {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* Inline qty-stepper inside modifier options (paid-toppings policy) */
body:has(.app-frame--orders) .qty-stepper-inline {
  margin: -0.25rem 0;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

body:has(.app-frame--orders) .qty-stepper-inline button {
  width: 2.2rem;
  height: 2.2rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

body:has(.app-frame--orders) .qty-stepper-inline span {
  min-width: 1.8rem;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
}

/* =============================================
   Summary Modal — payment method choices
   ============================================= */
body:has(.app-frame--orders) .payment-method-choices {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

body:has(.app-frame--orders) .payment-method-choices .eyebrow {
  margin-bottom: 0;
}

/* =============================================
   Landing Page — hero fixed height
   ============================================= */
.landing-hero {
  flex: 0 0 clamp(220px, 42vh, 409px);
}

.landing-card {
  flex: 1 1 auto;
}

/* =============================================
   Customer identification modal — flex layout
   ============================================= */
body:has(.app-frame--orders) .customer-modal {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

body:has(.app-frame--orders) .customer-modal .ui-modal__body {
  flex: 0 0 auto;
  min-height: 0;
}

body:has(.app-frame--orders) .customer-modal .catalog-stack {
  flex: 0 0 auto;
}

/* Order type choice modal — flex layout */
body:has(.app-frame--orders) .customer-home-modal {
  display: flex;
  flex-direction: column;
}

body:has(.app-frame--orders) .customer-home-modal .ui-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body:has(.app-frame--orders) .customer-home-modal .customer-order-choices {
  flex: 1;
}

/* =============================================
   Status Modal & Invoice — structural flex
   ============================================= */
body:has(.app-frame--orders) .invoice-download {
  margin-top: 16px;
  text-align: center;
}

body:has(.app-frame--orders) .invoice-download__link {
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

body:has(.app-frame--orders) .modal-actions-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

body:has(.app-frame--orders) .modal-actions-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.customer-order-details-modal,
.customer-order-details-modal * {
  border-radius: 0 !important;
}

.customer-order-details-modal .ui-modal__head {
  position: relative;
  align-items: flex-start;
  padding-top: 44px;
}

.customer-order-details-modal .ui-modal__title-block {
  width: 100%;
}

.customer-order-details-modal .ui-modal__head-actions {
  position: absolute;
  top: 0;
  right: 0;
}

.customer-order-details-modal .customer-order-details-modal__close {
  width: 36px;
  height: 36px;
  padding: 0;
}

.customer-order-details-modal .summary-row__mods {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.35rem;
}

.customer-order-details-modal .summary-row {
  display: flex;
  align-items: flex-start;
  padding: 0.55rem 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 2px solid #0b2b34 !important;
  background: #fff !important;
  box-shadow: none !important;
  text-align: right;
}

.customer-order-details-modal .summary-row__main {
  display: grid;
  flex: 1;
  gap: 0.12rem;
  min-width: 0;
  justify-items: stretch;
  text-align: right;
  direction: rtl;
}

.customer-order-details-modal .customer-order-summary__title {
  display: block;
  font-size: 1.4rem;
  line-height: 1.15;
}

.customer-order-details-modal .customer-order-summary__mods {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.35rem;
  direction: rtl;
  text-align: right;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

.customer-order-details-modal .customer-order-summary__divider {
  color: inherit;
  font-weight: 500;
}

body:has(.app-frame--orders) .flex-1 {
  flex: 1;
}

/* =============================================
   Dialog Modal
   ============================================= */
body:has(.app-frame--orders) .dialog-message {
  text-align: center;
  font-size: 16px;
  padding: 10px 0;
}

body:has(.app-frame--orders) .dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

/* =============================================
   Floating Cart
   ============================================= */
body:has(.app-frame--orders) .floating-cart {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  pointer-events: none;
  z-index: 40;
}

body:has(.app-frame--orders) .floating-cart__button {
  pointer-events: auto;
  width: 100%;
  height: 56px;
  border: none;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 0;
}

body:has(.app-frame--orders) .floating-cart__button:hover {
  filter: brightness(1.1);
}

body:has(.app-frame--orders) .floating-cart__button:active {
  transform: scale(0.98);
}

body:has(.app-frame--orders) .floating-cart__content {
  display: flex;
  align-items: center;
  gap: 12px;
}

body:has(.app-frame--orders) .floating-cart__icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
}

body:has(.app-frame--orders) .floating-cart__icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
}

body:has(.app-frame--orders) .floating-cart__badge {
  position: absolute;
  top: -6px;
  left: -8px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-body);
}

body:has(.app-frame--orders) .floating-cart__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
}

body:has(.app-frame--orders) .floating-cart__total-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

body:has(.app-frame--orders) .floating-cart__total {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-right: 8px;
}

/* Menu screen: one continuous canvas using the same branding image as landing. */
.app-frame--orders:has(.orders-menu-shell) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

.app-frame--orders:has(.orders-menu-shell)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.78);
  pointer-events: none;
}

.orders-menu-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.orders-menu-background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.app-frame--orders .orders-menu-shell {
  position: relative;
  z-index: 1;
  background: transparent;
}

.app-frame--orders .orders-menu-header {
  background: transparent;
  border-bottom-color: rgba(20, 33, 42, 0.16);
}

.app-frame--orders .orders-menu-header .category-tab,
.app-frame--orders .orders-menu-shell .menu-card,
.app-frame--orders .orders-menu-back,
.app-frame--orders .floating-cart__button {
  border-radius: 0 !important;
}

.app-frame--orders .orders-menu-back {
  order: -1;
}

.app-frame--orders .orders-menu-shell .menu-stage {
  background: transparent;
}

/* Compact menu cards with edge-to-edge images and compact item details. */
.app-frame--orders .orders-menu-shell .menu-grid {
  gap: 11px;
  grid-template-columns: 1fr;
}

.app-frame--orders .orders-menu-shell .menu-card {
  aspect-ratio: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #f4f1ed;
}

.app-frame--orders .orders-menu-shell .menu-card:hover {
  transform: none;
  box-shadow: none;
}

.app-frame--orders .orders-menu-shell .menu-card__click {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0;
  height: auto;
}

.app-frame--orders .orders-menu-shell .menu-card__visual {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  flex-basis: auto;
  background: rgba(248, 250, 252, 0.72);
}

.app-frame--orders .orders-menu-shell .menu-card__image {
  object-fit: cover;
  object-position: center;
}

.app-frame--orders .orders-menu-shell .menu-card__body {
  min-height: 0;
  display: block;
  padding: 12px 10px 13px;
  border-top: 0;
  border-bottom: 1px solid rgba(24, 26, 46, 0.18);
}

.app-frame--orders .orders-menu-shell .menu-card__info-row {
  display: flex;
  direction: rtl;
  align-items: center;
  min-width: 0;
  gap: 0;
}

.app-frame--orders .orders-menu-shell .menu-card__name {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  text-align: right;
  color: #282522;
  font-size: clamp(18px, 4.2vw, 24px);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.app-frame--orders .orders-menu-shell .menu-card__divider {
  flex: 0 0 1px;
  align-self: stretch;
  min-height: 30px;
  margin: 0 12px;
  background: rgba(40, 37, 34, 0.14);
}

.app-frame--orders .orders-menu-shell .menu-card__price {
  flex: 0 0 auto;
  color: #bb4f2a;
  font-size: clamp(20px, 4.8vw, 28px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* Minimal sharp category navigation. */
.app-frame--orders .orders-menu-header .category-tabs {
  gap: 18px !important;
}

.app-frame--orders .orders-menu-header .category-tab,
.app-frame--orders .orders-menu-header .category-tab.is-active {
  position: relative;
  min-height: 36px;
  padding: 6px 2px !important;
  border: 0;
  background: transparent !important;
  box-shadow: none;
  color: rgba(20, 33, 42, 0.62) !important;
  font-size: clamp(15px, 3.6vw, 20px);
  font-weight: 600;
}

.app-frame--orders .orders-menu-header .category-tab.is-active {
  color: var(--accent) !important;
}

.app-frame--orders .orders-menu-header .category-tab.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
}

/* Compact floating checkout action, kept clear of the screen edges. */
.app-frame--orders .orders-menu-shell .menu-stage {
  padding-bottom: calc(56px + 10px + env(safe-area-inset-bottom) + 16px);
}

body:has(.app-frame--orders) .floating-cart {
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(calc(100% - 12px), 508px);
  transform: translateX(-50%);
}

body:has(.app-frame--orders) .floating-cart__button {
  height: 56px;
  padding: 0 10px;
  border: 0;
  background: #dc3b0c;
  box-shadow: 0 5px 14px rgba(146, 42, 8, 0.28);
  font-size: 13px;
}

body:has(.app-frame--orders) .floating-cart__button:active {
  transform: none;
}

body:has(.app-frame--orders) .floating-cart__content {
  gap: 7px;
}

body:has(.app-frame--orders) .floating-cart__icon-wrap {
  width: 25px;
  height: 25px;
}

body:has(.app-frame--orders) .floating-cart__icon {
  width: 22px;
  height: 22px;
}

body:has(.app-frame--orders) .floating-cart__badge {
  top: -5px;
  left: -6px;
  width: 16px;
  height: 16px;
  border: 1px solid #dc3b0c;
  background: #ffffff;
  color: #dc3b0c;
  font-size: 9px;
}

body:has(.app-frame--orders) .floating-cart__label {
  font-size: 12px;
  font-weight: 700;
}

body:has(.app-frame--orders) .floating-cart__total {
  margin-right: 0;
  font-size: 14px;
}

.app-frame--orders .orders-menu-header .category-tab {
  font-size: 14px;
}

body:has(.app-frame--orders) .floating-cart__label {
  font-size: 14px;
}

body:has(.app-frame--orders) .floating-cart__total {
  font-size: 16px;
}

/* Keep the menu on the bright solid canvas; branding belongs to the landing screen. */
.app-frame--orders:has(.orders-menu-shell),
.app-frame--orders:has(.orders-menu-shell) .orders-menu-shell {
  background: #f7f7f7;
}

.app-frame--orders:has(.orders-menu-shell)::after,
.app-frame--orders:has(.orders-menu-shell) .orders-menu-background {
  display: none;
}
/* Promotional event images use the available modal/page area instead of a thumbnail. */
.event-popup-modal .ui-modal__body {
  padding: 0;
}

.event-popup-modal .ui-card {
  display: block;
  width: 100%;
  min-height: min(70vh, 720px);
  padding: 0;
  overflow: hidden;
}

.event-popup-modal .image-preview {
  width: 100%;
  height: min(70vh, 720px);
  border: 0;
  border-radius: 0;
}

.event-popup-modal .image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.landing-card__choices,
.customer-order-choices {
  grid-template-columns: 1fr;
}

/* Compact horizontal order-type cards. */
.landing-content .landing-card__choice-btn {
  min-height: 64px;
  padding: 12px 16px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 14px;
  direction: rtl;
}

.landing-content .landing-card__choice-icon .ui-icon {
  width: 28px;
  height: 28px;
}

.landing-content .landing-card__choice-label {
  direction: inherit;
  font-size: 1.1rem;
  text-align: start;
}

.customer-home-modal .customer-order-choices .order-choice {
  min-height: 64px;
  padding: 12px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  direction: inherit;
  text-align: start;
}

.customer-home-modal .customer-order-choices .order-choice strong {
  direction: inherit;
}

.future-order-topbar {
  width: 100%;
  box-sizing: border-box;
  padding-inline: 16px;
}

.future-order-page {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 24px 18px 40px;
  display: grid;
  gap: 18px;
  box-sizing: border-box;
}

.future-order-page > p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.future-order-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.future-order-date span {
  color: var(--text-muted);
}

.future-order-date strong {
  color: var(--text);
}

.future-order-page .ui-field {
  display: grid;
  gap: 8px;
}

.future-order-page input[type="time"] {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1.2rem;
  box-sizing: border-box;
}

.future-order-page .customer-registration__submit {
  min-height: 64px;
  margin-top: 4px;
  font-size: 1.15rem;
}
