/* ============================================================ */
/* DESIGN TOKENS — match the rest of the site                    */
/* ============================================================ */
:root {
  --teal: #3FA0AD;
  --teal-dark: #2D7A85;
  --teal-darker: #1E5A63;
  --teal-pale: #D4ECEF;
  --gold: #E8B547;
  --gold-bright: #F5CF5A;
  --gold-dark: #B88710;
  --pink: #F5A5B8;
  --pink-bright: #E87598;
  --pistachio: #A8C97C;
  --pistachio-dark: #7BA653;
  --cream: #FEF8E8;
  --cream-warm: #FAEEC8;
  --white: #FFFFFF;
  --ink: #1A2E33;
  --ink-soft: #3D4F54;
  --muted: #7A8A8E;
  --border: rgba(63,160,173,0.2);
  --border-strong: rgba(63,160,173,0.45);
  --danger: #C0392B;
  --danger-pale: #FCE9E6;
  --success: #5BAE6F;
  --success-pale: #E5F3E9;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-round: 999px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
  --font-ar: 'Cairo', 'Inter', sans-serif;
  --shadow-sm: 0 2px 8px rgba(26,46,51,0.06);
  --shadow-md: 0 8px 20px rgba(26,46,51,0.10);
  --shadow-lg: 0 30px 80px rgba(26,46,51,0.12), 0 4px 16px rgba(26,46,51,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; cursor: pointer; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }
img { max-width: 100%; display: block; }

html[lang="ar"], html[lang="ar"] body { font-family: var(--font-ar); }

/* ============================================================ */
/* TOP ANNOUNCEMENT BAR                                          */
/* ============================================================ */
.announce {
  background: var(--ink);
  color: var(--cream);
  padding: 10px 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.announce-track {
  display: flex; gap: 60px;
  animation: scroll 40s linear infinite;
  width: max-content;
}
.announce-item {
  display: inline-flex; align-items: center; gap: 16px;
  white-space: nowrap;
}
.announce-item::before { content: '✦'; color: var(--gold); font-size: 14px; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================ */
/* NAVIGATION                                                    */
/* ============================================================ */
.nav {
  position: sticky;
  top: 0;
  background: rgba(254,248,232,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 90;
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo-wrap {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  background: var(--white);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26,46,51,0.15);
}
.nav-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 30px;
  color: var(--teal-dark);
  letter-spacing: -1.5px;
  line-height: 1;
}
.nav-right {
  display: flex; align-items: center; gap: 16px;
}
.lang-switcher {
  display: inline-flex;
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-round);
  padding: 4px;
  border: 1px solid var(--border);
  gap: 2px;
}
.lang-switcher button {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
  border-radius: var(--radius-round);
  transition: all 0.18s;
}
.lang-switcher button.active {
  background: var(--ink);
  color: var(--gold-bright);
}

@media (max-width: 768px) {
  .nav { padding: 12px 18px; }
  .nav-logo-text { font-size: 24px; }
  .nav-logo-wrap { width: 44px; height: 44px; }
  .lang-switcher button { padding: 5px 9px; font-size: 10px; }
}

/* ============================================================ */
/* BREADCRUMB                                                    */
/* ============================================================ */
.crumb {
  padding: 24px 40px 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}
.crumb a { color: var(--teal-dark); }
.crumb a:hover { color: var(--teal); }
.crumb-sep { margin: 0 8px; opacity: 0.5; }

@media (max-width: 768px) { .crumb { padding: 18px 18px 0; } }

/* ============================================================ */
/* MAIN LAYOUT                                                   */
/* ============================================================ */
.checkout-wrap {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: start;
}

.checkout-title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 6px;
}
.checkout-title em {
  font-style: italic;
  color: var(--teal-dark);
  position: relative;
}
.checkout-title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  opacity: 0.7;
}
.checkout-subtitle {
  grid-column: 1 / -1;
  font-family: var(--font-hand);
  font-size: 24px;
  color: var(--pink-bright);
  margin-bottom: 8px;
}

@media (max-width: 980px) {
  .checkout-wrap {
    grid-template-columns: 1fr;
    padding: 24px 20px 60px;
    gap: 24px;
  }
}

/* ============================================================ */
/* LEFT COLUMN — STEPS                                           */
/* ============================================================ */
.steps { display: flex; flex-direction: column; gap: 20px; }

.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.step-card.is-active {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.step-card.is-disabled { opacity: 0.55; pointer-events: none; }
.step-card.is-done { background: var(--success-pale); border-color: var(--success); }

.step-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal-pale);
  color: var(--teal-darker);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-card.is-active .step-num { background: var(--ink); color: var(--gold-bright); }
.step-card.is-done .step-num { background: var(--success); color: var(--white); }
.step-card.is-done .step-num::before { content: '✓'; }
.step-card.is-done .step-num-text { display: none; }

.step-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--ink);
  flex: 1;
}
.step-edit {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal-dark);
  padding: 6px 12px;
  border-radius: var(--radius-round);
  background: var(--teal-pale);
}
.step-edit:hover { background: var(--teal); color: var(--white); }

.step-body { display: block; }
.step-card:not(.is-active):not(.is-done) .step-body { display: none; }
.step-card.is-done .step-body { display: none; }
.step-card.is-done .step-summary { display: block; }
.step-summary { display: none; font-size: 13px; color: var(--ink-soft); line-height: 1.6; }

/* ============================================================ */
/* CART ITEMS (inside step 1)                                    */
/* ============================================================ */
.cart-items-list {
  display: flex; flex-direction: column; gap: 14px;
}
.cart-item-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  padding: 12px;
  background: var(--cream);
  border-radius: var(--radius-md);
  align-items: center;
}
.cart-item-img {
  width: 72px; height: 72px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { min-width: 0; }
.cart-item-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 4px;
}
.cart-item-meta {
  font-size: 11px;
  color: var(--gold-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.cart-item-controls {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 4px;
}
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  font-size: 14px; font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: all 0.15s;
}
.qty-btn:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.qty-val { min-width: 24px; text-align: center; font-weight: 700; font-size: 14px; }
.cart-item-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--teal-darker);
  text-align: end;
  white-space: nowrap;
}
.cart-item-remove {
  font-size: 16px;
  color: var(--muted);
  margin-top: 6px;
  display: inline-block;
}
.cart-item-remove:hover { color: var(--danger); }

.cart-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.cart-empty-state .emoji { font-size: 48px; margin-bottom: 12px; display: block; }
.cart-empty-state p { margin-bottom: 16px; line-height: 1.5; }

/* Cart mode toggle */
.mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  background: var(--teal-pale);
  border-radius: var(--radius-round);
  margin-bottom: 18px;
}
.mode-toggle button {
  padding: 10px;
  border-radius: var(--radius-round);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal-darker);
  transition: all 0.2s;
}
.mode-toggle button.active {
  background: var(--ink);
  color: var(--cream);
}
.mode-toggle button:disabled,
.mode-toggle button.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ============================================================ */
/* FORMS                                                         */
/* ============================================================ */
.form-row { display: grid; gap: 14px; margin-bottom: 14px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 2fr 1fr; }

@media (max-width: 560px) {
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field-label .req { color: var(--pink-bright); margin-inline-start: 2px; }
.field-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(63,160,173,0.15);
}
.field-input::placeholder { color: var(--muted); }
.field-input.is-error {
  border-color: var(--danger);
  background: var(--danger-pale);
}
.field-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.field-error {
  font-size: 12px;
  color: var(--danger);
  font-weight: 600;
}
/* Angebot ODER Gutschein: der Hinweis steht ueber dem Codefeld, sobald ein
   Angebotsartikel im Korb liegt. Kein Fehlerrot — es ist keine Absage,
   sondern eine gute Nachricht mit einer Bedingung. */
.offer-hint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 2px 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--cream-warm);
  border: 1px solid var(--gold);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.offer-hint b { color: var(--ink); font-weight: 700; }
.offer-hint .offer-hint-ic { flex: 0 0 auto; font-size: 15px; line-height: 1.4; }
textarea.field-input { min-height: 80px; resize: vertical; }

/* ============================================================ */
/* AUTH SWITCH (guest vs signed-in)                              */
/* ============================================================ */
.auth-switch {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.auth-switch-icon {
  font-size: 24px;
  width: 40px; height: 40px;
  background: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.auth-switch-text { flex: 1; font-size: 13px; line-height: 1.45; }
.auth-switch-text strong { color: var(--ink); }
.auth-switch-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--teal-dark);
  padding: 8px 14px;
  border-radius: var(--radius-round);
  background: var(--white);
  border: 1.5px solid var(--teal);
}
.auth-switch-link:hover { background: var(--teal); color: var(--white); }

/* ============================================================ */
/* DELIVERY ZONE FEEDBACK (results of address geocode)           */
/* ============================================================ */
.zone-result {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 2px dashed var(--border-strong);
  background: var(--cream);
  display: none;
}
.zone-result.is-shown { display: block; }
.zone-result.is-error  { border-color: var(--danger); background: var(--danger-pale); }
.zone-result.is-pickup-only { border-color: var(--gold); background: var(--cream-warm); }
.zone-result.is-ok { border-color: var(--success); background: var(--success-pale); }

.zone-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 4px 0;
  font-size: 13px;
}
.zone-row + .zone-row { border-top: 1px solid rgba(0,0,0,0.06); }
.zone-row-label { color: var(--muted); font-weight: 600; }
.zone-row-value { font-weight: 700; color: var(--ink); }
.zone-row-value.is-big {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--teal-darker);
}
.zone-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 10px;
  line-height: 1.5;
  font-style: italic;
}

/* ============================================================ */
/* LOYALTY POINTS SLIDER (Step 4 — Gutschein & Punkte)          */
/* ============================================================ */
.points-slider { margin-top: 10px; }
.points-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-round);
  background: var(--cream-warm);
  outline: none;
  cursor: pointer;
}
.points-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ink);
  cursor: pointer;
}
.points-slider input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ink);
  cursor: pointer;
}
.points-slider-row {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* ============================================================ */
/* PAYMENT METHOD CARDS (Step 5 — PayPal / SumUp / Bar)         */
/* ============================================================ */
.pay-methods { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.pay-method {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .25s, transform .18s;
}
.pay-method:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(63,160,173,.14);
}
.pay-method.is-selected {
  border-color: var(--teal);
  background: linear-gradient(135deg, rgba(63,160,173,.08), rgba(232,181,71,.06)), var(--white);
  box-shadow: 0 0 0 1px var(--teal) inset, 0 10px 28px rgba(63,160,173,.16);
}
.pay-method.is-soft { opacity: .7; }
.pay-method-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; flex-shrink: 0;
  border-radius: 14px;
  background: var(--cream);
  border: 1px solid var(--border);
  transition: transform .2s, background .2s, border-color .2s;
}
.pay-method.is-selected .pay-method-icon {
  transform: scale(1.06);
  background: rgba(63,160,173,.12);
  border-color: rgba(63,160,173,.35);
}
.pay-method-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pay-method-label { font-weight: 800; color: var(--ink); font-size: 15px; letter-spacing: .1px; }
.pay-method-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }
.pay-method-check {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; flex-shrink: 0;
  opacity: 0; transform: scale(.4);
  transition: opacity .2s, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.pay-method.is-selected .pay-method-check { opacity: 1; transform: scale(1); }

/* Brand badges (Apple Pay / Google Pay / Visa / Mastercard) */
.pay-brands { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.pay-brand {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 9px; border-radius: 7px;
  font-size: 10px; font-weight: 800; letter-spacing: .3px;
  border: 1px solid var(--border);
  background: var(--white); color: var(--ink);
  line-height: 1.4;
}
.pay-brand.visa { color: #1434CB; font-style: italic; font-weight: 900; }
.pay-brand svg { display: block; }
/* RTL — flip the card text alignment */
html[dir="rtl"] .pay-method { text-align: right; }

/* Cash-unlock code (phoned-in) */
.cash-code-box {
  margin-top: 14px; padding: 12px 14px;
  border: 1px dashed var(--gold); border-radius: 12px; background: var(--cream-warm);
}
.cash-code-hint { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 4px 0 8px; }
.cash-code-applied {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; font-weight: 700; color: var(--ink);
}
.cash-code-remove {
  border: none; background: transparent; cursor: pointer;
  font-size: 15px; color: var(--muted); line-height: 1; padding: 4px;
}
.cash-code-remove:hover { color: var(--danger); }

/* Tip (Trinkgeld) — payment step */
.tip-box {
  margin-bottom: 16px; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  background: var(--cream);
}
.tip-title { font-weight: 800; color: var(--ink); font-size: 15px; }
.tip-sub { font-size: 12px; color: var(--muted); margin: 4px 0 10px; line-height: 1.5; }
.tip-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.tip-chip {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; min-width: 76px; padding: 8px 14px;
  border: 2px solid var(--border); border-radius: var(--radius-round);
  background: var(--white); cursor: pointer;
  transition: border-color .18s, transform .15s, box-shadow .2s;
  font-weight: 800; font-size: 14px; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.tip-chip:hover { border-color: var(--teal); }
.tip-chip.is-selected {
  border-color: var(--teal); background: var(--teal-pale);
  box-shadow: 0 0 0 1px var(--teal) inset;
}
.tip-chip-amt { font-size: 11px; font-weight: 600; color: var(--muted); }
.tip-chip.is-selected .tip-chip-amt { color: var(--teal-darker); }
.tip-custom { max-width: 150px; border-radius: var(--radius-round); text-align: center; }
.tip-custom.is-selected { border-color: var(--teal); background: var(--teal-pale); }
html[dir="rtl"] .tip-box { text-align: right; }
.summary-line.is-tip .value { color: var(--gold-dark); }

/* ============================================================ */
/* DELIVERY TIME PICKER                                          */
/* ============================================================ */
.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.time-slot {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-round);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  transition: all 0.15s;
}
.time-slot:hover { border-color: var(--teal); }
.time-slot.is-selected {
  background: var(--ink);
  color: var(--gold-bright);
  border-color: var(--ink);
}
.time-slot.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--cream);
}
.time-info-box {
  padding: 14px;
  background: var(--cream-warm);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  display: flex; align-items: flex-start; gap: 10px;
}
.time-info-box .icon { font-size: 18px; flex-shrink: 0; }

/* ============================================================ */
/* CTA BUTTONS                                                   */
/* ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-round);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
  text-align: center;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: var(--ink);
  color: var(--gold-bright);
  box-shadow: 0 6px 16px rgba(26,46,51,0.18);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 10px 22px rgba(26,46,51,0.26);
  background: var(--teal-darker);
}
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--teal-pale);
  border-color: var(--teal);
}
.btn-block { width: 100%; }

.step-actions {
  display: flex; gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

/* ============================================================ */
/* RIGHT COLUMN — ORDER SUMMARY                                  */
/* ============================================================ */
.summary {
  position: sticky;
  top: 90px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
@media (max-width: 980px) {
  .summary { position: static; }
}

.summary-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 4px;
}
.summary-subtitle {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--pink-bright);
  margin-bottom: 18px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  font-size: 14px;
}
.summary-line .label { color: var(--ink-soft); }
.summary-line .value { font-weight: 700; color: var(--ink); }
.summary-line.is-discount .value { color: var(--success); }
.summary-line.is-muted { font-size: 12px; color: var(--muted); }
.summary-line.is-muted .value { color: var(--muted); font-weight: 600; }

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

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0 4px;
  border-top: 2px dashed var(--border);
  margin-top: 8px;
}
.summary-total .label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}
.summary-total .value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  color: var(--teal-darker);
}

.summary-warning {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--danger-pale);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--ink);
  line-height: 1.5;
  display: none;
}
.summary-warning.is-shown { display: block; }
html[dir="rtl"] .summary-warning {
  border-left: none;
  border-right: 3px solid var(--danger);
}

.summary-pay-btn {
  margin-top: 20px;
}
.summary-pay-note {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
  line-height: 1.4;
}
.summary-pay-note .lock { color: var(--success); font-size: 14px; }

/* ============================================================ */
/* TOAST                                                         */
/* ============================================================ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: var(--cream);
  padding: 14px 24px;
  border-radius: var(--radius-round);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  transition: transform 0.35s;
  letter-spacing: 0.3px;
}
.toast.is-shown { transform: translateX(-50%) translateY(0); }
.toast.is-error { background: var(--danger); color: var(--white); }
.toast.is-success { background: var(--success); color: var(--white); }

/* ============================================================ */
/* LOADING SPINNER                                               */
/* ============================================================ */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-inline-end: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================ */
/* FOOTER                                                        */
/* ============================================================ */
.foot {
  text-align: center;
  padding: 24px 20px 36px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.5px;
}
.foot a { color: var(--teal-dark); font-weight: 600; }
.foot a:hover { color: var(--teal); }
.foot .links { margin-top: 6px; }
.foot .sep { margin: 0 6px; }

/* ============================================================ */
/* RTL TWEAKS                                                    */
/* ============================================================ */
html[dir="rtl"] .nav-logo { flex-direction: row-reverse; }
html[dir="rtl"] .checkout-title em::after { left: 0; right: 0; }
html[dir="rtl"] .cart-item-meta { letter-spacing: 0; }

/* ============================================================ */
/* HIDDEN UTILITY                                                */
/* ============================================================ */
.is-hidden { display: none !important; }

/* Full time-window (per-window capacity reached) */
.time-grid .time-slot.is-full{
  opacity:.45;
  text-decoration:line-through;
  cursor:not-allowed;
  pointer-events:none;
}

/* Off-peak (early-window) discount — visible tag + hint */
.time-slot .slot-badge{
  display:inline-block;
  margin-left:6px;
  font-size:11px;
  font-weight:700;
  color:#0f6e56;
  background:#e1f5ee;
  border-radius:6px;
  padding:1px 6px;
  vertical-align:middle;
}
.time-slot.is-selected .slot-badge{ background:#ffffff; color:#0f6e56; }

/* ASAP sits first in the grid and spans the row — it is the fast lane, not
   one option among twelve. */
.time-grid .time-slot.is-asap{
  grid-column:1 / -1;
  border-color:var(--teal, #3FA0AD);
  font-weight:700;
}

/* The strike-through on a full window must not run through its own "voll"
   badge — only the time itself is crossed out. */
.time-grid .time-slot.is-full .slot-badge{
  text-decoration:none;
  background:#f1efe8;
  color:#6b7b7f;
}

/* Recommended window — this order joins a trip already going to its zone, so
   it arrives sooner AND keeps the driver's route tight. */
.time-grid .time-slot.is-rec{
  border-color:#0f6e56;
  box-shadow:inset 0 0 0 1px #0f6e56;
}
.offpeak-hint{
  background:#e1f5ee;
  color:#0f6e56;
  font-size:13px;
  font-weight:600;
  border-radius:10px;
  padding:8px 12px;
  margin-bottom:14px;
}

/* Sold-out day — a calm explanation plus the next free window, never a dead end */
.zone-full-box{
  background:#fdf6e6;
  border:1px solid #f0dfae;
  border-radius:12px;
  padding:14px 16px;
  margin-top:12px;
}
.zone-full-box strong{ display:block; font-size:15px; margin-bottom:6px; }
.zone-full-box p{ font-size:13px; color:#6b6257; margin:0 0 8px; line-height:1.5; }
.zone-full-box .next-free{ margin:0; font-size:14px; color:#2c3e42; }
.zone-full-box .next-free b{ white-space:nowrap; }
.zone-full-box .btn-secondary{ display:block; margin-top:10px; width:100%; }

.tip-chip:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(63,160,173,.12); border-color: var(--teal); }

/* ── Branch comparison cards (Sömmeringstr. vs. Ostbahnhof) — 2026-07-20 ── */
.zone-branches-title {
  font-size: 0.85rem; font-weight: 700; color: var(--muted);
  margin-bottom: 8px;
}
.zone-branches {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 14px;
}
.zone-branch {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 12px; border: 2px solid rgba(0,0,0,0.12); border-radius: 12px;
  background: #fff; cursor: pointer; font: inherit; text-align: start;
  transition: border-color .15s ease, background .15s ease;
}
.zone-branch:hover:not(:disabled) { border-color: var(--success); }
.zone-branch.is-selected { border-color: var(--success); background: var(--success-pale); }
.zone-branch.is-toofar { opacity: .55; cursor: not-allowed; }
.zone-branch-name { font-weight: 700; color: var(--ink); }
.zone-branch-km   { font-size: .85rem; color: var(--muted); }
.zone-branch-fee  { font-size: .85rem; font-weight: 600; color: var(--ink); }
@media (max-width: 420px) {
  .zone-branches { grid-template-columns: 1fr; }
}

/* ── Saved-coupon chips in step 4 (from the customer's account) — 2026-07-20 ── */
.coupon-chips-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 2px 0 6px; }
.coupon-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.coupon-chip {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 12px; border: 1.5px dashed var(--gold); border-radius: 10px;
  background: var(--cream-warm); cursor: pointer; font: inherit; text-align: start;
  transition: border-color .15s ease, background .15s ease;
}
.coupon-chip:hover { border-style: solid; }
.coupon-chip.is-selected { border-style: solid; border-color: var(--success); background: var(--success-pale); }
.coupon-chip-label { font-weight: 700; color: var(--ink); font-size: 14px; }
.coupon-chip-meta { font-size: 12px; color: var(--muted); }
