:root {
  color-scheme: light;
  --bg: #f7f7f7;
  --surface: #ffffff;
  --primary: #0f172a;
  --accent: #10b981;
  --accent-dark: #059669;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 16px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--primary);
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.menu-page {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 48px) clamp(18px, 6vw, 48px) 72px;
}

.menu {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-header__intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
}

.section-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.6rem);
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-heading__icon {
  width: 40px;
  height: 40px;
}

.history-button {
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.history-button:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.6);
  color: var(--accent-dark);
}

.history-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  padding: 8px;
  border-radius: 999px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filters__btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.filters__btn--active,
.filters__btn:hover {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.08);
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.menu-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.menu-card__image {
  position: relative;
  padding-bottom: 65%;
  overflow: hidden;
}

.menu-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.menu-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 20px;
}

.menu-card__title {
  font-size: 1.1rem;
  font-weight: 600;
}

.menu-card__desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
  min-height: 54px;
}

.menu-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.menu-card__price-group {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
}

.price {
  font-weight: 700;
  font-size: 1.05rem;
}

.price--animating {
  color: var(--accent);
  animation: priceDropPulse 1s ease forwards;
}

.price--discounted {
  color: var(--accent);
}

.price-drop-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.15);
  color: #b91c1c;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.badge--popular {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f59e0b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
}



@keyframes priceDropPulse {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.add-btn {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--surface);
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.add-btn:hover {
  transform: translateY(-1px);
  background: #1e293b;
}

.cart-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--surface);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
  min-width: 260px;
  max-width: 520px;
  width: calc(100% - 32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-bar--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.cart-bar__info {
  display: flex;
  flex-direction: row;
  gap: 12px;
  font-size: 0.95rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cart-bar__info strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.cart-bar__info span {
  font-size: 0.92rem;
  opacity: 0.85;
}

.cart-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  font-weight: 600;
}

.cart-bar__btn:hover {
  background: #e2e8f0;
}

.order-banner {
  position: sticky;
  top: 0;
  z-index: 18;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 18px clamp(18px, 5vw, 32px);
  background: #ffffff;
  color: var(--primary);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.order-banner--visible {
  display: flex;
}

.order-banner__toggle {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

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

.order-banner__kicker {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.45);
}

.order-banner__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.order-banner__status-text {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--primary);
}

.order-banner__eta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: rgba(15, 23, 42, 0.65);
}

.order-banner__label {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(15, 23, 42, 0.5);
  margin: 0;
}

.order-banner__eta strong {
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.order-banner__progress {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.order-banner__progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, #22d3ee 0%, #36ff8f 100%);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.order-banner__progress-indicator {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.8 32a4.2 4.2 0 0 1 8.4 0h7.8c.4-3 2.9-5.3 6-5.3 3.3 0 6 2.7 6 6s-2.7 6-6 6c-3 0-5.5-2.2-5.9-5H20.2c-.4 3-2.9 5.3-6 5.3-3.3 0-6-2.7-6-6 0-.3 0-.6.1-.9l-.7-.5c-1.2-.8-1.6-2.4-.8-3.6l5-7.5c.6-.9 1.6-1.4 2.6-1.4h11.3l3.3-5.6c.7-1.1 1.9-1.8 3.3-1.8h3.6c1.5 0 2.8.9 3.4 2.2l2.6 6.2c.3.6 0 1.3-.6 1.5a1.2 1.2 0 0 1-1.5-.6l-2.6-6.2c-.2-.4-.6-.7-1.1-.7h-3.5c-.4 0-.8.2-1 .6l-3.7 6.3c-.4.7-1.1 1.2-1.9 1.2H15l-4.5 6.7 1.3.9c.1 0 .1.1.2.1Zm4.4 1.5a1.8 1.8 0 1 0 0 3.5 1.8 1.8 0 0 0 0-3.5Zm22.8 0a1.8 1.8 0 1 0 0 3.5 1.8 1.8 0 0 0 0-3.5Z' fill='%2322d3ee'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  animation: scooterBob 1.6s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(34, 211, 238, 0.28));
  z-index: 2;
}

.order-banner__close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: rgba(15, 23, 42, 0.35);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s ease;
}

.order-banner__close:hover {
  color: rgba(15, 23, 42, 0.7);
}

@keyframes scooterBob {

  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-2px);
  }
}

.order-progress {
  position: fixed;
  inset: 0;
  z-index: 36;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 6vw, 48px);
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(10px);
}

.order-progress--visible {
  display: flex;
  animation: orderProgressFade 0.25s ease;
}

.order-progress__panel {
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(26px, 4vw, 34px);
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 34px 68px rgba(15, 23, 42, 0.18);
  position: relative;
  color: var(--primary);
  overflow: hidden;
}

.order-progress__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(79, 70, 229, 0.05));
  pointer-events: none;
  z-index: 0;
}

.order-progress__panel>* {
  position: relative;
  z-index: 1;
}

.order-progress__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.order-progress__label {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
  font-size: 1.1rem;
}

.order-progress__order {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: rgba(15, 23, 42, 0.55);
}

.order-progress__close {
  background: rgba(15, 23, 42, 0.08);
  border: none;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  color: rgba(15, 23, 42, 0.55);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.order-progress__close:hover {
  background: rgba(15, 23, 42, 0.18);
  color: rgba(15, 23, 42, 0.8);
}

.order-progress__title {
  font-weight: 600;
  color: var(--primary);
}

.order-progress__meta {
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.55);
}

.order-progress__summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.order-progress__summary--hidden {
  display: none;
}

.order-progress__summary-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.55);
}

.order-progress__items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-progress__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.85);
}

.order-progress__item-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.order-progress__item-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.75);
}

.order-progress__item-price {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.85);
}

@keyframes orderProgressFade {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.payment-status {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.payment-status--bar {
  margin: 0;
}

.payment-status__step {
  position: relative;
  padding-left: 32px;
}

.payment-status__step::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
}

.payment-status__step::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 20px;
  width: 2px;
  height: calc(100% - 20px);
  background: var(--border);
  opacity: 0.8;
}

.payment-status__step:last-child::after {
  display: none;
}

.payment-status__title {
  display: block;
  font-weight: 600;
  color: var(--primary);
}

.payment-status__meta {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}

.payment-status__step--done::before {
  border-color: var(--accent);
  background: var(--accent);
}

.payment-status__step--current::before {
  border-color: var(--accent);
  background: var(--surface);
}

.payment-status__step--done .payment-status__title,
.payment-status__step--current .payment-status__title {
  color: var(--accent);
}

.payment-status__step--done .payment-status__meta,
.payment-status__step--current .payment-status__meta {
  color: var(--accent);
}

.order-progress .payment-status {
  gap: 16px;
}

.order-progress .payment-status__step {
  padding: 14px 16px 14px 44px;
  border-radius: 14px;
  background: rgba(241, 245, 249, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--primary);
  transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.order-progress .payment-status__step:hover {
  border-color: rgba(14, 165, 233, 0.55);
  background: rgba(224, 242, 254, 0.9);
}

.order-progress .payment-status__step::before {
  left: 18px;
  border-color: rgba(148, 163, 184, 0.6);
  background: #ffffff;
  transition: background 0.2s ease, border 0.2s ease;
}

.order-progress .payment-status__step::after {
  left: 23px;
  background: rgba(148, 163, 184, 0.3);
}

.order-progress .payment-status__title {
  color: var(--primary);
}

.order-progress .payment-status__meta {
  color: rgba(71, 85, 105, 0.7);
}

.order-progress .payment-status__step--done {
  background: rgba(187, 247, 208, 0.35);
  border-color: rgba(74, 222, 128, 0.5);
  color: var(--primary);
}

.order-progress .payment-status__step--done::before {
  border-color: rgba(34, 197, 94, 0.9);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.95), rgba(34, 197, 94, 0.85));
}

.order-progress .payment-status__step--done .payment-status__title,
.order-progress .payment-status__step--done .payment-status__meta {
  color: rgba(22, 101, 52, 0.8);
}

.order-progress .payment-status__step--current {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(74, 222, 128, 0.3));
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 18px 32px rgba(56, 189, 248, 0.25);
  transform: translateY(-2px);
}

.order-progress .payment-status__step--current::before {
  border-color: rgba(56, 189, 248, 1);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(56, 189, 248, 0.85));
}

.order-progress .payment-status__step--current .payment-status__title {
  color: rgba(22, 101, 52, 0.9);
}

.order-progress .payment-status__step--current .payment-status__meta {
  color: rgba(22, 101, 52, 0.7);
}

.checkout-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}

.checkout-sheet__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.checkout-sheet__panel {
  position: relative;
  width: min(460px, 100%);
  max-height: 85vh;
  background: var(--surface);
  border-radius: 28px 28px 0 0;
  padding: 24px;
  box-shadow: 0 -20px 40px rgba(15, 23, 42, 0.25);
  transform: translateY(110%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checkout-sheet--open {
  pointer-events: auto;
}

.checkout-sheet--open .checkout-sheet__overlay {
  opacity: 1;
}

.checkout-sheet--open .checkout-sheet__panel {
  transform: translateY(0);
}

.checkout-sheet__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.checkout-sheet__badge {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
}

.checkout-sheet__badge--muted {
  color: var(--muted);
  background: rgba(15, 23, 42, 0.08);
}

.checkout-sheet__header h2 {
  margin: 0;
  font-size: 1.6rem;
}

.checkout-sheet__close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.checkout-sheet__body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 4px;
}

.checkout-sheet__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-sheet__extras {
  padding: 0;
  margin: 4px 0 8px;
  display: flex;
  justify-content: center;
}

.checkout-sheet__extras--hidden {
  display: none;
}

.checkout-sheet__extras-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: var(--surface);
  color: var(--primary);
  font-weight: 600;
  font-size: 1.05rem;
  width: 100%;
  max-width: 360px;
  transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.checkout-sheet__extras-btn:hover {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(241, 245, 249, 0.8);
  transform: translateY(-1px);
}

.checkout-sheet__extras-btn:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 3px;
}

.checkout-sheet__extras-counter {
  display: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: rgba(22, 101, 52, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
}

.checkout-sheet__extras-counter.is-visible {
  display: inline-flex;
}

.addons-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 28px);
}

.addons-overlay--visible {
  display: flex;
}

.addons-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
}

.addons-overlay__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(640px, 90vh);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 34px 68px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.addons-overlay__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.addons-overlay__badge {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.addons-overlay__header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--primary);
}

.addons-overlay__subtitle {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.6);
}

.addons-overlay__close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(148, 163, 184, 0.12);
  color: rgba(15, 23, 42, 0.55);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.addons-overlay__close:hover {
  background: rgba(148, 163, 184, 0.2);
  color: rgba(15, 23, 42, 0.85);
}

.addons-overlay__list {
  position: relative;
  margin: 0;
  padding: 4px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  overflow-y: auto;
}

.checkout-addon {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(248, 250, 252, 0.92);
  text-align: left;
  transition: border 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--primary);
}

.checkout-addon:hover {
  border-color: rgba(14, 165, 233, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.checkout-addon__label {
  font-weight: 600;
  font-size: 0.95rem;
}

.checkout-addon__desc {
  font-size: 0.82rem;
  color: var(--muted);
}

.checkout-addon__price {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-dark);
}

.checkout-addon__count {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.18);
  color: rgba(22, 101, 52, 0.85);
}

.checkout-addon--added {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(236, 253, 245, 0.92);
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.18);
}

.checkout-sheet__notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-sheet__notes label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
}

.checkout-sheet__notes textarea {
  min-height: 108px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
  background: rgba(248, 250, 252, 0.95);
  color: var(--primary);
}

.checkout-sheet__notes textarea:focus-visible {
  outline: 2px solid rgba(14, 165, 233, 0.5);
  outline-offset: 2px;
  border-color: rgba(14, 165, 233, 0.6);
}

.checkout-sheet__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.checkout-sheet__item img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
}

.checkout-sheet__item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkout-sheet__item-title {
  margin: 0;
  font-weight: 600;
}

.checkout-sheet__item-meta {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--muted);
  flex-wrap: nowrap;
}

.checkout-sheet__item-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  flex: 1 1 auto;
}

.checkout-sheet__item-unit {
  font-size: 0.83rem;
  color: var(--muted);
  white-space: nowrap;
}

.checkout-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  flex: 0 1 auto;
}

.checkout-counter__btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.checkout-counter__btn:hover {
  background: rgba(59, 130, 246, 0.16);
  color: var(--accent-dark);
}

.checkout-counter__btn:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.35);
  outline-offset: 2px;
}

.checkout-counter__value {
  min-width: 22px;
  text-align: center;
  font-weight: 600;
  color: var(--primary);
}

.checkout-sheet__item-meta strong {
  color: var(--primary);
  margin-left: auto;
  font-size: 1rem;
  white-space: nowrap;
  align-self: flex-start;
}

@media (max-width: 540px) {
  .checkout-sheet__item-meta {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }

  .checkout-sheet__item-quantity {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .checkout-counter {
    width: auto;
    min-width: 140px;
    justify-content: space-between;
    padding: 4px 12px;
    gap: 6px;
  }

  .checkout-counter__btn {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
  }

  .checkout-sheet__item-unit {
    font-size: 0.85rem;
    width: 100%;
    text-align: left;
  }

  .checkout-sheet__item-meta strong {
    margin-left: auto;
  }
}

.cart__delete {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-left: auto;
  align-self: flex-start;
  margin-top: 4px;
}

.cart__delete:hover {
  color: var(--primary);
  background: var(--bg);
}

.checkout-sheet__empty {
  text-align: center;
  color: var(--muted);
  margin: 32px 0;
}

.checkout-sheet__footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-sheet__totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
}

.checkout-sheet__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-sheet__row--dim {
  color: var(--muted);
}

.checkout-sheet__row--discount {
  color: var(--accent);
  font-weight: 600;
}

.checkout-sheet__row--discount strong {
  color: var(--accent);
}

.checkout-sheet__row--hidden {
  display: none;
}

.checkout-sheet__row--accent strong {
  font-size: 1.15rem;
}

.payment-option {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
  cursor: pointer;
}

.payment-option:disabled {
  cursor: not-allowed;
}

.payment-option:hover {
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.payment-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.payment-option__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  align-items: center;
}

.payment-option__title {
  font-weight: 600;
}

.payment-option__meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.payment-option__status {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.18);
  color: #b91c1c;
}

.payment-option--selected {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.18);
}

.payment-option--selected .payment-option__title {
  color: var(--accent);
}

.payment-option--blocked {
  border-style: dashed;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.02);
  color: var(--muted);
  opacity: 0.7;
  cursor: not-allowed;
}

.payment-option--blocked .payment-option__title,
.payment-option--blocked .payment-option__meta {
  color: var(--muted);
}

.checkout-sheet__cta {
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  font-weight: 600;
  font-size: 1.05rem;
  width: 100%;
  text-align: center;
}

.checkout-sheet__cta:hover {
  background: var(--accent-dark);
}

.checkout-sheet__cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.customer-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.customer-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.customer-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
}

.customer-overlay__card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: var(--surface);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.customer-overlay__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--primary);
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.customer-overlay__badge {
  margin: 0;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.customer-overlay__intro {
  margin: 0;
  color: var(--muted);
}

.customer-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.customer-form__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.customer-form__field span {
  font-size: 0.95rem;
}

.customer-form__field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-form__gps-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.customer-form__gps-btn:hover:not(:disabled) {
  color: var(--accent-dark);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.customer-form__gps-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.customer-form__gps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.customer-form__manual {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#customer-manual-container {
  width: 100%;
  display: block;
}

.customer-form__manual-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.customer-form__manual-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.customer-form__field input,
.customer-form__field textarea {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.customer-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.customer-form__field input:focus,
.customer-form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  background: var(--surface);
}

.customer-form__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.customer-form__gps-status {
  min-height: 18px;
  margin: -4px 0 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

.customer-map {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f172a;
  min-height: 220px;
  margin: 4px 0 12px;
}

.customer-map__canvas {
  width: 100%;
  height: 220px;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: #0f172a;
}

.customer-map__placeholder {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  color: var(--surface);
  background: rgba(15, 23, 42, 0.78);
}

.customer-map__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.customer-map--active .customer-map__canvas {
  opacity: 1;
}

.customer-map--active .customer-map__placeholder {
  opacity: 0;
  pointer-events: none;
}

.customer-map--embed-active .customer-map__iframe {
  opacity: 1;
  pointer-events: auto;
}

.customer-map--embed-active .customer-map__canvas {
  opacity: 0;
}

.customer-map--embed-active .customer-map__placeholder {
  opacity: 0;
  pointer-events: none;
}

.customer-map__address {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  min-height: 18px;
}

.customer-manual {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.03);
}

.customer-manual.is-visible {
  display: flex;
}

.customer-manual__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.customer-manual__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.customer-manual__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-dark);
}

.customer-manual__title {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.customer-manual__copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.customer-manual__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.customer-manual__grid--balanced {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.customer-manual__grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

.customer-manual__field span {
  font-weight: 600;
  color: #0f172a;
}

.customer-manual__grid input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
}

.customer-manual__grid input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
  background: var(--surface);
}

.customer-manual__reference textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
  resize: vertical;
  min-height: 60px;
}

.customer-manual__reference textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.customer-manual__suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.customer-manual__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.customer-manual__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-manual__chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.customer-manual__chip:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--accent);
}

.customer-manual__chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.customer-manual__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.customer-manual__btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: var(--surface);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.customer-manual__btn[disabled] {
  opacity: 0.5;
  cursor: progress;
}

.customer-manual__btn:not([disabled]):hover {
  transform: translateY(-1px);
  background: #1e293b;
}

.customer-manual__message {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 18px;
}

@media (max-width: 768px) {
  .customer-form__gps-actions {
    justify-content: flex-start;
    gap: 12px;
  }

  .customer-form__manual {
    width: 100%;
  }

  .customer-manual {
    padding: 16px;
  }

  .customer-manual__grid,
  .customer-manual__grid--balanced {
    grid-template-columns: 1fr;
  }

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

  .customer-manual__btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .customer-form__gps-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .customer-form__gps-btn,
  .customer-form__manual-btn {
    width: 100%;
    text-align: center;
  }

  .customer-manual__chips {
    flex-direction: column;
  }

  .customer-manual__chip {
    width: 100%;
    text-align: center;
  }
}

.customer-form__error {
  min-height: 20px;
  margin: 0;
  color: #dc2626;
  font-weight: 600;
  font-size: 0.92rem;
}

.customer-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.customer-form__secondary,
.customer-form__cta {
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.customer-form__secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.customer-form__secondary:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.customer-form__cta {
  background: var(--primary);
  color: var(--surface);
}

.customer-form__cta:hover {
  transform: translateY(-1px);
  background: #1e293b;
}

.customer-form__cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.payment-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.payment-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.payment-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
}

.payment-overlay__card {
  position: relative;
  z-index: 1;
  width: min(440px, calc(100% - 32px));
  background: var(--surface);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.payment-overlay__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--primary);
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.payment-overlay__badge {
  align-self: center;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.payment-overlay__intro {
  margin: 0;
  color: var(--muted);
}

.payment-overlay__options {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.payment-overlay__options--hidden {
  display: none;
}

.payment-overlay__details,
.payment-overlay__items {
  display: none;
}




.payment-overlay__summary {
  display: grid;
  gap: 12px;
  text-align: center;
  justify-items: center;
  background: var(--bg);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 auto;
  max-width: 360px;
}

.payment-overlay__label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.payment-overlay__value {
  font-weight: 600;
}

.payment-overlay__items ul {
  margin: 0;
  padding-left: 0;
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.payment-overlay__cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--surface);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.payment-overlay__cta:hover {
  transform: translateY(-1px);
  background: #1e293b;
}

@media (max-width: 1024px) {
  .menu__grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .order-progress__panel {
    width: min(560px, 100%);
    padding: 24px 28px;
  }

  .order-banner {
    padding: 12px 18px;
  }

  .cart-bar {
    left: 12px;
    right: 12px;
    width: auto;
    transform: translateY(24px);
  }

  .cart-bar--visible {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .menu {
    padding: 20px;
  }

  .cart-bar {
    bottom: 12px;
    width: calc(100% - 24px);
    left: 12px;
    right: 12px;
    transform: translateY(24px);
    gap: 12px;
    flex-wrap: wrap;
  }

  .cart-bar--visible {
    transform: translateY(0);
  }

  .cart-bar__btn {
    width: 100%;
    justify-content: center;
  }

  .cart-bar__info {
    width: 100%;
  }

  .checkout-sheet__panel {
    width: 100%;
    border-radius: 24px 24px 0 0;
  }

  .addons-overlay__panel {
    width: min(480px, 100%);
    padding: 24px 24px;
  }

  .addons-overlay__list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .payment-overlay__card {
    padding: 28px 24px;
    border-radius: 20px;
  }

  .payment-overlay__options {
    grid-template-columns: 1fr;
  }

  .customer-overlay__card {
    padding: 28px 24px;
    border-radius: 24px;
    max-height: calc(100vh - 48px);
  }

  .customer-form__field-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .customer-map__canvas {
    height: 260px;
  }

  .customer-map__iframe {
    height: 260px;
  }

  .customer-form__gps-actions {
    justify-content: flex-start;
  }

  .customer-map__address {
    font-size: 0.9rem;
  }

  .order-progress__panel {
    padding: 22px 24px;
    gap: 20px;
  }

  .order-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .order-banner__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .order-progress__panel {
    width: calc(100% - 32px);
    padding: 20px 22px;
    gap: 18px;
  }

  .order-progress__summary {
    padding: 14px 15px;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .customer-overlay {
    align-items: flex-end;
  }

  .customer-overlay__card {
    width: 100%;
    border-radius: 28px 28px 0 0;
    max-height: 88vh;
  }

  .customer-map__canvas {
    height: 220px;
  }

  .customer-map__iframe {
    height: 220px;
  }

  .customer-form__gps-actions {
    justify-content: flex-start;
  }

  .customer-map__address {
    font-size: 0.88rem;
  }

  .menu-page {
    padding: 24px 16px 64px;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .filters {
    width: calc(100% + 8px);
    margin-inline: -4px;
  }

  .filters__btn {
    white-space: nowrap;
    font-size: 0.92rem;
    padding: 8px 14px;
  }

  .addons-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .addons-overlay__panel {
    width: 100%;
    max-height: 80vh;
    border-radius: 20px 20px 0 0;
    padding: 22px 20px;
  }

  .addons-overlay__list {
    grid-template-columns: 1fr;
  }

  .checkout-sheet__notes textarea {
    min-height: 90px;
  }

  .order-progress__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .order-progress__close {
    align-self: flex-end;
  }

  .order-progress .payment-status {
    gap: 12px;
  }

  .order-progress .payment-status__step {
    padding: 12px 14px 12px 38px;
  }

  .order-banner {
    padding: 12px 14px;
    gap: 10px;
  }

  .order-banner__toggle {
    gap: 10px;
  }

  .order-banner__close {
    align-self: flex-end;
  }

  .menu-card__desc {
    min-height: auto;
  }

  .order-progress__panel {
    width: calc(100% - 24px);
    padding: 20px 18px;
    gap: 18px;
  }

  .order-progress__summary {
    padding: 14px 14px;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .filters {
    gap: 8px;
    padding: 6px 6px;
  }

  .filters__btn {
    font-size: 0.88rem;
    padding: 7px 12px;
  }

  .order-progress__panel {
    width: calc(100% - 20px);
    padding: 18px 16px;
    gap: 16px;
  }

  .order-progress__summary {
    padding: 12px 12px;
    gap: 8px;
  }

  .order-progress .payment-status__step {
    padding: 10px 12px 10px 32px;
  }

  .order-progress .payment-status__title {
    font-size: 0.95rem;
  }

  .order-progress .payment-status__meta {
    font-size: 0.82rem;
  }

  .order-banner {
    padding: 10px 12px;
  }

  .order-banner__status-text {
    font-size: 0.95rem;
  }

  .order-banner__label {
    font-size: 0.8rem;
  }
}

.payment-overlay--method-selected .payment-overlay__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.payment-overlay--method-selected .payment-overlay__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.payment-detail {
  display: none;
}

.payment-detail--visible {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
}

.payment-detail__text,
.payment-detail__hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.payment-detail__alert {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.12);
  color: #b91c1c;
  font-weight: 600;
}

.payment-detail__hint {
  font-size: 0.9rem;
}

.payment-overlay__cash {
  background: var(--bg);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin: 0 auto;
  max-width: 360px;
}

.payment-overlay__cash strong {
  font-size: 1.2rem;
}

body.order-progress-open {
  overflow: hidden;
}

#confirmation-overlay,
#confirmation-overlay * {
  box-sizing: border-box;
}

.confirmation-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.confirmation-overlay--visible {
  pointer-events: auto;
  opacity: 1;
}

.confirmation-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
}

.confirmation-overlay__card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.confirmation-overlay__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  color: var(--primary);
  font-size: 1.1rem;
  cursor: pointer;
}

.confirmation-overlay__badge {
  margin: 0;
  align-self: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent);
}

.confirmation-overlay__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.confirmation-overlay__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.confirmation-overlay__btn {
  padding: 12px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.confirmation-overlay__secondary {
  padding: 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 480px) {
  .confirmation-overlay__card {
    padding: 24px 20px;
  }
}

.admin-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.9);
  z-index: 1200;
}

.admin-overlay--visible {
  display: flex;
}

.admin-overlay__panel {
  width: min(380px, 100%);
  background: var(--surface);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.admin-overlay__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: var(--primary);
}

.admin-form__field input {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
}

.admin-form__btn {
  padding: 12px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: var(--surface);
  font-weight: 600;
  cursor: pointer;
}

.admin-form__message {
  margin: 0;
  min-height: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .admin-overlay__panel {
    padding: 24px 20px;
  }
}

.admin-panel {
  position: fixed;
  inset: 0;
  background: var(--bg);
  padding: 32px clamp(16px, 5vw, 48px);
  overflow-y: auto;
  display: none;
  flex-direction: column;
  gap: 24px;
  z-index: 1100;
}

.admin-panel--visible {
  display: flex;
}

.admin-panel__header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.admin-panel__badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.admin-panel__intro {
  margin: 4px 0 0;
  color: var(--muted);
}

.admin-panel__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.admin-card {
  border-radius: 20px;
  padding: 20px;
  background: var(--surface);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-card span {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-card strong {
  font-size: 1.6rem;
  color: var(--primary);
}

.admin-panel__orders {
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-panel__orders-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.admin-panel__orders-head h2 {
  margin: 0;
}

.admin-panel__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.admin-filter-btn--active {
  background: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
}

.admin-orders-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-order {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.02);
}

.admin-order__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary);
}

.admin-order__meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.admin-order__contact {
  font-size: 0.9rem;
  color: var(--muted);
}

.admin-order__items {
  font-size: 0.9rem;
  color: var(--primary);
}

.admin-order__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.admin-order__btn {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.admin-order__btn.is-active {
  background: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
}

@media (max-width: 480px) {
  .admin-order__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-panel {
    padding: 24px;
  }

  .admin-panel__orders-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.history-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1200;
}

.history-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.history-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.history-overlay__panel {
  position: relative;
  width: min(480px, calc(100% - 32px));
  max-height: calc(100% - 80px);
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1;
}

.history-overlay__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.history-overlay__badge {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.history-overlay__close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.history-overlay__close:hover {
  background: var(--bg);
  color: var(--primary);
}

.history-overlay__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.history-overlay__empty {
  margin: 0;
  color: var(--muted);
}

.history-order {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(248, 250, 252, 0.85);
}

.history-order__header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.history-order__header strong {
  color: var(--primary);
  font-size: 1rem;
}

.history-order__items {
  margin: 0;
  font-size: 0.9rem;
  color: var(--primary);
}

.history-order__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.history-order__footer strong {
  color: var(--primary);
  font-size: 1rem;
}