/* ============================================
   Restaurant Booking Pro - Public Styles v5.5.2
   ============================================ */
.rbp-booking-wrap {
  width: 880px;          /* explicit width — overridden by design CSS when customized */
  max-width: 880px;      /* BUG FIX v3.14.0: was 100%, capped by theme container  */
  box-sizing: border-box;
  margin: 0 auto;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
}
/* Responsive: shrink to viewport on screens narrower than 880px */
@media (max-width: 880px) {
  .rbp-booking-wrap { width: 100% !important; max-width: 100% !important; }
}
.rbp-booking-header {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: #fff;
  padding: 20px 28px;
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
}
.rbp-booking-header h3 { margin: 0; font-size: 20px; font-weight: 700; }

.rbp-booking-form {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.rbp-field {
  margin-bottom: 18px;
}
.rbp-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.rbp-req { color: #c0392b; }

.rbp-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d0d0d0;
  border-radius: 7px;
  font-size: 14px;
  color: #333;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  appearance: none;
}
.rbp-input:focus {
  outline: none;
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}
.rbp-input::placeholder { color: #aaa; }
.rbp-textarea { resize: vertical; min-height: 80px; }

.rbp-input-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.rbp-input-icon > span:first-child {
  position: absolute;
  left: 12px;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}
.rbp-input-icon .rbp-input { padding-left: 38px; }
.rbp-input-icon.rbp-icon-top { align-items: flex-start; }
.rbp-input-icon.rbp-icon-top > span:first-child { top: 10px; }

/* Phone */
.rbp-phone-group { display: flex; gap: 8px; }
.rbp-phone-code  { width: 130px; flex-shrink: 0; padding: 10px 10px; border: 1.5px solid #d0d0d0; border-radius: 7px; font-size: 13px; background: #fff; }
.rbp-phone-num   { flex: 1; }

/* Select */
.rbp-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M0 0l6 7 6-7z' fill='%23888'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.rbp-select.rbp-input-icon .rbp-select { padding-left: 38px; }

/* Country dropdown */
.rbp-country-wrap { position: relative; width: 100%; }
.rbp-country-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 200;
  background: #fff; border: 1.5px solid #d0d0d0; border-top: none;
  border-radius: 0 0 8px 8px; max-height: 220px; overflow-y: auto;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.rbp-country-item { padding: 9px 14px; cursor: pointer; font-size: 13px; }
.rbp-country-item:hover { background: #fef0ee; color: #c0392b; }

/* Two col */
.rbp-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .rbp-two-col { grid-template-columns: 1fr; } .rbp-booking-wrap { max-width: 100%; } }
/* ── Desktop form scale +20% (v3.3.6) ─────────────────────────────── */
@media (min-width: 481px) {
  .rbp-booking-header        { padding: 24px 34px; }
  .rbp-booking-header h3     { font-size: 22px; }
  .rbp-booking-form          { padding: 28px 34px; }
  .rbp-slot-grid             { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 12px; }
  .rbp-slot-btn              { padding: 14px 12px; font-size: 14px; }
  .rbp-input, .rbp-select    { font-size: 15px; padding: 10px 14px; }
  .rbp-label                 { font-size: 14px; }
  .rbp-pay-option            { padding: 14px 18px; font-size: 14px; }
  .rbp-btn-primary           { font-size: 16px; padding: 14px 28px; max-width: 340px; }
  .rbp-step-num              { width: 34px; height: 34px; font-size: 15px; line-height: 34px; }
  .rbp-step-label            { font-size: 12px; }
  .rbp-review-table td       { font-size: 14px; padding: 9px 12px; }
  .rbp-summary-box           { padding: 20px 24px; }
  .rbp-success-icon          { font-size: 56px; }
  .rbp-alert                 { font-size: 14px; padding: 14px 18px; }
}


/* Slot full message */
.rbp-slot-full-msg {
  background: #fff3cd; border: 1px solid #ffc107; border-radius: 6px;
  padding: 10px 14px; margin-top: 8px; font-size: 13px; color: #856404;
}
.rbp-slot-status-wrap { margin-top: 4px; }

/* Alerts */
.rbp-alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.rbp-alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.rbp-alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Submit button */
.rbp-form-footer { margin-top: 24px; text-align: center; }
.rbp-btn-book {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: #fff; border: none; border-radius: 8px;
  padding: 14px 40px; font-size: 16px; font-weight: 700;
  cursor: pointer; width: 100%; max-width: 300px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 12px rgba(192,57,43,.35);
}
.rbp-btn-book:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(192,57,43,.45); }
.rbp-btn-book:disabled { opacity: .7; transform: none; }

/* Availability calendar */
.rbp-cal-wrap { font-family: 'Segoe UI', Arial, sans-serif; }
.rbp-cal-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 16px; }
.rbp-slot-card {
  border: 1.5px solid #e0e0e0; border-radius: 8px; padding: 14px;
  text-align: center; cursor: pointer; transition: all .2s;
}
.rbp-slot-card:hover { border-color: #c0392b; }
.rbp-slot-card.full  { border-color: #e74c3c; background: #fff5f5; cursor: default; }
.rbp-slot-name  { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.rbp-slot-time  { font-size: 22px; font-weight: 800; color: #c0392b; }
.rbp-slot-type  { font-size: 11px; color: #888; text-transform: uppercase; margin-top: 2px; }
.rbp-slot-avail { margin-top: 8px; font-size: 12px; }
.rbp-slot-avail.full { color: #e74c3c; font-weight: 700; }
.rbp-slot-avail.ok   { color: #27ae60; }

/* Table layout public */
.rbp-table-layout { font-family: 'Segoe UI', Arial, sans-serif; }
.rbp-tl-floor { margin-bottom: 28px; }
.rbp-tl-floor-name { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: #333; }
.rbp-tl-room  { margin-bottom: 20px; }
.rbp-tl-room-name { font-size: 13px; color: #888; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
.rbp-tl-grid  { display: flex; flex-wrap: wrap; gap: 10px; }
.rbp-tl-table {
  border: 2px solid #e0e0e0; border-radius: 8px; padding: 12px 18px;
  text-align: center; min-width: 90px; font-size: 13px;
  transition: all .2s;
}
.rbp-tl-table.available { border-color: #27ae60; background: #f0fff4; }
.rbp-tl-table.occupied  { border-color: #e74c3c; background: #fff5f5; cursor: not-allowed; }
.rbp-tl-table.locked    { border-color: #e67e22; background: #fff9f0; cursor: not-allowed; }
.rbp-tl-table .tbl-num  { font-weight: 700; font-size: 16px; }
.rbp-tl-table .tbl-cap  { font-size: 11px; color: #888; }
.rbp-tl-table .tbl-lbl  { font-size: 10px; margin-top: 4px; font-weight: 600; padding: 2px 8px; border-radius: 10px; display: inline-block; }
.available .tbl-lbl { background: #d4edda; color: #155724; }
.occupied  .tbl-lbl { background: #f8d7da; color: #721c24; }
.locked    .tbl-lbl { background: #ffe5cc; color: #c0392b; }

/* ── Step wizard ── */
.rbp-steps {
  display: flex; align-items: center; justify-content: center;
  padding: 20px 28px 0; background: linear-gradient(135deg,#c0392b,#e74c3c);
  border-radius: 10px 10px 0 0;
}
.rbp-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 90px;
}
.rbp-step-num {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.3);
  color: #fff; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.5); transition: all .3s;
}
.rbp-step.active .rbp-step-num,
.rbp-step.done   .rbp-step-num { background: #fff; color: #c0392b; border-color: #fff; }
.rbp-step-label { font-size: 11px; color: rgba(255,255,255,.7); white-space: nowrap; }
.rbp-step.active .rbp-step-label,
.rbp-step.done   .rbp-step-label { color: #fff; font-weight: 600; }
.rbp-step-line { flex: 1; height: 2px; background: rgba(255,255,255,.3); max-width: 60px; }

/* ── Slot grid ── */
.rbp-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
/* button mode: apply CSS variable sizing */
.rbp-slot-mode-button .rbp-slot-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.rbp-slot-btn {
  border: 2px solid #e0e0e0;
  border-radius: var(--rbp-slot-btn-radius, 8px);
  padding: var(--rbp-slot-btn-pad, 11px 16px);
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  font-size: var(--rbp-slot-btn-fnt, 14px);
}
.rbp-slot-btn:hover:not(:disabled) {
  border-color: var(--rbp-slot-primary, #c0392b);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.rbp-slot-btn.selected {
  border-color: var(--rbp-slot-primary, #c0392b);
  background: rgba(192,57,43,.06);
  color: var(--rbp-slot-primary, #c0392b);
}
.rbp-slot-btn.rbp-slot-full { border-color: #e74c3c; background: #fff5f5; opacity: .7; cursor: not-allowed; }
.sl-name  { font-weight: 700; font-size: 13px; color: #333; }
.sl-time  { font-size: 22px; font-weight: 800; color: #c0392b; line-height: 1; }
.sl-type  { font-size: 16px; }
.sl-desc  { font-size: 11px; color: #888; font-style: italic; white-space: normal; line-height: 1.4; }
.sl-avail { font-size: 11px; color: #27ae60; font-weight: 500; }
.sl-avail-low { color: #e67e22 !important; font-weight: 700 !important; animation: rbp-pulse .8s ease infinite alternate; }
@keyframes rbp-pulse { from { opacity:.7; } to { opacity:1; } }
.sl-full-lbl { font-size: 11px; color: #e74c3c; font-weight: 700; }

/* ── Step panels ── */
.rbp-panel { padding: 24px 28px; }
.rbp-step-title { margin: 0 0 18px; font-size: 16px; font-weight: 700; color: #333; }
.rbp-step-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f0f0f0; }

/* ── Summary box ── */
.rbp-summary-box { background: #f8f9fa; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.rbp-sum-table { width: 100%; border-collapse: collapse; }
.rbp-sum-table td { padding: 6px 8px; font-size: 13px; border-bottom: 1px solid #eee; }
.rbp-sum-table td:first-child { width: 24px; font-size: 16px; }
.rbp-sum-table td:nth-child(2) { color: #888; width: 100px; }
.rbp-sum-table td:last-child { font-weight: 500; }

/* ── Guest warning ── */
.rbp-guest-warn { background: #fff3cd; border: 1px solid #ffc107; border-radius: 6px;
  padding: 8px 12px; margin-top: 6px; font-size: 13px; color: #856404; }
.rbp-slot-full-msg { background: #fff3cd; border: 1px solid #ffc107; border-radius: 6px;
  padding: 10px 14px; margin-top: 8px; font-size: 13px; color: #856404; }

/* ── Booking form wrapper adjustments ── */
.rbp-booking-form { padding: 0 !important; }
.rbp-booking-header { display: none; }

/* ── Step nav buttons (v5.6.1) ── */
.rbp-btn-next {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .2s;
  box-shadow: 0 3px 10px rgba(192,57,43,.3);
}
.rbp-btn-next:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(192,57,43,.45);
}
.rbp-btn-next:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.rbp-btn-outline {
  background: #fff;
  color: #555;
  border: 1.5px solid #d0d0d0;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.rbp-btn-outline:hover {
  border-color: #c0392b;
  color: #c0392b;
}

/* ── Step indicator active/done states ── */
.rbp-step.active .rbp-step-num,
.rbp-step.done   .rbp-step-num  { background: #fff; color: #c0392b; border-color: #fff; }
.rbp-step.active .rbp-step-label,
.rbp-step.done   .rbp-step-label { color: #fff; font-weight: 600; }

/* ── Slot card selected ── */
.rbp-slot-btn.selected {
  border-color: #c0392b !important;
  background: #fef0ee !important;
  box-shadow: 0 0 0 3px rgba(192,57,43,.18);
}

/* ── v5.6.1 additions ── */
.rbp-loading-msg { color:#888; padding:10px 0; font-size:14px; }

/* ══════════════════════════════════════════
   v5.6.5 — Payment Step + 4-step indicator
   ══════════════════════════════════════════ */

/* 4-step indicator adjustments */
.rbp-steps { padding-bottom: 16px; }
.rbp-step   { min-width: 64px; }
.rbp-step-label { font-size: 10px; white-space: normal; text-align: center; max-width: 64px; }
@media (max-width: 520px) {
  .rbp-step-label { display: none; }
  .rbp-step       { min-width: 36px; }
}

/* Payment option cards */
.rbp-pay-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }

.rbp-pay-card {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
  display: block;
}
.rbp-pay-card:hover { border-color: #c0392b; box-shadow: 0 3px 10px rgba(192,57,43,.12); }
.rbp-pay-card.selected {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.15);
  background: #fff9f8;
}
.rbp-pay-card input[type=radio] { display: none; }

.rbp-pay-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
}
.rbp-pay-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.rbp-pay-info {
  flex: 1;
}
.rbp-pay-info strong { display: block; font-size: 14px; color: #222; margin-bottom: 4px; }
.rbp-pay-info small  { display: block; font-size: 12px; color: #777; line-height: 1.5; }
.rbp-pay-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #d0d0d0; display: flex; align-items: center; justify-content: center;
  color: transparent; font-size: 13px; flex-shrink: 0; transition: all .2s; margin-top: 2px;
}
.rbp-pay-card.selected .rbp-pay-check {
  background: #c0392b; border-color: #c0392b; color: #fff;
}

.rbp-pay-badge {
  background: #27ae60; color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px; margin-left: 6px; vertical-align: middle;
}

/* QR section */
.rbp-qr-section {
  border-top: 1px solid #f0e0de;
  background: #fffaf9;
  padding: 16px;
  animation: rbpFadeIn .25s ease;
}
.rbp-qr-info {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.rbp-qr-img-wrap {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rbp-qr-img      { width: 160px; height: 160px; object-fit: contain; }
.rbp-qr-loading  { color: #888; font-size: 13px; text-align: center; padding: 8px; }
.rbp-qr-details  { flex: 1; min-width: 160px; }
.rbp-qr-row      { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.rbp-qr-row span { color: #888; }
.rbp-qr-row strong { color: #222; text-align: right; }
.rbp-qr-amount   { color: #c0392b !important; font-size: 15px; }
.rbp-qr-note     { font-size: 12px; color: #856404; background: #fff3cd; border-radius: 5px; padding: 8px 10px; margin-top: 10px; }

/* Deposit banner */
.rbp-deposit-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.rbp-deposit-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.rbp-deposit-banner strong { display: block; color: #856404; margin-bottom: 4px; }
.rbp-deposit-banner p { margin: 0; font-size: 13px; color: #856404; }

/* Deposit hint (below guests field) */
.rbp-deposit-hint {
  background: #fff3cd; border: 1px solid #ffc107; border-radius: 6px;
  padding: 8px 12px; margin-top: 8px; font-size: 13px; color: #856404;
}

/* Prepaid notice */
.rbp-prepaid-notice {
  background: #d4edda; border: 1px solid #c3e6cb; border-radius: 6px;
  padding: 10px 14px; font-size: 13px; color: #155724;
}

/* Prepaid section */
.rbp-prepaid-section {
  border-top: 1px solid #f0f0f0;
  padding: 12px 16px;
  background: #f8fff8;
  font-size: 13px;
  color: #333;
  animation: rbpFadeIn .25s ease;
}

@keyframes rbpFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Summary box enhancement */
.rbp-sum-table td { vertical-align: top; }

/* Step nav full width on mobile */
@media (max-width: 480px) {
  .rbp-step-nav { flex-direction: column-reverse; }
  .rbp-step-nav button { width: 100%; }
  .rbp-qr-img-wrap { width: 130px; height: 130px; }
  .rbp-qr-img { width: 130px; height: 130px; }
}


/* ══════════════════════════════════════════
   v5.6.8 — Payment Step + Widget
   ══════════════════════════════════════════ */

/* 4-step indicator tweaks */
.rbp-steps { padding-bottom: 16px; gap: 0; }
.rbp-step  { min-width: 60px; }
.rbp-step-label { font-size: 10px; white-space: normal; text-align: center; max-width: 60px; line-height: 1.3; }
@media (max-width: 520px) { .rbp-step-label { display: none; } .rbp-step { min-width: 32px; } }

/* Success */
.rbp-success-icon { font-size: 36px; display: block; margin-bottom: 6px; }
.rbp-status-ok   { color: #155724; font-weight: 700; }
.rbp-status-pend { color: #856404; font-weight: 700; }

/* ── STEP 3: Payment choice list ── */
.rbp-pay-list {
  display: flex; flex-direction: column; gap: 0;
  border: 1.5px solid #e0e0e0; border-radius: 10px;
  overflow: hidden; margin-bottom: 4px;
}
.rbp-pay-row {
  display: block; cursor: pointer;
  border-bottom: 1.5px solid #e8e8e8;
  transition: background .15s; user-select: none;
}
.rbp-pay-row:last-child { border-bottom: none; }
.rbp-pay-row:hover      { background: #fafafa; }
.rbp-pay-row.selected   { background: #fff9f8; }
.rbp-pay-row input[type=radio] { display: none; }

.rbp-pay-row-inner {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
}
.rbp-pay-row-icon { font-size: 26px; flex-shrink: 0; }
.rbp-pay-row-text { flex: 1; }
.rbp-pay-row-text strong { display: block; font-size: 14px; color: #222; margin-bottom: 3px; }
.rbp-pay-row-text span   { font-size: 12px; color: #777; line-height: 1.5; }
.rbp-pay-radio-dot {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid #ccc;
  flex-shrink: 0; transition: all .2s; position: relative;
}
.rbp-pay-row.selected .rbp-pay-radio-dot { border-color: #c0392b; background: #c0392b; }
.rbp-pay-row.selected .rbp-pay-radio-dot::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
}

/* Badges */
.rbp-badge-auto { background: #27ae60; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; margin-left: 6px; }
.rbp-badge-deal { background: #e67e22; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; margin-left: 6px; }

/* Sub-payment area inside each payment row (Step 3 preview) */
.rbp-pay-sub {
  border-top: 1.5px solid #f0e8e8; background: #fff9f8;
  padding: 14px 16px; animation: rbpSlideDown .2s ease;
}
.rbp-sub-opt {
  background: #fff; border: 1.5px solid #eee;
  border-radius: 8px; padding: 12px 14px; margin-bottom: 10px;
}
.rbp-sub-opt:last-child { margin-bottom: 0; }
.rbp-sub-opt-head { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 10px; gap: 6px; }
.rbp-sub-opt-head strong { font-size: 13px; }

/* Deposit required banner */
.rbp-dep-banner {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff3cd; border: 1.5px solid #ffc107; border-radius: 8px;
  padding: 12px 14px; margin-bottom: 14px; font-size: 13px;
}
.rbp-dep-banner > span { font-size: 20px; flex-shrink: 0; }
.rbp-dep-banner strong { display: block; color: #856404; margin-bottom: 3px; }
.rbp-dep-banner p { margin: 0; color: #856404; }

/* Deposit hint below guests input */
.rbp-deposit-hint {
  background: #fff3cd; border: 1px solid #ffc107; border-radius: 6px;
  padding: 8px 12px; margin-top: 8px; font-size: 13px; color: #856404;
}

/* Info notes in step 4 summary */
.rbp-info-note {
  border-radius: 7px; padding: 10px 14px; margin-top: 10px;
  font-size: 13px; line-height: 1.6;
}
.rbp-dep-note { background: #fff3cd; border: 1px solid #ffc107; color: #856404; }
.rbp-pre-note { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }

/* ── POST-SUBMIT PAYMENT WIDGET ── */
.rbp-pay-widget-outer {
  margin-top: 16px;
}
.rbp-pay-widget {
  background: #fff;
  border: 2px solid #c0392b;
  border-radius: 12px;
  padding: 20px 20px 16px;
  box-shadow: 0 4px 20px rgba(192,57,43,.12);
}
.rbp-pay-widget-title {
  margin: 0 0 6px; font-size: 16px; font-weight: 800; color: #c0392b;
}
.rbp-pay-widget-sub { margin: 0 0 14px; font-size: 13px; color: #666; }

/* Payment gateway tabs */
.rbp-pay-tabs {
  display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap;
}
.rbp-pay-tab {
  padding: 7px 16px; border: 1.5px solid #d0d0d0;
  border-radius: 20px; background: #fff; font-size: 13px;
  cursor: pointer; transition: all .15s;
}
.rbp-pay-tab.active  { background: #c0392b; color: #fff; border-color: #c0392b; font-weight: 700; }
.rbp-pay-tab:hover:not(.active) { border-color: #c0392b; color: #c0392b; }

/* VietQR */
.rbp-qr-wrap     { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 10px; }
.rbp-qr-left     { flex-shrink: 0; }
.rbp-qr-box {
  width: 160px; height: 160px; border: 1.5px solid #e0e0e0;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: #f8f8f8; overflow: hidden;
}
.rbp-qr-img  { width: 160px; height: 160px; object-fit: contain; display: block; }
.rbp-qr-right { flex: 1; min-width: 160px; }
.rbp-qr-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid #f0f0f0; font-size: 12px; }
.rbp-qr-row span  { color: #888; }
.rbp-qr-row b     { color: #222; text-align: right; word-break: break-all; }
.rbp-qr-amt       { color: #c0392b !important; font-size: 13px; }
.rbp-qr-tip       { font-size: 11px; color: #856404; background: #fff3cd; border-radius: 5px; padding: 6px 10px; margin: 6px 0 0; }
.rbp-pay-note     { font-size: 12px; color: #777; margin: 6px 0 0; }

/* OnePay button (large, in widget) */
.rbp-btn-onepay {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: #fff; border: none; border-radius: 8px;
  padding: 12px 24px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
  box-shadow: 0 3px 10px rgba(192,57,43,.3);
  width: 100%; margin-top: 4px;
}
.rbp-btn-onepay:hover     { transform: translateY(-2px); box-shadow: 0 5px 16px rgba(192,57,43,.4); }
.rbp-btn-onepay:disabled  { opacity: .6; cursor: wait; transform: none; }
.rbp-btn-onepay-lg        { font-size: 15px; padding: 14px 28px; }

/* Payment confirmed message */
.rbp-pay-confirmed {
  text-align: center; padding: 20px;
  background: #d4edda; border-radius: 8px; color: #155724;
}
.rbp-pay-confirmed strong { font-size: 16px; }
.rbp-pay-confirmed p      { margin: 6px 0 0; font-size: 13px; }

/* PayPal placeholder */
.rbp-paypal-placeholder { padding: 16px; text-align: center; }

@keyframes rbpSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 480px) {
  .rbp-step-nav { flex-direction: column-reverse; }
  .rbp-step-nav button { width: 100%; }
  .rbp-qr-wrap  { flex-direction: column; }
  .rbp-qr-right { min-width: 0; width: 100%; }
  .rbp-pay-widget { padding: 16px 14px 12px; }
}

/* ════════════════════════════════════════════
   Payment Widget — post-submit (v5.6.8)
   Appears below success banner after booking
   ════════════════════════════════════════════ */

/* Outer container */
.rbp-pay-widget-outer {
  margin-top: 18px;
}

/* Widget card */
.rbp-pay-widget {
  background: #fff;
  border: 1.5px solid #d5e8d4;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 4px 16px rgba(39,174,96,.10);
}

.rbp-pw-title {
  margin: 0 0 6px;
  font-size: 16px;
  color: #155724;
  font-weight: 700;
}

.rbp-pw-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: #555;
}

/* Tab bar */
.rbp-pw-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 2px solid #e8e8e8;
  padding-bottom: 0;
}

.rbp-pw-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #777;
  border-radius: 6px 6px 0 0;
  transition: color .15s, border-color .15s;
}
.rbp-pw-tab:hover  { color: #333; }
.rbp-pw-tab.active { color: #c0392b; border-bottom-color: #c0392b; }

/* Panels */
.rbp-pw-panel { animation: rbpFadeIn .2s ease; }

/* Post-pay confirmed state */
.rbp-pay-confirmed {
  background: #d4edda; border: 1.5px solid #c3e6cb; border-radius: 10px;
  padding: 18px 20px; text-align: center; color: #155724; font-size: 15px;
}
.rbp-pay-confirmed p { margin: 6px 0 0; font-size: 13px; }

/* PayPal loading placeholder */
.rbp-paypal-loading {
  color: #888; font-size: 13px; padding: 12px 0; text-align: center;
}

/* OnePay button (large, widget version) */
.rbp-btn-onepay-lg {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  border-radius: 8px;
  margin-bottom: 4px;
}

@keyframes rbpFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Summary table in Step 4 */
.rbp-sum-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rbp-sum-table tr { border-bottom: 1px solid #f0f0f0; }
.rbp-sum-table tr:last-child { border-bottom: none; }
.rbp-sum-table td { padding: 8px 6px; vertical-align: top; }
.rbp-sum-table td:first-child { width: 28px; text-align: center; }
.rbp-sum-lbl { color: #888; font-size: 11px; width: 85px; padding-top: 10px; }

/* Pay row note (badges in radio list) */
.rbp-pay-row-note { display: block; margin-top: 4px; }

/* Info notes below summary */
.rbp-info-note {
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
}
.rbp-dep-note { background: #fff3cd; border: 1px solid #ffc107; color: #856404; }
.rbp-pre-note { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }

/* ── Package Cards (v3.3.7) ─────────────────────────────────────────── */
.rbp-pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.rbp-pkg-card {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .15s;
  background: #fff;
  position: relative;
  user-select: none;
  outline: none;
}
.rbp-pkg-card:hover {
  border-color: #c0392b;
  box-shadow: 0 4px 14px rgba(192,57,43,.13);
  transform: translateY(-2px);
}
.rbp-pkg-card:focus {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.2);
}
.rbp-pkg-card.selected {
  border-color: #c0392b;
  background: #fff8f8;
  box-shadow: 0 4px 16px rgba(192,57,43,.18);
}
.rbp-pkg-img {
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
}
.rbp-pkg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rbp-pkg-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
}
.rbp-pkg-body {
  padding: 12px 14px 14px;
}
.rbp-pkg-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
  line-height: 1.3;
}
.rbp-pkg-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rbp-pkg-price {
  font-size: 15px;
  font-weight: 800;
  color: #c0392b;
  margin-top: 4px;
}
.rbp-pkg-per {
  font-size: 11px;
  font-weight: 400;
  color: #888;
}
.rbp-pkg-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #c0392b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .15s, transform .15s;
}
.rbp-pkg-card.selected .rbp-pkg-check {
  opacity: 1;
  transform: scale(1);
}
/* Single package — wider card */
.rbp-pkg-grid:has(.rbp-pkg-card:only-child) { grid-template-columns: 1fr; max-width: 320px; }
/* Mobile */
@media (max-width: 480px) {
  .rbp-pkg-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rbp-pkg-img  { height: 90px; }
  .rbp-pkg-name { font-size: 12px; }
  .rbp-pkg-price { font-size: 13px; }
}
@media (max-width: 360px) {
  .rbp-pkg-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SLOT DISPLAY MODES — v3.7.1
   button (default) | card | box (with image)
   ============================================================ */

/* ── CARD MODE ────────────────────────────────────────────── */
.rbp-slot-mode-card {
  display: grid;
  grid-template-columns: repeat(var(--rbp-slot-cols, 3), minmax(0, 1fr));
  gap: 12px;
}
.rbp-slot-card {
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  position: relative;
  overflow: hidden;
}
.rbp-slot-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rbp-primary, #c0392b);
  transform: scaleX(0);
  transition: transform .2s;
  transform-origin: left;
}
.rbp-slot-card:hover { border-color: var(--rbp-slot-primary, var(--rbp-primary, #c0392b)); box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.rbp-slot-card:hover::before { transform: scaleX(1); }
.rbp-slot-card.selected { border-color: var(--rbp-slot-primary, var(--rbp-primary, #c0392b)); background: #fef5f4; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.rbp-slot-card.selected::before { transform: scaleX(1); }
.rbp-slot-card.rbp-slot-full { opacity: .45; cursor: not-allowed; pointer-events: none; }

.rbp-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rbp-card-icon   { font-size: 22px; flex-shrink: 0; }
.rbp-card-meta   { flex: 1; min-width: 0; }
.rbp-card-name   { display: block; font-size: 14px; font-weight: 700; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rbp-card-time   { display: block; font-size: 12px; color: #888; margin-top: 1px; }
.rbp-card-desc   { font-size: 12px; color: #666; margin: 0 0 8px; line-height: 1.45; }
.rbp-card-footer { font-size: 12px; font-weight: 600; color: #27ae60; }
.rbp-slot-card.rbp-slot-full .rbp-card-footer { color: #c0392b; }

/* ── BOX MODE (with image) ───────────────────────────────── */
.rbp-slot-mode-box {
  display: grid;
  grid-template-columns: repeat(var(--rbp-slot-cols, 3), minmax(0, 1fr));
  gap: 14px;
}
.rbp-slot-box {
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.rbp-slot-box:hover { border-color: var(--rbp-primary, #c0392b); box-shadow: 0 6px 22px rgba(192,57,43,.14); transform: translateY(-3px); }
.rbp-slot-box.selected { border-color: var(--rbp-primary, #c0392b); box-shadow: 0 6px 22px rgba(192,57,43,.18); }
.rbp-slot-box.rbp-slot-full { opacity: .42; cursor: not-allowed; pointer-events: none; }

.rbp-box-visual   { position: relative; height: 120px; overflow: hidden; background: #f5f5f5; }
.rbp-box-img      { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.rbp-slot-box:hover .rbp-box-img { transform: scale(1.04); }
.rbp-box-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, var(--rbp-primary, #c0392b), var(--rbp-secondary, #e74c3c));
}

.rbp-slot-badge {
  display: inline-block;
  background: var(--rbp-slot-badge-bg, var(--rbp-primary, #c0392b));
  color: var(--rbp-slot-badge-txt, #fff);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .3px;
}
.rbp-box-badge {
  position: absolute;
  top: 8px; left: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.rbp-slot-card .rbp-slot-badge {
  position: absolute;
  top: 10px; right: 10px;
}

.rbp-box-body    { padding: 12px 14px; }
.rbp-box-name    { display: block; font-size: 14px; font-weight: 700; color: #222; margin-bottom: 3px; }
.rbp-box-time    { display: block; font-size: 12px; color: #888; margin-bottom: 5px; }
.rbp-box-desc    { font-size: 12px; color: #666; margin: 0 0 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rbp-box-footer  { font-size: 12px; font-weight: 600; color: #27ae60; }
.rbp-slot-box.rbp-slot-full .rbp-box-footer { color: #c0392b; }

/* selected checkmark overlay on box */
.rbp-slot-box.selected::after {
  content: '✓';
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--rbp-primary, #c0392b);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.rbp-slot-box { position: relative; }

/* ── CURRENCY SELECTOR ───────────────────────────────────── */
.rbp-currency-sel {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  align-items: center;
}
.rbp-currency-sel::before {
  content: '💱';
  font-size: 14px;
  margin-right: 2px;
}
.rbp-curr-btn {
  padding: 4px 12px;
  border: 1.5px solid #d0d0d0;
  border-radius: 20px;
  background: #fff;
  color: #555;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  letter-spacing: .3px;
}
.rbp-curr-btn:hover { border-color: var(--rbp-primary, #c0392b); color: var(--rbp-primary, #c0392b); }
.rbp-curr-btn.rbp-curr-active {
  background: var(--rbp-primary, #c0392b);
  border-color: var(--rbp-primary, #c0392b);
  color: #fff;
}

/* ── Mobile slot modes ───────────────────────────────────── */
@media (max-width: 520px) {
  .rbp-slot-mode-card { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rbp-slot-card { padding: 10px; }
  .rbp-slot-mode-box  { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rbp-box-visual { height: 90px; }
  .rbp-box-body   { padding: 9px 11px; }
  .rbp-box-name   { font-size: 12px; }
}
@media (max-width: 340px) {
  .rbp-slot-mode-card,
  .rbp-slot-mode-box  { grid-template-columns: 1fr; }
}

/* ── Admin: timeslot mode preview cards ──────────────────── */
.rbp-mode-preview {
  transition: border-color .15s, background .15s;
  min-height: 90px;
}
.rbp-mode-preview:hover { border-color: #c0392b !important; }

/* ── Slot Design CSS variable fallbacks (used when design not customized) ── */
:root {
  --rbp-slot-primary: #c0392b;
  --rbp-slot-btn-radius: 8px;
  --rbp-slot-btn-pad: 11px 16px;
  --rbp-slot-btn-fnt: 14px;
  --rbp-slot-badge-bg: #c0392b;
  --rbp-slot-badge-txt: #ffffff;
  --rbp-slot-cols: 3;
}

/* ── Mobile responsive for CSS-var grid ── */
@media (max-width: 640px) {
  .rbp-slot-mode-card,
  .rbp-slot-mode-box {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 380px) {
  .rbp-slot-mode-card,
  .rbp-slot-mode-box {
    grid-template-columns: 1fr !important;
  }
}

/* ══════════════════════════════════════════════════════════
   v3.8.0 — Card Long mode + Currency in Payment Step
   ══════════════════════════════════════════════════════════ */

/* ── Card Long (card_long) mode — full-width horizontal ── */
.rbp-slot-mode-card_long .rbp-slot-grid,
.rbp-slot-grid.rbp-slot-mode-card_long {
  grid-template-columns: 1fr !important;
  gap: 10px;
}

.rbp-slot-card-long {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  overflow: hidden;
  min-height: 76px;
}
.rbp-slot-card-long:hover:not(.rbp-slot-full) {
  border-color: var(--rbp-slot-primary, #c0392b);
  box-shadow: 0 4px 16px rgba(192,57,43,.14);
  transform: translateY(-1px);
}
.rbp-slot-card-long.selected {
  border-color: var(--rbp-slot-primary, #c0392b) !important;
  background: rgba(192,57,43,.04) !important;
  box-shadow: 0 0 0 3px rgba(192,57,43,.18);
}
.rbp-slot-card-long.rbp-slot-full {
  opacity: .55;
  cursor: not-allowed;
}

/* Left accent strip with icon */
.rbp-clong-left {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-height: 76px;
  background: linear-gradient(135deg, var(--rbp-slot-primary,#c0392b) 0%, rgba(192,57,43,.75) 100%);
  flex-shrink: 0;
  font-size: 26px;
}

/* Body — name, time, type, badge */
.rbp-clong-body {
  flex: 1;
  padding: 14px 16px;
  min-width: 0;
}
.rbp-clong-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.rbp-clong-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rbp-clong-time {
  font-size: 13px;
  color: var(--rbp-slot-primary, #c0392b);
  font-weight: 600;
  white-space: nowrap;
}
.rbp-clong-type {
  font-size: 11px;
  color: #888;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 2px 8px;
  white-space: nowrap;
}
.rbp-badge-inline {
  background: var(--rbp-slot-badge-bg, #c0392b);
  color: var(--rbp-slot-badge-txt, #fff);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.rbp-clong-desc {
  font-size: 12px;
  color: #666;
  margin: 4px 0 0;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right — availability + select arrow */
.rbp-clong-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding: 14px 18px 14px 12px;
  flex-shrink: 0;
  text-align: right;
}
.rbp-clong-right .sl-avail,
.rbp-clong-right .sl-full-lbl {
  font-size: 12px;
  white-space: nowrap;
}
.rbp-clong-select {
  font-size: 11px;
  font-weight: 700;
  color: var(--rbp-slot-primary, #c0392b);
  opacity: .7;
  white-space: nowrap;
}
.rbp-slot-card-long:hover .rbp-clong-select { opacity: 1; }

/* ── Currency selector in Payment Step ── */
.rbp-pay-currency-wrap { margin-bottom: 16px; }
.rbp-currency-sel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.rbp-currency-sel::before {
  content: '💱';
  font-size: 15px;
  margin-right: 2px;
}
.rbp-curr-btn {
  padding: 6px 14px;
  border: 1.5px solid #d0d0d0;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  letter-spacing: .3px;
}
.rbp-curr-btn:hover {
  border-color: var(--rbp-slot-primary, #c0392b);
  color: var(--rbp-slot-primary, #c0392b);
}
.rbp-curr-btn.rbp-curr-active {
  border-color: var(--rbp-slot-primary, #c0392b);
  background: var(--rbp-slot-primary, #c0392b);
  color: #fff;
}

/* Auto-fill notice when currency switches by country */
.rbp-curr-auto-note {
  font-size: 11px;
  color: #27ae60;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  animation: rbp-fadein .3s ease;
}
@keyframes rbp-fadein { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }

/* ── Resource naming (Spots Available / Availability) ── */
.sl-avail { font-size: 12px; color: #27ae60; font-weight: 500; }
.sl-full-lbl { font-size: 12px; color: #e74c3c; font-weight: 700; }

/* ── Mobile: card_long stacks vertically ── */
@media (max-width: 520px) {
  .rbp-slot-card-long { flex-direction: column; align-items: stretch; min-height: unset; }
  .rbp-clong-left { width: 100%; min-height: 44px; flex-direction: row; gap: 10px; padding: 10px 16px; justify-content: flex-start; font-size: 20px; border-radius: 0; }
  .rbp-clong-right { flex-direction: row; justify-content: space-between; padding: 8px 16px; }
  .rbp-clong-desc { white-space: normal; }
}

/* ── v3.13.0: Language Switcher ───────────────────────────────── */
.rbp-lang-switcher {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  padding: 10px 16px 0;
  flex-wrap: wrap;
}
.rbp-lang-btn {
  background: transparent;
  border: 1.5px solid #e0e0e0;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  color: #666;
  transition: border-color .2s, color .2s, background .2s;
  font-family: inherit;
  white-space: nowrap;
  line-height: 1.5;
}
.rbp-lang-btn:hover {
  border-color: var(--rbp-slot-primary, #c0392b);
  color: var(--rbp-slot-primary, #c0392b);
}
.rbp-lang-btn.active {
  background: var(--rbp-slot-primary, #c0392b);
  border-color: var(--rbp-slot-primary, #c0392b);
  color: #fff;
  font-weight: 600;
}

/* ============================================================
   v3.14.0 — Split Section Layout
   ============================================================ */

/* Inner booking form column */
.rbp-booking-inner {
  min-width: 0;
}

/* Sidebar service cards column */
.rbp-booking-sidebar {
  min-width: 0;
}
.rbp-sidebar-inner {
  padding: 4px 0;
}
.rbp-sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}
.rbp-sidebar-services {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rbp-sidebar-svc-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.rbp-sidebar-svc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.10);
}
.rbp-sidebar-svc-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.rbp-sidebar-svc-bar {
  height: 4px;
  width: 100%;
}
.rbp-sidebar-svc-body {
  padding: 14px 16px;
}
.rbp-sidebar-svc-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}
.rbp-sidebar-svc-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 8px;
}
.rbp-sidebar-svc-price {
  font-size: 14px;
  font-weight: 700;
}

/* v3.15.2 — Sidebar service card selection + checkmark */
.rbp-sidebar-svc-card {
  position: relative;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.rbp-sidebar-svc-card.rbp-sidebar-selected {
  border: 2px solid var(--rbp-slot-primary, #c0392b);
  box-shadow: 0 0 0 2px rgba(192,57,43,.15);
}
.rbp-sidebar-svc-check {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rbp-slot-primary, #c0392b);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.rbp-sidebar-selected .rbp-sidebar-svc-check {
  display: block;
}

/* ============================================================
   v3.14.1 — Payment Widget: Price Breakdown & i18n strings
   ============================================================ */

/* Prepaid price breakdown row */
.rbp-pw-breakdown {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 14px;
  font-size: 14px;
}
.rbp-pw-original {
  color: #999;
  text-decoration: line-through;
}
.rbp-pw-arrow {
  color: #aaa;
}
.rbp-pw-final {
  color: #1a1a2e;
  font-size: 17px;
}

/* Discount badge */
.rbp-save-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
}

/* ============================================================
   v3.14.2 — Per-pax price breakdown panel
   ============================================================ */

.rbp-pb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
  color: #444;
  gap: 8px;
}
.rbp-pb-row:not(:last-child) {
  border-bottom: 1px dashed #e0e0e0;
}

/* ============================================================
   v3.17.0 — Enhanced Price Breakdown (Feature #5)
   ============================================================ */
.rbp-pb-header {
  cursor: pointer;
  padding: 8px 0;
  font-size: 14px;
  user-select: none;
}
.rbp-pb-details {
  border-top: 1px dashed #ddd;
  padding-top: 8px;
}
.rbp-pb-totals {
  border-top: 2px solid #ddd;
  margin-top: 8px;
  padding-top: 8px;
}
.rbp-pb-grand {
  font-size: 16px;
  font-weight: 700;
  padding: 8px 0;
  color: #c0392b;
}

/* ============================================================
   v3.17.0 — Realtime Booking Summary Panel (Feature #1)
   ============================================================ */
.rbp-live-summary {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
  position: sticky;
  top: 20px;
}
.rbp-live-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1a1a2e;
}
.rbp-live-row {
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}
.rbp-live-row:last-child {
  border-bottom: none;
}
.rbp-live-empty {
  font-size: 12px;
  color: #aaa;
  text-align: center;
  margin: 8px 0;
}
/* Single layout: sticky bottom bar */
.rbp-booking-inner--single .rbp-live-summary {
  position: sticky;
  bottom: 0;
  z-index: 10;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  border-radius: 12px 12px 0 0;
  background: #fff;
  margin-top: 16px;
  padding: 14px 20px;
}

/* ============================================
   v3.17.1 — Live Summary Table (Bug #3 fix)
   ============================================ */
.rbp-live-table {
  width: 100%;
  border-collapse: collapse;
}
.rbp-live-table td {
  padding: 6px 4px;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}
.rbp-live-table tr:last-child td {
  border-bottom: none;
}
.rbp-live-icon {
  width: 24px;
  font-size: 14px;
  text-align: center;
}
.rbp-live-label {
  color: #888;
  font-size: 12px;
  white-space: nowrap;
  padding-right: 8px;
  width: 60px;
}
.rbp-live-value {
  font-weight: 600;
  color: #333;
  word-break: break-word;
}

/* ============================================
   v3.17.1 — Age Group Grid (from inline to class)
   ============================================ */
.rbp-age-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rbp-age-group-grid--3col {
  grid-template-columns: 1fr 1fr 1fr;
}

/* ============================================
   v3.17.1 — Payment Summary in Step 3
   ============================================ */
.rbp-pay-summary .rbp-pb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
  color: #444;
  gap: 8px;
}

/* ============================================
   v3.17.2 — Payment Summary Note
   ============================================ */
.rbp-summary-note {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 4px solid #f39c12;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 12px;
  font-size: 12px;
  color: #795548;
  line-height: 1.6;
}

/* ============================================================
   v4.1.1 — Collapsible Summary Tab (attached to booking form)
   FIX: was position:fixed (stuck to viewport) — now position:absolute
   so the tab sits flush against the RIGHT edge of the booking form
   and scrolls with the page naturally.
   ============================================================ */

/* Enable absolute positioning context on the form wrapper */
.rbp-booking-inner {
  position: relative;
}
/* Allow the tab to protrude outside the form box on wide screens */
.rbp-booking-wrap {
  overflow: visible;
}

/* ── Desktop: tab attached to right edge of form ── */
.rbp-summary-tab {
  position: absolute;
  right: -44px;           /* width of toggle button — sits flush outside form */
  top: 100px;             /* offset below the step indicators */
  z-index: 100;           /* above form content, below WP admin bar (z:9999) */
  display: flex;
  align-items: flex-start;
  pointer-events: auto;
}
.rbp-summary-tab-toggle {
  background: var(--rbp-slot-primary, #c0392b);
  color: #fff;
  border: none;
  width: 44px;
  padding: 14px 7px;
  cursor: pointer;
  border-radius: 0 8px 8px 0;  /* rounded on right — tab sticks out from form */
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 3px 2px 10px rgba(0,0,0,.15);
  transition: background .2s, box-shadow .2s;
  flex-shrink: 0;
}
.rbp-summary-tab-toggle:hover {
  opacity: .9;
  box-shadow: 3px 4px 16px rgba(0,0,0,.2);
}
.rbp-tab-arrow {
  font-size: 10px;
  line-height: 1;
  transition: transform .3s;
}
.rbp-tab-label {
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Panel slides open to the RIGHT of the toggle button */
.rbp-summary-panel {
  width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-left: none;
  border-radius: 0 8px 8px 0;
  box-shadow: 4px 4px 20px rgba(0,0,0,.10);
  transition: width .3s ease, padding .3s ease;
  padding: 0;
  max-height: 70vh;
  overflow-y: auto;
  /* Scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}
.rbp-summary-panel::-webkit-scrollbar { width: 4px; }
.rbp-summary-panel::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.rbp-summary-panel.rbp-summary-open {
  width: 280px;
  padding: 16px 14px;
}

/* Flip the arrow when panel is open */
.rbp-summary-tab-toggle[aria-expanded="true"] .rbp-tab-arrow {
  transform: rotate(180deg);
}

/* ── Summary panel inner content ── */
.rbp-live-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #1a1a2e;
  border-bottom: 2px solid var(--rbp-slot-primary, #c0392b);
  padding-bottom: 6px;
}
.rbp-live-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.rbp-live-table td {
  padding: 5px 4px;
  vertical-align: top;
}
.rbp-live-empty {
  color: #999;
  font-size: 13px;
  font-style: italic;
  margin: 0;
}

/* Hide old sticky bottom bar — replaced by tab */
.rbp-booking-inner--single .rbp-live-summary { display: none !important; }

/* ── Mobile (≤ 600px): tab becomes sticky bottom bar ── */
@media (max-width: 600px) {
  /* Reset absolute positioning — use sticky bottom strip instead */
  .rbp-summary-tab {
    position: sticky;
    bottom: 0;
    right: auto;
    top: auto;
    left: 0;
    width: 100%;
    z-index: 200;
    flex-direction: column-reverse;  /* panel above toggle on mobile */
    align-items: stretch;
    filter: drop-shadow(0 -2px 8px rgba(0,0,0,.15));
  }
  .rbp-summary-tab-toggle {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    border-radius: 0;
    padding: 11px 16px;
    box-shadow: none;
  }
  .rbp-tab-label {
    writing-mode: horizontal-tb;
    font-size: 13px;
  }
  .rbp-tab-arrow {
    font-size: 13px;
  }
  /* Panel slides UP on mobile */
  .rbp-summary-panel {
    width: 100% !important;        /* full width on mobile always */
    border-radius: 12px 12px 0 0;
    border: 1px solid #e8e8e8;
    border-bottom: none;
    max-height: 0;
    padding: 0 16px;
    transition: max-height .35s ease, padding .3s ease;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(0,0,0,.10);
  }
  .rbp-summary-panel.rbp-summary-open {
    width: 100% !important;
    max-height: 55vh;
    padding: 14px 16px;
    overflow-y: auto;
  }
  /* booking-wrap must not clip the sticky tab */
  .rbp-booking-wrap {
    overflow: visible;
    padding-bottom: 52px;  /* space for sticky tab so last field isn't hidden */
  }
  .rbp-booking-inner {
    position: static;      /* reset on mobile — sticky handles positioning */
  }
}

/* ============================================
   v3.17.1 — Mobile Responsive Fixes (Bug #2)
   ============================================ */
@media (max-width: 600px) {
  .rbp-booking-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
  .rbp-panel {
    padding: 16px 14px;
  }
  .rbp-steps {
    padding: 14px 12px 10px;
  }
  .rbp-step {
    min-width: 28px;
  }
  .rbp-step-num {
    width: 28px;
    height: 28px;
    font-size: 12px;
    line-height: 28px;
  }
  .rbp-step-line {
    max-width: 30px;
  }
  .rbp-phone-group {
    flex-wrap: wrap;
  }
  .rbp-phone-code {
    width: 100%;
    margin-bottom: 6px;
  }
  .rbp-pay-row-inner {
    padding: 10px 12px;
    gap: 8px;
  }
  .rbp-pay-row-icon {
    font-size: 20px;
  }
  .rbp-pay-row-text strong {
    font-size: 13px;
  }
  .rbp-pay-row-text span {
    font-size: 11px;
  }
  .rbp-qr-wrap {
    flex-direction: column !important;
  }
  .rbp-qr-right {
    width: 100% !important;
  }
  .rbp-qr-left {
    width: 100% !important;
    display: flex;
    justify-content: center;
  }
  .rbp-btn-next, .rbp-btn-outline, .rbp-btn-book {
    padding: 10px 16px;
    font-size: 14px;
  }
  .rbp-sum-table td:nth-child(2) {
    width: auto;
  }
  .rbp-slot-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
  }
  .rbp-pkg-grid {
    grid-template-columns: 1fr !important;
  }
  .rbp-pkg-card {
    flex-direction: row !important;
  }
  .rbp-booking-sidebar {
    display: none;
  }
  .rbp-age-group-grid,
  .rbp-age-group-grid--3col {
    grid-template-columns: 1fr !important;
  }
  .rbp-live-table td {
    padding: 5px 2px;
    font-size: 12px;
  }
  .rbp-live-label {
    width: auto;
  }
  .rbp-input-icon > span:first-child {
    font-size: 14px;
  }
  .rbp-input-icon .rbp-input {
    padding-left: 32px;
  }
  .rbp-step-title {
    font-size: 15px;
  }
  .rbp-field label {
    font-size: 12px;
  }
  .rbp-input, .rbp-select {
    font-size: 14px;
    padding: 8px 12px;
  }
  .rbp-input-icon .rbp-input {
    padding-left: 32px;
  }
  .rbp-booking-form {
    border-radius: 0 0 8px 8px;
  }
  .rbp-svc-card img {
    height: 50px !important;
  }
  /* v4.1.1: summary panel width on mobile now handled by the dedicated mobile block above */
}

@media (max-width: 400px) {
  .rbp-panel {
    padding: 12px 10px;
  }
  .rbp-step-title {
    font-size: 14px;
  }
  .rbp-btn-next, .rbp-btn-outline {
    padding: 8px 12px;
    font-size: 13px;
  }
  .rbp-slot-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }
  .rbp-slot-btn {
    padding: 8px 6px !important;
    font-size: 12px !important;
  }
}
