/* ==========================================================================
   Regal Sightseeing Booking — Frontend Styles  v1.6.0
   Brand: Charcoal #3f4141 | Gold #b3a15f | White #ffffff
   ========================================================================== */

/* ---- Reset / scope ---- */
.rsb-wrap *,
.rsb-wrap *::before,
.rsb-wrap *::after { box-sizing: border-box; }

/* ---- Outer wrapper ---- */
.rsb-wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 16px 48px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #3f4141;
}

/* ---- Page header ---- */
.rsb-header {
  text-align: center;
  padding: 32px 0 20px;
  border-bottom: 1px solid #e2d9c5;
  margin-bottom: 20px;
}
.rsb-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: #3f4141;
  margin: 0 0 6px;
  letter-spacing: 0.4px;
}
.rsb-header p { font-size: 15px; color: #777; margin: 0; }


/* ---- Messages ---- */
.rsb-messages { margin-bottom: 16px; }
.rsb-notice {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.rsb-notice--error { background: #fdf3f3; border: 1px solid #f5c6c6; color: #c0392b; }
.rsb-notice--success { background: #f3fdf5; border: 1px solid #b2dfcc; color: #1a7a45; }
.rsb-notice ul { margin: 6px 0 0 18px; padding: 0; }
.rsb-notice ul li { margin-bottom: 3px; }

/* ---- Two-column form body ---- */
.rsb-form-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

/* ---- Row utilities ---- */
.rsb-row { display: grid; gap: 12px; margin-bottom: 14px; }
.rsb-row--2  { grid-template-columns: 1fr 1fr; }
/* Date (widest) | Time | Passengers */
.rsb-row--dtp { grid-template-columns: 5fr 3fr 2fr; }

/* ---- Form fields column ---- */
.rsb-form-fields {
  background: #fff;
  border: 1px solid #e2d9c5;
  border-radius: 8px;
  padding: 22px 22px 18px;
}

/* ---- Section titles ---- */
.rsb-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #b3a15f;
  margin: 20px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ede8da;
}
.rsb-section-title:first-child { margin-top: 0; }

/* ---- Individual field ---- */
.rsb-field { margin-bottom: 14px; }
.rsb-field:last-child { margin-bottom: 0; }
.rsb-field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #3f4141;
  margin-bottom: 5px;
  line-height: 1.4;
}
.rsb-required { color: #b3a15f; font-size: 13px; margin-left: 2px; }
.rsb-hint { color: #888; font-size: 13px; font-weight: 400; margin-left: 3px; }
.rsb-field-note { margin: 5px 0 0; font-size: 13px; color: #777; line-height: 1.5; }
.rsb-pax-limit-hint {
  display: inline-block;
  font-size: 11px;
  color: #b3a15f;
  font-weight: 400;
  margin-left: 3px;
}

/* ---- Inputs, selects, textarea ---- */
.rsb-field input[type="text"],
.rsb-field input[type="email"],
.rsb-field input[type="tel"],
.rsb-field input[type="number"],
.rsb-field input[type="time"],
.rsb-field select,
.rsb-field textarea {
  display: block;
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  color: #3f4141;
  background: #fdfdfc;
  border: 1px solid #ddd6c5;
  border-radius: 4px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.4;
}
.rsb-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b3a15f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.rsb-field textarea { resize: vertical; min-height: 60px; }
.rsb-field input::placeholder,
.rsb-field textarea::placeholder { color: #888; opacity: 1; }
.rsb-field input:focus,
.rsb-field select:focus,
.rsb-field textarea:focus {
  outline: none;
  border-color: #b3a15f;
  box-shadow: 0 0 0 3px rgba(179, 161, 95, 0.16);
}
.rsb-field input.rsb-error,
.rsb-field select.rsb-error,
.rsb-field textarea.rsb-error { border-color: #c0392b; }

/* ---- Tour info snippet ---- */
.rsb-tour-info {
  margin-top: 7px;
  padding: 8px 12px;
  background: #f9f7f1;
  border-radius: 4px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

/* ---- Checkboxes ---- */
.rsb-field--checkbox { margin-bottom: 10px; }
.rsb-checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 400 !important;
  font-size: 14px !important;
  color: #444 !important;
  line-height: 1.5;
}
.rsb-checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px; min-width: 16px;
  border: 2px solid #b3a15f;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  margin: 2px 0 0;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.12s ease;
}
.rsb-checkbox-label input[type="checkbox"]:checked {
  background: #b3a15f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 5l3.5 3.5L11 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 68%;
}
.rsb-checkbox-label input[type="checkbox"].rsb-error { border-color: #c0392b; }

/* =========================================================================
   RIGHT COLUMN — sidebar (sticky action panel)
   ========================================================================= */

.rsb-sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---- Booking Summary ---- */
.rsb-summary { background: #3f4141; border-radius: 8px; padding: 20px 18px; color: #fff; }
.rsb-summary__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #b3a15f;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(179,161,95,0.3);
}
.rsb-summary__empty {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 12px 0;
  line-height: 1.5;
}
.rsb-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.rsb-summary__row:last-child { margin-bottom: 0; }
.rsb-summary__label { font-size: 12px; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.7px; white-space: nowrap; padding-top: 1px; }
.rsb-summary__value { font-size: 14px; color: #fff; text-align: right; line-height: 1.4; }
.rsb-summary__divider { height: 1px; background: rgba(179,161,95,0.3); margin: 12px 0; }
.rsb-summary__row--total .rsb-summary__label { font-size: 12px; color: #b3a15f; font-weight: 700; }
.rsb-summary__total { font-size: 20px !important; font-weight: 700; color: #b3a15f !important; }
.rsb-summary__note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* ---- Sidebar note ---- */
.rsb-sidebar-note {
  background: #f9f7f1;
  border-left: 3px solid #b3a15f;
  border-radius: 0 4px 4px 0;
  padding: 11px 14px;
  font-size: 13px;
  color: #444;
  line-height: 1.6;
}
.rsb-sidebar-note strong { color: #3f4141; }

/* ---- Acknowledgements ---- */
.rsb-acks {
  background: #fff;
  border: 1px solid #e2d9c5;
  border-radius: 6px;
  padding: 14px 14px 8px;
}
.rsb-acks .rsb-field--checkbox:last-child { margin-bottom: 0; }

/* ---- Submit button ---- */
.rsb-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.7px;
  color: #3f4141;
  background: #b3a15f;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease;
}
.rsb-submit:hover { background: #c9b56c; box-shadow: 0 4px 14px rgba(179,161,95,0.38); }
.rsb-submit:active { transform: translateY(1px); }
.rsb-submit:disabled,
.rsb-submit.rsb-loading { opacity: 0.65; cursor: not-allowed; transform: none; }

/* =========================================================================
   Flatpickr theme overrides (charcoal header / gold accents)
   ========================================================================= */

.flatpickr-calendar {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  border: 1px solid #e2d9c5;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.flatpickr-months { background: #3f4141; border-radius: 6px 6px 0 0; }
.flatpickr-months .flatpickr-month { fill: #b3a15f; color: #b3a15f; }
.flatpickr-current-month,
.flatpickr-current-month input.cur-year { color: #b3a15f; }
.numInputWrapper span { color: #b3a15f; }
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg,
.flatpickr-prev-month svg,
.flatpickr-next-month svg { fill: #b3a15f; }
.flatpickr-weekdays { background: #f5f0e4; }
.flatpickr-weekday { background: #f5f0e4; color: #b3a15f; font-weight: 600; }
.flatpickr-day { border-radius: 4px; }
.flatpickr-day:hover { background: #f5f0e4; border-color: #e2d9c5; }
.flatpickr-day.selected,
.flatpickr-day.selected:hover { background: #b3a15f; border-color: #b3a15f; color: #fff; }
.flatpickr-day.today { border-color: #b3a15f; }
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover { color: #ccc; }
.rsb-field input.flatpickr-input { cursor: pointer; }

/* =========================================================================
   Thank-you page (enqueued on order-received page)
   ========================================================================= */

.rsb-thankyou { background: #fff; border: 1px solid #e2d9c5; border-radius: 6px; padding: 24px 28px; margin: 20px 0; max-width: 660px; }
.rsb-thankyou__title { color: #3f4141; font-size: 17px; font-weight: 700; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid #b3a15f; }
.rsb-thankyou__table { width: 100%; border-collapse: collapse; }
.rsb-thankyou__table th,
.rsb-thankyou__table td { padding: 8px 10px; text-align: left; font-size: 13px; border-bottom: 1px solid #f0ece3; }
.rsb-thankyou__table th { color: #3f4141; font-weight: 600; width: 42%; }
.rsb-thankyou__table td { color: #555; }
.rsb-thankyou__total-row th,
.rsb-thankyou__total-row td { font-weight: 700; font-size: 14px; color: #3f4141; border-top: 2px solid #b3a15f; border-bottom: none; padding-top: 12px; }
.rsb-thankyou__note { font-size: 12px; color: #888; margin: 14px 0 0; font-style: italic; }

/* =========================================================================
   Responsive — single column on mobile
   ========================================================================= */

@media (max-width: 760px) {
  .rsb-form-body { grid-template-columns: 1fr; }
  .rsb-sidebar { position: static; order: -1; }
  .rsb-row--dtp { grid-template-columns: 1fr 1fr; }
  .rsb-row--dtp .rsb-field:last-child { grid-column: 1 / -1; }
  .rsb-header h2 { font-size: 21px; }
  .rsb-form-fields { padding: 16px 14px 12px; }
}

@media (max-width: 480px) {
  .rsb-wrap { padding: 0 8px 28px; }
  .rsb-row--2 { grid-template-columns: 1fr; }
  .rsb-row--dtp { grid-template-columns: 1fr; }
  .rsb-header { padding: 22px 0 16px; }
  .rsb-thankyou { padding: 18px 14px; }
}

/* ---- Outside M25 / location note ---- */
.rsb-location-note {
  margin-top: 4px;
  padding: 11px 14px;
  background: #fdf8ef;
  border-left: 3px solid #b3a15f;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  color: #444;
  line-height: 1.55;
}
.rsb-location-note strong { color: #3f4141; }

/* Warning variant — no-key or validation issue */
.rsb-location-note--warn {
  background: #fdf3f3;
  border-left-color: #c0392b;
  color: #c0392b;
  margin-top: 8px;
}

/* ---- Google Places Autocomplete dropdown ----
   Force z-index so the dropdown appears above sticky headers, modals, and
   page-builder containers that use transform/filter (which create a stacking context). */
.pac-container {
  z-index: 99999 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  border: 1px solid #ddd6c5;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.pac-item {
  padding: 6px 10px;
  cursor: pointer;
  line-height: 1.5;
}
.pac-item:hover,
.pac-item-selected { background: #f5f0e4; }
.pac-item-query { color: #3f4141; font-weight: 600; }
.pac-matched { color: #b3a15f; }
.pac-icon { display: none; } /* hide Google's pin icon for a cleaner look */

/* ---- Error area below submit button (Part 1) ---- */
.rsb-submit-errors {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  background: #fdf3f3;
  border: 1px solid #f5c6c6;
  border-radius: 4px;
  font-size: 13px;
  color: #c0392b;
  line-height: 1.5;
}
.rsb-submit-errors__heading {
  font-weight: 700;
  margin: 0 0 4px;
}
.rsb-submit-errors p { margin: 0 0 4px; }
.rsb-submit-errors p:last-child { margin-bottom: 0; }
.rsb-submit-errors ul { margin: 2px 0 0 16px; padding: 0; }
.rsb-submit-errors li { margin-bottom: 2px; }

/* ==========================================================================
   CHECKOUT PAGE — scoped to body.rsb-checkout (RSB bookings only)
   ========================================================================== */

/* ---- Back to Booking button — RSB checkout only, rendered after pay button ---- */
body.rsb-checkout .rsb-checkout-back {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 12px 0 0;
  padding: 9px 14px;
  border: 1px solid #b3a15f;
  border-radius: 4px;
  background: #fff;
  color: #3f4141;
  font-size: 13px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.15s ease, color 0.15s ease;
}
body.rsb-checkout .rsb-checkout-back:hover,
body.rsb-checkout .rsb-checkout-back:focus {
  background: #b3a15f;
  color: #3f4141;
  text-decoration: none;
}
body.rsb-checkout .rsb-checkout-back:visited { color: #3f4141; }

/* Centred container — column layout left to the theme/WooCommerce default */
body.rsb-checkout .woocommerce {
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* "Your order" heading: styled as a unified card header that merges with #order_review */
body.rsb-checkout h3#order_review_heading {
  background: #3f4141;
  color: #b3a15f !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  padding: 12px 20px;
  margin: 24px 0 0 !important;
  border-radius: 8px 8px 0 0;
  border: 1px solid #3f4141;
}

/* Billing and additional fields — each a white card, stacked vertically */
body.rsb-checkout #customer_details .col-1,
body.rsb-checkout #customer_details .col-2 {
  float: none !important;
  width: auto !important;
  box-sizing: border-box !important;
  background: #fff;
  border: 1px solid #e2d9c5;
  border-radius: 8px;
  padding: 24px 24px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden; /* contain any internal floated WC form rows */
}

body.rsb-checkout #customer_details .col-1 { margin-bottom: 20px; }

/* Section headings inside billing card */
body.rsb-checkout .woocommerce-billing-fields > h3,
body.rsb-checkout .woocommerce-additional-fields > h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #b3a15f;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ede8da;
}

/* Labels */
body.rsb-checkout .woocommerce-checkout label,
body.rsb-checkout .woocommerce-checkout .form-row label {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #3f4141 !important;
  margin-bottom: 5px;
}

body.rsb-checkout .woocommerce-checkout .required { color: #b3a15f; }

/* Inputs, selects, textareas */
body.rsb-checkout .woocommerce-checkout input.input-text,
body.rsb-checkout .woocommerce-checkout input[type="text"],
body.rsb-checkout .woocommerce-checkout input[type="email"],
body.rsb-checkout .woocommerce-checkout input[type="tel"],
body.rsb-checkout .woocommerce-checkout input[type="password"],
body.rsb-checkout .woocommerce-checkout input[type="number"],
body.rsb-checkout .woocommerce-checkout select,
body.rsb-checkout .woocommerce-checkout textarea {
  display: block;
  width: 100%;
  padding: 9px 12px !important;
  font-size: 14px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #3f4141;
  background: #fdfdfc;
  border: 1px solid #ddd6c5 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.rsb-checkout .woocommerce-checkout input.input-text:focus,
body.rsb-checkout .woocommerce-checkout input[type="email"]:focus,
body.rsb-checkout .woocommerce-checkout input[type="tel"]:focus,
body.rsb-checkout .woocommerce-checkout select:focus,
body.rsb-checkout .woocommerce-checkout textarea:focus {
  outline: none !important;
  border-color: #b3a15f !important;
  box-shadow: 0 0 0 3px rgba(179,161,95,0.16) !important;
}

body.rsb-checkout .woocommerce-checkout .woocommerce-invalid input.input-text,
body.rsb-checkout .woocommerce-checkout .woocommerce-invalid select {
  border-color: #c0392b !important;
}

body.rsb-checkout .woocommerce-checkout input::placeholder,
body.rsb-checkout .woocommerce-checkout textarea::placeholder { color: #888; opacity: 1; }

body.rsb-checkout .woocommerce-checkout select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b3a15f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px !important;
  -webkit-appearance: none;
  appearance: none;
}

/* Reduce excessive default spacing */
body.rsb-checkout .woocommerce-checkout .form-row { margin-bottom: 12px; }

/* Order review card — top border/radius is handled by h3#order_review_heading */
body.rsb-checkout #order_review {
  background: #fff;
  border: 1px solid #e2d9c5;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 20px 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Order review table */
body.rsb-checkout .woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 4px;
}

body.rsb-checkout .woocommerce-checkout-review-order-table th,
body.rsb-checkout .woocommerce-checkout-review-order-table td {
  padding: 9px 0;
  font-size: 13px;
  color: #3f4141;
  border-bottom: 1px solid #f0ece3;
  text-align: left;
}

body.rsb-checkout .woocommerce-checkout-review-order-table thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b3a15f;
  border-bottom-color: #e2d9c5;
}

body.rsb-checkout .woocommerce-checkout-review-order-table .order-total th,
body.rsb-checkout .woocommerce-checkout-review-order-table .order-total td {
  font-weight: 700;
  font-size: 16px;
  color: #b3a15f;
  border-top: 2px solid #b3a15f;
  border-bottom: none;
  padding-top: 12px;
}

/* Booking details meta inside cart item */
body.rsb-checkout .cart_item .wc-item-meta {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

body.rsb-checkout .cart_item .wc-item-meta li {
  display: flex;
  gap: 4px;
  font-size: 13px;
  color: #777;
  margin-bottom: 2px;
  line-height: 1.4;
}

body.rsb-checkout .cart_item .wc-item-meta li p { margin: 0; }

body.rsb-checkout .cart_item .wc-item-meta .wc-item-meta-label {
  font-weight: 600;
  color: #3f4141;
  min-width: 110px;
}

/* Payment section — no negative margin so Direct Bank Transfer stays inside the card */
body.rsb-checkout #payment {
  background: #f9f7f1;
  border-top: 1px solid #e2d9c5;
  border-radius: 0 0 8px 8px;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
}

body.rsb-checkout #payment ul.payment_methods {
  margin: 0;
  padding: 12px 16px;
  list-style: none;
  border-bottom: 1px solid #e2d9c5;
}

body.rsb-checkout #payment ul.payment_methods li { padding: 6px 0; }

body.rsb-checkout #payment ul.payment_methods li label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #3f4141 !important;
  cursor: pointer;
}

body.rsb-checkout #payment .payment_box {
  background: #fff;
  margin: 6px 16px 8px;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 13px;
  color: #555;
  border: 1px solid #e2d9c5;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.rsb-checkout #payment .payment_box p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body.rsb-checkout #payment .payment_box p:last-child { margin-bottom: 0; }

body.rsb-checkout #payment .place-order {
  padding: 12px 16px 16px;
}

/* Book & Pay Securely button — Regal gold, full-width, contained */
body.rsb-checkout #place_order {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 14px 20px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #3f4141 !important;
  background: #b3a15f !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

body.rsb-checkout #place_order:hover {
  background: #c9b56c !important;
  box-shadow: 0 4px 14px rgba(179,161,95,0.38);
}

/* Mobile: restore square top corners on heading when stacked full-width */
@media (max-width: 760px) {
  body.rsb-checkout h3#order_review_heading {
    border-radius: 8px 8px 0 0;
  }
  body.rsb-checkout .woocommerce {
    padding: 0 8px;
  }
}

/* ==========================================================================
   THANK-YOU / ORDER RECEIVED PAGE — scoped to body.rsb-order-received
   ========================================================================== */

/* Default WooCommerce "Thank you. Your order has been received." notice — intentionally visible */

/* Page wrapper */
.rsb-thankyou-page {
  max-width: 700px;
  margin: 0 0 32px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---- Confirmation header block ---- */
.rsb-confirm {
  background: #3f4141;
  border-radius: 8px;
  padding: 32px 28px 28px;
  text-align: center;
  margin-bottom: 20px;
}

.rsb-confirm__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #b3a15f;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1;
}

.rsb-confirm__title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: 0.3px;
}

.rsb-confirm__subtitle {
  font-size: 15px;
  color: #b3a15f;
  margin: 0 0 10px;
  font-weight: 500;
}

.rsb-confirm__message {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.6;
}

/* ---- Booking summary card ---- */
.rsb-booking-card {
  background: #fff;
  border: 1px solid #e2d9c5;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.rsb-booking-card__head {
  background: #3f4141;
  color: #b3a15f;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  padding: 12px 20px;
}

.rsb-booking-card__table {
  width: 100%;
  border-collapse: collapse;
}

.rsb-booking-card__table th,
.rsb-booking-card__table td {
  padding: 9px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid #f0ece3;
  vertical-align: top;
}

.rsb-booking-card__table th {
  color: #3f4141;
  font-weight: 600;
  width: 42%;
  white-space: nowrap;
}

.rsb-booking-card__table td { color: #555; }

.rsb-booking-card__sep td {
  padding: 0;
  height: 2px;
  background: #e2d9c5;
  border-bottom: none;
}

.rsb-booking-card__total th,
.rsb-booking-card__total td {
  font-weight: 700;
  font-size: 15px;
  color: #b3a15f !important;
  border-bottom: none;
  border-top: 2px solid #b3a15f;
  padding-top: 12px;
  padding-bottom: 16px;
}

/* ---- Important notes ---- */
.rsb-important-notes {
  background: #f9f7f1;
  border-left: 3px solid #b3a15f;
  border-radius: 0 4px 4px 0;
  padding: 14px 16px;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}

.rsb-important-notes strong { color: #3f4141; }

/* ---- WooCommerce order details table below (card style) ---- */
body.rsb-order-received .woocommerce-order {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.rsb-order-received .woocommerce-order-overview.woocommerce-thankyou-order-details {
  background: #fff;
  border: 1px solid #e2d9c5;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

body.rsb-order-received .woocommerce-order-overview li {
  font-size: 13px;
  color: #3f4141;
  margin: 0;
  padding: 0;
  border: none !important;
}

body.rsb-order-received .woocommerce-order-overview li strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b3a15f;
  margin-bottom: 2px;
}

body.rsb-order-received .woocommerce-order-details {
  background: #fff;
  border: 1px solid #e2d9c5;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

body.rsb-order-received .woocommerce-order-details h2 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #b3a15f;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ede8da;
}

body.rsb-order-received .woocommerce-table--order-details {
  width: 100%;
  border-collapse: collapse;
}

body.rsb-order-received .woocommerce-table--order-details th,
body.rsb-order-received .woocommerce-table--order-details td {
  padding: 8px 0;
  font-size: 13px;
  color: #3f4141;
  border-bottom: 1px solid #f0ece3;
  text-align: left;
}

body.rsb-order-received .woocommerce-table--order-details tfoot tr:last-child th,
body.rsb-order-received .woocommerce-table--order-details tfoot tr:last-child td {
  font-weight: 700;
  color: #b3a15f;
  border-top: 2px solid #b3a15f;
  border-bottom: none;
  padding-top: 12px;
}

body.rsb-order-received .woocommerce-customer-details {
  background: #fff;
  border: 1px solid #e2d9c5;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

body.rsb-order-received .woocommerce-customer-details h2 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #b3a15f;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ede8da;
}

/* Mobile thank-you */
@media (max-width: 480px) {
  .rsb-confirm { padding: 24px 16px 20px; }
  .rsb-confirm__title { font-size: 18px; }
  .rsb-booking-card__table th,
  .rsb-booking-card__table td { padding: 8px 14px; }
  body.rsb-order-received .woocommerce-order-overview.woocommerce-thankyou-order-details {
    flex-direction: column;
  }
}

/* ==========================================================================
   CUSTOM THANK-YOU PAGE — [regal_sightseeing_thankyou] shortcode
   ========================================================================== */

/* Outer wrapper for the shortcode output */
.rsb-custom-thankyou {
  max-width: 720px;
  margin: 0 auto 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #3f4141;
}

/* Error state */
.rsb-custom-thankyou--error {
  background: #fdf3f3;
  border: 1px solid #f5c6c6;
  border-radius: 6px;
  padding: 20px 24px;
  color: #c0392b;
}

.rsb-custom-thankyou__error-msg {
  margin: 0;
  font-size: 15px;
}

/* ==========================================================================
   TOUR GRID — [regal_sightseeing_tours] shortcode
   ========================================================================== */

.rsb-tour-grid-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #3f4141;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 16px 40px;
  box-sizing: border-box;
}

/* Premium separator before Package Tours (and any non-first section) */
.rsb-tour-grid__separator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 56px 0 0;
}

.rsb-tour-grid__separator__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #d4c7a8 70%);
}

.rsb-tour-grid__separator__line--end {
  background: linear-gradient(90deg, #d4c7a8 30%, transparent 100%);
}

.rsb-tour-grid__separator__accent {
  color: #b3a15f;
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.9;
}

/* Section heading (Single Tours / Package Tours) — large and premium */
.rsb-tour-grid__section-title {
  margin: 52px 0 28px;
}
.rsb-tour-grid__section-title:first-child { margin-top: 0; }

/* Tighter top margin when a separator immediately precedes the heading */
.rsb-tour-grid__separator + .rsb-tour-grid__section-title {
  margin-top: 28px;
}

.rsb-tour-grid__section-title__heading {
  font-size: 34px;
  font-weight: 700;
  color: #3f4141;
  margin: 0 0 12px;
  letter-spacing: -0.3px;
  line-height: 1.15;
}

.rsb-tour-grid__section-title__line {
  height: 3px;
  width: 56px;
  background: linear-gradient(90deg, #b3a15f, #d4c27a, #b3a15f);
  border-radius: 2px;
  margin-bottom: 10px;
}

.rsb-tour-grid__section-title__sub {
  font-size: 14px;
  color: #888;
  margin: 0;
  line-height: 1.5;
}

/* Card grid */
.rsb-tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Individual card */
.rsb-tour-card {
  background: #fff;
  border: 1px solid #e2d9c5;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.18s ease, border-color 0.18s ease;
}

.rsb-tour-card:hover {
  box-shadow: 0 8px 28px rgba(63,65,65,0.14);
  transform: translateY(-3px);
  border-color: #b3a15f;
}

/* Card image — gradient placeholder or real photo.
   aspect-ratio: 16/9 keeps every card at the same visual proportion regardless of
   card width, so images with different original sizes are all cropped consistently. */
.rsb-tour-card__image {
  aspect-ratio: 16 / 9;
  min-height: 120px; /* fallback for older browsers that do not support aspect-ratio */
  background: linear-gradient(135deg, #3f4141 0%, #2e3030 60%, #1e2020 100%);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.rsb-tour-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.35s ease;
}

.rsb-tour-card:hover .rsb-tour-card__image img {
  transform: scale(1.04);
}

.rsb-tour-card__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #b3a15f 25%, #d4c27a 50%, #b3a15f 75%, transparent);
}

/* Card body */
.rsb-tour-card__body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rsb-tour-card__name {
  font-size: 20px;
  font-weight: 700;
  color: #3f4141;
  margin: 0 0 10px;
  line-height: 1.3;
}

.rsb-tour-card__duration {
  font-size: 15px;
  color: #666;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rsb-tour-card__dur-icon { color: #b3a15f; font-size: 8px; }

/* Price box */
.rsb-tour-card__prices {
  background: #f9f7f1;
  border: 1px solid #ede8da;
  border-radius: 6px;
  padding: 11px 14px;
  margin-bottom: 14px;
}
.rsb-tour-card__price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
}
.rsb-tour-card__price-label {
  font-size: 14px;
  color: #666;
  flex-shrink: 0;
  padding-right: 8px;
}
.rsb-tour-card__price-value {
  font-size: 20px;
  font-weight: 700;
  color: #3f4141;
}
.rsb-tour-card__price-row--mpv .rsb-tour-card__price-label { color: #b3a15f; }
.rsb-tour-card__price-row--mpv .rsb-tour-card__price-value { color: #b3a15f; font-size: 21px; }

/* Small note */
.rsb-tour-card__note {
  font-size: 14px;
  color: #666;
  margin: 0 0 16px;
  line-height: 1.55;
  flex: 1;
}

/* Book button */
.rsb-tour-card__btn {
  display: block;
  width: 100%;
  padding: 12px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #3f4141;
  background: #b3a15f;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: background 0.18s ease, box-shadow 0.18s ease;
  margin-top: auto;
}
.rsb-tour-card__btn:hover,
.rsb-tour-card__btn:visited {
  background: #c9b56c;
  box-shadow: 0 4px 12px rgba(179,161,95,0.38);
  color: #3f4141;
  text-decoration: none;
}

/* Responsive grid */
@media (max-width: 900px) {
  .rsb-tour-grid { grid-template-columns: repeat(2, 1fr); }
  .rsb-tour-grid__section-title__heading { font-size: 28px; }
}
@media (max-width: 540px) {
  .rsb-tour-grid { grid-template-columns: 1fr; }
  .rsb-tour-grid-wrap { padding: 0 8px 28px; }
  /* aspect-ratio: 16/9 is self-adjusting on single-column; no height override needed */
  .rsb-tour-card__image { min-height: 100px; }
  .rsb-tour-grid__section-title { margin-top: 36px; margin-bottom: 20px; }
  .rsb-tour-grid__section-title__heading { font-size: 24px; }
  .rsb-tour-grid__separator { margin-top: 40px; gap: 12px; }
}
