/* ========================================================
   THE TOAST OFFICE - AIRMAIL MOBILE ORDERING EXPERIENCE
   Mobile-First Food Ordering • Deliveroo-style • PWYCA
   Classic Airmail Light Blue Envelope & Red/Blue Edging
   ======================================================== */

:root {
  --airmail-blue-bg: #d4e7f8;
  --airmail-blue-deep: #b9d7f3;
  --airmail-envelope-paper: #f9fbfd;
  --airmail-red: #d32727;
  --airmail-blue: #1660b8;
  --paper-cream: #faf5eb;
  --paper-cream-card: #ffffff;
  --paper-border: #e2d9cb;
  --ink-primary: #1c2430;
  --ink-secondary: #526071;
  --ink-muted: #7b8a9b;
  --postal-yellow: #fcd34d;
  --postal-red-logo: #e02424;
  --vegan-green: #15803d;
  --vegan-green-light: #ecfdf5;
  --accent-gold: #b45309;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 6px rgba(18, 48, 80, 0.06);
  --shadow-md: 0 6px 18px rgba(18, 48, 80, 0.10);
  --shadow-lg: 0 16px 36px rgba(18, 48, 80, 0.16);
  --shadow-float: 0 12px 28px rgba(211, 39, 39, 0.25);
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-postal: 'Courier Prime', Courier, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100%;
  font-family: var(--font-sans);
  color: var(--ink-primary);
  background-color: var(--airmail-blue-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ========================================================
   DESKTOP VS MOBILE PRESENTATION
   Desktop: light blue background, centered mobile app container
   ======================================================== */

.desktop-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: var(--airmail-blue-bg);
  background-image: 
    radial-gradient(#b8d5ee 1.5px, transparent 1.5px),
    radial-gradient(#b8d5ee 1.5px, var(--airmail-blue-bg) 1.5px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  padding: 0;
}

@media (min-width: 620px) {
  .desktop-wrapper {
    padding: 24px 16px 40px;
  }

  body.intro-active .desktop-wrapper {
    padding: 0;
  }

  .app-viewport {
    max-width: 480px !important;
    width: 100% !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 40px rgba(18, 54, 90, 0.14) !important;
    margin-bottom: 24px;
    border: 1px solid #dce8f2 !important;
    min-height: auto !important;
  }

  .app-viewport.intro-active {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    box-shadow: none !important;
  }
}

/* ========================================================
   MOBILE APP VIEWPORT
   ======================================================== */

.app-viewport {
  width: 100%;
  max-width: 100%;
  min-height: auto;
  background-color: var(--airmail-envelope-paper);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  box-shadow: var(--shadow-md);
}

.app-viewport.intro-active {
  min-height: 680px;
  height: 85vh;
  max-height: 800px;
  overflow: hidden;
}

@media (max-width: 619px) {
  body.intro-active {
    overflow: hidden;
  }

  .app-viewport.intro-active {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
  }

  .intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 9999;
  }

  .intro-video-element {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Classic Airmail Striped Diagonal Border */
.airmail-edge {
  width: 100%;
  height: 12px;
  background: repeating-linear-gradient(
    -45deg,
    var(--airmail-red) 0px,
    var(--airmail-red) 16px,
    #ffffff 16px,
    #ffffff 22px,
    var(--airmail-blue) 22px,
    var(--airmail-blue) 38px,
    #ffffff 38px,
    #ffffff 44px
  );
  flex-shrink: 0;
}

.airmail-edge.top {
  position: sticky;
  top: 0;
  z-index: 40;
}

.airmail-edge.bottom {
  margin-top: 16px;
}

/* ========================================================
   INTRO VIDEO & ZOOM LOGO OVERLAY
   ======================================================== */

body.intro-active {
  overflow: hidden;
}

.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #000000;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.intro-screen.dismissed {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* 9:16 full-height container matching mobile phone aspect ratio */
.intro-viewport-frame {
  position: relative;
  height: 100vh;
  height: 100dvh;
  aspect-ratio: 9 / 16;
  max-width: 100vw;
  width: auto;
  margin: 0 auto;
  border-radius: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: #000000;
}

.intro-video-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: 0 !important;
}

.intro-video-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.5) 0%,
    rgba(15, 23, 42, 0.1) 30%,
    rgba(15, 23, 42, 0.2) 65%,
    rgba(15, 23, 42, 0.8) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Animate the toast office logo into the top half of the screen with a zoom in effect */
.intro-logo-container {
  position: relative;
  z-index: 5;
  margin-top: 5%;
  padding-top: max(16px, env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

@keyframes zoomInLogo {
  0% {
    opacity: 0;
    transform: scale(0.15) translateY(40px);
  }
  60% {
    opacity: 0.8;
    transform: scale(1.12) translateY(-4px);
  }
  80% {
    opacity: 0.76;
    transform: scale(0.98) translateY(1px);
  }
  100% {
    opacity: 0.8;
    transform: scale(1) translateY(0);
  }
}

.intro-zoom-logo {
  width: 210px;
  max-width: 78%;
  aspect-ratio: 600 / 416;
  height: auto;
  object-fit: contain;
  opacity: 0.8;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.65));
  animation: zoomInLogo 1.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.08s both;
  @media (prefers-reduced-motion: reduce) {
    animation-duration: 0.3s;
  }
}

.intro-actions {
  position: relative;
  z-index: 5;
  margin-top: auto;
  margin-bottom: max(32px, 14%, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 85%;
}

@media (orientation: landscape), (min-width: 768px) {
  .intro-viewport-frame {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    aspect-ratio: auto;
  }

  .intro-logo-container {
    margin-top: clamp(16px, 3.5dvh, 40px);
  }

  .intro-zoom-logo {
    width: 336px;
    max-width: 78vw;
    max-height: 45dvh;
    animation: zoomInLogo 1.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.08s both;
  }

  .intro-actions {
    margin-top: auto;
    margin-bottom: max(36px, 5.5dvh, env(safe-area-inset-bottom));
  }
}

.btn-intro-skip {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 8px;
  cursor: pointer;
  opacity: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  transition: opacity 0.5s ease, transform 0.2s ease;
  margin-bottom: 2px;
}

.btn-intro-skip.is-visible {
  opacity: 0.8;
  animation: fadeInSkip 0.6s ease forwards;
}

@keyframes fadeInSkip {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  100% {
    opacity: 0.8;
    transform: translateY(0);
  }
}

.btn-intro-skip.is-visible:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.btn-intro-enter {
  width: 100%;
  max-width: 270px;
  background: linear-gradient(135deg, var(--airmail-red) 0%, #b91c1c 100%);
  color: #ffffff;
  border: 3px solid #ffffff;
  border-radius: var(--radius-full);
  padding: 15px 30px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 25px rgba(224, 36, 36, 0.55);
  transition: background 0.3s ease, transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  animation: pulseEnter 2s infinite ease-in-out;
}

.btn-intro-enter.is-order-mode {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 25px rgba(34, 197, 94, 0.65);
  animation: zoomInButton 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, pulseOrder 2s infinite ease-in-out 0.5s;
}

@keyframes zoomInButton {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseOrder {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 197, 94, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65), 0 0 32px rgba(34, 197, 94, 0.85);
  }
}

@keyframes pulseEnter {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(224, 36, 36, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65), 0 0 32px rgba(224, 36, 36, 0.85);
  }
}

.btn-intro-enter:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-intro-enter:active {
  transform: translateY(1px) scale(0.98);
}

/* ========================================================
   PRIVATE ALPHA ACCESS MODAL OVERLAY
   ======================================================== */
.alpha-access-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(5, 12, 8, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInAlpha 0.25s ease-out forwards;
}

@keyframes fadeInAlpha {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.alpha-access-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: #112217;
  border: 2px solid #234233;
  border-radius: 20px;
  padding: 28px 22px 24px;
  text-align: center;
  color: #f8fafc;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 35px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  animation: scaleUpAlpha 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleUpAlpha {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.alpha-stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1.5px dashed #ef4444;
  color: #ef4444;
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 2px 6px;
  border-radius: 4px;
  transform: rotate(6deg);
  opacity: 0.85;
}

.alpha-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  line-height: 1;
}

.alpha-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.25;
}

.alpha-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 18px;
  line-height: 1.35;
}

.alpha-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alpha-input-wrap {
  width: 100%;
}

.alpha-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid #234233;
  border-radius: 12px;
  color: #ffffff;
  font-family: 'Courier Prime', monospace;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.alpha-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.alpha-error {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 6px 10px;
  border-radius: 8px;
  text-align: center;
}

.alpha-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-alpha-cancel {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-alpha-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-alpha-submit {
  flex: 1.3;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 11px 16px;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-alpha-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-alpha-submit:active {
  transform: translateY(0);
}

.top-nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========================================================
   TOP HEADER & NAVIGATION
   ======================================================== */

.app-header {
  background: linear-gradient(180deg, #e3f0fb 0%, #f4f9fd 100%);
  border-bottom: 1px solid #dce8f2;
  position: relative;
  z-index: 20;
}

.top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  gap: 12px;
}

.fulfillment-pill-toggle {
  display: flex;
  background: #d3e5f5;
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid #bdd7ee;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-btn.active {
  background: #ffffff;
  color: var(--airmail-red);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid #bdd7ee;
  background: #ffffff;
  color: var(--ink-secondary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease;
}

.icon-btn:hover {
  background: #f0f7fd;
}

/* Deliveroo-style address summary bar with flat dropdown */
.address-bar {
  display: flex;
  flex-direction: column;
  padding: 8px 16px 12px;
  background: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid #dce8f2;
}

.address-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.delivery-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.delivery-address-summary {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.2;
}

.flat-select-wrap {
  margin-top: 8px;
  background: #f0f7fd;
  border: 1px solid #cce2f4;
  border-radius: 14px;
  padding: 10px;
}

.flat-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 2px;
}

.flat-grid-label {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--airmail-blue);
  letter-spacing: normal;
  text-transform: none;
}

.flat-grid-selected {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.flat-toggle-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 5px;
}

.flat-toggle-btn {
  background: #ffffff;
  border: 1px solid #bdd7ee;
  border-radius: 7px;
  padding: 7px 0;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}

.flat-toggle-btn:hover {
  border-color: var(--airmail-blue);
  background: #e6f1fb;
  color: var(--airmail-blue);
  transform: translateY(-1px);
}

.flat-toggle-btn.active {
  background: linear-gradient(135deg, var(--airmail-blue) 0%, #1e40af 100%);
  border-color: #1e40af;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(22, 96, 184, 0.35);
  transform: scale(1.04);
}

.flat-toggle-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--airmail-blue);
}

/* Postal Hero Section */
.postal-hero {
  padding: 10px 16px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-stamps {
  position: absolute;
  top: 6px;
  width: calc(100% - 32px);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

/* Circular Green Vegan Stamp */
.vegan-stamp {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  border: 2.5px solid var(--vegan-green);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  transform: rotate(-10deg);
}

.vegan-stamp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.vegan-stamp-inner span {
  font-family: var(--font-postal);
  font-size: 9px;
  font-weight: 800;
  color: var(--vegan-green);
  letter-spacing: 0.08em;
  margin-top: 1px;
}

/* Circular Postmark Stamp with Wavy Lines */
.postmark-stamp {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.85;
  transform: rotate(6deg);
}

.postmark-circle {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  border: 1.5px solid #2d3748;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-postal);
  font-size: 8px;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.1;
  background: rgba(255, 255, 255, 0.4);
}

.postmark-date {
  font-size: 7px;
  border-top: 1px solid #2d3748;
  border-bottom: 1px solid #2d3748;
  padding: 1px 3px;
  margin: 1px 0;
  color: var(--airmail-red);
}

.wavy-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wavy-lines span {
  display: block;
  width: 28px;
  height: 2px;
  background: #2d3748;
  border-radius: 2px;
}

.logo-wrap {
  margin: 10px 0 12px;
  z-index: 2;
}

.brand-logo {
  width: 175px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(224, 36, 36, 0.2));
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.02);
}

/* Manila Delivery Slip Menu Header */
.delivery-slip-tag {
  background: var(--paper-cream);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  width: 100%;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.slip-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid #dfd4c0;
  padding-bottom: 6px;
  margin-bottom: 6px;
  font-family: var(--font-postal);
  font-size: 0.75rem;
  font-weight: 700;
}

.slip-service {
  color: var(--ink-secondary);
}

.slip-pwyca {
  color: var(--airmail-red);
  letter-spacing: 0.05em;
}

.slip-title {
  font-family: var(--font-postal);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.slip-desc {
  font-size: 0.78rem;
  color: var(--ink-secondary);
  line-height: 1.35;
}

/* Category Filter Nav */
.category-nav {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid #e1edf6;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  border: 1px solid #c7ddf0;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.cat-chip.active {
  background: var(--airmail-red);
  color: #ffffff;
  border-color: var(--airmail-red);
  box-shadow: 0 2px 8px rgba(211, 39, 39, 0.28);
}

/* ========================================================
   MAIN MENU CONTENT AREA
   ======================================================== */

.menu-content {
  flex: 1;
  padding: 14px 16px 16px;
  transition: padding-bottom 0.2s ease;
}

.menu-content.has-basket {
  padding-bottom: 84px;
}

/* Search Container */
.search-container {
  margin-bottom: 14px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #d4e3f0;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  box-shadow: var(--shadow-sm);
  color: var(--ink-muted);
}

.search-input-wrap input {
  border: none;
  outline: none;
  font-size: 0.88rem;
  width: 100%;
  color: var(--ink-primary);
  font-family: inherit;
  background: transparent;
}

.search-input-wrap input::placeholder {
  color: var(--ink-muted);
}

/* PWYCA Explainer Banner */
.pwyca-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fffbeb;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.pwyca-banner-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pwyca-banner-body {
  font-size: 0.78rem;
  color: #78350f;
  line-height: 1.35;
  flex: 1;
}

.pwyca-banner-body strong {
  display: block;
  font-size: 0.82rem;
  color: #92400e;
  margin-bottom: 2px;
}

.pwyca-learn-more {
  border: 1px solid #d97706;
  background: #ffffff;
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  flex-shrink: 0;
}

/* Section Header */
.menu-section {
  margin-bottom: 22px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-primary);
}

.section-badge {
  font-family: var(--font-postal);
  font-size: 0.7rem;
  color: var(--vegan-green);
  background: var(--vegan-green-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  border: 1px solid #bbf7d0;
}

/* Menu Grid & Item Cards */
.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-card {
  background: var(--paper-cream-card);
  border: 1px solid #e2ecf5;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #bad3eb;
}

.menu-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--airmail-blue);
}

.menu-card.featured::before {
  background: var(--airmail-red);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.card-postal-code {
  font-family: var(--font-postal);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--airmail-red);
  letter-spacing: 0.05em;
  background: #fdf2f2;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px dashed #fca5a5;
  display: inline-block;
  margin-bottom: 4px;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.25;
}

.card-badge-special {
  font-size: 0.68rem;
  font-weight: 700;
  color: #1e40af;
  background: #dbeafe;
  padding: 3px 6px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.card-description {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed #edf2f7;
}

.card-price-suggested {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink-primary);
}

.card-pwyca-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  line-height: 1.3;
}

.pwyca-red-text {
  color: var(--airmail-red);
  font-weight: 800;
}

.btn-add-item.full-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--airmail-red);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(211, 39, 39, 0.25);
  transition: all 0.15s ease;
  margin-top: 2px;
}

.btn-add-item.full-row:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(211, 39, 39, 0.35);
}

#section-allergens {
  margin-bottom: 4px;
}

/* Counter Extras Reference Card */
.counter-extras-card {
  background: var(--paper-cream);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.dashed-border-inner {
  border: 1.5px dashed #c8bcab;
  border-radius: var(--radius-sm);
  padding: 14px;
}

.extras-title {
  font-family: var(--font-postal);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-primary);
  text-align: center;
  margin-bottom: 4px;
}

.extras-sub {
  font-size: 0.78rem;
  color: var(--ink-secondary);
  text-align: center;
  margin-bottom: 12px;
}

.extras-block {
  margin-bottom: 10px;
}

.extras-block:last-child {
  margin-bottom: 0;
}

.extras-category-label {
  font-family: var(--font-postal);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--airmail-blue);
  display: block;
  margin-bottom: 2px;
}

.extras-list-text {
  font-size: 0.78rem;
  color: var(--ink-secondary);
  line-height: 1.4;
}

/* Allergen Card */
.allergen-box {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.75rem;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.allergen-title {
  font-family: var(--font-postal);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.allergen-ingredients {
  margin-top: 4px;
  color: var(--ink-muted);
}

/* ========================================================
   FLOATING BASKET BAR (DELIVEROO STYLE)
   ======================================================== */

.floating-basket-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 408px;
  z-index: 50;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-basket-bar[hidden] {
  display: none;
}

.basket-action-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--airmail-red) 0%, #b91c1c 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-float);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.basket-action-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.basket-qty-badge {
  background: #ffffff;
  color: var(--airmail-red);
  font-size: 0.82rem;
  font-weight: 800;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.basket-btn-text {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.basket-total-price {
  font-size: 1rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ========================================================
   MODAL DIALOGS (NATIVE <dialog> WITH MODERN SPEC)
   ======================================================== */

dialog.postal-dialog {
  border: none;
  border-radius: 24px;
  width: 92%;
  max-width: 420px;
  margin: auto;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 25px 60px rgba(10, 30, 50, 0.35);
  color: var(--ink-primary);
  max-height: 88vh;
  overflow: hidden;
}

/* Mandatory per modern-web-guidance for modal scroll containment */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgba(14, 30, 48, 0.6);
  backdrop-filter: blur(4px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.dialog-inner {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  background: #ffffff;
}

/* Airmail strip header on dialog */
.airmail-strip-header {
  background: repeating-linear-gradient(
    -45deg,
    var(--airmail-red) 0px,
    var(--airmail-red) 12px,
    #ffffff 12px,
    #ffffff 18px,
    var(--airmail-blue) 18px,
    var(--airmail-blue) 30px,
    #ffffff 30px,
    #ffffff 36px
  );
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.postal-header-tag {
  font-family: var(--font-postal);
  font-size: 0.72rem;
  font-weight: 800;
  background: #ffffff;
  color: var(--ink-primary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-sm);
}

.dialog-close-btn {
  background: #ffffff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-secondary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.dialog-close-btn:hover {
  background: #f1f5f9;
}

.dialog-form-content {
  overflow-y: auto;
  padding: 16px;
  flex: 1;
}

/* Item Detail Hero inside Modal */
.item-detail-hero {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.item-hero-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.tag-postal {
  font-family: var(--font-postal);
  font-size: 0.7rem;
  font-weight: 700;
  background: #eff6ff;
  color: var(--airmail-blue);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #bfdbfe;
}

.tag-vegan {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--vegan-green-light);
  color: var(--vegan-green);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #bbf7d0;
}

.item-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.25;
  margin-bottom: 6px;
}

.item-description {
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.45;
  margin-bottom: 10px;
}

.item-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-suggested-label {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.price-amount {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--airmail-red);
}

.pwyca-chip {
  font-family: var(--font-postal);
  font-size: 0.68rem;
  font-weight: 700;
  color: #1e40af;
  background: #dbeafe;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

/* Customisation Fieldset Sections */
.customise-section {
  border: none;
  margin-bottom: 18px;
}

.section-legend {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 8px;
}

.legend-required {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--airmail-red);
  background: #fef2f2;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.legend-counter {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--airmail-blue);
  background: #eff6ff;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.choice-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  background: #fafbfc;
  cursor: pointer;
  transition: all 0.15s ease;
}

.choice-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.choice-card input[type="radio"],
.choice-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--airmail-red);
  cursor: pointer;
  flex-shrink: 0;
}

.choice-card.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.choice-text {
  display: flex;
  flex-direction: column;
}

.choice-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.choice-hint {
  font-size: 0.72rem;
  color: var(--ink-secondary);
}

.input-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.req {
  color: var(--airmail-red);
}

.custom-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--ink-primary);
  resize: vertical;
}

.custom-textarea:focus,
.custom-input:focus,
.custom-select:focus {
  outline: none;
  border-color: var(--airmail-blue);
  box-shadow: 0 0 0 3px rgba(22, 96, 184, 0.15);
}

.custom-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--ink-primary);
}

.custom-select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--ink-primary);
  background: #ffffff;
}

.custom-select:disabled {
  background: #e2e8f0;
  color: #64748b;
  border-color: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.75;
}

/* Modal Footer & Buttons */
.modal-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.modal-footer.single-btn {
  justify-content: stretch;
}

.modal-footer.single-btn .submit-order-btn {
  width: 100%;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  background: #ffffff;
  padding: 2px;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: none;
  background: #f1f5f9;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.stepper-btn:hover {
  background: #e2e8f0;
}

.stepper-count {
  width: 30px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.submit-order-btn {
  flex: 1;
  background: linear-gradient(135deg, var(--airmail-red) 0%, #b91c1c 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(211, 39, 39, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.submit-order-btn.btn-good-stuff {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  font-size: 1rem;
  font-weight: 800;
}

.submit-order-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ========================================================
   BASKET & PWYCA INTERACTIVE CALCULATOR
   ======================================================== */

.basket-scroll-body {
  overflow-y: auto;
  padding: 16px;
  flex: 1;
}

.basket-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.basket-title {
  font-size: 1.1rem;
  font-weight: 800;
}

.badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: #eff6ff;
  color: var(--airmail-blue);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid #bfdbfe;
}

.basket-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.basket-item-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.basket-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.basket-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.basket-item-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--airmail-red);
}

.basket-item-customs {
  font-size: 0.75rem;
  color: var(--ink-secondary);
  line-height: 1.35;
}

.basket-item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed #e2e8f0;
}

.basket-remove-btn {
  border: none;
  background: none;
  color: var(--ink-muted);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
}

.basket-remove-btn:hover {
  color: var(--airmail-red);
}

.basket-add-more {
  text-align: center;
  margin-bottom: 16px;
}

.add-more-link {
  border: 1px dashed var(--airmail-blue);
  background: #eff6ff;
  color: var(--airmail-blue);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

/* PWYCA Interactive Box in Basket */
.pwyca-card-interactive {
  background: #fffdf7;
  border: 1.5px solid #fbd38d;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.pwyca-card-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.stamp-icon {
  font-size: 1.4rem;
}

.pwyca-interactive-title {
  font-family: var(--font-postal);
  font-size: 0.95rem;
  font-weight: 700;
  color: #92400e;
}

.pwyca-interactive-sub {
  font-size: 0.75rem;
  color: #78350f;
  line-height: 1.3;
}

.pwyca-breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-secondary);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px dashed #fbd38d;
}

.pwyca-tier-chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.pwyca-chip-btn {
  background: #ffffff;
  border: 1.5px solid #fcd34d;
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.pwyca-chip-btn .chip-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #92400e;
  line-height: 1.2;
}

.pwyca-chip-btn .chip-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.2;
}

.pwyca-chip-btn.active {
  background: var(--airmail-red);
  border-color: var(--airmail-red);
}

.pwyca-chip-btn.active .chip-title,
.pwyca-chip-btn.active .chip-val {
  color: #ffffff;
}

/* On mobile/smaller screens, stack each contribution tier as a clean horizontal row */
@media (max-width: 619px) {
  .pwyca-tier-chips {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pwyca-chip-btn {
    flex-direction: row;
    justify-content: space-between;
    padding: 11px 16px;
    border-radius: var(--radius-md);
  }

  .pwyca-chip-btn .chip-title {
    font-size: 0.86rem;
    font-weight: 700;
  }

  .pwyca-chip-btn .chip-val {
    font-size: 1.05rem;
    font-weight: 800;
  }
}

.slider-group {
  margin-bottom: 10px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #92400e;
}

.slider-current-amount {
  font-size: 0.95rem;
  color: var(--airmail-red);
}

input[type="range"]#pwyca-slider {
  width: 100%;
  accent-color: var(--airmail-red);
  cursor: pointer;
}

.custom-pwyca-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  color: #92400e;
}

.currency-input-wrap {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  width: 100px;
}

.currency-prefix {
  font-weight: 800;
  color: var(--ink-primary);
  margin-right: 2px;
}

.currency-input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-primary);
  font-family: inherit;
}

.pwyca-solidarity-note {
  font-size: 0.74rem;
  color: #92400e;
  background: #fef3c7;
  padding: 6px 8px;
  border-radius: 6px;
  line-height: 1.35;
}

/* Bill Summary */
.order-bill-summary {
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  padding: 12px;
  margin-bottom: 12px;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.free-text {
  color: var(--vegan-green);
  font-weight: 700;
}

.bill-row.total-row {
  border-top: 1px dashed #cbd5e1;
  padding-top: 8px;
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--ink-primary);
}

.total-highlight {
  color: var(--airmail-red);
  font-size: 1.15rem;
}

/* ========================================================
   CHECKOUT PAGE & FORM CONTROLS
   ======================================================== */

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

.checkout-intro {
  margin-bottom: 4px;
}

.checkout-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.checkout-subtitle {
  font-size: 0.78rem;
  color: var(--ink-secondary);
}

.checkout-card-fieldset {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s ease;
}

.checkout-card-fieldset.is-blurred-disabled {
  filter: blur(2px) grayscale(60%);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

.checkout-section-legend {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-primary);
  padding: 0 4px;
}

.fulfillment-radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fulfillment-option-card {
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s ease;
  background: #f8fafc;
}

.fulfillment-option-card input[type="radio"] {
  display: none;
}

.fulfillment-option-card:has(input:checked) {
  border-color: var(--airmail-blue);
  background: #eff6ff;
}

.option-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.option-desc {
  font-size: 0.7rem;
  color: var(--ink-secondary);
  line-height: 1.3;
}

.form-columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.form-row {
  display: flex;
  flex-direction: column;
}

.hint-above-label {
  font-size: 0.7rem;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

.collection-pickup-card {
  display: flex;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 0.78rem;
  color: #14532d;
}

.pickup-icon {
  font-size: 1.4rem;
}

.pickup-time-notice {
  margin-top: 4px;
  color: #166534;
}

/* Payment Method Selection */
.payment-method-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-choice-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  background: #fafbfc;
  transition: all 0.15s ease;
}

.payment-choice-card input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--airmail-red);
}

.payment-choice-card:has(input:checked) {
  border-color: var(--airmail-red);
  background: #fff5f5;
}

.payment-choice-card.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  background: #f1f5f9;
}

.payment-choice-body {
  flex: 1;
}

.pay-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.secure-badge, .cash-card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: #e2e8f0;
  color: var(--ink-secondary);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.pay-desc {
  font-size: 0.72rem;
  color: var(--ink-secondary);
  margin-top: 2px;
}

.delivery-yard-note {
  font-size: 0.78rem;
  color: var(--ink-secondary);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  margin-bottom: 10px;
}

.card-details-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.stripe-powered-box {
  align-items: center;
  text-align: center;
  padding: 14px 12px;
  gap: 10px;
}

.stripe-powered-text {
  font-size: 0.82rem;
  color: var(--ink-primary);
}

.stripe-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.secure-guarantee {
  font-size: 0.7rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 4px;
}

.in-person-notice-box {
  display: flex;
  gap: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 0.78rem;
  color: #1e3a8a;
  margin-top: 6px;
}

.in-person-icon {
  font-size: 1.4rem;
}

.checkout-recap-card {
  background: var(--paper-cream);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.recap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.recap-amount {
  font-size: 1.25rem;
  color: var(--airmail-red);
}

.recap-subtext {
  font-size: 0.74rem;
  color: var(--ink-secondary);
  margin-top: 2px;
}

.checkout-agreement-row {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
}

.agreement-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  width: 100%;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #713f12;
  user-select: none;
  -webkit-user-select: none;
}

.agreement-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--airmail-red);
  cursor: pointer;
  flex-shrink: 0;
}

.agreement-text {
  flex: 1;
}

.agreement-faq-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--airmail-blue);
  text-decoration: underline;
  cursor: pointer;
}

.agreement-faq-link:hover {
  color: #1e40af;
}

.checkout-error-msg {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  font-size: 0.78rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ========================================================
   ORDER CONFIRMATION & TRACKER (<dialog>)
   ======================================================== */

.confirmation-body {
  overflow-y: auto;
  padding: 16px;
  flex: 1;
}

.envelope-slip-receipt {
  background: var(--paper-cream);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.receipt-stamp-mark {
  position: absolute;
  top: 14px;
  right: 14px;
}

.rubber-stamp {
  width: 58px;
  height: 58px;
  border: 2px solid var(--airmail-red);
  border-radius: var(--radius-full);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(12deg);
  opacity: 0.85;
}

.stamp-inner-text {
  font-family: var(--font-postal);
  font-size: 8px;
  font-weight: 800;
  color: var(--airmail-red);
  letter-spacing: 0.1em;
}

.stamp-inner-date {
  font-family: var(--font-postal);
  font-size: 7px;
  font-weight: 700;
  color: var(--airmail-red);
}

.stamp-inner-loc {
  font-family: var(--font-postal);
  font-size: 6px;
  font-weight: 700;
  color: var(--airmail-blue);
}

.receipt-header {
  margin-bottom: 14px;
}

.receipt-kicker {
  font-family: var(--font-postal);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--airmail-blue);
  letter-spacing: 0.08em;
}

.receipt-order-no {
  font-family: var(--font-postal);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink-primary);
}

.receipt-status-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  background: #fef08a;
  color: #854d0e;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

/* Dispatch Tracker Steps */
.dispatch-tracker {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 14px;
}

.tracker-step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.tracker-step.active {
  opacity: 1;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.tracker-step.active .step-dot {
  background: #dcfce7;
  color: #15803d;
}

.tracker-step.in-progress .step-dot {
  background: #fef3c7;
  color: #b45309;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.step-info {
  display: flex;
  flex-direction: column;
}

.step-info strong {
  font-size: 0.82rem;
  color: var(--ink-primary);
}

.step-info span {
  font-size: 0.72rem;
  color: var(--ink-secondary);
}

/* Receipt Details */
.receipt-details-list {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--ink-secondary);
  padding: 4px 0;
  border-bottom: 1px dashed #f1f5f9;
}

.receipt-destination-val {
  text-align: right;
  line-height: 1.35;
  color: var(--ink-primary);
  font-weight: 600;
}

.receipt-row:last-child {
  border-bottom: none;
}

.receipt-row.total-highlight-row {
  font-size: 0.9rem;
  color: var(--ink-primary);
  border-top: 1px solid #e2e8f0;
  margin-top: 4px;
  padding-top: 6px;
}

.receipt-row.total-highlight-row strong {
  color: var(--airmail-red);
  font-size: 1.05rem;
}

.receipt-items-summary {
  font-size: 0.78rem;
  border-top: 1.5px dashed #c8bcab;
  padding-top: 10px;
  margin-bottom: 12px;
}

.receipt-footer-stamp {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-secondary);
}

.receipt-small {
  font-size: 0.68rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* ========================================================
   ABOUT PWYCA INFO MODAL PROSE
   ======================================================== */

.info-content-prose {
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 16px;
}

.info-content-prose h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin-top: 6px;
}

.info-content-prose ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-disclaimer-box {
  margin-top: 14px;
  padding: 14px 16px;
  background: #fefce8;
  border: 1.5px solid #fde047;
  border-left: 4px solid #ca8a04;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-disclaimer-box h3 {
  font-size: 0.88rem;
  font-weight: 800;
  color: #854d0e;
  margin-top: 0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.faq-disclaimer-box p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #713f12;
}
