/* ============================================
   Trek Booking — Frontend Styles
   ============================================ */

/* ============================================
   Design tokens
   --------------------------------------------
   Each token inherits from a theme / page-builder CSS variable when one is
   defined (so a theme can drive the plugin's look), falling back to a brand
   default otherwise. Every reference has a fallback, so nothing breaks on a
   theme that defines none of these. The rest of the stylesheet only ever
   reads the --tb-* tokens below.
   ============================================ */
:root {
  /* Brand */
  --tb-primary: var(--primary, #76a641);
  --tb-secondary: var(--secondary, #0f4169);
  --tb-form-bg: var(--light-grey, #efefef);

  /* Neutrals */
  --tb-light: var(--light, #fff);
  --tb-grey: var(--grey, #6b7280);
  --tb-light-d-2: var(--light-d-2, #e2e4e7);
  --tb-bookbar-bg: #ebebeb;
  --tb-danger: var(--danger, #c0392b);

  /* Spacing */
  --tb-space-3xs: var(--brxw-space-3xs, 4px);
  --tb-space-xs: var(--brxw-space-xs, 8px);
  --tb-space-s: var(--brxw-space-s, 12px);
  --tb-space-m: var(--brxw-space-m, 16px);
  --tb-space-l: var(--brxw-space-l, 24px);
  --tb-space-xl: var(--brxw-space-xl, 32px);
  --tb-space-2xl: var(--brxw-space-2xl, 48px);
  --tb-space-3xl: var(--brxw-space-3xl, 64px);
  --tb-content-gap: var(--brxw-content-gap, 12px);
  --tb-container-gap: var(--brxw-container-gap, 48px);

  /* Type */
  --tb-text-xs: var(--brxw-text-xs, 0.75rem);
  --tb-text-s: var(--brxw-text-s, 0.875rem);
  --tb-text-2xl: var(--brxw-text-2xl, 1.5rem);

  /* Radius / layout */
  --tb-radius-m: var(--brxw-radius-m, 12px);
  --tb-radius-full: var(--brxw-radius-full, 999px);
  --tb-grid-2-1: var(--brxw-grid-2-1, 2fr 1fr);
  --tb-container-width: var(--brxw-container-width, 1440px);
  --tb-transition: var(--brxw-transition-m, 0.35s);
}

/* ----------------------------------------------------------------
   Buttons — mirror the Bricks .bricks-button look (pill shape, Inter,
   token-driven padding / fluid sizing, 2px border) without depending on
   Bricks' own classes. Variants map to the filled-primary, filled-secondary
   and outline-secondary buttons used across the plugin.
   ---------------------------------------------------------------- */
.tb-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
  padding: var(--tb-space-s) var(--tb-space-xl);
  border: 2px solid transparent;
  border-radius: 100px;
  background-color: transparent;
  color: var(--tb-light);
  font-family: "Inter", sans-serif;
  font-size: var(--tb-text-s);
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.5px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--tb-transition);
}
.tb-btn--primary {
  background-color: var(--tb-primary);
  border-color: var(--tb-primary);
  color: var(--tb-light);
}
.tb-btn--primary:hover {
  background-color: #53742e;
  border-color: #53742e;
}
.tb-btn--secondary {
  background-color: var(--tb-secondary);
  border-color: var(--tb-secondary);
  color: var(--tb-light);
}
.tb-btn--secondary:hover {
  background-color: #0b2e4a;
  border-color: #0b2e4a;
}
.tb-btn--outline {
  background-color: transparent;
  border-color: var(--tb-secondary);
  color: var(--tb-secondary);
}
.tb-btn--outline:hover {
  background-color: var(--tb-secondary);
  color: var(--tb-light);
}
.tb-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Notices ---------- */
.tb-notice {
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 24px;
  border-left: 4px solid;
}
.tb-notice--success {
  background: #f0fdf4;
  border-color: #15803d;
  color: #14532d;
}
.tb-notice--warning {
  background: #fffbeb;
  border-color: #d97706;
  color: #78350f;
}
.tb-notice h2 {
  margin-top: 0;
}

/* ---------- Confirmation table ---------- */
.tb-confirmation-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 480px;
  margin-top: 12px;
}
.tb-confirmation-table th,
.tb-confirmation-table td {
  padding: 10px 12px;
  border: 1px solid #d1fae5;
  text-align: left;
}
.tb-confirmation-table th {
  background: #dcfce7;
  font-weight: 600;
  width: 40%;
}

/* ---------- Booking box ---------- */
.tb-booking-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 24px;
}
.tb-booking-box h2 {
  margin-top: 0;
  font-size: 1.25em;
  margin-bottom: 16px;
}
.tb-booking-box h3 {
  font-size: 1em;
  margin-bottom: 12px;
}

/* ---------- Form fields ---------- */
.tb-field {
  margin-bottom: 14px;
}
.tb-field label {
  display: block;
  font-weight: 600;
  font-size: 0.875em;
  margin-bottom: 4px;
  color: #374151;
}
.tb-field label span[aria-hidden] {
  color: #dc2626;
  margin-left: 2px;
}
.tb-field input,
.tb-field select,
.tb-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-size: 0.9375em;
  color: #111827;
  background: #fff;
  transition: border-color 0.15s;
}
.tb-field input:focus,
.tb-field select:focus,
.tb-field textarea:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.tb-field-hint {
  font-size: 0.8em;
  color: #6b7280;
  margin: 4px 0 0;
}
.tb-field-row {
  display: flex;
  gap: 12px;
}
.tb-field-row .tb-field {
  flex: 1;
}

/* ---------- Price summary ---------- */
.tb-price-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 1em;
}
.tb-price-label {
  font-weight: 600;
  color: #374151;
}
.tb-price-total {
  font-size: 1.25em;
  font-weight: 700;
  color: #0d9488;
}

/* ---------- Error message ---------- */
.tb-error-message {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 5px;
  color: #991b1b;
  padding: 10px 14px;
  font-size: 0.9em;
  margin-bottom: 12px;
}

/* ---------- Submit button ---------- */
.tb-submit-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: #0d9488;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}
.tb-submit-btn:hover {
  background: #0f766e;
}
.tb-submit-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.tb-payment-note {
  font-size: 0.8em;
  color: #6b7280;
  text-align: center;
  margin-top: 10px;
}

/* ---------- Archive ---------- */
.tb-archive {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}
.tb-archive-header {
  margin-bottom: 24px;
}
.tb-archive-title {
  font-size: 2em;
}

/* ---------- Filters ---------- */
.tb-filters {
  margin-bottom: 28px;
}
.tb-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.tb-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tb-filter-group label {
  font-size: 0.8em;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tb-filter-group select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-size: 0.9375em;
  background: #fff;
}
.tb-filter-clear {
  font-size: 0.875em;
  color: #6b7280;
  text-decoration: underline;
  align-self: flex-end;
}

/* ---------- Trek grid ---------- */
.tb-trek-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

/* ---------- Trek card ---------- */
.tb-trek-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.tb-trek-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.tb-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.tb-card-image {
  position: relative;
  overflow: hidden;
}
.tb-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.tb-trek-card:hover .tb-card-image img {
  transform: scale(1.04);
}
.tb-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
}
.tb-badge--soldout {
  background: #dc2626;
  color: #fff;
}
.tb-card-body {
  padding: 16px;
}
.tb-card-title {
  font-size: 1.1em;
  margin: 0 0 8px;
}
.tb-card-excerpt {
  font-size: 0.875em;
  color: #6b7280;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tb-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.tb-card-meta-item {
  font-size: 0.8em;
  background: #f3f4f6;
  padding: 3px 8px;
  border-radius: 4px;
  color: #4b5563;
}
.tb-next-dep {
  background: #ecfdf5;
  color: #065f46;
}
.tb-card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}
.tb-price-from,
.tb-price-per {
  font-size: 0.8em;
  color: #6b7280;
}
.tb-price-amount {
  font-size: 1.1em;
  font-weight: 700;
  color: #0d9488;
}

/* ---------- No treks ---------- */
.tb-no-treks {
  color: #6b7280;
  font-style: italic;
  text-align: center;
  padding: 40px 0;
}

/* ============================================
   Stepped Booking Flow (v1.1)
   ============================================ */

/* ---------- Gravity Forms page-steps pager (styled like step pills) ---------- */
.tb-booking-step-page .gf_page_steps {
  display: flex !important;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0 !important;
  /* !important: GF's default adds a border-bottom under the steps; without it
     our plain `border: 0` lost the cascade and the line showed through. */
  border: 0 !important;
  box-shadow: none !important;
}
.tb-booking-step-page .gf_step {
  flex: 1 !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 12px 18px;
  background: #fff !important;
  border: 1px solid #e2e5e8 !important;
  border-radius: 8px !important;
  font-size: 0.95em;
  font-weight: 600;
  opacity: 1 !important;
  min-height: 0;
}
.tb-booking-step-page .gf_step::before,
.tb-booking-step-page .gf_step::after {
  display: none !important;
}
.tb-booking-step-page .gf_step_label {
  color: #9aa1a9 !important;
}
.tb-booking-step-page .gf_step_number {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50% !important;
  background: #cfd4da !important;
  color: #fff !important;
  font-size: 0.8em;
  font-weight: 700;
  border: 0 !important;
}
.tb-booking-step-page .gf_step_number::before,
.tb-booking-step-page .gf_step_number::after {
  display: none !important;
}
/* Completed step — white pill, green outline + green number. */
.tb-booking-step-page .gf_step_completed {
  border-color: var(--tb-primary) !important;
}
.tb-booking-step-page .gf_step_completed .gf_step_label {
  color: var(--tb-primary) !important;
}
.tb-booking-step-page .gf_step_completed .gf_step_number {
  background: var(--tb-primary) !important;
  color: #fff !important;
}
/* Active step — green filled, white label + white number circle. */
.tb-booking-step-page .gf_step_active {
  background: var(--tb-primary) !important;
  border-color: var(--tb-primary) !important;
}
.tb-booking-step-page .gf_step_active .gf_step_label {
  color: #fff !important;
}
.tb-booking-step-page .gf_step_active .gf_step_number {
  background: #fff !important;
  color: var(--tb-primary) !important;
}
/* Stack the step pills on small screens so they don't overflow. */
@media (max-width: 600px) {
  .tb-booking-step-page .gf_page_steps {
    flex-wrap: wrap;
  }
  .tb-booking-step-page .gf_step {
    flex: 1 1 100% !important;
  }
}

/* ---------- Step 2 page ---------- */
.tb-booking-step-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ---------- Trek summary card ---------- */
.tb-trek-summary {
  display: flex;
  gap: 20px;
  align-items: stretch;
  background: #eceef0;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 22px;
}
.tb-trek-summary-thumb {
  flex: 0 0 150px;
  background: #cfd3d7;
  border-radius: 8px;
  overflow: hidden;
  min-height: 140px;
}
.tb-trek-summary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tb-trek-summary-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tb-trek-summary-body h1 {
  margin: 0;
  font-size: 1.5em;
  color: var(--tb-secondary);
}
.tb-trek-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tb-summary-chip {
  background: #fff;
  border: 1px solid #e2e5e8;
  border-radius: 8px;
  padding: 8px 12px;
}
.tb-summary-chip__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72em;
  color: #6b7280;
  margin-bottom: 4px;
}
.tb-summary-chip__label svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}
.tb-summary-chip__value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--tb-secondary);
}
/* Total chip — green outline + the verified badge pushed to the right. */
.tb-summary-chip--total {
  border-color: var(--tb-primary);
}
.tb-summary-chip--total .tb-summary-chip__value svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-left: auto;
}
.tb-trek-summary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tb-summary-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e2e5e8;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--tb-primary);
  font-weight: 600;
  text-decoration: none;
  border-color: var(--tb-primary);
}
.tb-summary-change:hover {
  background: var(--tb-primary);
  color: #fff;
}

@media (max-width: 600px) {
  .tb-trek-summary {
    flex-direction: column;
  }
  .tb-trek-summary-thumb {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
  }
  .tb-trek-summary-thumb img {
    height: 180px;
  }
  .tb-trek-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tb-trek-summary-actions {
    grid-template-columns: 1fr;
  }
}

/* ---------- Step form card ---------- */
.tb-step-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px; /* match the trek summary card above */
}

/* ---------- Traveller rows (injected above the GF form) ---------- */
.tb-travellers {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}
.tb-travellers-heading {
  font-size: 1.25em;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--tb-secondary);
}
.tb-traveller-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.tb-traveller-label {
  flex: 0 0 100px;
  margin: 0; /* drop inherited label margin so it centres against the inputs */
  white-space: nowrap; /* keep "Traveller N" on one line */
  line-height: 1.3;
  font-size: 0.95em;
  color: var(--tb-secondary);
  font-weight: 600;
}
.tb-traveller-fields {
  flex: 1;
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 10px;
  min-width: 0;
}
.tb-traveller-fields select,
.tb-traveller-fields input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid #d8dde2;
  border-radius: 10px;
  font-size: 0.95em;
  color: #111827;
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.tb-traveller-fields select:focus,
.tb-traveller-fields input:focus {
  outline: none;
  border-color: var(--tb-primary);
  box-shadow: 0 0 0 3px rgba(118, 166, 65, 0.15);
}

@media (max-width: 600px) {
  .tb-traveller-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .tb-traveller-label {
    flex: 0 0 auto;
  }
  .tb-traveller-fields {
    grid-template-columns: 1fr;
  }
}

/* ---------- Gravity Forms inside the booking step ---------- */
.tb-booking-step-page .gform_title,
.tb-booking-step-page .gform_description {
  display: none;
}
.tb-booking-step-page .gsection,
.tb-booking-step-page .gfield--type-section {
  border: 0;
  margin: 26px 0 12px;
  padding: 0;
}
.tb-booking-step-page .gsection_title,
.tb-booking-step-page .gsection .gfield_label,
.tb-booking-step-page .gfield--type-section .gsection_title {
  color: var(--tb-secondary);
  font-size: 1.25em;
  font-weight: 700;
}
/* The form uses left-label placement. GF's gravity-theme then lays each field
   out as `display: flex; justify-content: flex-end`, which — because the labels
   are hidden (placeholders used) — pushes the inputs to the right with an empty
   gap on the left. Override that flex back to block so the fields are
   full-width. This mirrors GF's own selector plus an extra class, so it wins on
   specificity WITHOUT !important — which matters: GF conditional logic hides
   fields with an inline display:none, and a non-important rule lets that inline
   style win, keeping hidden fields hidden. */
.tb-booking-step-page
  .gform_wrapper.gravity-theme
  .left_label
  .gfield:not(.gsection):not(.gfield_html):not(fieldset),
.tb-booking-step-page
  .gform_wrapper.gravity-theme
  .right_label
  .gfield:not(.gsection):not(.gfield_html):not(fieldset) {
  display: block;
}
.tb-booking-step-page .gform_wrapper .gfield_label {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 0 6px !important;
}
.tb-booking-step-page .gform_wrapper .ginput_container {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
/* Address sub-fields: a 2-column grid with a 16px gap on both axes (replacing
   GF's percentage gutter padding). The two full-width lines (Street Address,
   Address Line 2) span the row; City/State and ZIP/Country sit side by side. */
.tb-booking-step-page .gform_wrapper.gravity-theme .ginput_container_address {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tb-booking-step-page
  .gform_wrapper.gravity-theme
  .ginput_container_address
  span {
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}
.tb-booking-step-page
  .gform_wrapper.gravity-theme
  .ginput_container_address
  .address_line_1,
.tb-booking-step-page
  .gform_wrapper.gravity-theme
  .ginput_container_address
  .address_line_2 {
  grid-column: 1 / -1;
}
/* 10px corner radius on all booking-step text inputs. */
.tb-booking-step-page .gform_wrapper input[type="text"],
.tb-booking-step-page .gform_wrapper input[type="email"],
.tb-booking-step-page .gform_wrapper input[type="tel"],
.tb-booking-step-page .gform_wrapper input[type="number"],
.tb-booking-step-page .gform_wrapper select,
.tb-booking-step-page .gform_wrapper textarea {
  border-radius: 10px;
}
.tb-booking-step-page .gform_footer,
.tb-booking-step-page .gform_page_footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
/* Match the .tb-btn--primary pill used elsewhere (e.g. the search button):
   primary fill, pill radius, darkens on hover. Covers the page "Continue to
   Payment" next button and the final submit button. */
.tb-booking-step-page .gform_footer .gform_button,
.tb-booking-step-page .gform_page_footer .gform_next_button,
.tb-booking-step-page .gform_page_footer .gform_button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  padding: var(--tb-space-s) var(--tb-space-xl);
  border: 2px solid var(--tb-primary);
  border-radius: 100px;
  background-color: var(--tb-primary);
  color: var(--tb-light);
  font-family: "Inter", sans-serif;
  font-size: var(--tb-text-s);
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--tb-transition);
}
.tb-booking-step-page .gform_footer .gform_button:hover,
.tb-booking-step-page .gform_page_footer .gform_next_button:hover,
.tb-booking-step-page .gform_page_footer .gform_button:hover {
  background-color: #53742e;
  border-color: #53742e;
}
/* "Previous" button — outline-primary pill matching the Bricks outline button
   (transparent fill, primary border + text, fills primary on hover). */
.tb-booking-step-page .gform_page_footer .gform_previous_button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  padding: var(--tb-space-s) var(--tb-space-xl);
  border: 2px solid var(--tb-primary);
  border-radius: 100px;
  background-color: transparent;
  color: var(--tb-primary);
  font-family: "Inter", sans-serif;
  font-size: var(--tb-text-s);
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--tb-transition);
}
.tb-booking-step-page .gform_page_footer .gform_previous_button:hover {
  background-color: var(--tb-primary);
  color: var(--tb-light);
}

/* ============================================
   Booking form card ([tb_booking_form])
   ============================================ */
.tb-booking-card {
  background: var(--tb-form-bg);
  border-radius: 14px;
  padding: var(--tb-space-l);
  max-width: 380px;
  position: sticky;
  top: 24px;
}

/* ---------- Price header ---------- */
.tb-bf-price {
  margin-bottom: var(--tb-space-m);
}
.tb-bf-amount {
  display: block;
  font-weight: 500;
  color: #0d3b5e;
}
.tb-bf-per {
  display: block;
  margin-top: 4px;
  color: #6cab3c;
}

/* ---------- Underline selects ---------- */
.tb-bf-field {
  margin-bottom: 4px;
}
.tb-bf-select {
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa0a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 16px;
  border: none;
  border-bottom: 1px solid var(--tb-grey);
  border-radius: 0;
  padding: 12px 26px 12px 2px;
  color: var(--tb-grey);
  cursor: pointer;
}
.tb-bf-select:focus {
  outline: none;
  border-bottom-color: var(--tb-secondary);
}

/* ---------- Seats available ---------- */
.tb-bf-seats {
  margin: 16px 0 4px;
  color: var(--tb-primary);
}

/* ---------- Action buttons ---------- */
.tb-bf-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}
.tb-bf-actions .tb-btn {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
}
.tb-bf-actions .tb-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tb-booking-card .tb-error-message {
  margin-top: 16px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .tb-booking-card {
    position: static;
    max-width: none;
  }
}

/* ---------- [tb_search] front-end search bar ---------- */
.tb-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.tb-search .facetwp-facet {
  margin: 0;
}
.tb-search-field {
  flex: 1 1 0;
  min-width: 140px;
}
.tb-search-select,
.tb-search .facetwp-dropdown {
  width: 100%;
  color: #a5a5a5;
  border-left: none;
  border-right: none;
  border-top: none;
}
.tb-search-select option,
.tb-search .facetwp-dropdown option {
  color: black;
}
.tb-search-submit {
  cursor: pointer;
  min-width: 200px;
}

@media (max-width: 600px) {
  .tb-search {
    flex-direction: column;
  }
  .tb-search-field,
  .tb-search-submit {
    width: 100%;
  }
}
