/* ============================================
   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) { width: 130px; }
.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: nowrap; text-align: center; }
@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: nowrap; text-align: center; }
@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 — v4.1.14 FIX: fixed col widths + aligned baseline */
/* v4.1.19: Summary info rows — flex layout matching Price Breakdown style */
.rbp-sum-rows { margin-bottom: 0; }
.rbp-sum-rows .rbp-pb-row { font-size: 13px; padding: 4px 0; align-items: baseline; }
.rbp-sum-rows .rbp-pb-row:not(:last-child) { border-bottom: 1px dashed #e0e0e0; }
/* Label: muted, smaller — mirrors .rbp-pbd-muted approach */
.rbp-sum-lbl { color: #888; font-size: 12px; font-weight: 400; flex-shrink: 0; min-width: 90px; }
/* Value: same weight/size as Price Breakdown values */
.rbp-sum-val  { color: #222; font-size: 13px; font-weight: 500; text-align: right; word-break: break-word; }
/* Info box container — mirrors .rbp-pbd border/radius/padding */
.rbp-sum-info-box {
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 0;
}

/* Keep table styles for any legacy usage */
.rbp-sum-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.rbp-sum-table tr { border-bottom: 1px solid #f0f0f0; }
.rbp-sum-table tr:last-child { border-bottom: none; }
.rbp-sum-table td { padding: 7px 6px; vertical-align: middle; word-break: break-word; }

/* v4.1.19 — Step 4 Review two-column layout (summary left, custom panel right) */
.rbp-review-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 16px;
}
.rbp-review-left { min-width: 0; }
.rbp-review-right { min-width: 0; }
.rbp-review-panel {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  height: 100%;
  box-sizing: border-box;
}
.rbp-review-panel h1,
.rbp-review-panel h2,
.rbp-review-panel h3,
.rbp-review-panel h4 { margin-top: 0; }
.rbp-review-panel p:last-child { margin-bottom: 0; }
.rbp-review-panel img { max-width: 100%; height: auto; border-radius: 6px; }
.rbp-review-panel a { color: inherit; }
.rbp-review-panel ul,
.rbp-review-panel ol { padding-left: 20px; margin: 8px 0; }
@media (max-width: 680px) {
  .rbp-review-layout { grid-template-columns: 1fr; }
}

/* 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;
  /* Base: 2 cols (default). JS + PHP inline style override with admin pkg_card_cols setting.
     Mobile ≤480px: 1fr 1fr via media query below. */
  grid-template-columns: repeat(2, 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 15px 0;
  flex-wrap: wrap;
  /* v4.4.7-fix: popup mode adds width:100% on the same element via .rbp-lang-popup-wrap.
     Without border-box, content-box themes add padding ON TOP of width:100%,
     making the element 30px wider than container → button overflows the right edge. */
  box-sizing: border-box;
}
/* v4.3.10: Position modifier classes.
   Explicit padding-left/right on every top variant — guarantees 15px L/R gap
   even if theme CSS specificity re-orders the base-class padding. */
.rbp-lang-sw--top-left    { justify-content: flex-start; padding-left: 15px; padding-right: 15px; }
.rbp-lang-sw--top-right   { justify-content: flex-end;   padding-left: 15px; padding-right: 15px; }
.rbp-lang-sw--top-center  { justify-content: center;     padding-left: 15px; padding-right: 15px; }
.rbp-lang-sw--bottom-left  { justify-content: flex-start; padding: 0 15px 10px; }
.rbp-lang-sw--bottom-right { justify-content: flex-end;   padding: 0 15px 10px; }
.rbp-lang-sw--bottom-center{ justify-content: center;     padding: 0 15px 10px; }
/* v4.3.10: Dropdown style */
.rbp-lang-select {
  background: transparent;
  border: 1.5px solid #e0e0e0;
  border-radius: 20px;
  padding: 4px 28px 4px 12px;
  font-size: 12px;
  cursor: pointer;
  color: #666;
  font-family: inherit;
  line-height: 1.5;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color .2s, color .2s;
}
.rbp-lang-select:hover,
.rbp-lang-select:focus {
  border-color: var(--rbp-slot-primary, #c0392b);
  color: var(--rbp-slot-primary, #c0392b);
  outline: none;
}
.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;
}

/* ── v4.3.10: Sticky Confirm button — Step 3 mobile ───────────────── */
/* On mobile, the p3 nav bar (Confirm & Pay) sticks to the bottom so the
   guest can always tap it without scrolling past price breakdown.
   Only applies inside #F-p3 panel — not on other panels. */
@media (max-width: 680px) {
  [id$="-p3"] > .rbp-step-nav:last-child,
  [id$="-p3"] .rbp-step-nav:last-of-type {
    position: sticky;
    bottom: 0;
    z-index: 50;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -3px 12px rgba(0,0,0,.10);
    padding: 10px 16px;
    margin-left: -28px;
    margin-right: -28px;
    margin-bottom: -24px;
    border-radius: 0;
    flex-direction: column;
    gap: 8px;
  }
  [id$="-p3"] > .rbp-step-nav:last-child button,
  [id$="-p3"] .rbp-step-nav:last-of-type button {
    width: 100%;
    justify-content: center;
  }
}

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

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

/* v4.3.11: Service selector shown only on mobile in split layout.
   Desktop: sidebar handles service display → hide this block.
   Mobile (≤680px): sidebar is hidden → show this block so user can still select a service. */
.rbp-svc-mobile-only {
  display: none;
}

/* 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;
}

/* ============================================
   v3.17.4 — Collapsible Summary Sidebar Tab
   ============================================ */
.rbp-summary-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  align-items: stretch;
}
.rbp-summary-tab-toggle {
  background: var(--rbp-slot-primary, #c0392b);
  color: #fff;
  border: none;
  padding: 14px 7px;
  cursor: pointer;
  border-radius: 8px 0 0 8px;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: -2px 0 12px rgba(0,0,0,.15);
  transition: background .2s;
}
.rbp-summary-tab-toggle:hover { opacity: .9; }
.rbp-tab-arrow { font-size: 10px; line-height: 1; }
.rbp-tab-label { writing-mode: vertical-rl; font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.rbp-summary-panel {
  width: 0;
  overflow: hidden;
  background: #fff;
  border-left: 2px solid #e8e8e8;
  box-shadow: -4px 0 24px rgba(0,0,0,.08);
  transition: width .3s ease, padding .3s ease;
  padding: 0;
}
.rbp-summary-panel.rbp-summary-open {
  width: 300px;
  padding: 16px 14px;
  overflow-y: auto;
  max-height: 80vh;
}
/* Hide old sticky bottom bar — replaced by tab */
.rbp-booking-inner--single .rbp-live-summary { display: none !important; }

/* ============================================
   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: nowrap; /* v4.3.28: keep dial code + number on ONE row always */
  }
  .rbp-phone-code {
    width: 100px;     /* narrower on mobile but still visible */
    min-width: 90px;
    margin-bottom: 0;
  }
  .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;
  }
  /* v4.3.11: Show service selector in split layout on mobile (sidebar is hidden above) */
  .rbp-svc-mobile-only {
    display: block;
  }
  .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;
  }
  .rbp-summary-panel.rbp-summary-open {
    width: 260px;
  }
}

@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;
  }
}

/* ═══════════════════════════════════════════════════════════
   v4.1.12 — ALL SEASONS BOOKING FLOW NEW STYLES
═══════════════════════════════════════════════════════════ */

/* ── Guest Table (Step 1) ── */
.rbp-guest-table {
  border: 1px solid var(--rbp-primary, #1a1a1a);
  border-radius: 8px;
  overflow: hidden;
}
.rbp-guest-row {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
}
.rbp-guest-row:last-child { border-bottom: none; }
.rbp-guest-total-row {
  background: #f7f6f3;
  border-top: 1px solid #ddd;
}
.rbp-guest-label {
  flex: 1;
  font-size: 13px;
}
.rbp-guest-sub {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 1px;
}
.rbp-guest-input {
  width: 64px !important;
  text-align: center !important;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  padding: 6px 8px !important;
  font-size: 14px !important;
  flex-shrink: 0;
}
.rbp-guest-total-val {
  width: 64px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--rbp-primary, #1a1a1a);
}

/* ── Lock Note ── */
.rbp-lock-note {
  border-left: 3px solid #d08020;
  padding: 8px 14px;
  margin: 8px 0;
  font-size: 12px;
  background: #fffaf4;
  border-radius: 0 6px 6px 0;
  color: #7a4a00;
}

/* ── Inline Time Picker (inside slot cards) ── */
.rbp-inline-times {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #ddd;
}
.rbp-it-label {
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
  text-align: center;
}
.rbp-it-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.rbp-it-btn {
  border: 1px solid #bbb;
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  background: #fff;
  color: #333;
  transition: all .15s;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
}
.rbp-it-btn:hover {
  border-color: var(--rbp-primary, #c0392b);
  background: #fff5f5;
}
.rbp-it-btn.rbp-it-active {
  background: var(--rbp-primary, #c0392b);
  color: #fff;
  border-color: var(--rbp-primary, #c0392b);
  font-weight: 700;
}
.rbp-it-btn.rbp-it-past {
  border: 1px dashed #ccc;
  color: #aaa;
  text-decoration: line-through;
  cursor: not-allowed;
  background: #f9f9f9;
}
.rbp-it-none {
  font-size: 12px;
  color: #c0392b;
  font-style: italic;
}

/* ── Guest Confirmation Box (Step 2) ── */
.rbp-guest-confirm-box {
  border: 1px solid #e0ddd5;
  border-radius: 8px;
  overflow: hidden;
  background: #fafaf8;
}
.rbp-gc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}
.rbp-gc-row:last-child { border-bottom: none; }
/* v4.1.15: Label stays left, count+desc grouped right */
.rbp-gc-label {
  color: #444;
  flex: 0 0 auto;
}
.rbp-gc-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.rbp-gc-count {
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
}
.rbp-gc-desc {
  color: #888;
  font-size: 11px;
}
.rbp-gc-row small {
  color: #888;
  margin-left: 6px;
}
.rbp-gc-total {
  background: #f0f0ec;
  font-weight: 700;
  border-top: 1px solid #ccc;
}

/* ── Step 5 Panel ── */
.rbp-pay-widget-outer {
  margin-top: 12px;
}

/* ── Payment Cards (Step 3) ── */
.rbp-pay-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 560px) {
  .rbp-pay-cards { grid-template-columns: 1fr; }
}
.rbp-pay-card {
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  background: #fff;
  position: relative;            /* v4.1.14: needed for absolute tick */
  transition: border-color .2s, box-shadow .2s, transform .15s;
  overflow: hidden;
}
.rbp-pay-card:hover {
  border-color: var(--rbp-primary, #c0392b);
  box-shadow: 0 6px 20px rgba(192,57,43,.13);
  transform: translateY(-2px);
}
.rbp-pay-card.rbp-pc-selected {
  border-color: var(--rbp-primary, #c0392b);
  border-width: 2.5px;
  background: #fff8f7;
  box-shadow: 0 8px 28px rgba(192,57,43,.18);
  transform: translateY(-2px);
}
/* v4.1.14: Selected checkmark tick on payment card */
.rbp-pc-sel-tick {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rbp-primary, #c0392b);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(192,57,43,.4);
  z-index: 2;
}
.rbp-pay-card.rbp-pc-selected .rbp-pc-sel-tick {
  opacity: 1;
  transform: scale(1);
}
.rbp-pc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.rbp-pc-title {
  font-size: 15px;
  font-weight: 700;
}
.rbp-pc-badge {
  font-size: 10px;
  font-weight: 600;
  border: 1px solid var(--rbp-primary, #c0392b);
  color: var(--rbp-primary, #c0392b);
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
}
/* v4.1.17: Pay-at-venue card badge — green tint, distinct from deposit */
.rbp-pc-badge--venue {
  border-color: #27ae60;
  color: #27ae60;
}
/* v4.1.17: Venue card hover accent */
.rbp-pay-card--venue:hover { border-color: #27ae60; box-shadow: 0 3px 10px rgba(39,174,96,.12); }
.rbp-pay-card--venue.rbp-pc-selected { border-color: #27ae60; background: #f0fff4; }
.rbp-pay-card--venue.rbp-pc-selected .rbp-pc-sel-tick { background: #27ae60; color: #fff; }
/* v4.1.17: Pay-at-venue note in price breakdown */
.rbp-pbd-venue-note {
  background: #f0fff4;
  border: 1px solid #a9dfbf;
  border-radius: 6px;
  padding: 10px 14px;
  color: #1e8449;
  font-size: 13px;
  margin-top: 10px;
}
.rbp-pc-desc {
  font-size: 12px;
  color: #666;
  margin: 4px 0 10px;
}
.rbp-pc-calc {
  border: 1px dashed #ccc;
  border-radius: 6px;
  padding: 8px 12px;
  background: #fafaf8;
  font-size: 12px;
}
.rbp-pc-calc-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}
.rbp-pc-muted { color: #888; }
.rbp-pc-calc-total {
  font-weight: 700;
  border-top: 1px solid #ccc;
  margin-top: 4px;
  padding-top: 4px;
}

/* ── Payment Card CTA Button ── */
.rbp-pc-cta {
  margin-top: 12px;
}
.rbp-pc-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: var(--rbp-primary, #c0392b);
  color: #fff;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  pointer-events: none;   /* card click handles selection — button is visual only */
  user-select: none;
}
.rbp-pc-cta-btn--venue {
  background: #27ae60;
}
.rbp-pc-cta-btn--prepaid {
  background: #2980b9;
}
/* When card is selected — darken CTA to show active state */
.rbp-pay-card.rbp-pc-selected .rbp-pc-cta-btn {
  opacity: 0.85;
}
/* On hover of unselected card — slight lift effect on CTA */
.rbp-pay-card:not(.rbp-pc-selected):hover .rbp-pc-cta-btn {
  opacity: 0.9;
}

/* ── Price Breakdown (Step 3) ── */
.rbp-pbd {
  border: 1.5px dashed var(--rbp-primary, #c0392b);  /* v4.1.14: dashed */
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
}
.rbp-pbd-title {
  font-weight: 700;
  margin-bottom: 8px;
}
.rbp-pbd-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}
.rbp-pbd-muted { color: #888; }
/* v4.4.22 NEW FORMULA — step-by-step section headers */
.rbp-pbd-section-head {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #888;
  margin: 10px 0 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid #eee;
}
.rbp-pbd-section-head:first-child { margin-top: 0; }
.rbp-pbd-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rbp-primary, #c0392b);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  margin-right: 4px;
  vertical-align: middle;
  line-height: 1;
}
/* Subtotal lines between steps */
.rbp-pbd-subtotal {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-weight: 600;
  border-top: 1px solid #eee;
  margin-top: 2px;
  color: #333;
}
/* Discount rows — green */
.rbp-pbd-green { color: #1a7a38 !important; }
/* Grand total row */
.rbp-pbd-grand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 2px solid var(--rbp-primary, #c0392b);
  font-size: 15px;
  font-weight: 700;
}
.rbp-pbd-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  border-top: 2px solid var(--rbp-primary, #1a1a1a);
  margin-top: 6px;
  padding-top: 6px;
}
.rbp-pbd-split {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #ccc;
}
.rbp-pbd-split-title {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 6px;
}

/* ── Payment Warning ── */
.rbp-pay-warning {
  border: 1px dashed #bbb;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 12px;
  color: #888;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════
   v4.1.13 — Luxury Service Cards
   ══════════════════════════════════════════════════════════════ */

.rbp-svc-luxury-grid {
  display: grid;
  /* Base: 2 cols (default). JS + PHP inline style override with admin svc_card_cols setting.
     Mobile ≤480px overrides via media query to horizontal stacked list. */
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
  align-items: stretch;
}

.rbp-svc-luxury-card {
  position: relative;
  border: 2px solid #e8e8e8;
  border-radius: 14px;
  padding: 0;
  cursor: pointer;
  background: #fff;
  text-align: left;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.rbp-svc-luxury-card:hover {
  border-color: var(--rbp-primary, #c0392b);
  box-shadow: 0 6px 24px rgba(192,57,43,.13);
  transform: translateY(-2px);
}

.rbp-svc-luxury-card.rbp-svc-selected,
.rbp-svc-luxury-card[data-selected="1"] {
  border-color: var(--rbp-primary, #c0392b);
  background: #fff8f7;
  box-shadow: 0 6px 24px rgba(192,57,43,.18);
}

/* ── Image area ── */
.rbp-svc-img-wrap {
  position: relative;
  width: 100%;
  height: 130px;
  overflow: hidden;
  flex-shrink: 0;
}

.rbp-svc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.rbp-svc-luxury-card:hover .rbp-svc-img {
  transform: scale(1.05);
}

.rbp-svc-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.28) 100%);
  pointer-events: none;
}

/* ── Color bar fallback (no image) ── */
.rbp-svc-color-bar {
  width: 100%;
  height: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rbp-svc-color-bar-icon {
  font-size: 24px;
  padding: 12px 0 8px;
  display: block;
  text-align: center;
  width: 100%;
}

/* ── Body ── */
.rbp-svc-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 5px;
  min-height: 0;
}

/* ── Badges row ── */
.rbp-svc-badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow: hidden;
  min-width: 0;
}

.rbp-svc-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
  letter-spacing: .2px;
  text-transform: uppercase;
  min-width: 0;
}

.rbp-svc-badge-perpax {
  background: #eef7ff;
  color: #1a73e8;
  border: 1px solid #c2dbff;
}

.rbp-svc-badge-fixed {
  background: #fdf3ff;
  color: #8b2fc9;
  border: 1px solid #e4c2ff;
}

.rbp-svc-badge-time {
  background: #f0f0f0;
  color: #555;
  border: 1px solid #ddd;
}

/* ── Name ── */
.rbp-svc-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Full description (clamped to 2 lines for card height consistency) ── */
.rbp-svc-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rbp-svc-desc p  { margin: 0 0 6px; }
.rbp-svc-desc p:last-child { margin-bottom: 0; }
.rbp-svc-desc ul,
.rbp-svc-desc ol { margin: 4px 0 6px 18px; padding: 0; }
.rbp-svc-desc li { margin-bottom: 3px; }
.rbp-svc-desc strong, .rbp-svc-desc b { color: #333; }
.rbp-svc-desc a   { color: var(--rbp-primary, #c0392b); text-decoration: underline; }
.rbp-svc-desc h2,
.rbp-svc-desc h3,
.rbp-svc-desc h4 { font-size: 13px; font-weight: 700; margin: 8px 0 4px; color: #333; }

/* ── Footer: price + select button ── */
.rbp-svc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: auto;
  padding-top: 7px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
  flex-wrap: nowrap;
  min-width: 0;
}

.rbp-svc-price {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.rbp-svc-select-btn {
  font-size: 11px;
  font-weight: 700;
  color: #bbb;
  transition: color .15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.rbp-svc-luxury-card:hover .rbp-svc-select-btn {
  color: var(--rbp-primary, #c0392b);
}

.rbp-svc-luxury-card.rbp-svc-selected .rbp-svc-select-btn,
.rbp-svc-luxury-card[data-selected="1"] .rbp-svc-select-btn {
  color: var(--rbp-primary, #c0392b);
}

/* ── Selected checkmark tick ── */
.rbp-svc-selected-tick {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rbp-primary, #c0392b);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(192,57,43,.4);
}

.rbp-svc-luxury-card.rbp-svc-selected .rbp-svc-selected-tick,
.rbp-svc-luxury-card[data-selected="1"] .rbp-svc-selected-tick {
  opacity: 1;
  transform: scale(1);
}

/* ─────────────────────────────────────────────────────────────
   Mobile ≤480px — Calendly/OpenTable horizontal list pattern
   [Icon 72px] | [Name + Badges + Desc] | [Price / Arrow]
   CSS-only — no HTML, JS, or logic changes.
   Desktop/tablet columns are controlled by admin setting via JS + inline style.
───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {

  /* Grid → vertical stack full-width */
  .rbp-svc-luxury-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* Card → horizontal row, fixed height */
  .rbp-svc-luxury-card {
    flex-direction: row;
    align-items: stretch;
    border-radius: 12px;
    min-height: 72px;
    height: auto;
    overflow: hidden;
  }
  .rbp-svc-luxury-card:hover {
    transform: none;
  }

  /* Image: fixed 72px square on the left */
  .rbp-svc-img-wrap {
    width: 72px;
    min-width: 72px;
    height: auto;
    min-height: 72px;
    flex-shrink: 0;
    border-radius: 0;
  }

  /* Color-bar fallback: same 72px square */
  .rbp-svc-color-bar {
    width: 72px;
    min-width: 72px;
    height: auto;
    min-height: 72px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
  }
  .rbp-svc-color-bar-icon {
    font-size: 26px;
    padding: 0;
    line-height: 1;
  }

  /* Body → flex column, content area with right space reserved for footer */
  .rbp-svc-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 8px 58px 8px 12px;
    gap: 3px;
    min-width: 0;
    overflow: hidden;
    position: relative;
  }

  /* Badges: HIDDEN on mobile — avoids wrap/overflow in narrow horizontal card */
  .rbp-svc-badges {
    display: none;
  }
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    -webkit-line-clamp: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  /* Name: 1 line, truncate */
  .rbp-svc-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    -webkit-line-clamp: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  /* Desc: short description — 1 line, replaces badges as secondary info */
  .rbp-svc-desc {
    font-size: 11px;
    color: #888;
    line-height: 1.3;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }

  /* Footer → absolute right panel inside body */
  .rbp-svc-footer {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: none;
    border-left: 1px solid #f0f0f0;
    padding: 0 8px;
    margin-top: 0;
    gap: 3px;
  }

  /* Price above arrow */
  .rbp-svc-price {
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
    flex: none;
    overflow: visible;
    text-overflow: clip;
  }

  /* Arrow */
  .rbp-svc-select-btn {
    font-size: 16px;
    font-weight: 400;
    color: #ccc;
    line-height: 1;
  }
  .rbp-svc-luxury-card:hover .rbp-svc-select-btn,
  .rbp-svc-luxury-card.rbp-svc-selected .rbp-svc-select-btn,
  .rbp-svc-luxury-card[data-selected="1"] .rbp-svc-select-btn {
    color: var(--rbp-primary, #c0392b);
  }

  /* Tick: over the icon area, vertically centered */
  .rbp-svc-selected-tick {
    top: 50%;
    right: auto;
    left: 48px;
    transform: translateY(-50%) scale(0.6);
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
  .rbp-svc-luxury-card.rbp-svc-selected .rbp-svc-selected-tick,
  .rbp-svc-luxury-card[data-selected="1"] .rbp-svc-selected-tick {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* Very small ≤360px — same horizontal, tighter icon */
@media (max-width: 360px) {
  .rbp-svc-img-wrap,
  .rbp-svc-color-bar {
    width: 60px;
    min-width: 60px;
  }
  .rbp-svc-body {
    padding-right: 48px;
  }
  .rbp-svc-footer {
    width: 40px;
    padding: 0 4px;
  }
  .rbp-svc-price {
    font-size: 9px;
  }
  .rbp-svc-selected-tick {
    left: 38px;
  }
}

/* ══════════════════════════════════════════════════════════════
   v4.1.14 — Trust Badges (Step 5)
   ══════════════════════════════════════════════════════════════ */

.rbp-trust-wrap {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fafafa;
  text-align: center;
}

.rbp-trust-custom-img {
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
}

.rbp-trust-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.rbp-trust-icon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  opacity: .85;
  transition: opacity .15s, transform .15s;
}

.rbp-trust-icon:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.rbp-trust-icon svg {
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.rbp-trust-icon small {
  font-size: 9px;
  color: #aaa;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.rbp-trust-text {
  margin: 4px 0 0;
  font-size: 11px;
  color: #999;
  line-height: 1.5;
}

/* ── Payment card selected tick (Bug #2 v4.1.14) ── */
/* Already defined above in pay-card block — no duplicate needed */

/* ── v4.3.3: Booking Confirmation Card ───────────────────────────────────── */
.rbp-confirm-card{background:#fff;border-radius:12px;box-shadow:0 4px 20px rgba(0,0,0,.08);max-width:520px;margin:16px auto 0;overflow:hidden;border:1px solid #eee}
.rbp-confirm-head{text-align:center;padding:28px 24px 20px}
.rbp-confirm-icon{font-size:52px;line-height:1;margin-bottom:8px}
.rbp-confirm-title{color:#27ae60;font-size:22px;font-weight:700;margin:0 0 6px}
.rbp-confirm-ref{color:#c0392b;font-size:20px;font-weight:700;margin:0;letter-spacing:.5px}
.rbp-confirm-divider{height:1px;background:#f0f0f0;margin:0}
.rbp-confirm-rows{padding:14px 24px}
.rbp-confirm-row{display:flex;align-items:baseline;gap:10px;padding:5px 0;font-size:14px;border-bottom:1px solid #fafafa}
.rbp-confirm-row:last-child{border-bottom:none}
.rbp-confirm-row-label{color:#999;min-width:96px;flex-shrink:0;font-size:11px;text-transform:uppercase;letter-spacing:.5px;padding-top:1px}
.rbp-confirm-row-val{color:#222;font-weight:500;word-break:break-word}
.rbp-confirm-row-val strong{color:#c0392b}
.rbp-confirm-msg{margin:0 16px 16px;padding:12px 14px;border-radius:8px;border-left:4px solid #ddd;font-size:13px;line-height:1.5;background:#fafafa}
.rbp-confirm-email-note{text-align:center;padding:8px 24px 20px;font-size:12px;color:#999}
/* ── v4.5.25: Globe popup — Language + Currency panel ── */
/* ══════════════════════════════════════════════════════════════════
   v5.4.28 Globe Popup — Professional 2-column panel
   Light theme, no scrollbar, 2-col on all screen sizes.
   Trigger: pill OR elegant square-icon style.
   ══════════════════════════════════════════════════════════════════ */

/* ── Wrapper ── */
.rbp-lang-popup-wrap {
  display: flex;
  align-items: center;
  overflow: visible;
  width: 100%;
}

/* ── CSS Variables for admin color overrides ── */
:root {
  --rbp-globe-trigger-bg:        #ffffff;
  --rbp-globe-trigger-color:     #222222;
  --rbp-globe-trigger-border:    rgba(0,0,0,.18);
  --rbp-globe-trigger-bg-hover:  #f5f5f5;
  --rbp-globe-check-color:       #1d9e5e;
}

/* ═══════════════════════════════════════════════════
   STYLE A — Pill trigger (default): "🌐 EN | USD ▲"
   ═══════════════════════════════════════════════════ */
.rbp-lang-popup-trigger.rbp-globe-trigger-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px 0 6px;
  border-radius: 19px;
  border: 1px solid var(--rbp-globe-trigger-border);
  background: var(--rbp-globe-trigger-bg);
  color: var(--rbp-globe-trigger-color);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  letter-spacing: 0;
  flex-shrink: 0;
}
.rbp-lang-popup-trigger.rbp-globe-trigger-pill:hover {
  background: var(--rbp-globe-trigger-bg-hover);
  border-color: rgba(0,0,0,.28);
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}
.rbp-lang-popup-trigger.rbp-globe-trigger-pill[aria-expanded="true"] {
  border-color: var(--rbp-globe-trigger-color);
  box-shadow: 0 0 0 2px rgba(0,0,0,.06);
}
.rbp-lang-popup-trigger.rbp-globe-trigger-pill .rbp-globe-icon {
  opacity: .55;
  flex-shrink: 0;
}
/* v5.4.34: Flag emoji before lang code (replaces country-code text badge from v5.4.30) */
.rbp-globe-trig-flag {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  /* Slight platform-quirk hedge: some emoji fonts render flags taller than expected.
     Constrain visual height with display:inline-flex and align baseline. */
  display: inline-flex;
  align-items: center;
  /* Prefer system color emoji rendering */
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","Twemoji Mozilla",
               "Android Emoji",sans-serif;
}
/* Backward-compat: keep .rbp-globe-trig-cc rule in case any markup still uses it */
.rbp-globe-trig-cc {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(0,0,0,.55);
  background: rgba(0,0,0,.05);
  padding: 3px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  line-height: 1;
  flex-shrink: 0;
}
.rbp-globe-trig-lang {
  font-weight: 700;
  color: inherit;
  letter-spacing: .02em;
}
.rbp-globe-trig-divider {
  color: rgba(0,0,0,.18);
  font-weight: 300;
  font-size: 13px;
  margin: 0 -2px;
}
.rbp-globe-trig-curr {
  color: inherit;
  font-weight: 500;
  opacity: .85;
  letter-spacing: .02em;
}
.rbp-globe-trig-arrow {
  opacity: .45;
  flex-shrink: 0;
  transition: transform .2s;
  margin-left: 1px;
}
.rbp-lang-popup-trigger.rbp-globe-trigger-pill[aria-expanded="true"] .rbp-globe-trig-arrow {
  transform: rotate(180deg);
}

/* ═══════════════════════════════════════════════════
   STYLE B — Elegant square trigger (when admin sets
   rbp_design_globe_trigger_style = 'elegant')
   Small square icon badge, no text labels, clean.
   ═══════════════════════════════════════════════════ */
.rbp-lang-popup-trigger.rbp-globe-trigger-elegant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--rbp-globe-trigger-border);
  background: var(--rbp-globe-trigger-bg);
  color: var(--rbp-globe-trigger-color);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s, transform .1s;
  flex-shrink: 0;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  position: relative;
}
.rbp-lang-popup-trigger.rbp-globe-trigger-elegant:hover {
  background: var(--rbp-globe-trigger-bg-hover);
  border-color: rgba(0,0,0,.35);
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
  transform: scale(1.04);
}
.rbp-lang-popup-trigger.rbp-globe-trigger-elegant[aria-expanded="true"] {
  border-color: var(--rbp-globe-trigger-color);
  box-shadow: 0 0 0 3px rgba(0,0,0,.07);
  transform: scale(1);
}
/* Active indicator dot */
.rbp-lang-popup-trigger.rbp-globe-trigger-elegant::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rbp-globe-check-color);
  border: 1.5px solid #fff;
  opacity: 0;
  transition: opacity .2s;
}
.rbp-lang-popup-trigger.rbp-globe-trigger-elegant[aria-expanded="true"]::after {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════
   STYLE C — Compact trigger (v5.4.32)
   Borderless, text-only "EN · USD ▾" — minimal footprint,
   blends into header. Uses same CSS vars so admin colors apply.
   ═══════════════════════════════════════════════════ */
.rbp-lang-popup-trigger.rbp-globe-trigger-compact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  border: none;
  /* v5.4.34 FIX: was hardcoded `transparent` — admin Design bg setting had no effect.
     Now consumes --rbp-globe-trigger-bg with `transparent` as fallback when var is unset.
     If admin doesn't set a custom bg, var resolves to its default (#ffffff) — but for
     compact we want transparent-by-default look. So use a SECOND fallback layer:
     Design class only emits the var when admin actually customized → otherwise
     `transparent` from this declaration's fallback layer is used. */
  background: var(--rbp-globe-trigger-bg-compact, transparent);
  color: var(--rbp-globe-trigger-color);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s, color .12s;
  white-space: nowrap;
  letter-spacing: .02em;
  flex-shrink: 0;
  line-height: 1;
}
.rbp-lang-popup-trigger.rbp-globe-trigger-compact:hover {
  background: rgba(0,0,0,.05);
}
.rbp-lang-popup-trigger.rbp-globe-trigger-compact[aria-expanded="true"] {
  background: rgba(0,0,0,.06);
}
.rbp-lang-popup-trigger.rbp-globe-trigger-compact .rbp-globe-trig-lang {
  font-weight: 700;
}
.rbp-lang-popup-trigger.rbp-globe-trigger-compact .rbp-globe-trig-curr {
  font-weight: 500;
  opacity: .8;
}
.rbp-globe-trig-dot {
  color: rgba(0,0,0,.3);
  font-weight: 700;
  font-size: 13px;
  margin: 0 -1px;
  line-height: 1;
}
.rbp-lang-popup-trigger.rbp-globe-trigger-compact .rbp-globe-trig-arrow {
  opacity: .45;
  flex-shrink: 0;
  transition: transform .2s;
  margin-left: 1px;
}
.rbp-lang-popup-trigger.rbp-globe-trigger-compact[aria-expanded="true"] .rbp-globe-trig-arrow {
  transform: rotate(180deg);
}

/* Fallback: old dark round trigger (backward compat, not used in popup style) */
.rbp-lang-popup-trigger:not(.rbp-globe-trigger-pill):not(.rbp-globe-trigger-elegant):not(.rbp-globe-trigger-compact) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  background: rgba(0,0,0,.28);
  color: #fff;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  padding: 0;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.3);
}

/* ── Panel ── */
.rbp-globe-panel {
  position: fixed;
  z-index: 999999;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,.05), 0 24px 64px rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.08);
  animation: rbpGlobeIn .18s cubic-bezier(.34,1.3,.64,1);
  overflow: hidden;
  /* width driven by content — positionPanel() reads actual offsetWidth */
  width: max-content;
  max-width: calc(100vw - 16px);
}
@keyframes rbpGlobeIn {
  from { opacity: 0; transform: translateY(-8px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes rbpGlobeOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-5px) scale(.97); }
}
.rbp-globe-panel.rbp-globe-closing {
  animation: rbpGlobeOut .14s ease forwards;
  pointer-events: none;
}

/* Panel inner */
.rbp-globe-panel-inner {
  padding: 0;
}

/* ── Panel header ── */
.rbp-globe-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.rbp-globe-panel-title {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.rbp-globe-panel-close {
  background: #f4f4f4;
  border: none;
  color: #555;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background .12s, color .12s;
  padding: 0;
  flex-shrink: 0;
}
.rbp-globe-panel-close:hover { background: #e8e8e8; color: #111; }

/* ── Two-column body — 2 cols on ALL screen sizes ── */
.rbp-globe-cols {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  /* NO overflow-y — no scrollbar, let content determine height */
}
.rbp-globe-col {
  padding: 14px 0 10px;
  /* removed overflow-y and max-height — no scrollbar */
}
.rbp-globe-col:first-child { padding-left: 0; }
.rbp-globe-col:last-child  { padding-right: 0; }
.rbp-globe-col-divider {
  background: #f0f0f0;
  width: 1px;
  margin: 10px 0;
  align-self: stretch;
}

/* Column head */
.rbp-globe-col-head {
  font-size: 10px;
  font-weight: 700;
  color: #999;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 0 16px 8px;
}

/* Option list */
.rbp-globe-opt-list {
  list-style: none;
  margin: 0;
  padding: 0 6px;
  display: flex;
  flex-direction: column;
}

/* Individual option row */
.rbp-globe-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .1s;
  outline: none;
  background: transparent;
  border: 1.5px solid transparent;
  min-width: 0;
}
.rbp-globe-opt:hover,
.rbp-globe-opt:focus {
  background: #f5f5f5;
}
.rbp-globe-opt.is-selected {
  border-color: #e5e5e5;
  background: #fafafa;
}

/* Icon */
.rbp-globe-opt-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rbp-globe-opt-icon--sym {
  font-size: 14px;
  font-weight: 700;
  background: #eef2ff;
  color: #3b6ef6;
  border-radius: 8px;
}
.rbp-globe-opt-icon--code {
  font-size: 10px;
  font-weight: 800;
  background: #f0f0f0;
  color: #555;
  border-radius: 8px;
}

/* Text body */
.rbp-globe-opt-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.rbp-globe-opt-name {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rbp-globe-opt-sub {
  font-size: 11px;
  color: #999;
  line-height: 1.2;
}

/* Checkmark — shown only when selected */
.rbp-globe-opt-check {
  display: none;
  color: var(--rbp-globe-check-color);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
}
.rbp-globe-opt.is-selected .rbp-globe-opt-check {
  display: flex;
}

/* ── Backdrop ── */
.rbp-globe-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.38);
  z-index: 999998;
  animation: rbpFadeIn .18s ease;
}
@keyframes rbpFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Mobile — bottom sheet but KEEP 2 columns ── */
@media (max-width: 600px) {
  .rbp-globe-panel {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0;
    animation: rbpGlobeUp .22s cubic-bezier(.34,1.2,.64,1);
  }
  @keyframes rbpGlobeUp {
    from { opacity:0; transform:translateY(100%); }
    to   { opacity:1; transform:translateY(0); }
  }
  .rbp-globe-panel.rbp-globe-closing {
    animation: rbpGlobeDown .18s ease forwards;
  }
  @keyframes rbpGlobeDown {
    from { opacity:1; transform:translateY(0); }
    to   { opacity:0; transform:translateY(100%); }
  }
  /* Keep 2-column layout on mobile (no stacking) */
  .rbp-globe-cols {
    grid-template-columns: 1fr 1px 1fr;
  }
  .rbp-globe-col-divider {
    width: 1px;
    height: auto;
    align-self: stretch;
    margin: 10px 0;
  }
  .rbp-globe-opt-name { font-size: 12px; }
  .rbp-globe-opt-sub  { font-size: 10px; }
  .rbp-globe-opt      { padding: 8px 8px; gap: 7px; }
  .rbp-globe-opt-icon { font-size: 18px; width: 26px; height: 26px; }
  .rbp-globe-opt-icon--sym, .rbp-globe-opt-icon--code { font-size: 11px; }
  .rbp-globe-panel-inner::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 10px auto 0;
  }
  .rbp-globe-col-head { padding: 0 10px 6px; font-size: 9px; }
}

/* ── Luxury skin overrides ── */
/* v5.4.31 FIX: was using !important on background/color/border which silently
   killed all admin Design color settings. Now we only override the CSS variable
   *defaults* scoped to .rbp-lux. If admin saves any value in Design tab, the
   inline <style> from RBP_Design::output_css() writes :root{ --rbp-globe-... }
   which has equal specificity but appears LATER in the cascade, so it wins.
   Result: luxury skin keeps its dark trigger by default; admin overrides apply. */
.rbp-lux {
  --rbp-globe-trigger-bg:        rgba(0,0,0,.22);
  --rbp-globe-trigger-color:     #ffffff;
  --rbp-globe-trigger-border:    rgba(255,255,255,.35);
  --rbp-globe-trigger-bg-hover:  rgba(0,0,0,.36);
}

/* ── v4.3.10: Sticky Confirm button — Step 3 mobile ───────────────── */
/* On mobile, the p3 nav bar (Confirm & Pay) sticks to the bottom so the
   guest can always tap it without scrolling past price breakdown.
   Only applies inside #F-p3 panel — not on other panels. */
@media (max-width: 680px) {
  [id$="-p3"] > .rbp-step-nav:last-child,
  [id$="-p3"] .rbp-step-nav:last-of-type {
    position: sticky;
    bottom: 0;
    z-index: 50;
    background: #fff;
}

/* ══════════════════════════════════════════════════════════════════
   v4.4.12 — [rbp_booking_confirmation] Thank-You Page Shortcode
   Width is 20% wider than standard confirm card (520px → 624px)
   ══════════════════════════════════════════════════════════════════ */

/* Outer wrapper — centers the card on the page */
.rbp-ty-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 624px;
  margin: 32px auto;
  padding: 0 16px 40px;
}

/* Hero banner (emoji + business name + tagline) */
.rbp-ty-hero {
  text-align: center;
  padding: 36px 24px 28px;
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  border-radius: 16px 16px 0 0;
  color: #fff;
}
.rbp-ty-hero-icon  { font-size: 56px; line-height: 1; margin-bottom: 10px; }
.rbp-ty-hero-biz   { font-size: 13px; font-weight: 600; opacity: .8; letter-spacing: 1px;
                      text-transform: uppercase; margin-bottom: 6px; }
.rbp-ty-hero-title { font-size: 26px; font-weight: 700; margin: 0 0 4px; }
.rbp-ty-hero-sub   { font-size: 14px; opacity: .85; margin: 0; }

/* Status badge strip */
.rbp-ty-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
}
.rbp-ty-status-bar.is-confirmed { background: #eafaf1; color: #1e8449; border-left: 4px solid #27ae60; }
.rbp-ty-status-bar.is-pending   { background: #fef9e7; color: #b7770d; border-left: 4px solid #f39c12; }
.rbp-ty-status-bar.is-other     { background: #f2f3f4; color: #555;    border-left: 4px solid #bbb; }

/* Main card body */
.rbp-ty-card {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-top: none;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 6px 28px rgba(0,0,0,.08);
  overflow: hidden;
}

/* Section headings inside card */
.rbp-ty-section {
  padding: 16px 24px 4px;
  border-top: 1px solid #f0f0f0;
}
.rbp-ty-section:first-child { border-top: none; }
.rbp-ty-section-head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #999;
  margin: 0 0 10px;
}

/* Data rows */
.rbp-ty-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid #fafafa;
}
.rbp-ty-row:last-child { border-bottom: none; }
.rbp-ty-row-label {
  color: #aaa;
  min-width: 120px;
  flex-shrink: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.rbp-ty-row-val { color: #222; font-weight: 500; word-break: break-word; }
.rbp-ty-ref-val { color: #c0392b; font-size: 18px; font-weight: 700; letter-spacing: .5px; }

/* Payment summary section */
.rbp-ty-pay-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px solid #fafafa;
}
.rbp-ty-pay-row:last-child { border-bottom: none; }
.rbp-ty-pay-row.is-total { font-weight: 700; font-size: 15px; color: #c0392b; }

/* What's next steps */
.rbp-ty-next { list-style: none; margin: 0; padding: 0; }
.rbp-ty-next li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid #fafafa;
}
.rbp-ty-next li:last-child { border-bottom: none; }
.rbp-ty-next-num {
  background: #c0392b;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  min-width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

/* CTA button row */
.rbp-ty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 24px;
  border-top: 1px solid #f0f0f0;
}
.rbp-ty-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .15s;
}
.rbp-ty-btn:hover { opacity: .85; text-decoration: none; }
.rbp-ty-btn-primary   { background: #c0392b; color: #fff; }
.rbp-ty-btn-secondary { background: #f0f0f0; color: #333; }
.rbp-ty-btn-outline   { background: transparent; color: #c0392b; border: 2px solid #c0392b; }

/* Footer strip inside card */
.rbp-ty-footer {
  text-align: center;
  padding: 14px 24px 20px;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
  color: #aaa;
  line-height: 1.6;
}
.rbp-ty-footer a { color: #999; text-decoration: none; }
.rbp-ty-footer a:hover { color: #555; }

/* Countdown bar */
.rbp-ty-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 24px 20px;
  padding: 12px 18px;
  background: #f0f7ff;
  border-radius: 10px;
  font-size: 13px;
  color: #555;
  border: 1px solid #cde4f7;
}
.rbp-ty-countdown strong { color: #2471a3; font-size: 15px; }
.rbp-ty-countdown a { color: #c0392b; font-weight: 600; }

/* Skeleton / loading state */
.rbp-ty-loading {
  text-align: center;
  padding: 60px 24px;
  color: #aaa;
  font-size: 14px;
}

/* Error / not found */
.rbp-ty-error {
  text-align: center;
  padding: 48px 24px;
  color: #c0392b;
  font-size: 14px;
  line-height: 1.6;
}
.rbp-ty-error-icon { font-size: 40px; margin-bottom: 10px; }

@media (max-width: 640px) {
  .rbp-ty-wrap         { margin: 16px auto; padding: 0 8px 24px; }
  .rbp-ty-hero         { padding: 26px 16px 20px; border-radius: 12px 12px 0 0; }
  .rbp-ty-hero-title   { font-size: 20px; }
  .rbp-ty-section,
  .rbp-ty-actions      { padding-left: 16px; padding-right: 16px; }
  .rbp-ty-row-label    { min-width: 90px; }
  .rbp-ty-countdown    { margin-left: 16px; margin-right: 16px; }
  .rbp-ty-actions      { flex-direction: column; }
  .rbp-ty-btn          { justify-content: center; }
}
