/* ═══════════════════════════════════════════════════════════════════════
   FBW Booking Wizard v3 — Mobile-First Stylesheet
   Brand vars injected via PHP inline style on :root
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --p:       #F7BE19;
  --a:       #1A1A2E;
  --ct:      #1A1A2E;
  --white:   #ffffff;
  --light:   #F8F9FA;
  --border:  #E8E8E8;
  --grey:    #666666;
  --green:   #61CE70;
  --red:     #E53E3E;
  --radius:  16px;
  --shadow:  0 24px 80px rgba(0,0,0,.22);
  --font-d:  'Luckiest Guy', cursive;
  --font-s:  'Rowdies', cursive;
  --font-b:  'Open Sans', sans-serif;
}

/* ── Animations ────────────────────────────────────────────────────── */
@keyframes fbw-fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fbw-up    { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fbw-shake { 0%,100%{ transform:translateX(0); } 25%{ transform:translateX(-6px); } 75%{ transform:translateX(6px); } }
@keyframes fbw-slide-up { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE FIRST — Base styles for 320px+ screens
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Modal overlay — Full screen bottom sheet on mobile ─────────────── */
.fbw-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.fbw-modal[hidden] { display: none !important; }

.fbw-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fbw-fade .2s ease;
}

/* ── Dialog — Full height bottom sheet on mobile ─────────────────────── */
.fbw-dialog {
  position: relative;
  z-index: 1;
  background: var(--white);
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fbw-slide-up .3s cubic-bezier(.32,1.2,.6,1);
}

/* ── Header — Compact on mobile ─────────────────────────────────────── */
.fbw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  background: var(--a);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.fbw-header-title {
  font-family: var(--font-d);
  font-size: 18px;
  color: var(--p);
  letter-spacing: 0.5px;
}
.fbw-close {
  background: rgba(255,255,255,.12);
  border: none;
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.fbw-close:hover { background: rgba(255,255,255,.25); }
.fbw-close:active { background: rgba(255,255,255,.35); }

/* ── Progress bar — Scrollable with labels hidden on mobile ─────────── */
.fbw-progress {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--a);
  border-bottom: 2px solid rgba(255,255,255,.08);
  flex-shrink: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.fbw-progress::-webkit-scrollbar { display: none; }
.fbw-progress-step {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.fbw-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.5);
  font-family: var(--font-s);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, transform .15s;
}
.fbw-progress-step.active .fbw-step-num {
  background: var(--p);
  color: var(--ct);
  transform: scale(1.05);
}
.fbw-progress-step.done .fbw-step-num {
  background: var(--green);
  color: #fff;
}
.fbw-progress-step.skipped .fbw-step-num {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.3);
}
.fbw-step-lbl {
  font-family: var(--font-s);
  font-size: 10px;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
  transition: color .2s;
  display: none; /* Hidden on mobile */
}
.fbw-progress-step.active .fbw-step-lbl { color: var(--p); }
.fbw-progress-step.done .fbw-step-lbl { color: var(--green); }
.fbw-progress-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,.1);
  margin: 0 6px;
  min-width: 12px;
}

/* ── Sub-step bar — Compact touch targets ────────────────────────────── */
.fbw-substep-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--light);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.fbw-substep-pip {
  font-family: var(--font-s);
  font-size: 11px;
  font-weight: 700;
  color: rgba(26,26,46,.4);
  padding: 6px 12px;
  border-radius: 20px;
  transition: all .2s;
  white-space: nowrap;
}
.fbw-substep-pip.active {
  background: var(--a);
  color: var(--p);
}
.fbw-substep-pip.done { color: var(--green); }
.fbw-substep-arrow {
  font-size: 14px;
  color: var(--border);
  flex-shrink: 0;
}

/* ── Body — Scrollable content area ──────────────────────────────────── */
.fbw-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 16px 16px;
  -webkit-overflow-scrolling: touch;
}
.fbw-step {
  animation: fbw-fade .18s ease;
}
.fbw-step-heading {
  font-family: var(--font-d);
  font-size: 22px;
  color: var(--a);
  letter-spacing: .5px;
  margin: 0 0 6px;
}
.fbw-step-sub {
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--grey);
  margin: 0 0 16px;
}

/* ── Form fields — Touch-friendly sizing ─────────────────────────────── */
.fbw-field { margin-bottom: 16px; }
.fbw-field label {
  display: block;
  font-family: var(--font-s);
  font-size: 12px;
  font-weight: 700;
  color: var(--a);
  margin-bottom: 6px;
}
.fbw-req { color: var(--p); }
.fbw-select {
  width: 100%;
  padding: 14px 40px 14px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-b);
  font-size: 16px; /* Prevents zoom on iOS */
  color: var(--a);
  background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  box-sizing: border-box;
}
.fbw-select:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--p) 18%,transparent);
}

/* ── Inline calendar — Optimized for touch ────────────────────────────── */
.fbw-cal-wrap { margin-bottom: 4px; }
.fbw-cal {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y pinch-zoom;
}
.fbw-cal-wrap.fbw-cal-error .fbw-cal {
  border-color: var(--red);
  animation: fbw-shake .3s ease;
}
.fbw-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 8px;
  background: var(--a);
}
.fbw-cal-month {
  font-family: var(--font-s);
  font-size: 14px;
  font-weight: 700;
  color: var(--p);
  letter-spacing: .3px;
}
.fbw-cal-nav-btn {
  background: rgba(255,255,255,.12);
  border: none;
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.fbw-cal-nav-btn:hover { background: rgba(255,255,255,.25); }
.fbw-cal-nav-btn:active { background: rgba(255,255,255,.35); }
.fbw-cal-nav-btn.disabled { opacity: 0; pointer-events: none; }
.fbw-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  padding: 8px;
}
.fbw-dow {
  text-align: center;
  font-family: var(--font-s);
  font-size: 10px;
  font-weight: 700;
  color: var(--grey);
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.fbw-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 500;
  transition: background .12s, color .12s, transform .1s;
  cursor: default;
  color: #ccc;
  min-width: 36px;
  min-height: 36px;
}
.fbw-cell.empty { background: transparent; }
.fbw-avail {
  color: var(--a);
  cursor: pointer;
}
.fbw-avail:hover {
  background: color-mix(in srgb,var(--p) 20%,transparent);
  transform: scale(1.08);
}
.fbw-avail:active {
  background: color-mix(in srgb,var(--p) 35%,transparent);
}
.fbw-today {
  font-weight: 800;
  outline: 2px solid var(--p);
  outline-offset: -2px;
}
.fbw-sel {
  background: var(--p) !important;
  color: var(--ct) !important;
  font-weight: 800;
  transform: scale(1.08);
  box-shadow: 0 2px 8px color-mix(in srgb,var(--p) 50%,transparent);
}
.fbw-disabled {
  color: #ddd;
  pointer-events: none;
}

/* ── Availability msg ────────────────────────────────────────────────── */
.fbw-avail-msg {
  min-height: 20px;
  font-family: var(--font-b);
  font-size: 13px;
  margin-top: 8px;
}
.fbw-avail-ok      { color: #276749; font-weight: 600; }
.fbw-avail-busy    { color: var(--red); font-weight: 600; }
.fbw-avail-checking { color: var(--grey); }

/* ── Day count badge ───────────────────────────────────────────────── */
.fbw-day-count {
  background: color-mix(in srgb,var(--p) 12%,var(--white));
  border: 1px solid color-mix(in srgb,var(--p) 35%,transparent);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 12px;
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--a);
  line-height: 1.5;
}

/* ── Price preview ─────────────────────────────────────────────────── */
#fbw-price-preview {
  margin-top: 12px;
  background: color-mix(in srgb,var(--p) 10%,transparent);
  border: 1px solid color-mix(in srgb,var(--p) 30%,transparent);
  border-radius: 12px;
  padding: 14px 16px;
}
.fbw-preview-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-b);
  font-size: 14px;
  color: var(--a);
  padding: 4px 0;
}
.fbw-preview-total {
  border-top: 1px solid color-mix(in srgb,var(--p) 30%,transparent);
  margin-top: 8px;
  padding-top: 8px;
  font-weight: 700;
}
.fbw-preview-deposit {
  font-family: var(--font-b);
  font-size: 12px;
  color: #92400e;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb,var(--p) 20%,transparent);
}

/* ── Price preview class aliases ────────────────────────────────────── */
.fbw-prev-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-b);
  font-size: 14px;
  color: var(--fg);
  padding: 4px 0;
}
.fbw-prev-total {
  border-top: 1px solid color-mix(in srgb,var(--p) 30%,transparent);
  margin-top: 8px;
  padding-top: 8px;
  font-weight: 700;
}
.fbw-prev-deposit {
  font-family: var(--font-b);
  font-size: 12px;
  color: var(--fg);
  opacity: .75;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb,var(--p) 20%,transparent);
}

/* ── Product grid — 2 columns on mobile ─────────────────────────────── */
.fbw-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.fbw-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  font-family: var(--font-b);
  color: var(--grey);
  font-size: 14px;
}
.fbw-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px 20px;
  font-family: var(--font-b);
  color: var(--red);
  font-size: 14px;
}

/* ── Product card — Touch-friendly cards ─────────────────────────────── */
.fbw-card {
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  background: var(--white);
  transition: border-color .15s, transform .12s, box-shadow .15s;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}
.fbw-card:hover {
  border-color: var(--p);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.fbw-card:active {
  transform: translateY(0);
}
.fbw-card-sel {
  border-color: var(--p);
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--p) 25%,transparent);
}
.fbw-card-sel .fbw-card-check { display: flex; }
.fbw-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--light);
}
.fbw-card-body { padding: 8px 10px 10px; }
.fbw-card-name {
  font-family: var(--font-s);
  font-size: 12px;
  color: var(--a);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fbw-card-desc {
  font-family: var(--font-b);
  font-size: 10px;
  color: var(--grey);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fbw-card-price {
  font-family: var(--font-d);
  font-size: 16px;
  color: var(--p);
  letter-spacing: .3px;
}
.fbw-card-total {
  font-family: var(--font-b);
  font-size: 11px;
  color: var(--grey);
  margin-top: 2px;
}
.fbw-per-day {
  font-size: 11px;
  font-weight: 400;
  font-family: var(--font-b);
  color: var(--grey);
}
.fbw-card-check {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--p);
  color: var(--ct);
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* ── Add-on qty — Touch-friendly buttons ─────────────────────────────── */
.fbw-addon-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.fbw-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  font-size: 18px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: var(--a);
  transition: .15s;
}
.fbw-qty-btn:hover {
  border-color: var(--p);
  color: var(--p);
}
.fbw-qty-btn:active {
  background: var(--p);
  color: var(--ct);
}
.fbw-qty-val {
  font-family: var(--font-s);
  font-size: 15px;
  color: var(--a);
  min-width: 18px;
  text-align: center;
}

/* ── Review (step 4) ───────────────────────────────────────────────── */
.fbw-review {
  background: var(--light);
  border-radius: 10px;
  padding: 14px 14px;
  margin-bottom: 14px;
}
.fbw-review-meta {
  background: var(--a);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-family: var(--font-b);
  font-size: 12px;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
}
.fbw-review-meta strong { color: var(--p); }
.fbw-review-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--a);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.fbw-review-row:last-child { border-bottom: none; }
.fbw-review-row strong { font-weight: 700; }
.fbw-review-total {
  border-top: 2px solid var(--a) !important;
  margin-top: 6px;
  padding-top: 8px;
}
.fbw-review-total strong {
  color: var(--a);
  font-size: 15px;
}
.fbw-review-discount {
  color: #22c55e !important;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 6px;
  padding: 6px 8px;
  margin: 4px 0;
  border-bottom: none !important;
}
.fbw-review-discount span { color: #22c55e; }
.fbw-review-discount span:last-child { font-weight: 700; }
.fbw-review-label { flex: 1; }
.fbw-review-price { flex-shrink: 0; font-weight: 600; }

/* ── Deposit box ───────────────────────────────────────────────────── */
.fbw-deposit-box {
  border-radius: 10px;
  padding: 14px 16px;
  background: color-mix(in srgb,var(--p) 12%,transparent);
  border: 1px solid color-mix(in srgb,var(--p) 35%,transparent);
  margin-bottom: 14px;
}
.fbw-deposit-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-b);
  font-size: 13px;
  padding: 4px 0;
}
.fbw-deposit-row strong { font-weight: 800; }
.fbw-deposit-total {
  font-family: var(--font-d);
  font-size: 24px;
  color: var(--a);
  text-align: right;
  margin-top: 8px;
}
.fbw-deposit-sub {
  opacity: 0.75;
  font-size: 12px;
}

.fbw-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-b);
  font-size: 12px;
  color: #276749;
  line-height: 1.5;
  margin-bottom: 12px;
}
.fbw-notice span {
  font-size: 18px;
  flex-shrink: 0;
}

/* ── Footer — Sticky bottom with touch-friendly buttons ──────────────── */
.fbw-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  background: var(--white);
}
.fbw-btn-back {
  background: none;
  border: 2px solid var(--border);
  color: var(--grey);
  font-family: var(--font-s);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 99px;
  cursor: pointer;
  transition: .15s;
  margin-right: auto;
}
.fbw-btn-back:hover {
  border-color: var(--a);
  color: var(--a);
}
.fbw-btn-back:active {
  background: var(--light);
}
.fbw-btn-next, .fbw-btn-book {
  background: var(--p);
  color: var(--ct);
  border: none;
  font-family: var(--font-s);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 99px;
  cursor: pointer;
  box-shadow: 0 4px 16px color-mix(in srgb,var(--p) 40%,transparent);
  transition: transform .12s, box-shadow .12s;
}
.fbw-btn-next:hover, .fbw-btn-book:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in srgb,var(--p) 50%,transparent);
}
.fbw-btn-next:active, .fbw-btn-book:active {
  transform: translateY(0);
}
.fbw-btn-next:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.fbw-btn-book {
  background: var(--a);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.fbw-btn-book:hover {
  background: #2a2a4a;
}

/* ── Trigger button ────────────────────────────────────────────────── */
.fbw-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--p);
  color: var(--ct);
  font-family: var(--font-s);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px color-mix(in srgb,var(--p) 38%,transparent);
  transition: transform .12s, box-shadow .12s;
  text-decoration: none;
}
.fbw-book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px color-mix(in srgb,var(--p) 48%,transparent);
}
.fbw-book-btn:active {
  transform: translateY(0);
}

/* ── Payment method toggle ─────────────────────────────────────────── */
.fbw-pay-toggle { margin-top: 14px; }
.fbw-pay-label {
  font-family: var(--font-s);
  font-size: 12px;
  font-weight: 700;
  color: var(--a);
  margin-bottom: 10px;
}
.fbw-pay-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fbw-pay-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--white);
}
.fbw-pay-opt:hover {
  border-color: color-mix(in srgb,var(--p) 50%,transparent);
}
.fbw-pay-opt:active {
  background: color-mix(in srgb,var(--p) 8%,transparent);
}
.fbw-pay-opt.active {
  border-color: var(--p);
  background: color-mix(in srgb,var(--p) 8%,transparent);
}
.fbw-pay-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
}
.fbw-pay-opt.active .fbw-pay-radio {
  border-color: var(--p);
  background: var(--p);
  box-shadow: inset 0 0 0 3px var(--white);
}
.fbw-pay-opt-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fbw-pay-opt-body strong {
  font-family: var(--font-s);
  font-size: 13px;
  color: var(--a);
}
.fbw-pay-opt-body span {
  font-family: var(--font-b);
  font-size: 11px;
  color: var(--grey);
}

/* ── Cash confirmation screen ─────────────────────────────────────── */
.fbw-confirm-cash { text-align: center; padding: 12px 0 8px; }
.fbw-confirm-icon { font-size: 48px; margin-bottom: 10px; }
.fbw-confirm-title {
  font-family: var(--font-d);
  font-size: 24px;
  color: var(--a);
  margin: 0 0 8px;
  letter-spacing: .5px;
}
.fbw-confirm-sub {
  font-family: var(--font-b);
  font-size: 14px;
  color: var(--grey);
  margin: 0 0 16px;
}
.fbw-confirm-details {
  background: var(--light);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  text-align: left;
}
.fbw-confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--a);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.fbw-confirm-row:last-child { border-bottom: none; }
.fbw-confirm-row span { color: var(--grey); }
.fbw-confirm-row strong { font-weight: 700; }
.fbw-confirm-note {
  font-family: var(--font-b);
  font-size: 12px;
  color: #276749;
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  line-height: 1.5;
}

/* ── Gallery — Mobile friendly ─────────────────────────────────────────── */
.ep-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ep-gallery-main {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--light);
}
.ep-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ep-gallery-thumbs {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.ep-gallery-thumbs::-webkit-scrollbar { display: none; }
.ep-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: border-color 0.15s, transform 0.12s;
  background: var(--light);
  flex-shrink: 0;
}
.ep-thumb:hover { border-color: var(--p); transform: scale(1.02); }
.ep-thumb.active {
  border-color: var(--p);
  box-shadow: 0 0 0 2px color-mix(in srgb,var(--p) 30%,transparent);
}
.ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ep-img-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-s);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Missing class completions ─────────────────────────────────────────── */
#fbw-price-preview, .fbw-price-preview {
  margin-top: 12px;
  background: color-mix(in srgb,var(--p) 10%,transparent);
  border: 1px solid color-mix(in srgb,var(--p) 30%,transparent);
  border-radius: 12px;
  padding: 14px 16px;
}
.fbw-qty-minus, .fbw-qty-plus {
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background .15s;
}
.fbw-qty-minus:hover, .fbw-qty-plus:hover { background: var(--p); color: var(--dark); }
.fbw-avail-msg.fbw-ok { color: #22c55e; }
.fbw-avail-msg.fbw-checking { color: var(--grey); font-style: italic; }

/* ═══════════════════════════════════════════════════════════════════════
   TABLET BREAKPOINT — 480px+
   ═══════════════════════════════════════════════════════════════════════ */
@media (min-width: 480px) {
  .fbw-header { padding: 16px 20px 14px; }
  .fbw-header-title { font-size: 20px; }
  .fbw-progress { padding: 12px 20px; }
  .fbw-step-lbl { display: block; }
  .fbw-substep-bar { padding: 10px 20px; }
  .fbw-body { padding: 24px 20px 16px; }
  .fbw-step-heading { font-size: 23px; }
  .fbw-step-sub { font-size: 14px; }
  .fbw-field label { font-size: 13px; }
  .fbw-select { padding: 14px 40px 14px 16px; }
  .fbw-cal-grid { gap: 4px; padding: 10px; }
  .fbw-cell { font-size: 15px; }
  .fbw-dow { font-size: 11px; }
  .fbw-product-grid { gap: 12px; }
  .fbw-card-body { padding: 10px 12px 12px; }
  .fbw-card-name { font-size: 13px; }
  .fbw-card-desc { font-size: 11px; }
  .fbw-card-price { font-size: 17px; }
  .fbw-review { padding: 16px 18px; }
  .fbw-review-row { font-size: 14px; }
  .fbw-deposit-total { font-size: 26px; }
  .fbw-notice { font-size: 13px; }
  .fbw-footer { padding: 14px 20px 18px; }
  .fbw-confirm-title { font-size: 26px; }
  .ep-gallery { flex-direction: row; }
  .ep-gallery-thumbs { flex-direction: column; }
  .ep-thumb { width: 70px; height: 70px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SMALL DESKTOP BREAKPOINT — 640px+
   ═══════════════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .fbw-modal {
    align-items: center;
    padding: 16px;
  }
  .fbw-backdrop {
    animation: fbw-fade .2s ease;
  }
  .fbw-dialog {
    max-width: 560px;
    max-height: 90vh;
    height: auto;
    border-radius: 16px;
    animation: fbw-up .25s cubic-bezier(.32,1.2,.6,1);
  }
  .fbw-header { padding: 18px 24px 16px; border-radius: 16px 16px 0 0; }
  .fbw-header-title { font-size: 22px; letter-spacing: 1px; }
  .fbw-close { width: 32px; height: 32px; font-size: 14px; }
  .fbw-progress { padding: 14px 24px; }
  .fbw-step-num { width: 26px; height: 26px; }
  .fbw-step-lbl { font-size: 11px; }
  .fbw-progress-line { margin: 0 8px; min-width: 16px; }
  .fbw-substep-bar { padding: 10px 24px; }
  .fbw-substep-pip { font-size: 12px; padding: 5px 12px; }
  .fbw-body { padding: 28px 28px 8px; }
  .fbw-step-heading { font-size: 24px; margin-bottom: 6px; }
  .fbw-step-sub { font-size: 14px; margin-bottom: 18px; }
  .fbw-field { margin-bottom: 18px; }
  .fbw-cal { border-radius: 14px; }
  .fbw-cal-nav { padding: 12px 16px 10px; }
  .fbw-cal-month { font-size: 15px; }
  .fbw-cal-nav-btn { width: 30px; height: 30px; font-size: 14px; }
  .fbw-cal-grid { gap: 2px; padding: 10px 10px 12px; }
  .fbw-cell { font-size: 13px; min-width: auto; min-height: auto; }
  .fbw-product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .fbw-card { border-radius: 12px; }
  .fbw-card-body { padding: 10px 12px 12px; }
  .fbw-card-name { font-size: 13px; margin-bottom: 4px; }
  .fbw-card-desc { font-size: 11px; margin-bottom: 6px; }
  .fbw-card-price { font-size: 18px; }
  .fbw-card-total { font-size: 12px; }
  .fbw-card-check { top: 8px; right: 8px; width: 24px; height: 24px; font-size: 13px; }
  .fbw-review { border-radius: 12px; padding: 18px 20px; }
  .fbw-review-meta { padding: 12px 16px; margin-bottom: 14px; font-size: 13px; }
  .fbw-review-row { font-size: 14px; padding: 5px 0; }
  .fbw-review-total strong { font-size: 16px; }
  .fbw-deposit-box { border-radius: 12px; padding: 16px 20px; }
  .fbw-deposit-row { font-size: 14px; }
  .fbw-deposit-total { font-size: 28px; }
  .fbw-deposit-sub { font-size: 13px; }
  .fbw-notice { font-size: 13px; padding: 12px 14px; }
  .fbw-footer {
    padding: 16px 24px 20px;
    border-radius: 0 0 16px 16px;
    position: static;
  }
  .fbw-btn-back { padding: 10px 22px; }
  .fbw-btn-next, .fbw-btn-book { padding: 12px 32px; }
  .fbw-pay-opt { border-radius: 12px; padding: 12px 14px; }
  .fbw-pay-opt-body strong { font-size: 14px; }
  .fbw-pay-opt-body span { font-size: 12px; }
  .fbw-confirm-icon { font-size: 52px; margin-bottom: 12px; }
  .fbw-confirm-title { font-size: 28px; }
  .fbw-confirm-details { padding: 16px 18px; }
  .fbw-confirm-row { font-size: 14px; }
  .fbw-confirm-note { font-size: 13px; }
  .ep-gallery-main { border-radius: 14px; }
  .ep-thumb { width: 80px; height: 80px; border-radius: 10px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   LARGE DESKTOP BREAKPOINT — 768px+
   ═══════════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .fbw-dialog { max-width: 620px; }
  .fbw-body { padding: 32px 32px 12px; }
  .fbw-product-grid { gap: 14px; }
  .fbw-btn-next, .fbw-btn-book { padding: 14px 36px; font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   LANDSCAPE MOBILE — Height constrained devices
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 639px) and (max-height: 600px) {
  .fbw-dialog {
    max-height: 100dvh;
  }
  .fbw-header {
    padding: 10px 16px 8px;
  }
  .fbw-header-title {
    font-size: 16px;
  }
  .fbw-progress {
    padding: 8px 16px;
  }
  .fbw-step-num {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .fbw-substep-bar {
    padding: 6px 16px;
  }
  .fbw-body {
    padding: 12px 16px 8px;
  }
  .fbw-step-heading {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .fbw-step-sub {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .fbw-cal {
    border-radius: 10px;
  }
  .fbw-cal-nav {
    padding: 8px 12px 6px;
  }
  .fbw-cal-month {
    font-size: 13px;
  }
  .fbw-cal-nav-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .fbw-cal-grid {
    gap: 2px;
    padding: 6px;
  }
  .fbw-cell {
    font-size: 12px;
    min-width: 32px;
    min-height: 32px;
  }
  .fbw-dow {
    font-size: 9px;
  }
  .fbw-footer {
    padding: 8px 16px 12px;
  }
  .fbw-btn-back {
    padding: 10px 16px;
    font-size: 13px;
  }
  .fbw-btn-next, .fbw-btn-book {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   SAFE AREA INSETS — For notched devices (iPhone X+)
   ═══════════════════════════════════════════════════════════════════════ */
@supports (padding: max(0px)) {
  .fbw-footer {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  @media (max-width: 639px) {
    .fbw-dialog {
      padding-bottom: env(safe-area-inset-bottom);
    }
  }
}