/* ==========================================================================
   Bhojanshala Paryushan 2026 — Customer Frontend Styles
   Design System: Plus Jakarta Sans | Slate Neutrals | Modern Responsive Grid
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg:             #f8fafc;
  --surface:        #ffffff;
  --surface-muted:  #f8fafc;
  --surface-hover:  #f1f5f9;

  /* Brand & Accent */
  --accent:         #0284c7;
  --accent-light:   #e0f2fe;
  --accent-mid:     #bae6fd;
  --accent-dark:    #0369a1;
  --accent-darker:  #075985;

  /* Primary (CTA / Pay button) */
  --primary:        #0f172a;
  --primary-hover:  #1e293b;
  --primary-active: #334155;

  /* Text */
  --text:           #0f172a;
  --text-secondary: #334155;
  --text-muted:     #64748b;
  --text-faint:     #94a3b8;

  /* Borders */
  --border:         #e2e8f0;
  --border-muted:   #f1f5f9;

  /* Semantic colours */
  --gold-bg:        #fffbeb;
  --gold-border:    #fef3c7;
  --gold-text:      #92400e;
  --gold-accent:    #b45309;

  --success:        #16a34a;
  --success-light:  #dcfce7;
  --success-border: #bbf7d0;

  --danger:         #dc2626;
  --danger-light:   #fef2f2;
  --danger-border:  #fecaca;

  --warning:        #d97706;
  --warning-light:  #fffbeb;
  --warning-border: #fde68a;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10), 0 4px 8px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);

  /* Radii */
  --radius-sm:   10px;
  --radius:      16px;
  --radius-lg:   20px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Spacing */
  --card-pad: 22px;
  --gap:      16px;

  /* Transitions */
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:      cubic-bezier(0, 0, 0.2, 1);
  --duration:      180ms;
  --duration-slow: 280ms;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  padding: 16px 14px 140px;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

img    { max-width: 100%; display: block; }
a      { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
strong { font-weight: 700; }

/* --------------------------------------------------------------------------
   3. RESPONSIVE APPLICATION LAYOUT
   -------------------------------------------------------------------------- */
.app-layout {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.main-column {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  min-width: 0;
}

.aside-column {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  min-width: 0;
}

@media (min-width: 992px) {
  body {
    padding: 24px 24px 48px;
  }

  .app-layout {
    max-width: 1120px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
  }

  .aside-column {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .checkout-bar {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .desktop-summary-card {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   4. BRAND HEADER
   -------------------------------------------------------------------------- */
.brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 2px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--border);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease);
}

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

.brand-title h1 {
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.brand-title p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   5. CARD COMPONENT
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-pad);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   6. STATUS BADGE PILLS
   -------------------------------------------------------------------------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Prepaid — blue */
.badge-prepaid {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* Spot — orange with live pulse */
.badge-spot {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

/* Closed — neutral slate */
.badge-closed {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* Live pulsing dot (Spot mode) */
@keyframes livePulse {
  0%   { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7); }
  70%  { transform: scale(1.1);  box-shadow: 0 0 0 6px rgba(234, 88, 12, 0); }
  100% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ea580c;
  animation: livePulse 1.6s infinite ease-in-out;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   7. PICKUP DETAILS CARD STATES
   -------------------------------------------------------------------------- */
.pickup-highlight-box {
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.pickup-main {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-darker);
  line-height: 1.35;
}

.pickup-sub {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent-dark);
  margin-top: 5px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  flex-wrap: wrap;
}

.pickup-icon { font-size: 13px; flex-shrink: 0; }

/* Cutoff info box (Prepaid) */
.cutoff-box {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
}

.cutoff-icon {
  font-size: 16px;
  line-height: 1.3;
  flex-shrink: 0;
}

.cutoff-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Spot mode highlight box */
.pickup-highlight-spot {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid #fed7aa;
}

.pickup-highlight-spot .pickup-main {
  color: #7c2d12;
  font-size: 15px;
  font-weight: 700;
}

.pickup-sub-spot {
  color: #9a3412;
  font-size: 12.5px;
}

/* Compact inline alert (Spot physical presence) */
.spot-inline-alert {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-left: 3px solid #e11d48;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 12.5px;
  color: #881337;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.spot-inline-alert strong { color: #9f1239; }

/* Spot 3-Step Process */
.kiosk-steps-box {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.kiosk-steps-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.kiosk-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  gap: 4px;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-desc {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.kiosk-step-arrow {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  user-select: none;
}

/* Advance notice strip (Spot) */
.spot-prepaid-notice {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-left: 3px solid #0284c7;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.spot-prepaid-icon { font-size: 15px; flex-shrink: 0; }

.spot-prepaid-text {
  font-size: 12.5px;
  color: #0369a1;
  line-height: 1.45;
  font-weight: 500;
}

.spot-prepaid-text strong { color: #0c4a6e; font-weight: 800; }

/* Closed mode highlight box */
.pickup-highlight-closed {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #cbd5e1;
}

.pickup-highlight-closed .pickup-main {
  color: #1e293b;
  font-size: 15px;
  font-weight: 700;
}

.pickup-sub-closed {
  color: #475569;
  font-size: 12.5px;
  font-weight: 400;
  margin-top: 6px;
  display: block;
  line-height: 1.6;
}

.pickup-sub-closed strong { color: #1e293b; }

/* Loading mode highlight box */
.pickup-highlight-loading {
  background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 50%, #f8fafc 100%);
  background-size: 600px 100%;
  animation: shimmer 2s infinite linear;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
}

.loading-spinner-ring {
  width: 18px;
  height: 18px;
  border: 2.5px solid #e2e8f0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}

.pickup-highlight-loading .pickup-main {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   8. SKELETON LOADERS
   -------------------------------------------------------------------------- */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.skeleton-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-item:last-child { border-bottom: none; padding-bottom: 0; }

.skeleton-line {
  height: 13px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-line.sk-title    { width: 60%; height: 15px; }
.skeleton-line.sk-subtitle { width: 40%; }
.skeleton-line.sk-short    { width: 45%; }
.skeleton-line.sk-shorter  { width: 30%; }

/* --------------------------------------------------------------------------
   9. MENU ITEMS & STEPPERS
   -------------------------------------------------------------------------- */
.menu-item {
  display: block;
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.menu-item:first-child { padding-top: 0; }
.menu-item:last-child  { border-bottom: none; padding-bottom: 0; }

.item-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.item-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.item-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-pricing-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.item-stock {
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
  transition: all var(--duration) var(--ease);
}

.item-stock.low-stock    { color: #10b981; }
.item-stock.out-of-stock { color: var(--danger); }

/* Stepper */
.stepper {
  display: flex;
  flex: 0 0 124px;
  width: 124px;
  height: 40px;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 3px;
  user-select: none;
}

.stepper-btn {
  width: 34px;
  height: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  transition: background var(--duration) var(--ease),
              transform 80ms var(--ease),
              box-shadow var(--duration) var(--ease);
  flex-shrink: 0;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.stepper-btn:hover:not(:disabled) {
  background: var(--surface-hover);
  box-shadow: var(--shadow-xs);
}

.stepper-btn:active:not(:disabled) { transform: scale(0.92); }

.stepper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.stepper-val {
  width: 46px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  cursor: text;
  font-family: inherit;
}

.stepper-val::-webkit-outer-spin-button,
.stepper-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-val[type=number] { -moz-appearance: textfield; }

/* Item description pill */
.item-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.5;
  background: #f8fafc;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   10. EMPTY STATE
   -------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 28px 0 8px;
}

.empty-icon  { font-size: 36px; margin-bottom: 10px; }
.empty-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.empty-sub   { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* --------------------------------------------------------------------------
   11. ALERT BANNER (Global Error)
   -------------------------------------------------------------------------- */
.alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}

.alert-banner[hidden] { display: none; }

.alert-banner.alert-error {
  background: var(--danger-light);
  border: 1px solid var(--danger-border);
  color: var(--danger);
}

.alert-icon { font-size: 16px; flex-shrink: 0; line-height: 1.3; }
.alert-text  { flex: 1; }

/* --------------------------------------------------------------------------
   12. CUSTOMER DETAILS FORM
   -------------------------------------------------------------------------- */
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

input[type="text"],
input[type="tel"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: #fafbfc;
  color: var(--text);
  transition: border-color var(--duration) var(--ease),
              background var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

input[type="text"]::placeholder,
input[type="tel"]::placeholder {
  color: var(--text-faint);
  font-weight: 400;
}

input[type="text"]:focus,
input[type="tel"]:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

input.invalid,
.phone-input-wrapper.invalid {
  border-color: var(--danger) !important;
  background: #fffafa !important;
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fafbfc;
  overflow: hidden;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.phone-input-wrapper:focus-within {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.phone-prefix {
  padding: 0 12px 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  user-select: none;
  border-right: 1px solid var(--border);
  line-height: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  background: var(--surface-muted);
}

.phone-input-wrapper input[type="tel"] {
  border: none;
  border-radius: 0;
  background: transparent;
  padding-left: 12px;
  box-shadow: none;
  flex: 1;
}

.phone-input-wrapper input[type="tel"]:focus {
  box-shadow: none;
  background: transparent;
}

.field-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 5px;
  font-weight: 500;
}

.field-error[hidden] { display: none; }

/* --------------------------------------------------------------------------
   13. DESKTOP LIVE ORDER SUMMARY CARD
   -------------------------------------------------------------------------- */
.desktop-summary-card {
  position: relative;
}

.desktop-summary-empty {
  padding: 24px 16px;
  text-align: center;
  background: var(--surface-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

.empty-cart-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.desktop-summary-empty p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.desktop-summary-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.desktop-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.desktop-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-muted);
}

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

.desktop-item-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.desktop-item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desktop-item-qty {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.desktop-item-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.summary-line-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.desktop-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.desktop-summary-row .summary-label {
  color: var(--text-muted);
  font-weight: 500;
}

.desktop-summary-row .summary-val {
  color: var(--text);
  font-weight: 600;
}

.desktop-total-row {
  padding-top: 4px;
}

.desktop-total-row .summary-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.desktop-total-row .summary-val-total {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.4px;
}

.desktop-pickup-badge {
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--accent-darker);
  font-weight: 600;
}

.desktop-pickup-badge .badge-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.desktop-pay-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  border-radius: 12px;
}

/* --------------------------------------------------------------------------
   14. CONSOLIDATED COMMUNITY & GUIDELINES CARD
   -------------------------------------------------------------------------- */
.community-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.community-culture-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
}

.culture-icon {
  font-size: 18px;
  line-height: 1.2;
  flex-shrink: 0;
}

.culture-text {
  font-size: 12.5px;
  color: #78350f;
  line-height: 1.5;
}

.culture-text strong {
  color: var(--gold-text);
}

.community-whatsapp-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.whatsapp-info {
  flex: 1;
  min-width: 0;
}

.whatsapp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: #047857;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.whatsapp-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.whatsapp-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 2px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: none;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              filter var(--duration) var(--ease);
}

.btn-whatsapp:hover {
  color: #ffffff;
  text-decoration: none;
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

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

.guideline-details-qr {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.guideline-qr-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.guideline-qr-toggle::-webkit-details-marker {
  display: none;
}

.guideline-qr-toggle:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.accordion-arrow {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform var(--duration) var(--ease);
}

details[open] > summary .accordion-arrow {
  transform: rotate(180deg);
}

.guideline-qr-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}

.support-qr-img-compact {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: contain;
  background: white;
  padding: 4px;
  flex-shrink: 0;
}

.qr-caption {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.guidelines-accordions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.guideline-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.guideline-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background var(--duration) var(--ease);
}

.guideline-summary::-webkit-details-marker {
  display: none;
}

.guideline-summary:hover {
  background: var(--surface-hover);
}

.guideline-body {
  padding: 11px 13px 13px;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guideline-body strong {
  color: var(--text);
}

.venue-map-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.venue-map-frame {
  width: 100%;
  height: 160px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  display: block;
}

.btn-venue-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-xs);
}

.btn-venue-map:hover {
  background: var(--accent-light);
  border-color: var(--accent-mid);
  color: var(--accent-dark);
}

.btn-venue-map:active {
  transform: translateY(1px);
}

.venue-map-icon {
  flex-shrink: 0;
  color: var(--accent);
}

.venue-map-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  margin-left: 2px;
}

/* Parcel Delivery Instructions */
.parcel-partner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 3px 0 5px;
}

.parcel-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

.parcel-steps-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 4px 0 2px;
}

.parcel-step-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.45;
}

.parcel-step-bullet {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.parcel-step-text {
  flex: 1;
  color: var(--text-secondary);
}

.parcel-step-text strong {
  color: var(--text);
}

.parcel-callout {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 11.5px;
  color: #166534;
  line-height: 1.4;
  margin-top: 5px;
}

.parcel-callout-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #15803d;
}

/* --------------------------------------------------------------------------
   15. FIXED STICKY CHECKOUT BAR (Mobile)
   -------------------------------------------------------------------------- */
.checkout-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.checkout-bar[hidden] { display: none !important; }

.checkout-inner {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.checkout-summary { flex: 1; min-width: 0; }

.summary-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1px;
}

.summary-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1;
}

.btn-pay {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  transition: background var(--duration) var(--ease),
              transform 100ms var(--ease),
              box-shadow var(--duration) var(--ease),
              opacity var(--duration) var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-pay:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
  transform: translateY(-1px);
}

.btn-pay:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.btn-pay:disabled,
.btn-pay[aria-disabled="true"] {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-pay.loading { pointer-events: none; opacity: 0.8; }

/* --------------------------------------------------------------------------
   16. MODALS & OVERLAYS
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn var(--duration-slow) var(--ease-out) both;
}

.overlay[hidden] { display: none; }

.overlay-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  max-width: 320px;
  width: 100%;
  box-shadow: var(--shadow-xl);
}

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

.spinner {
  width: 42px;
  height: 42px;
  border: 3.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin 0.8s linear infinite;
}

.overlay-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.overlay-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fadeIn var(--duration-slow) var(--ease-out) both;
}

.modal-backdrop[hidden] { display: none; }

.modal-card {
  background: white;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 28px 20px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  max-width: 540px;
  width: 100%;
  max-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-xl);
  animation: slideUp var(--duration-slow) var(--ease-out) both;
}

@media (min-width: 541px) {
  .modal-backdrop {
    align-items: center;
    padding: 24px;
  }
  .modal-card {
    border-radius: var(--radius-xl);
    max-height: 88dvh;
    padding-bottom: 28px;
  }
}

.modal-header {
  text-align: center;
  margin-bottom: 18px;
}

.modal-icon-badge {
  font-size: 36px;
  margin-bottom: 6px;
  text-align: center;
}

.modal-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   17. PRE-PAYMENT REVIEW MODAL
   -------------------------------------------------------------------------- */
.review-modal-card {
  max-width: 480px;
}

.review-block {
  margin-bottom: 14px;
}

.review-block-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.review-detail-grid {
  margin-bottom: 0;
}

.review-items-summary {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 0;
}

.review-items-summary .order-item-row {
  padding: 6px 0;
}

.review-total-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.review-total-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.review-total-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.4px;
}

.review-policy-note {
  font-size: 11.5px;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  line-height: 1.45;
  margin-bottom: 16px;
}

.review-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-confirm-pay {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  border-radius: 12px;
}

.btn-secondary {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: #cbd5e1;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   18. SUCCESS CONFIRMATION MODAL & GRIDS
   -------------------------------------------------------------------------- */
@keyframes bounceIn {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

.success-badge {
  font-size: 52px;
  margin-bottom: 14px;
  text-align: center;
  animation: bounceIn 0.5s 0.1s var(--ease-out) both;
}

/* Order detail key-value grid */
.order-detail-grid {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  gap: 12px;
}

.order-detail-row + .order-detail-row { border-top: 1px solid var(--border); }

.order-detail-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.order-detail-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  word-break: break-all;
}

.order-detail-value.monospace {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 11.5px;
}

/* Itemized order summary */
.order-items-summary { margin-bottom: 16px; }

.order-items-title {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-muted);
  gap: 10px;
}

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

.order-item-name     { font-size: 13.5px; font-weight: 500; color: var(--text); flex: 1; }
.order-item-qty      { font-size: 12px; color: var(--text-muted); background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 2px 8px; font-weight: 600; flex-shrink: 0; }
.order-item-subtotal { font-size: 14px; font-weight: 700; color: var(--text); flex-shrink: 0; text-align: right; min-width: 52px; }

.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 0;
  margin-top: 6px;
  border-top: 2px solid var(--border);
}

.order-total-label  { font-size: 13px; font-weight: 700; color: var(--text); }
.order-total-amount { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }

/* Pickup reminder */
.pickup-reminder {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--accent-darker);
  line-height: 1.5;
}

.pickup-reminder-icon { font-size: 20px; flex-shrink: 0; }

.pickup-reminder-note {
  font-size: 11.5px;
  color: var(--accent-dark);
  display: block;
  margin-top: 2px;
}

.pickup-reminder-note.highlight-spot-pickup { color: #c2410c; font-weight: 700; }

/* Screenshot tip */
.screenshot-tip {
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gold-text);
  text-align: center;
  line-height: 1.45;
  margin-bottom: 18px;
}

/* New order button */
.btn-new-order {
  width: 100%;
  height: 50px;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
}

.btn-new-order:hover {
  background: var(--surface-hover);
  border-color: #cbd5e1;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   19. STATUS PILLS
   -------------------------------------------------------------------------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.status-pill.paid {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.status-pill.delivered {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* --------------------------------------------------------------------------
   20. UTILITY HELPERS
   -------------------------------------------------------------------------- */
[hidden] { display: none !important; }

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

/* --------------------------------------------------------------------------
   21. RESPONSIVE ADJUSTMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 440px) {
  .community-whatsapp-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .btn-whatsapp {
    width: 100%;
  }
}

@media (max-width: 380px) {
  body            { padding: 12px 8px 130px; }
  .brand-title h1 { font-size: 18px; }
  .brand-logo     { width: 46px; height: 46px; }
  .summary-amount { font-size: 20px; }
  .btn-pay        { padding: 13px 16px; font-size: 14px; }
}
