/* ============================================================
   TTBP style.css — Uses design tokens from ttbp-tokens.css
   All colors, typography, spacing, radii, and shadows reference
   CSS custom properties defined in ttbp-tokens.css.
   ============================================================ */

/* ── Google Font: DM Sans (geometric sans-serif) ── */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");


.flatpickr-day.selected,

.flatpickr-day.startRange,

.flatpickr-day.endRange,

.flatpickr-day.selected.inRange,

.flatpickr-day.startRange.inRange,

.flatpickr-day.endRange.inRange,

.flatpickr-day.selected:focus,

.flatpickr-day.startRange:focus,

.flatpickr-day.endRange:focus,

.flatpickr-day.selected:hover,

.flatpickr-day.startRange:hover,

.flatpickr-day.endRange:hover,

.flatpickr-day.selected.prevMonthDay,

.flatpickr-day.startRange.prevMonthDay,

.flatpickr-day.endRange.prevMonthDay,

.flatpickr-day.selected.nextMonthDay,

.flatpickr-day.startRange.nextMonthDay,

.flatpickr-day.endRange.nextMonthDay {

  background: var(--ttbp-primary);

  -webkit-box-shadow: none;

  box-shadow: none;

  color: var(--ttbp-white);

  border-color: var(--ttbp-primary);

}


/* Fix for Flatpickr disturbing layout */

.flatpickr-calendar {

  display: none;

  position: absolute;

}


.flatpickr-calendar.open {

  display: block;

  z-index: 9999999;

}

/* 2026-08-30: the bookable window is always a short, fixed range from today
   (typically 14-28 days), so navigating to a different month is never a real
   choice a customer has - every reachable day already shows in the current
   month grid or is called out by the thin note below. Hide the nav arrows
   and lock the month/year controls so nothing invites a pointless tap. */
.flatpickr-prev-month,
.flatpickr-next-month {
  display: none;
}

.flatpickr-current-month .cur-year,
.flatpickr-current-month .numInputWrapper {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.flatpickr-current-month .numInputWrapper span.arrowUp,
.flatpickr-current-month .numInputWrapper span.arrowDown {
  display: none;
}

/* When the bookable window spans more than one month, js/booking.js sets
   flatpickr's showMonths accordingly. Stack the extra month(s) vertically
   (flatpickr's default is side-by-side, too wide for this layout) and
   de-style every month after the first into a thin divider - it only
   needs to name the month, not repeat a full heavy header. */
/* flatpickr sizes .flatpickr-calendar itself for N months side-by-side
   (~308px each) regardless of how the content inside is laid out - with
   showMonths:2 that's ~620px trying to fit a ~390px phone screen, pushing
   the whole page right. Since the months stack vertically below, the
   outer box only ever needs to be as wide as ONE month. */
.flatpickr-calendar.multiMonth {
  width: 307.875px !important;
  max-width: calc(100vw - 24px) !important;
}

.flatpickr-calendar.multiMonth .flatpickr-months {
  display: block;
}

.flatpickr-calendar.multiMonth .flatpickr-month {
  width: 100%;
  height: auto;
}

.flatpickr-calendar.multiMonth .flatpickr-innerContainer,
.flatpickr-calendar.multiMonth .flatpickr-rContainer,
.flatpickr-calendar.multiMonth .flatpickr-days {
  display: block;
  width: 100% !important;
}

.flatpickr-calendar.multiMonth .dayContainer {
  min-width: 100%;
  max-width: 100%;
  width: 100%;
}

.flatpickr-calendar.multiMonth .flatpickr-month:not(:first-of-type) .flatpickr-current-month {
  font-size: 12px;
  padding: 4px 0;
  opacity: 0.65;
  border-top: 1px dashed var(--ttbp-gray-300, #cbd5e0);
  margin-top: 4px;
  height: auto;
}

/* 2026-08-30: the flatpickr-based date picker (.flatpickr-prev-month /
   .multiMonth rules above) was replaced by a custom rolling day-strip -
   see js/booking.js. Those flatpickr rules are now unused on this page
   and left in place only in case flatpickr is reintroduced elsewhere. */
.ttbp_date_panel {
  margin-top: 10px;
  background: var(--ttbp-white, #fff);
  border: 1px solid var(--ttbp-gray-300, #cbd5e0);
  border-radius: var(--ttbp-radius-lg, 12px);
  padding: 12px;
}

.ttbp_date_panel_header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}

.ttbp_date_panel_header span {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ttbp-gray-500, #718096);
  opacity: 0.65;
}

.ttbp_date_panel_grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px 0;
}

/* 2026-08-30 fix: .ttbp-form button (below) sets width/margin/padding/
   background/color on every <button> in the form, and beats a bare
   .ttbp_date_cell class on specificity - it was painting every day cell
   solid green with white text and inflating each cell to ~150px/20px
   margin, which is why the live grid didn't match the approved mock.
   Scoping these rules under .ttbp_date_panel and re-declaring every
   property .ttbp-form button also sets (width/margin/font-size) wins
   cleanly, no !important needed. */
.ttbp_date_panel .ttbp_date_cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0;
  padding: 8px 2px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  background-color: transparent;
  cursor: pointer;
  color: var(--ttbp-gray-900, #1a202c);
  font-family: inherit;
  font-size: inherit;
  transition: none;
}

.ttbp_date_panel .ttbp_date_cell:hover {
  background-color: var(--ttbp-gray-100, #f3f4f6);
}

.ttbp_date_panel .ttbp_date_cell_num {
  font-size: 15px;
  font-weight: 700;
}

.ttbp_date_panel .ttbp_date_cell.is-today {
  border-color: var(--ttbp-primary);
}

.ttbp_date_panel .ttbp_date_cell.is-selected {
  background-color: var(--ttbp-primary);
  border-color: var(--ttbp-primary);
  color: var(--ttbp-white, #fff);
}

.ttbp_date_panel .ttbp_date_cell.is-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* the one cue that a new month has begun - a faint rule, no text */
.ttbp_date_panel .ttbp_date_cell.is-month-start {
  border-left: 1px solid var(--ttbp-gray-300, #cbd5e0);
}
/* 2026-08-30: password-style fields are type="text" masked with dots via
   -webkit-text-security instead of real type="password" - iOS/Chrome-iOS
   were intermittently forcing a numeric keypad on the real password type
   on this page (autocomplete/inputmode hints alone didn't reliably stop
   it), and this sidesteps the browser's password-field keyboard heuristic
   entirely. js/booking.js toggles .ttbp_pw_revealed for the eye-icon
   reveal instead of swapping the type attribute. Trade-off: native
   password-manager autofill suggestions won't appear on these fields. */
.ttbp_pw_mask {
  -webkit-text-security: disc;
  -moz-text-security: disc;
}

.ttbp_pw_mask.ttbp_pw_revealed {
  -webkit-text-security: none;
  -moz-text-security: none;
}


.ttbp-form {

  max-width: 1200px;

  margin: 30px auto;

  padding: 25px;

  background: var(--ttbp-white);

  border: 1px solid var(--ttbp-border);

  border-radius: 10px;

  box-shadow: var(--ttbp-shadow-sm);

  font-family: var(--ttbp-font);

  display: flex;

  flex-direction: column;

}


.ttbp_button {

  color: var(--ttbp-white);

  background: var(--ttbp-primary);

  font-size: var(--ttbp-fs-base);

  font-weight: var(--ttbp-fw-semibold);

  border: none;

  padding: 9px var(--ttbp-btn-px);

  border-radius: var(--ttbp-btn-radius);

  cursor: pointer;

  transition: all 0.2s ease;

  font-family: var(--ttbp-font);

  letter-spacing: 0.01em;

}


.ttbp_button:hover,

.ttbp_button:focus,

.ttbp_button:active {

  background: var(--ttbp-primary-hover);

}


.ttbp-form h3 {

  margin-bottom: var(--ttbp-sp-5);

  text-align: center;

  font-size: 1.5rem;

  color: var(--ttbp-gray-700);

}


.ttbp-form input[type="text"],

.ttbp-form input[type="email"],

.ttbp-form input[type="tel"],

.ttbp-form input[type="date"],

.ttbp-form select {

  width: 100%;

  padding: 15px 12px;

  border: 1px solid var(--ttbp-gray-300);

  height: auto;

  border-radius: var(--ttbp-radius);

  font-size: var(--ttbp-fs-lg);

  background-color: var(--ttbp-white);

  transition: border-color 0.2s ease-in-out;

}


.ttbp-form input:focus,

.ttbp-form select:focus {

  border-color: var(--ttbp-primary);

  outline: none;

  box-shadow: var(--ttbp-input-focus);

}


.ttbp-checkbox {

  margin-top: 10px;

  display: flex;

  align-items: center;

  gap: var(--ttbp-sp-2);

  font-size: 0.95rem;

}


.ttbp-form button {

  width: 150px;

  margin: 20px auto 0;

  padding: 15px;

  font-size: var(--ttbp-fs-lg);

  color: var(--ttbp-white);

  background-color: var(--ttbp-primary);

  border: none;

  border-radius: var(--ttbp-radius);

  cursor: pointer;

  transition: background-color 0.2s;

}


.ttbp-form button:hover {

  background-color: var(--ttbp-primary-hover);

}


.ttbp-result {

  margin-top: var(--ttbp-sp-5);

  text-align: center;

  font-weight: bold;

}


.ttbp-success {

  color: var(--ttbp-success);

}


.ttbp-error {

  color: var(--ttbp-danger);

}


.ttbp_booking_form_label {

  display: block;

  font-weight: var(--ttbp-fw-semibold);

  font-size: var(--ttbp-fs-xl);

  padding: 20px 0 10px;

  text-align: center;

}


.ttbp_players,

.ttbp_holes,

.ttbp_tod {

  display: grid;

  grid-template-columns: repeat(5, 1fr);

  gap: 10px;

}


.ttbp_holes {

  grid-template-columns: repeat(2, 1fr);

}


.ttbp_players {

  grid-template-columns: repeat(4, 1fr);

}


.ttbp_tod {

  grid-template-columns: repeat(3, 1fr);

  margin-top: 10px;

}


label.ttbp_player_btn,

label.ttbp_hole_btn,

label.ttbp_tod_btn,

label.ttbp_ride_selector {

  margin: 0;

}


label.ttbp_player_btn span,

label.ttbp_hole_btn span,

label.ttbp_tod_btn span,

label.ttbp_ride_selector span {

  border: 2px solid var(--ttbp-gray-200);

  border-radius: 12px;

  padding: 14px 10px;

  text-align: center;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 4px;

  cursor: pointer;

  user-select: none;

  font-size: var(--ttbp-fs-base);

  font-weight: var(--ttbp-fw-bold);

  transition: all 0.2s ease;

  background: var(--ttbp-white);

  box-shadow: 0 1px 3px rgba(0,0,0,0.06);

}


label.ttbp_player_btn>input,

label.ttbp_hole_btn>input,

label.ttbp_tod_btn>input,

label.ttbp_ride_selector>input {

  display: none;

}


label.ttbp_player_btn input:checked+span,

label.ttbp_hole_btn input:checked+span,

label.ttbp_tod_btn input:checked+span,

label.ttbp_ride_selector input:checked+span {

  border-color: var(--ttbp-primary);

  color: var(--ttbp-primary);

  background: #f0f7ee;

  box-shadow: 0 0 0 1px var(--ttbp-primary), 0 2px 8px rgba(79,140,109,0.12);
  box-shadow: 0 0 0 1px var(--ttbp-primary), 0 2px 8px color-mix(in srgb, var(--ttbp-primary) 12%, transparent); /* follows Online Look */

}


label.ttbp_ride_selector span {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: var(--ttbp-sp-2);

}


label.ttbp_ride_selector input:checked+span svg {

  /* fill: var(--ttbp-white); Bilal */
  fill: var(--ttbp-gray-900);

}


.ttbp_rides {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 10px;

}

/* Card icon in mobile radio buttons */
.ttbp_card_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef6f1;
  color: var(--ttbp-primary);
  font-size: 1.1em;
  margin: 0 auto 6px;
  opacity: 0.6;
  transition: opacity 0.2s ease, background 0.2s ease;
}
label input:checked + span .ttbp_card_icon {
  opacity: 1;
  background: #dcefe3;
  background: color-mix(in srgb, var(--ttbp-primary) 18%, #fff); /* follows Online Look */
}

/* Desktop dropdown selectors — Players / Holes / Riding in one row */
.ttbp_selection_dropdowns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 24px;
}
.ttbp_selection_dropdowns .ttbp_select_group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ttbp_select_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eef6f1;
  color: var(--ttbp-primary);
  font-size: 17px;
}
.ttbp_select_icon svg { width: 20px; height: 20px; fill: var(--ttbp-primary); }
.ttbp_styled_select {
  width: 100%;
  padding: 14px 36px 14px 16px;
  font-size: var(--ttbp-fs-base);
  font-weight: var(--ttbp-fw-semibold);
  border: 2px solid var(--ttbp-primary);
  border-radius: 12px;
  background: #f8faff;
  color: var(--ttbp-gray-700);
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234f8c6d' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 1px rgba(79,140,109,0.08), 0 2px 6px rgba(79,140,109,0.1);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ttbp-primary) 8%, transparent), 0 2px 6px color-mix(in srgb, var(--ttbp-primary) 10%, transparent);
}
.ttbp_styled_select:focus {
  outline: none;
  border-color: var(--ttbp-primary);
  box-shadow: 0 0 0 2px var(--ttbp-primary), 0 2px 8px rgba(79,140,109,0.15);
  box-shadow: 0 0 0 2px var(--ttbp-primary), 0 2px 8px color-mix(in srgb, var(--ttbp-primary) 15%, transparent);
}
.ttbp_styled_select:hover {
  border-color: var(--ttbp-primary);
  box-shadow: 0 0 0 1px var(--ttbp-primary), 0 3px 10px rgba(79,140,109,0.14);
  box-shadow: 0 0 0 1px var(--ttbp-primary), 0 3px 10px color-mix(in srgb, var(--ttbp-primary) 14%, transparent);
}

/* Mobile/tablet: show cards, hide dropdowns */
.ttbp_selection_cards { display: none; margin: 28px 0 24px; }
.ttbp_selection_cards .ttbp_holes,
.ttbp_selection_cards .ttbp_rides { margin-top: 20px; }
@media (max-width: 768px) {
  .ttbp_selection_dropdowns { display: none; }
  .ttbp_selection_cards { display: block; }
}

.date-picker {

  display: grid;

  grid-template-columns: 1fr 2fr 1fr;

  align-items: center;

  gap: 10px;

  margin: var(--ttbp-sp-5);

}


button[type="button"].date_nav {

  font-size: var(--ttbp-fs-lg);

  padding: 6px 12px;

  cursor: pointer;

  background: none;

  border: none;

  color: var(--ttbp-gray-900);

  box-shadow: none;

  margin: 0;

  width: 100%;

}


.date-display {

  padding: 8px 16px;

  border: 1px solid var(--ttbp-gray-300);

  border-radius: var(--ttbp-radius);

  cursor: pointer;

  position: relative;

  font-family: sans-serif;

  user-select: none;

  min-width: 200px;

  text-align: center;

}


.ttbp_slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

/* 2026-08-30: rebuilt to match the approved mock's clean slot card -
   a clock icon, the time, a single "N players . Cart/Walking" meta line,
   and the price. The old markup (holes number + ride icon in literal
   parens, course name + description repeated per slot, a separate
   player-count line, and a "/Per Person" suffix on the price) is gone
   from includes/class-ttbp-ajax.php's render_form_booking_slot(); the
   handful of old selectors below (.ttbp_slot_hole, span.ttbp_ride_type,
   .ttbp_slot_pricing small) are left in place as unused/vestigial since
   they may still be referenced elsewhere and nothing here emits them
   any more. */
.ttbp_slot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  border: 2px solid var(--ttbp-gray-300);
  border-radius: 18px;
  padding: 14px 16px;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  background: var(--ttbp-white, #fff);
}

.ttbp_slots label input {

  display: none;

}


.ttbp_slots label input:checked+div.ttbp_slot {

  border-color: var(--ttbp-primary);
  background: #f0f7ee;

}


.ttbp_slot_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  flex-shrink: 0;
  color: var(--ttbp-primary);
  font-size: 1rem;
}


.ttbp_slot_hole {

  font-size: var(--ttbp-fs-xl);

  font-weight: var(--ttbp-fw-medium);

}


.ttbp_slot_time h2 {

  margin: 0;

  font-weight: var(--ttbp-fw-bold);

  font-size: 15px;

}


.ttbp_slot_time p {

  margin: 2px 0 0;

  font-size: 12px;

  font-weight: var(--ttbp-fw-normal);

  line-height: 1.3;

  color: var(--ttbp-text-dim, #6b7280);

}


.ttbp_slot_time span {

  line-height: 1.5em;

  display: block;

  font-size: var(--ttbp-fs-base);

  font-weight: var(--ttbp-fw-normal);

}


.ttbp_slot_pricing {

  display: flex;

  align-items: center;

  gap: 10px;

  font-size: 14px;

  color: var(--ttbp-money, #1a7a45);

  font-weight: var(--ttbp-fw-bold);

}


.ttbp_slot_pricing small {

  font-weight: var(--ttbp-fw-normal);

  font-size: var(--ttbp-fs-lg);

}


/* Calendar CSS */


.calendar-container {

  padding: 0;
  position: relative;
  background: var(--ttbp-gray-50);
  border-radius: var(--ttbp-radius);
  overflow: hidden;
  box-shadow: var(--ttbp-shadow);
  font-family: var(--ttbp-font);

}


.calendar-loader {

  position: absolute;

  inset: 0;

  background: transparent;

  backdrop-filter: blur(4px);

  z-index: 1000;

  width: 100%;

  height: 100%;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: var(--ttbp-radius-lg);

  display: none;

}


.calendar-header {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  background: var(--ttbp-topbar-bg);

  padding: 14px 18px;

  border-radius: 0;

  border-bottom: none;

  align-items: center;

}

.calendar-header .calendar-date-picker,
.calendar-header .calendar-date-display { color: var(--ttbp-white); }

span.calendar-date { color: var(--ttbp-white); font-family: var(--ttbp-font); }
span.calendar-content { color: rgba(255,255,255,0.85); }
span.calendar-content span { color: rgba(255,255,255,0.85); }
.calendar-date-picker::after { color: rgba(255,255,255,0.7); }

.header-end .ttbp_button,
.header-end button {
  background: rgba(255,255,255,0.18);
  color: var(--ttbp-white);
  border: 1px solid rgba(255,255,255,0.3);
  font-family: var(--ttbp-font);
}
.header-end .ttbp_button:hover,
.header-end button:hover {
  background: rgba(255,255,255,0.28);
}

.weather, .sun-times, .stats { color: rgba(255,255,255,0.9); }


.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
}


.header-end {

  display: flex;

  align-items: center;

  justify-content: flex-end;

  gap: var(--ttbp-sp-2);

}


.weather,

.sun-times,

.stats {

  display: flex;

  align-items: center;

  gap: 5px;

}


.calendar-nav {

  display: flex;

  background: var(--ttbp-navy);

  border-top: none;

  border-bottom: 3px solid rgba(0,0,0,0.12);

  padding: 4px 8px;

  max-width: 100%;

  overflow-x: scroll;

  gap: 2px;

}


.calendar-nav::-webkit-scrollbar {

  display: none;

}


.calendar-nav button {

  flex: 1;

  padding: 7px 12px;

  border: 1px solid transparent;

  background: var(--ttbp-navy-light);

  cursor: pointer;

  box-shadow: none;

  color: var(--ttbp-white);

  font-weight: var(--ttbp-fw-medium);

  font-size: var(--ttbp-fs-base);

  border-radius: 5px;

  transition: all 0.2s ease;

  min-width: 110px;

  white-space: nowrap;

}

.calendar-nav button:hover {
  background: var(--ttbp-navy);
  color: var(--ttbp-white);
}


.calendar-nav button.active,
.calendar-nav button.gp-today-tab.active,
.calendar-nav button.active.gp-today-tab {

  background: var(--ttbp-blue-accent);

  color: var(--ttbp-white);

  border: 1px solid transparent;

  font-weight: var(--ttbp-fw-bold);

}


.time-slots {

  background-color: var(--ttbp-cream);

  padding: 0 8px 8px;

  overflow-x: scroll;

  max-height: 620px;

  overflow-y: scroll;

  border: none;

  border-top: none;

}


/* width */

.time-slots::-webkit-scrollbar {

  width: 4px;

}


/* Track */

.time-slots::-webkit-scrollbar-track {

  background: transparent;

}


/* Handle */

.time-slots::-webkit-scrollbar-thumb {

  background: var(--ttbp-gray-300);

  border-radius: 20px;

}


.time-row {

  display: flex;

  align-items: center;

  height: 36px;

  border-bottom: 1px solid var(--ttbp-gray-100);

}


.time-handler {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  min-width: 40px;
}

.ttbp-bridge-row {
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--ttbp-gray-50);
  border-top: 1px dashed var(--ttbp-gray-300);
  border-bottom: 1px dashed var(--ttbp-gray-300);
  margin: 4px 0 12px 0;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s;
  z-index: 5;
}

.ttbp-bridge-row:hover {
  background-color: var(--ttbp-gray-100);
}

/* Updated Squeeze Button Styles */
a.ttbp_add_squeeze_context {
  background: var(--ttbp-white);
  color: var(--ttbp-gray-500);
  font-size: 10px;
  font-weight: var(--ttbp-fw-semibold);
  padding: 2px 10px;
  border-radius: var(--ttbp-radius-xl);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: var(--ttbp-sp-1);
  border: 1px solid var(--ttbp-gray-300);
  position: relative;
  z-index: 10;
  white-space: nowrap;
  margin-right: 10px;
  /* Add spacing between label and button */
  height: 20px;
}

a.ttbp_add_squeeze_context:hover {
  background: var(--ttbp-primary);
  color: var(--ttbp-white);
  border-color: var(--ttbp-primary-dark);
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.ttbp-bridge-row:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0;
  border-top: 1px dashed var(--ttbp-gray-200);
  z-index: 0;
}

.ttbp-bridge-row a {
  position: relative;
  z-index: 1;
}

/* Squeeze Row Styles */
.time-row.squeeze-row {
  background-color: #fff9e6;
  /* Very light yellow */
  border-left: 4px solid #ffd700;
  /* Gold side border */
}

.time-row.squeeze-row .time-label {
  color: #b8860b;
  /* Dark Goldenrod */
  font-weight: bold;
}

/* Starter Sheet Squeeze Styles */
.ttbp_is_squeeze_booking {
  background-color: #fffde7;
  border: 1px solid #ffd54f;
}

.ttbp_is_squeeze_booking h3 {
  color: #f57f17;
}

/* Print View Squeeze Styles */
.ttbp_print_squeeze {
  background-color: #fff9c4;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.ttbp_print_squeeze .ttbp_row_time {
  font-weight: bold;
  color: #f57f17;
}


.time-separator .time-label {

  background: var(--ttbp-primary-light);

  border-radius: 3px;

  border: none;

  padding: var(--ttbp-sp-1);

  text-align: center;

  color: var(--ttbp-primary-dark);

  font-weight: var(--ttbp-fw-bold);

  font-size: var(--ttbp-fs-sm);

}


.time-separator .price-label {

  display: none;

}


.time-label,

.price-label {

  width: 80px;

  text-align: center;

  padding-right: var(--ttbp-sp-1);

  font-size: var(--ttbp-fs-base);

  color: var(--ttbp-gray-500);

}


.time-label {

  min-width: 80px;

}


.booking-slot {

  flex: 1;

  display: flex;

  align-items: center;

  gap: 0px;

}


.slot {

  flex: 1;

  height: 25px;

  background-color: var(--ttbp-gray-50);

  border-radius: 0px;

  position: relative;

  display: flex;

  align-items: center;

  justify-content: center;

  border-color: var(--ttbp-gray-300);

  border-style: solid;

  border-top-width: 1px;

  border-bottom-width: 1px;

  border-left-width: 1px;

  border-right-width: 1px;

  margin-left: -1px;

  cursor: pointer;

  min-width: 200px;

}


.slot span {

  font-size: var(--ttbp-fs-sm);

  color: var(--ttbp-white);

  display: flex;

  align-items: center;

  gap: 5px;

}


.slot.empty {

  cursor: pointer;

  color: rgba(0, 0, 0, 0.2);

  transition: color 0.3s ease;

}


.slot.empty:hover {

  color: var(--ttbp-primary);

}


.slot-separator {

  width: calc(100% - 80px);

  position: relative;

}


.slot-separator::before {

  content: "";

  position: absolute;

  width: 100%;

  background: var(--ttbp-gray-300);

  height: 1px;

  left: 0;

  top: 50%;

  transform: translateY(-50%);

  border: none;

}


.ttbp_player_count {

  font-size: var(--ttbp-fs-base);

  font-weight: var(--ttbp-fw-normal);

  color: var(--ttbp-gray-700);

  display: flex;

  align-items: center;

  gap: 10px;

}


.ttbp_player_count i {

  font-size: var(--ttbp-fs-base);

}


.ttbp_slot_time>p {

  display: flex;

  align-items: center;

  gap: 10px;

}


/* Dynamic slot colors — set via inline style from PHP */
.slot.booked_slot {
  color: var(--ttbp-white);
  font-weight: var(--ttbp-fw-medium);
  border-width: 1px;
  border-style: solid;
}

.slot.booked_slot span,
.slot.booked_slot i {
  color: var(--ttbp-white);
}

.slot.booked_slot:hover {
  filter: brightness(1.15);
}

/* Legacy positional colors (fallback) */
.slot.booked_0 { background-color: #37474f; border-color: #37474f; }
.slot.booked_1 { background-color: var(--ttbp-primary); border-color: var(--ttbp-primary); }
.slot.booked_2 { background-color: #1565c0; border-color: #1565c0; }
.slot.booked_3 { background-color: var(--ttbp-warning); border-color: var(--ttbp-warning); }


span#calendar-date-text {

  display: flex;

  align-items: center;

  gap: 5px;

}


span.calendar-date {

  font-size: 45px;

  color: var(--ttbp-gray-900);

  display: block;

  line-height: 1;

}


span.calendar-content {

  font-size: var(--ttbp-fs-base);

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 0;

  color: var(--ttbp-gray-500);

  font-weight: var(--ttbp-fw-medium);

}


span.calendar-content span {

  line-height: 1.3em;

}


.calendar-date-picker {

  position: relative;

  padding-right: var(--ttbp-sp-5);

}


.calendar-date-picker::after {

  content: "\f0d7";

  font: var(--fa-font-solid);

  position: absolute;

  right: 0;

  z-index: 1;

  top: 50%;

  transform: translateY(-50%);

}


.ttbp-loader {

  width: 32px;

  height: 32px;

  border: 2px solid var(--ttbp-primary);

  border-bottom-color: transparent;

  border-radius: 50%;

  display: inline-block;

  box-sizing: border-box;

  animation: rotation 1s linear infinite;

}


.ttbp-form.ttbp-loading {

  position: relative;

}


.ttbp-form.ttbp-loading:before {

  content: "";

  inset: 0;

  background: rgba(255, 255, 255, 0.5);

  z-index: 100;

  cursor: progress;

  position: absolute;

}


@keyframes rotation {

  0% {

    transform: rotate(0deg);

  }

  100% {

    transform: rotate(360deg);

  }

}


.price-label {

  display: inline-block;

  background-color: var(--ttbp-success);

  -webkit-border-radius: 3px 3px 4px 4px;

  -moz-border-radius: 3px 3px 4px 4px;

  border-radius: 3px 3px 4px 4px;

  border-right: 1px solid var(--ttbp-success);

  margin-right: 11px;

  position: relative;

  color: var(--ttbp-white);

  width: 60px;

  min-width: 60px;

  font-weight: var(--ttbp-fw-semibold);

  font-size: var(--ttbp-fs-sm);

}


.empty-price {

  opacity: 0.5;

  color: var(--ttbp-gray-400);

  background-color: var(--ttbp-gray-50);

  border-right: 1px solid var(--ttbp-gray-50);

}


/* Makes the triangle */

.price-label:before {

  content: "";

  position: absolute;

  display: block;

  left: 100%;

  width: 0;

  height: 0;

  border-top: 11px solid transparent;

  border-bottom: 11px solid transparent;

  border-left: 11px solid var(--ttbp-success);

}


/* Makes the triangle */

.empty-price:before {

  border-left: 11px solid var(--ttbp-gray-50);

}


/* Makes the circle */

.price-label:after {

  content: "";

  background-color: var(--ttbp-white);

  border-radius: 50%;

  width: 5px;

  height: 5px;

  display: block;

  position: absolute;

  right: -3px;

  top: 50%;

  transform: translateY(-50%);

}


.calendar-date-display.flatpickr-mobile {

  position: absolute;

  top: 0;

  opacity: 0;

}


/* Calendar CSS Ends */


/* Modal CSS */


.ttbp_fe_modal {

  position: fixed;

  width: 100%;

  height: calc(100% - 32px);

  background: rgba(0, 0, 0, 0.5);

  z-index: 100;

  display: none;

  align-items: center;

  justify-content: center;

  top: 32px;
  left: 0;
  right: 0;
  bottom: 0;

  max-width: 100%;

  padding: 10px 0px;

  pointer-events: none;

}

@media screen and (max-width: 782px) {
  .ttbp_fe_modal {
    top: 46px;
    height: calc(100% - 46px);
  }
}


.ttbp_fe_modal.active {

  display: flex;

}


.ttbp_modal_inner {

  background: var(--ttbp-white);

  width: auto;

  max-width: 100%;

  display: flex;

  flex-direction: column;

  height: auto;

  max-height: calc(100vh - 80px);

  pointer-events: all;

  overflow-y: auto;

}


.ttbp_modal_body {

  flex: 1 1 auto;

  overflow-y: auto;

  padding: var(--ttbp-sp-5);

}


/* width */

.ttbp_modal_body::-webkit-scrollbar {

  width: 4px;

}


/* Track */

.ttbp_modal_body::-webkit-scrollbar-track {

  background: transparent;

}


/* Handle */

.ttbp_modal_body::-webkit-scrollbar-thumb {

  background: var(--ttbp-gray-300);

  border-radius: 20px;

}


.ttbp_close_modal {

  width: 24px;

  height: 24px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  background: var(--ttbp-white);

  font-size: var(--ttbp-fs-base);

  color: var(--ttbp-gray-900);

  cursor: pointer;

}


.ttbp_modal_header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 15px 18px;

  border-bottom: none;

  font-size: 15px;

  font-weight: var(--ttbp-fw-bold);

  background: var(--ttbp-primary);

  color: var(--ttbp-white);

  letter-spacing: 0.02em;

}


.ttbp_modal_footer {

  padding: 15px;

  border-top: 1px solid var(--ttbp-gray-300);

  box-shadow: 0 -4px 5px rgba(0, 0, 0, 0.05);

  display: flex;

  justify-content: flex-end;
  align-items: center;
  gap: 10px;

}


/* Modal CSS Ends */


/* Calendar Entry Form */


label.ttbp_form_label {

  font-size: var(--ttbp-fs-base);

  display: block;

  margin: 10px 0;

  line-height: 1;

  font-weight: var(--ttbp-fw-semibold);

  color: var(--ttbp-gray-900);

}


input.ttbp_form_input,

select.ttbp_form_input {

  width: 100%;

  padding: var(--ttbp-sp-2);

  border-radius: var(--ttbp-radius);

  border: 1px solid var(--ttbp-gray-300);

  font-size: var(--ttbp-fs-base);

  font-weight: var(--ttbp-fw-normal);

  color: var(--ttbp-gray-900);

  line-height: 1.5;

  height: auto;

  margin-bottom: 10px;

  transition: all 0.3s ease;

}


input.ttbp_form_input:hover,

select.ttbp_form_input:hover,

input.ttbp_form_input:focus,

select.ttbp_form_input:focus {

  border-color: var(--ttbp-primary);

}


input.ttbp_form_input.readonly {

  background: rgba(0, 0, 0, 0.1);

  cursor: not-allowed;

  font-weight: var(--ttbp-fw-semibold);

  font-style: italic;

}


.ttbp_submit_booking {

  margin-top: 10px;

}


span.ttbp_form_message {

  text-align: center;

  font-size: var(--ttbp-fs-base);

  font-weight: var(--ttbp-fw-semibold);

  color: var(--ttbp-success);

  padding-top: 10px;

  display: none;

}


.ttbp_form_message * {

  margin: 0;

  line-height: 1.3;

}


button.ttbp_delete_booking.ttbp_button,

.ttbp_button.ttbp_danger {

  background: var(--ttbp-danger);
  color: var(--ttbp-white);
}


table.ttbp_booking_info {
  /* Legacy table removed — now using bi-meta-strip layout */
  display: none;
}

#ttbp_booking_info .ttbp_modal_inner {
  width: 95%;
  max-width: 1200px;
  margin-top: 40px;
}

.ttbp-player-meta-badge {

  background: var(--ttbp-gray-100);

  border: 1px solid var(--ttbp-gray-300);

  border-radius: var(--ttbp-radius-sm);

  padding: 2px 6px;

  font-size: var(--ttbp-fs-xs);

  font-weight: var(--ttbp-fw-semibold);

  color: var(--ttbp-gray-500);

  white-space: nowrap;

  display: inline-flex;

  align-items: center;

  gap: var(--ttbp-sp-1);

}

.ttbp-player-meta-badge i {

  font-size: 10px;

}

.player-name-wrapper {

  min-width: 250px;

}

.payment-row {

  display: flex;

  flex-wrap: wrap;

  gap: 15px;

  align-items: flex-end;

  padding-bottom: 15px;

  border-bottom: 1px solid var(--ttbp-gray-200);

  margin-bottom: 15px;

}

.payment-column {
  flex: 1;
  min-width: 120px;
}

.payment-column input {
  width: 100%;
}


table.ttbp_booking_info th,

table.ttbp_booking_info td {

  text-align: left;

  padding: 8px 10px;

  border: none;

}


table.ttbp_booking_info tr:nth-child(2n + 1) {

  background: var(--ttbp-gray-100);

}


.ttbp_bookings_wrapper {

  overflow-x: auto;

  margin: 20px 0;

}


.ttbp_bookings_table {

  width: 100%;

  border-collapse: collapse;

  font-size: var(--ttbp-fs-base);

}


.ttbp_bookings_table tbody tr:hover {
  background-color: var(--ttbp-gray-50);
}

.ttbp_bookings_table th,

.ttbp_bookings_table td {

  padding: 10px;

  border: 1px solid var(--ttbp-gray-300);

  text-align: center;

}


.ttbp_not_allowed {

  cursor: not-allowed;

}


.ttbp_not_allowed:hover {

  color: var(--ttbp-danger);

}


/* Past time slots on today's calendar */
.ttbp-slot-past {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
  background: var(--ttbp-gray-100);
}


.ttbp_reduce_player {

  display: flex;

  align-items: center;

  gap: 10px;

}


form.ttbp_entry {
  max-width: 100%;
  width: 100%;
}


#ttbp_slot_players {

  width: 60px;

  padding: 5px 8px;

  font-size: var(--ttbp-fs-base);

  background: var(--ttbp-white);

  border: 1px solid var(--ttbp-gray-300);

  color: var(--ttbp-gray-900);

  height: auto;

}


.ttbp_booking_step {

  display: none;

}


.ttbp_booking_step#ttbp_step_1 {

  display: block;

}


.ttbp_card_fields {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 15px;

}




#ttbp-card-number,

#ttbp-card-cvv,

#ttbp-card-date,

#ttbp-card-postcode {

  height: 48px;

  padding: var(--ttbp-sp-3);

  border: 1px solid var(--ttbp-gray-300);

  border-radius: var(--ttbp-radius);

  background: var(--ttbp-white);

}

.ttbp_cc_tokenizer_wrap {
  grid-column: 1 / -1;
}

/* 2026-08-30: DO NOT shrink this below 190px until the site is live on a
   real public domain and cssurl delivery is confirmed working there. The
   compact card-number-full-width-then-three-across layout in
   css/cardconnect-tokenizer.css (~90px measured live against CardPointe's
   tokenizer page) only renders once CardPointe's proxy can fetch that
   stylesheet - which it CANNOT do against this .local dev site, so what's
   actually on screen here is still CardPointe's bare, one-field-per-line
   default layout (card number, then expiry label + 2 selects, then CVV -
   noticeably taller). A first attempt shrank this to 120px assuming the
   compact layout was already live and clipped the still-bare fields on
   .local as a result (this iframe has scrolling="no", so overflow is cut
   off, not scrollable) - reverted. Once verified live on a public domain
   with the compact layout actually rendering, this can safely come down to
   ~120px; until then, a little empty space beats clipped card fields. */
#ttbp-cc-tokenizer-frame {
  display: block;
  width: 100%;
  height: 112px; /* 2026-09-22: two rows now (see css/cardconnect-tokenizer.css) */
  border: 1px solid var(--ttbp-gray-300);
  border-radius: var(--ttbp-radius);
  background: var(--ttbp-white);
}

#ttbp-cc-tokenizer-errors {
  margin-top: 8px;
  color: var(--danger);
  font-size: 13px;
}


.ttbp_payment_tab {

  display: flex;

  align-items: center;

  gap: 10px;

  font-size: var(--ttbp-fs-lg);

  font-weight: var(--ttbp-fw-semibold);

  border: 1px solid var(--ttbp-gray-300);

  border-left-width: 4px;

  border-left-color: var(--ttbp-primary);

  margin-bottom: 10px;

  padding-left: 10px;

}


.ttbp_payment_tab label {

  display: flex;

  flex: 1;

  padding: 18px 15px 18px 0;

  cursor: pointer;

  align-items: center;

  font-size: var(--ttbp-fs-lg);

  flex-wrap: wrap;
  gap: var(--ttbp-sp-2);

}


.ttbp_payment_content {

  padding: var(--ttbp-sp-3);

  border: 1px solid var(--ttbp-gray-300);

  background: var(--ttbp-gray-50);

  border-radius: var(--ttbp-radius-lg);

}


span.ttbp_loader_bar {

  display: block;

  height: 25px;

  background: var(--ttbp-gray-300);

  border-radius: 5px;

  position: relative;

  overflow: hidden;

}


span.ttbp_loader_bar::before {

  content: "";

  position: absolute;

  top: 0;

  left: -100%;

  height: 100%;

  width: 100%;

  background: linear-gradient(to right,

      transparent,

      rgba(255, 255, 255, 0.4),

      transparent);

  animation: skeleton 1s infinite;

}


@keyframes skeleton {

  100% {

    left: 100%;

  }

}


.ttbp_loader_placeholder {

  display: flex;

  flex-direction: column;

  gap: 10px;

  padding: var(--ttbp-sp-5);

  border: 1px solid var(--ttbp-gray-300);

  border-radius: var(--ttbp-radius-lg);

}


#ttbp_booking_review {

  margin: 0;

}


.ttbp_table {

  border: none;

  border-collapse: collapse;

  margin-bottom: 0px;

}


.ttbp_booking_summary {

  background: var(--ttbp-gray-50);

  padding: 25px;

  grid-column: 3;

}


.ttbp_table tbody tr td {

  border: none;

  border-bottom: 1px solid var(--ttbp-gray-300);

  padding: 12px 0;

}


.ttbp_table thead tr th {

  border: none;

  border-bottom: 1px solid var(--ttbp-gray-300);

  padding: 0 0 12px 0;

}


.ttbp_table thead tr th h3 {

  font-size: var(--ttbp-fs-2xl);

  font-weight: var(--ttbp-fw-medium);

  margin: 0;

  color: var(--ttbp-gray-900);

  text-align: left;

}


.ttbp_table tfoot tr th {

  text-align: left;

  font-size: var(--ttbp-fs-lg);

  font-weight: var(--ttbp-fw-medium);

  color: var(--ttbp-gray-900);

  width: 50%;

  border: none;

  padding: 12px 0;

}


.ttbp_table tfoot tr td {

  text-align: right;

  font-size: var(--ttbp-fs-lg);

  font-weight: var(--ttbp-fw-medium);

  color: var(--ttbp-gray-900);

  width: 50%;

  border: none;

  padding: 12px 0;

}


.booking-info h2 {

  font-size: var(--ttbp-fs-lg);

  font-weight: var(--ttbp-fw-medium);

  line-height: 1.5;

  margin-bottom: 5px;

}


.booking-info ul {

  list-style: none;

  margin: 0;

  padding: 0;

}


.booking-info ul li {

  font-size: var(--ttbp-fs-base);

}

/* 2026-08-30: each .ttbp_summary_row groups a few facts (holes/players/cart,
   or date/time) onto one line instead of one <li> per fact - .ttbp_summary_chip
   is the icon+text pair that used to be the whole <li>. */

.booking-info ul li.ttbp_summary_row {

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  row-gap: 4px;

  column-gap: var(--ttbp-sp-3);

}

.ttbp_summary_chip {

  display: inline-flex;

  align-items: center;

  gap: 5px;

  white-space: nowrap;

}


.ttbp_checkout {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 0px;

  align-items: flex-start;

}


#ttbp_billing_form {

  grid-column: span 2;

  padding-right: 50px;

}


.due-amount {

  border-top: 1px solid var(--ttbp-gray-300);

}


button.ttbp_booking_submit {

  width: 100%;

}


#ttbp_payment_methods {

  margin-top: 0px;

}


.ttbp_section_heading {

  display: flex;

  align-items: center;

  padding: 0;

  gap: 10px;

  margin-bottom: var(--ttbp-sp-5);

}


.ttbp_section_heading h2 {

  font-size: var(--ttbp-fs-lg);

  font-weight: var(--ttbp-fw-semibold);

  margin-bottom: 0;

}


.ttbp_line {

  display: block;

  flex: 1;

  height: 1px;

  background: var(--ttbp-gray-300);

}


.ttbp-required {

  color: var(--ttbp-danger);

}


#ttbp_previous {

  display: flex;

  align-items: center;

  gap: 3px;

  margin: 0;

  margin-bottom: 25px;

  width: auto;

  background: transparent;

  color: var(--ttbp-gray-500);

  box-shadow: none;

  padding: 0 5px;

  font-size: var(--ttbp-fs-base);

  font-style: italic;

  border-bottom: 1px solid;

  cursor: pointer;

  border-radius: 0;

}


#ttbp_previous:hover {

  color: var(--ttbp-primary);

}


.ttbp_marketing {

  display: flex;

  align-items: flex-start;

  gap: 10px;

  color: var(--ttbp-gray-900);

  font-size: var(--ttbp-fs-base);

  font-weight: var(--ttbp-fw-normal);

  line-height: 1.5;

  margin-top: var(--ttbp-sp-5);

}


.ttbp_marketing input[type="checkbox"] {

  margin-top: var(--ttbp-sp-1);

}


.ttbp_payment_notice {

  background: #fff3cd;

  padding: 0.75rem 1.25rem;

  border-radius: var(--ttbp-radius-lg);

  font-size: var(--ttbp-fs-base);

  font-weight: var(--ttbp-fw-normal);

  line-height: 1.5;

  color: #856404;

  border: 1px solid #ffeeba;

}


/* Calendar Entry Form Ends*/


/* Confirmation Page */


.ttbp_confirmation_container {

  max-width: 480px;

  margin: 20px auto;

  background-color: var(--ttbp-white);

  border-radius: var(--ttbp-radius-lg);

  box-shadow: var(--ttbp-shadow);

  overflow: hidden;

  font-size: var(--ttbp-fs-base);

}


.ttbp_confirmation_header {

  background-color: var(--ttbp-primary);

  padding: 14px;

  text-align: center;

}


.ttbp_confirmation_header h1 {

  margin: 0;

  font-size: var(--ttbp-fs-xl);

  color: var(--ttbp-white);

}


.ttbp_confirmation_booking-details {

  padding: 14px 18px;

}


.ttbp_confirmation_detail-row {

  display: flex;

  border-bottom: 1px solid var(--ttbp-gray-200);

  padding: 8px 0;

}


.ttbp_confirmation_detail-row:last-child {

  border-bottom: none;

}


.ttbp_confirmation_detail-label {

  flex: 1;

  font-weight: var(--ttbp-fw-semibold);

  color: var(--ttbp-gray-500);

}


.ttbp_confirmation_detail-value {

  flex: 2;

  color: var(--ttbp-gray-700);

}


.ttbp_confirmation_confirmation-id {

  background-color: rgba(0, 166, 81, 0.03);

  padding: 15px;

  border-radius: var(--ttbp-radius-sm);

  border-left: 4px solid var(--ttbp-primary);

  margin-bottom: var(--ttbp-sp-5);

}


.ttbp_confirmation_footer {

  background-color: rgba(0, 166, 81, 0.03);

  padding: 15px;

  text-align: center;

  font-size: var(--ttbp-fs-base);

  color: var(--ttbp-gray-500);

}


.ttbp_confirmation_payment-pending {

  color: #e67e22;

  font-weight: bold;

}


.ttbp_confirmation_payment-completed {

  color: var(--ttbp-success);

  font-weight: bold;

}


.ttbp_confirmation_qr-code {

  text-align: center;

  margin: 20px 0;

}


.ttbp_confirmation_qr-code img {

  border: 1px solid var(--ttbp-gray-300);

  padding: 10px;

  background: white;

}


.ttbp_confirmation_contact-info {

  margin-top: var(--ttbp-sp-5);

  font-size: var(--ttbp-fs-base);

}


.ttbp-card-errors {

  font-size: var(--ttbp-fs-base);

  font-weight: var(--ttbp-fw-medium);

  color: var(--ttbp-danger);

  line-height: 1.5;

  padding: 0 0 0 5px;

}


/* Status Message Styles */

.status-container {

  margin: 20px 0 0;

  padding: 15px;

  border-radius: 5px;

  transition: all 0.3s ease;

  display: none;

  align-items: center;

  overflow: hidden;

}


.status-container.visible {

  opacity: 1;

  display: flex;

  padding: 15px;

  animation: fadeIn 0.3s ease;

}


@keyframes fadeIn {

  from {

    opacity: 0;

  }

  to {

    opacity: 1;

  }

}


.status-icon {

  margin-right: 15px;

  width: 24px;

  height: 24px;

  position: relative;

}


.status-message {

  flex-grow: 1;

  font-weight: var(--ttbp-fw-medium);

}


/* Processing state */

.status-processing {

  background-color: var(--ttbp-gray-100);

  border-left: 4px solid var(--ttbp-primary);

  color: var(--ttbp-primary);

}


.processing-spinner {

  border: 3px solid rgba(62, 50, 244, 0.3);

  border-top: 3px solid var(--ttbp-primary);

  border-radius: 50%;

  width: 24px;

  height: 24px;

  animation: spin 1s linear infinite;

}


@keyframes spin {

  0% {

    transform: rotate(0deg);

  }

  100% {

    transform: rotate(360deg);

  }

}


/* Error state */

.status-error {

  background-color: #fdedeb;

  border-left: 4px solid var(--ttbp-danger);

  color: var(--ttbp-danger);

}


/* .ttbp_disallow {

  position: relative;

}


.ttbp_disallow:before {

  content: "";

  position: absolute;

  inset: 0;

  z-index: 100;

  cursor: not-allowed;

} */


.payment-row {

  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 10px;

  gap: var(--ttbp-sp-2);

}


.payment-column {

  width: calc(50% - 7px);

  position: relative;

}


.payment-label {

  display: block;

  font-size: var(--ttbp-fs-base);

  font-weight: var(--ttbp-fw-medium);

  color: var(--ttbp-gray-900);

  margin-bottom: 5px;

  line-height: 1.4;

}


.payment-column input,

.payment-column select {

  font-size: var(--ttbp-fs-base);

  color: var(--ttbp-gray-900);

  border: 1px solid var(--ttbp-gray-300);

  border-radius: var(--ttbp-radius);

}


#delete_reason,

#delete_reason_explain {

  border-radius: 5px;

  border: 1px solid var(--ttbp-gray-300);

  margin-bottom: 10px;

  font-size: var(--ttbp-fs-base);

  color: var(--ttbp-gray-900);

  height: auto;

  padding: var(--ttbp-sp-2);

}


/* Confirmation Page Ends */


/* Bulk Mode */


.slot.empty.blockmode {

  border: 1px solid var(--ttbp-primary);

}


.slot.empty.blockmode.blocked {

  background: var(--ttbp-primary);

  color: var(--ttbp-white);

  border: 1px solid var(--ttbp-primary);

}


#book_block {

  display: inline-block;

}


#ttbp_blockbook_form {

  width: 640px;

  max-width: 100%;

}


.ttbp_ride_type {

  display: flex;

  align-items: center;

  gap: 2px;

  color: var(--ttbp-gray-900);

}


.ttbp_ride_type svg {

  width: 20px;

  height: 17px;


}

span.ttbp_ride_type {
  color: var(--ttbp-gray-900);
}


.ttbp_slot_hole {

  display: flex;

  align-items: center;

  gap: 10px;

}


.ttbp_form_group input[type="text"],

.ttbp_form_group input[type="email"],

.ttbp_form_group input[type="tel"],

.ttbp_form_group input[type="number"],

.ttbp_form_group select {

  border: 1px solid var(--ttbp-gray-300);

  border-radius: var(--ttbp-radius);

  padding: 10px;

  font-size: 15px;

  color: var(--ttbp-gray-900);

  line-height: 1.5;

  height: auto;

}


.ttbp_button_loader {

  width: 16px;

  height: 16px;

  border: 2px solid currentColor;

  border-bottom-color: transparent;

  border-radius: 50%;

  display: none;

  box-sizing: border-box;

  animation: rotation 1s linear infinite;

}


.form-status {

  font-size: var(--ttbp-fs-lg);

  display: block;

  font-weight: 1.5;

  color: var(--ttbp-info);

  text-align: center;

  font-weight: var(--ttbp-fw-semibold);

  margin-top: var(--ttbp-sp-5);

}


@keyframes rotation {

  0% {

    transform: rotate(0deg);

  }

  100% {

    transform: rotate(360deg);

  }

}


.ttbp_button_has_loader {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 5px;

}


.bulk-book-pricing,

.bulk-book-payment,

.new-book-payment {

  border-collapse: collapse;

  width: 100%;

  margin-top: var(--ttbp-sp-5);

  margin-bottom: 0;

  border: 1px solid var(--ttbp-gray-300);

}


.bulk-book-pricing tbody th,

.bulk-book-pricing tbody td {

  border: none;

  font-size: var(--ttbp-fs-base);

  padding: 10px;

  color: var(--ttbp-gray-900);

  font-weight: var(--ttbp-fw-normal);

  text-align: right;

}


.bulk-book-pricing thead tr,

.bulk-book-payment thead tr,

.new-book-payment thead tr {

  background: rgba(0, 0, 0, 0.1);

}


.bulk-book-pricing thead tr th {

  padding: var(--ttbp-sp-3);

  border: none;

}


.bulk-book-pricing thead tr th h3,

.bulk-book-payment thead th h3,

.new-book-payment thead th h3 {

  margin: 0;

  font-size: var(--ttbp-fs-lg);

  font-weight: var(--ttbp-fw-bold);

  color: var(--ttbp-gray-900);

  text-align: left;

}


.bulk-book-pricing tbody th {

  font-weight: var(--ttbp-fw-semibold);

  text-align: left;

}


.bulk-book-pricing tbody tr {

  border-bottom: 1px solid var(--ttbp-gray-300);

}


#ttbp_row_break {

  border-bottom: 0px solid transparent;

  border-top: 1px solid var(--ttbp-gray-300);

}


.bulk-book-payment tbody td,

.new-book-payment tbody td {

  padding: 0;

}


.bulk-book-payment tbody td label,

.new-book-payment tbody td label {

  display: flex;

  align-items: center;

  gap: 10px;

  font-size: var(--ttbp-fs-base);

  color: var(--ttbp-gray-900);

  line-height: 1.5;

  font-weight: var(--ttbp-fw-medium);

  padding: var(--ttbp-sp-3);

  cursor: pointer;

}


.bulk-book-payment tbody td label:hover,

.new-book-payment tbody td label:hover {

  background: rgba(0, 0, 0, 0.01);

}


.ttbp_coupon_field {

  display: flex;

  align-items: stretch;

  gap: 5px;

  margin: 10px 0;

}


.remove-coupon {

  font-size: var(--ttbp-fs-sm);

  border: 1px solid var(--ttbp-danger);

  border-radius: 3px;

  line-height: 1.2;

  padding: 3px 10px;

  cursor: pointer;

  display: inline-block;

  margin-right: 10px;

  color: var(--ttbp-danger);

  background: #f8d7da;

}


.ttbp_single_booking {

  display: grid;

  grid-template-columns: 1fr 2fr 2fr;

  gap: 10px;

  padding: var(--ttbp-sp-5);

  border: 1px solid rgba(0, 0, 0, 0.2);

  border-radius: 5px;

  background: var(--ttbp-gray-50);

}


.ttbp_starter_container {

  width: 100%;

}


.ttbp_starter_group {

  display: flex;

  flex-direction: column;

  gap: 10px;

  margin-bottom: 10px;

}


.ttbp_customers {

  list-style: none;

  padding: 0;

  margin: 0;

  display: flex;

  flex-direction: column;

  gap: 5px;

}


.ttbp_customers li {

  font-size: 15px;

  font-weight: var(--ttbp-fw-normal);

  line-height: 1.4;

  display: flex;

  align-items: center;

  gap: 10px;

}


.ttbp_cc_group {

  display: flex;

  align-items: stretch;

  gap: 0;

  border: 1px solid var(--ttbp-gray-300);

  border-radius: 3px;

}


.ttbp_cart_count {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 10px;

  margin-bottom: var(--ttbp-sp-5);

}


.ttbp_cc_img {

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 2px 10px;

  background: var(--ttbp-gray-200);

}


.ttbp_cc_group input {

  outline: none;

  border: none;

  box-shadow: none;

  padding: var(--ttbp-sp-2);

  height: auto;

}


.ttbp_turn_times {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 10px;

}


button[type="button"].turn_btn {

  background: var(--ttbp-white);

  border: 1px solid var(--ttbp-gray-300);

  border-radius: 3px;

  padding: 10px;

  line-height: 1.2;

  font-size: var(--ttbp-fs-base);

  color: var(--ttbp-gray-900);

}


.ttbp_paceofplay h2 {

  text-align: center;

  font-size: var(--ttbp-fs-xl);

  text-decoration: underline;

  margin-bottom: 10px;

}


.ttbp_cal_paceofplay {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 10px;

  text-align: center;

}


.pace_btn {

  font-size: var(--ttbp-fs-base);

}


.ttbp_disabled {

  pointer-events: none;

}


.turn_btn .ttbp_button_loader {

  border: 2px solid var(--ttbp-gray-900);

  border-bottom-color: transparent;

}


.pace_btn {

  display: flex;

  flex-direction: column;

  text-align: center;

}


.ttbp_button a {

  color: var(--ttbp-white);

  text-decoration: none;

  outline: none;

}


.ttbp-not-found {

  text-align: center;

  min-height: 250px;

  font-size: var(--ttbp-fs-3xl);

  font-weight: var(--ttbp-fw-bold);

  color: rgba(0, 0, 0, 0.2);

  width: 100%;

  display: flex;

  align-items: center;

  justify-content: center;

}


.ttbp_form_group {

  position: relative;

}

/* 2026-08-30: visually-hidden but still screen-reader-accessible - used on
   #ttbp_billing_form's Name/Email/Phone labels now that those inputs carry
   their own placeholder text (that step is a confirm, not a fill-in, for
   already-registered customers, so a separate label line was redundant). */

.ttbp_sr_only {

  position: absolute;

  width: 1px;

  height: 1px;

  padding: 0;

  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;

}

/* Email + Phone share a row on the checkout step - neither needs full width
   on its own, and pairing them cuts the customer-info block roughly in half. */

.ttbp_contact_row {

  display: flex;

  gap: var(--ttbp-sp-3);

}

.ttbp_contact_row .ttbp_form_group {

  flex: 1;

  min-width: 0;

}


ul.ttbp_autocomplete {

  list-style: none;

  margin: 0;

  padding: 0;

  position: absolute;

  top: 100%;

  background: var(--ttbp-white);

  z-index: 100;

  width: 100%;

  font-size: var(--ttbp-fs-base);

  font-weight: var(--ttbp-fw-normal);

  box-shadow: var(--ttbp-shadow);

  padding: 0 5px;

  border-radius: 5px;

  max-height: 180px;

  overflow-y: scroll;

}


/* width */

ul.ttbp_autocomplete::-webkit-scrollbar {

  width: 5px;

}


/* Track */

ul.ttbp_autocomplete::-webkit-scrollbar-track {

  background: var(--ttbp-white);

  border-radius: 10px;

}


/* Handle */

ul.ttbp_autocomplete::-webkit-scrollbar-thumb {

  background: var(--ttbp-gray-300);

  border-radius: 10px;

}


/* Handle on hover */

ul.ttbp_autocomplete::-webkit-scrollbar-thumb:hover {

  background: var(--ttbp-gray-300);

}


li.ttbp_acResult {

  font-size: var(--ttbp-fs-base);

  padding: 12px 10px;

  cursor: pointer;

  user-select: none;

  display: flex;

  flex-direction: column;

  gap: 0;

  border-bottom: 1px solid var(--ttbp-gray-300);

}


li.ttbp_acResult:last-child {

  border-bottom: 0 solid;

}


.payment-column .ttbp_acResult {

  font-size: var(--ttbp-fs-xs);

  padding: 6px;

}



.payment-column ul.ttbp_autocomplete {

  max-height: 150px;

}


.ttbp_update_notice {

  font-size: var(--ttbp-fs-base);

  display: inline-block;

  margin-left: auto;

  color: var(--ttbp-gray-900);

  font-weight: var(--ttbp-fw-medium);

}


.ttbp_update_notice.success {

  color: var(--ttbp-success);

}


.ttbp_update_notice.error {

  color: var(--ttbp-danger);

}


span.discount_checkbox {

  display: inline-flex;

  align-items: center;

  margin-left: auto;

  font-size: 15px;

  gap: var(--ttbp-sp-2);

  border: 1px solid var(--ttbp-success);

  padding: 8px 12px;

  font-weight: var(--ttbp-fw-normal);

  color: var(--ttbp-white);

  border-radius: 5px;

  background: var(--ttbp-success);

  font-weight: var(--ttbp-fw-semibold);

}


span.discount_checkbox input {

  border: none;

}

/* Bulk Mode Ends */


@media (max-width: 1024px) {

  .ttbp_checkout {

    grid-template-columns: 1fr 1fr;

  }


  #ttbp_billing_form {

    grid-column: unset;

    padding-right: var(--ttbp-sp-5);

  }


  .ttbp_booking_summary {

    grid-column: unset;

  }


  .ttbp_single_booking {

    grid-template-columns: repeat(2, 1fr);

  }


  .ttbp_customers {

    grid-column: span 2;

    flex-direction: row;

    margin-bottom: var(--ttbp-sp-5);

    justify-content: center;

  }

}


@media (max-width: 767px) {

  .ttbp_single_booking {

    grid-template-columns: 1fr;

    gap: var(--ttbp-sp-5);

  }


  .ttbp_customers {

    grid-column: span 1;

    margin-bottom: 0px;

    flex-wrap: wrap;

  }


  /* 2026-08-30: keep the icon/time/price row horizontal at mobile
     widths too, matching the mock - it was stacking to a single column
     here, which is what made the old, busier slot card look even more
     oversized on a phone. */
  .ttbp_slot {

    grid-template-columns: auto 1fr auto;

  }


  .ttbp_checkout {

    grid-template-columns: 1fr;

    gap: var(--ttbp-sp-5);

  }


  #ttbp_billing_form {

    grid-column: span 1;

    padding-right: 0;

  }


  .ttbp_booking_summary {

    grid-column: unset;

    padding: var(--ttbp-sp-4);

  }


  .ttbp_slot_time>p {

    flex-direction: column;

    align-items: flex-start;

    gap: 0;

  }


  .ttbp_players {

    grid-template-columns: repeat(4, 1fr);

  }


  .ttbp_holes {

    grid-template-columns: repeat(2, 1fr);

  }


  .ttbp_tod {

    grid-template-columns: repeat(3, 1fr);

  }


  /* 2026-08-29: date-display and date_nav were unconditionally hidden here with
     no visible replacement (input.date-display.flatpickr-input.flatpickr-mobile
     below never matched anything in the DOM - #date-display is a div, not that
     input), so mobile customers had no way to pick a date at all. Keep the same
     prev/text/next control visible on mobile instead of hiding it. */

  .date-picker {

    margin: 20px 0;

  }


  input.date-display.flatpickr-input.flatpickr-mobile {

    padding: var(--ttbp-sp-2);

    text-align: left;

  }


  .ttbp_card_fields {

    grid-template-columns: repeat(1, 1fr);

  }


  .ttbp_rides {

    grid-template-columns: repeat(2, 1fr);

  }



  .ttbp_payment_tab label {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 5px;

  }


  span.discount_checkbox {

    margin-left: 0;

    font-size: var(--ttbp-fs-xs);

    gap: 6px;

    padding: 5px;

  }


  .ttbp-form {

    padding: 25px 16px;

  }

  /* 2026-08-30: compact mobile sizing so the booking form needs less
     scrolling on phones - smaller type and touch targets, similar to
     other booking sites, while staying well above 44px tap-target size. */

  .ttbp-form > h3 {

    font-size: var(--ttbp-fs-xl);

    margin-bottom: var(--ttbp-sp-3);

  }

  label.ttbp_player_btn span,

  label.ttbp_hole_btn span,

  label.ttbp_tod_btn span,

  label.ttbp_ride_selector span {

    padding: var(--ttbp-sp-2) var(--ttbp-sp-1);

    font-size: var(--ttbp-fs-xs);

    border-radius: 10px;

    gap: 2px;

  }

  .ttbp_players,

  .ttbp_holes,

  .ttbp_tod,

  .ttbp_rides {

    gap: var(--ttbp-sp-2);

  }

  .ttbp_tod {

    margin-top: var(--ttbp-sp-2);

  }

  .date-picker {

    margin: var(--ttbp-sp-3) 0;

  }

  /* 2026-08-30: .date-display has a hard-coded min-width: 200px (see base
     rule above) that was never given a mobile override. On phones the
     .date-picker grid (1fr / 2fr / 1fr) can't shrink the middle column below
     that 200px floor, so the row overflows and pushes the next-date button
     off-screen with no way to reach it - kill the floor here so the grid's
     own 2fr sizing can take over. */

  .date-display {

    min-width: 0;

  }

  .date-display,

  .date-display #date-text {

    font-size: var(--ttbp-fs-sm);

  }

  /* 2026-08-30: the checkout "Customer Information" fields were eating most
     of the screen on phones before you ever reached Payment Methods / the
     price breakdown / Book Now (all fighting the timer bar for the same
     space). Scoped to #ttbp_billing_form so it doesn't touch .ttbp_form_group
     / .ttbp_label / input padding used elsewhere in the plugin (there's also
     a pre-existing specificity conflict between two competing input-padding
     rules elsewhere in this file for those shared selectors - not fixing
     that here, just staying out of its way). */

  /* .ttbp-form button is a 150px fixed-width catch-all meant for short
     one-word labels (Submit, etc). "Back to Tee Time Search" doesn't fit
     that width at 17px, so it wraps to 3 lines and adds ~70px of height
     right above Customer Information - size it to its own content instead. */

  #ttbp_billing_form .ttbp_prev_step {

    width: auto;

    margin: 0 0 var(--ttbp-sp-3);

    padding: var(--ttbp-sp-2) var(--ttbp-sp-3);

    font-size: var(--ttbp-fs-sm);

  }

  #ttbp_billing_form .ttbp_section_heading {

    margin-bottom: var(--ttbp-sp-2);

  }

  #ttbp_billing_form .ttbp_section_heading h2 {

    font-size: var(--ttbp-fs-base);

  }

  #ttbp_billing_form .ttbp_form_group {

    margin-bottom: var(--ttbp-sp-2);

  }

  #ttbp_billing_form input[type="text"],

  #ttbp_billing_form input[type="email"],

  #ttbp_billing_form input[type="tel"] {

    padding: var(--ttbp-sp-2) var(--ttbp-sp-3);

    font-size: var(--ttbp-fs-sm);

  }

}

/* Bilal */
.booking-slot {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}

.slot {
  max-width: 24%;

}

/* TODO: Add new class to .time-row here */
.time-row.new_styles {
  margin-bottom: var(--ttbp-sp-5);
}

#starter_btn a {
  color: var(--ttbp-white);
}

#starter_btn:hover a {
  color: var(--ttbp-white);
}

/* Customer Grid Styles */
.ttbp-customer-grid-container {
  padding: 20px 0;
  font-family: inherit;
}

.ttbp-customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--ttbp-sp-5);
}

.ttbp-customer-card {
  background: var(--ttbp-white);
  border: 1px solid var(--ttbp-gray-200);
  border-radius: var(--ttbp-radius-xl);
  padding: var(--ttbp-sp-5);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  box-shadow: var(--ttbp-shadow-sm);
}

.ttbp-customer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ttbp-shadow-lg);
  border-color: var(--ttbp-primary);
}

.ttbp-customer-avatar img {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ttbp-gray-100);
}

.ttbp-customer-info {
  flex: 1;
  overflow: hidden;
}

.ttbp-customer-name {
  margin: 0 0 5px 0;
  font-size: var(--ttbp-fs-xl);
  font-weight: var(--ttbp-fw-semibold);
  color: var(--ttbp-gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* COF / Tab badges on customer cards */
.ttbp-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 4px;
  letter-spacing: 0.5px;
}
.ttbp-badge-cof {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}
.ttbp-badge-tab {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

/* Checkbox rows in customer edit modal */
.ttbp-checkbox-row {
  padding: 6px 0;
}
.ttbp-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}
.ttbp-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #16a34a;
  cursor: pointer;
}
.ttbp-checkbox-label small {
  color: #718096;
  font-weight: 400;
  margin-left: 4px;
}

.ttbp-customer-email,
.ttbp-customer-phone {
  margin: 3px 0;
  font-size: var(--ttbp-fs-base);
  color: var(--ttbp-gray-500);
  display: flex;
  align-items: center;
  gap: var(--ttbp-sp-2);
}

.ttbp-customer-email i,
.ttbp-customer-phone i {
  width: 16px;
  color: var(--ttbp-primary);
  font-size: var(--ttbp-fs-base);
}

@media (max-width: 600px) {
  .ttbp-customer-grid {
    grid-template-columns: 1fr;
  }
}

.ttbp-customer-list-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--ttbp-gray-100);
}

.ttbp-customer-list-header h2.ttbp_page_title {
  margin: 0;
  font-size: var(--ttbp-fs-3xl);
  font-weight: var(--ttbp-fw-bold);
  color: var(--ttbp-gray-900);
}

#ttbp_reg_status {
  margin-top: 15px;
  padding: 10px;
  border-radius: var(--ttbp-radius-sm);
  display: none;
  font-size: var(--ttbp-fs-base);
}

#ttbp_reg_status.error {
  background: #fff5f5;
  color: var(--ttbp-danger);
  border: 1px solid #fed7d7;
  display: block;
}

#ttbp_reg_status.success {
  background: #f0fff4;
  color: var(--ttbp-success);
  border: 1px solid #c6f6d5;
  display: block;
}

.ttbp-customer-search-wrapper {
  position: relative;
  margin-bottom: 25px;
}

.ttbp-customer-search-wrapper i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ttbp-gray-400);
}

#ttbp_customer_search {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid var(--ttbp-gray-200);
  border-radius: 10px;
  font-size: 15px;
  background: var(--ttbp-gray-50);
  transition: all 0.3s ease;
}

#ttbp_customer_search:focus {
  background: var(--ttbp-white);
  border-color: var(--ttbp-primary);
  outline: none;
  box-shadow: var(--ttbp-input-focus);
}

/* Tee Sheet Radio Selectors in Customer Modals */
.date-picker {
  display: grid;
  /* grid-template-columns: repeat(7, 1fr); */
  gap: 10px;
}

/* Closed block — merged bar spanning all player columns */
/* Background/border set via inline style from PHP (always black) */
.slot.closed-block {
  color: var(--ttbp-white);
  font-weight: bold;
  text-align: center;
  justify-content: center;
}
.slot.closed-block i,
.slot.closed-block span {
  color: var(--ttbp-white);
}
.slot.closed-block:hover {
  filter: brightness(1.15);
}

/* Outing/Event/League/Tournament blocks */
/* Background/border set via inline style from PHP (tee sheet color) */
.slot.outing-slot {
  color: var(--ttbp-white);
  font-weight: var(--ttbp-fw-semibold);
}
.slot.outing-slot i,
.slot.outing-slot span {
  color: var(--ttbp-white);
}
.slot.outing-slot:hover {
  filter: brightness(1.15);
}

/* Legacy blocked-slot fallback — inline style controls background/border */
.slot.blocked-slot:not(.outing-slot):not(.closed-block) {
  color: var(--ttbp-white);
  font-weight: bold;
}
.slot.blocked-slot:not(.outing-slot):not(.closed-block) i,
.slot.blocked-slot:not(.outing-slot):not(.closed-block) span {
  color: var(--ttbp-white);
}
.slot.blocked-slot:not(.outing-slot):not(.closed-block):hover {
  background-color: var(--ttbp-danger);
}

/* Block reason abbreviation badge on calendar pills */
.ttbp-block-abbr {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.25);
  color: #fff;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: auto;
  flex-shrink: 0;
  line-height: 1.2;
}

.ttbp_tee_sheet_radios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 5px;
}

label.ttbp_tee_sheet_selector {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--ttbp-sp-2);
  cursor: pointer;
  font-size: var(--ttbp-fs-base);
  padding: 5px 0;
}

label.ttbp_tee_sheet_selector input {
  margin: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

label.ttbp_tee_sheet_selector span {
  color: var(--ttbp-gray-500);
  font-weight: var(--ttbp-fw-medium);
}

label.ttbp_tee_sheet_selector input:checked+span {
  color: var(--ttbp-primary);
  font-weight: var(--ttbp-fw-semibold);
}

/* Authentication Barrier */
.ttbp_auth_barrier {
  background: var(--ttbp-gray-50);
  border: 2px dashed var(--ttbp-gray-200);
  border-radius: var(--ttbp-radius-xl);
  padding: 60px 40px;
  text-align: center;
  margin: 40px 0;
  box-shadow: var(--ttbp-shadow);
}

.ttbp_barrier_content h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--ttbp-gray-900);
}

.ttbp_barrier_content p {
  font-size: var(--ttbp-fs-lg);
  color: var(--ttbp-gray-500);
  max-width: 400px;
  margin: 0 auto 30px;
}

.ttbp_barrier_btns {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.ttbp_btn_primary {
  background: var(--ttbp-primary);
  color: var(--ttbp-white);
  padding: 10px 20px;
  border-radius: var(--ttbp-radius);
  font-weight: var(--ttbp-fw-semibold);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ttbp_btn_secondary {
  background: var(--ttbp-white);
  color: var(--ttbp-primary);
  padding: 10px 20px;
  border-radius: var(--ttbp-radius);
  font-weight: var(--ttbp-fw-semibold);
  border: 2px solid var(--ttbp-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ttbp_btn_primary:hover {
  background: var(--ttbp-primary-hover);
  transform: translateY(-2px);
}

.ttbp_btn_secondary:hover {
  background: var(--ttbp-gray-50);
  transform: translateY(-2px);
}

/* Auth Modal Specifics */
.ttbp_auth_modal_container {
  padding: 10px;
  min-width: 400px;
}

.ttbp_auth_tabs {
  display: flex;
  border-bottom: 2px solid var(--ttbp-gray-200);
  margin-bottom: 25px;
}

/* Auth Step Styling */
/* Improved Auth Step Styling */
.ttbp_auth_step_container {
  max-width: 550px;
  margin: 40px auto;
  background: var(--ttbp-white);
  padding: 45px;
  border-radius: 20px;
  box-shadow: var(--ttbp-shadow-xl);
  /* Deeper, more premium shadow */
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.ttbp_auth_step_container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--ttbp-primary), var(--ttbp-primary-hover)); /* was purple #8e2de2; follows Online Look */
  /* Added branding gradient */
}

.ttbp_back_btn {
  background: none;
  border: none;
  color: var(--ttbp-gray-500);
  font-size: var(--ttbp-fs-base);
  font-weight: var(--ttbp-fw-semibold);
  cursor: pointer;
  margin-bottom: 30px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: var(--ttbp-sp-2);
  border-radius: var(--ttbp-radius-lg);
  transition: all 0.2s ease;
  background-color: var(--ttbp-gray-50);
}

.ttbp_back_btn:hover {
  color: var(--ttbp-primary);
  background-color: var(--ttbp-gray-100);
  transform: translateX(-3px);
}

.ttbp_error_msg {
  display: none;
  background: #fff5f5;
  color: var(--ttbp-danger);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: var(--ttbp-fs-base);
  margin-bottom: 25px;
  border: 1px solid #ffc9c9;
  border-left: 4px solid #fa5252;
  box-shadow: 0 2px 5px rgba(250, 82, 82, 0.1);
}

.ttbp_success_msg {
  display: none;
  background: #f0fff4;
  color: var(--ttbp-success);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: var(--ttbp-fs-base);
  margin-bottom: 25px;
  border: 1px solid #c6f6d5;
  border-left: 4px solid var(--ttbp-success);
  box-shadow: 0 2px 5px rgba(72, 187, 120, 0.1);
}

.ttbp_auth_tabs {
  display: flex;
  background: var(--ttbp-gray-100);
  padding: 6px;
  border-radius: var(--ttbp-radius-xl);
  margin-bottom: 40px;
}

.ttbp_auth_tab {
  flex: 1;
  padding: 14px 20px;
  border: none;
  background: transparent;
  font-weight: var(--ttbp-fw-bold);
  color: var(--ttbp-gray-500);
  cursor: pointer;
  border-radius: 9px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  font-size: 15px;
  letter-spacing: 0.3px;
}

.ttbp_auth_tab.active {
  background: var(--ttbp-white);
  color: var(--ttbp-primary);
  box-shadow: var(--ttbp-shadow);
}

.ttbp_auth_tab:not(.active):hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--ttbp-gray-900);
}

.ttbp_auth_section h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: var(--ttbp-sp-3);
  color: var(--ttbp-gray-900);
  letter-spacing: -0.5px;
}

.ttbp_auth_section p {
  color: var(--ttbp-gray-500);
  margin-bottom: 30px;
  font-size: 15px;
  line-height: 1.6;
}

.ttbp_auth_section .ttbp_form_group {
  margin-bottom: 22px;
}

.ttbp_auth_section .ttbp_label {
  display: block;
  margin-bottom: var(--ttbp-sp-2);
  font-weight: var(--ttbp-fw-semibold);
  font-size: var(--ttbp-fs-base);
  color: var(--ttbp-gray-600);
}

.ttbp_auth_section .ttbp_input_text {
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid var(--ttbp-gray-200);
  background-color: #fdfdfd;
  transition: all 0.2s ease;
}

.ttbp_auth_section .ttbp_input_text:focus {
  background-color: var(--ttbp-white);
  border-color: var(--ttbp-primary);
  box-shadow: var(--ttbp-input-focus);
}

.ttbp_password_wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.ttbp_password_wrapper .ttbp_input_text {
  flex: 1;
  padding-right: 44px;
}

.ttbp_toggle_password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ttbp-gray-400);
  font-size: 15px;
  padding: 4px 6px;
  line-height: 1;
  transition: color 0.2s ease;
}

.ttbp_toggle_password:hover {
  color: var(--ttbp-primary);
}

/* 2026-09-28 (Tony, phone): `.ttbp-form button` (width:150px, green fill, 15px padding, top margin)
   outranked .ttbp_toggle_password, so the eye rendered as a big green button over the right half
   of the password box. Win back on specificity; keep the eye a small icon inside the box. */
.ttbp-form .ttbp_password_wrapper .ttbp_toggle_password,
.ttbp_password_wrapper .ttbp_toggle_password {
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 6px 8px;
  background: none;
  background-color: transparent;
  border: none;
  box-shadow: none;
  color: var(--ttbp-gray-400);
  font-size: 16px;
  line-height: 1;
}
.ttbp-form .ttbp_password_wrapper .ttbp_toggle_password:hover {
  background: none;
  color: var(--ttbp-primary);
}
/* Same `.ttbp-form button` leak on the sign-in step: the inactive auth tab went solid green and
   both tabs picked up a 20px top margin; the back button went green too. */
.ttbp-form .ttbp_auth_tabs .ttbp_auth_tab {
  width: auto;
  margin: 0;
  background: transparent;
  color: var(--ttbp-gray-500);
}
.ttbp-form .ttbp_auth_tabs .ttbp_auth_tab.active {
  background: var(--ttbp-white);
  color: var(--ttbp-primary);
}
.ttbp-form .ttbp_auth_tabs .ttbp_auth_tab:not(.active):hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--ttbp-gray-900);
}
.ttbp-form .ttbp_back_btn {
  width: auto;
  margin: 0 0 16px;
  background-color: var(--ttbp-gray-50);
  color: var(--ttbp-gray-500);
}
.ttbp-form .ttbp_back_btn:hover {
  background-color: var(--ttbp-gray-100);
  color: var(--ttbp-primary);
}
/* 2026-09-28 (Fore18 phone, sign-in step): heading block is a flex ROW, so "Welcome Back" sat
   squeezed beside its sentence. Stack it on the auth sections. */
.ttbp_auth_section .ttbp_section_heading { display: block; }
/* Since 4.4.346 drops the site theme's CSS on TTBP pages, its box-sizing reset went with it: a
   width:100% input plus padding ran past the card edge. Zero-specificity so nothing else moves. */
:where(.ttbp-form, .ttbp_fe_modal) :where(input, select, textarea) { box-sizing: border-box; }
/* 2026-09-28 (Tony): the tee-time hold countdown is a fixed bottom bar at z-index 99999. It sat on top of
   the My Profile "Charge" button, and with the iPhone keyboard up a fixed bottom bar floats just above the
   keyboard over the page. Hide it while a popup is open or the keyboard is up (booking.js sets
   body.ttbp-kb-open); the countdown keeps running and the bar returns when either closes. */
body:has(.ttbp_modal_visible) #ttbp_hold_timer_banner,
body.ttbp-kb-open #ttbp_hold_timer_banner { display: none !important; }
/* 2026-09-28 (Tony, iPhone -- the real cause behind 4 rounds of keyboard fixes): iOS Safari ZOOMS the page
   whenever a field under 16px gets focus (sign-in boxes were 15px). Zoom + keyboard + autofill bar is what
   buried the fields and buttons. Touch screens only, golfer pages only; desktop sizes unchanged. */
@media (hover: none) and (pointer: coarse) {
  .ttbp-form input:not([type=checkbox]):not([type=radio]), .ttbp-form select, .ttbp-form textarea,
  .ttbp_fe_modal input:not([type=checkbox]):not([type=radio]), .ttbp_fe_modal select, .ttbp_fe_modal textarea { font-size: 16px !important; }
}

.ttbp_forgot_password_wrapper {
  text-align: right;
  margin-top: -12px;
  margin-bottom: var(--ttbp-sp-5);
}

.ttbp_forgot_password_link {
  color: var(--ttbp-primary);
  font-size: var(--ttbp-fs-base);
  font-weight: var(--ttbp-fw-semibold);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.ttbp_forgot_password_link:hover {
  color: var(--ttbp-primary-hover);
  text-decoration: underline;
  transform: translateX(-2px);
}

#ttbp_step_login_btn,
#ttbp_step_reg_btn,
#ttbp_modal_login_btn,
#ttbp_modal_signup_btn {
  width: 100%;
  margin-top: 15px;
  padding: var(--ttbp-sp-4);
  font-weight: var(--ttbp-fw-bold);
  font-size: var(--ttbp-fs-lg);
  letter-spacing: 0.5px;
  border-radius: 10px;
  background-color: var(--ttbp-success);
  color: var(--ttbp-white);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(72, 187, 120, 0.25);
}

#ttbp_step_login_btn:hover,
#ttbp_step_reg_btn:hover,
#ttbp_modal_login_btn:hover,
#ttbp_modal_signup_btn:hover {
  background-color: var(--ttbp-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(72, 187, 120, 0.35);
}

@media (max-width: 600px) {
  .ttbp_auth_step_container {
    padding: var(--ttbp-sp-5);
    margin: 15px;
  }

  .ttbp_form_row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.ttbp_tee_sheet_radios {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 5px;
}

.ttbp_tee_sheet_selector {
  border: 1px solid var(--ttbp-gray-300);
  border-radius: var(--ttbp-radius-lg);
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.ttbp_tee_sheet_selector input {
  display: none;
}

.ttbp_tee_sheet_selector:has(input:checked) {
  border-color: var(--ttbp-primary);
  background: rgba(var(--primary-rgb), 0.05);
  box-shadow: 0 0 0 1px var(--ttbp-primary);
}

#ttbp_booking_step .date-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Modal Visibility Helper */
.ttbp_modal_visible {
  display: flex;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .ttbp_form_row {
    grid-template-columns: 1fr;
  }

  .ttbp_barrier_btns {
    flex-direction: column;
  }

  .ttbp_auth_modal_container {
    min-width: 100%;
  }
}

.ttbp_online_payment_features {
  display: flex;
  align-items: center;
  min-height: 24px;
}

.discount_checkbox {
  margin-left: 0;
}


.ttbp_checked_in {
  border-color: var(--ttbp-success);
  color: var(--ttbp-success);
  background-color: #f0fff4;
}

select.player_checkin_status.ttbp_checked_in {
  font-weight: bold;
}
/* ============================================================
   BOOKING INFO — Checkbox toggle (Check-in + POS Order)
   ============================================================ */
.ttbp_checkbox_label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    padding: 6px 0;
}

.ttbp_checkbox_label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.ttbp_checkbox_track {
    position: relative;
    width: 46px;
    height: 26px;
    background: var(--ttbp-gray-300);
    border-radius: 999px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.ttbp_checkbox_thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--ttbp-white);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    transition: left 0.2s;
}

/* ON states */
.ttbp_checkbox_label.ttbp_checked_in .ttbp_checkbox_track,
.ttbp_checkbox_label.ttbp_pos_on .ttbp_checkbox_track {
    background: var(--ttbp-success);
}

.ttbp_checkbox_label.ttbp_checked_in .ttbp_checkbox_track .ttbp_checkbox_thumb,
.ttbp_checkbox_label.ttbp_pos_on .ttbp_checkbox_track .ttbp_checkbox_thumb {
    left: 23px;
}

.ttbp_checkbox_text {
    font-size: var(--ttbp-fs-base);
    font-weight: var(--ttbp-fw-semibold);
    color: var(--ttbp-gray-500);
    min-width: 110px;
}

.ttbp_checkbox_label.ttbp_checked_in .ttbp_checkbox_text {
    color: var(--ttbp-success);
}

.ttbp_checkbox_label.ttbp_pos_on .ttbp_checkbox_text {
    color: #1a4fa0;
}

/* POS Order track uses blue when ON */
.ttbp_checkbox_label.ttbp_pos_on .ttbp_checkbox_track {
    background: #1a4fa0;
}

.checkin-col,
.pos-order-col {
    display: flex;
    flex-direction: column;
    gap: var(--ttbp-sp-1);
}

/* ============================================================
   BOOKING INFO FOOTER — Remove left · Cancel · Sale · Save right
   ============================================================ */
#ttbp_booking_info .ttbp_modal_footer {
  justify-content: flex-end;
}

.ttbp_btn_remove {
  background: var(--ttbp-white);
  color: var(--ttbp-danger);
  border: 1.5px solid var(--ttbp-danger);
  font-weight: var(--ttbp-fw-semibold);
  border-radius: var(--ttbp-radius);
}
.ttbp_btn_remove:hover {
  background: var(--ttbp-danger);
  color: var(--ttbp-white);
}

.ttbp_btn_save_outline {
  background: var(--ttbp-white);
  color: #2563eb;
  border: 1.5px solid #2563eb;
  font-weight: var(--ttbp-fw-semibold);
  border-radius: var(--ttbp-radius);
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ttbp_btn_save_outline:hover {
  background: #2563eb;
  color: var(--ttbp-white);
}

.ttbp_btn_cancel_modal {
  background: var(--ttbp-gray-100);
  color: var(--ttbp-gray-600);
  border: 1.5px solid var(--ttbp-gray-300);
  border-radius: var(--ttbp-radius);
}
.ttbp_btn_cancel_modal:hover {
  background: #e8e8e8;
}

.ttbp_btn_primary {
  background: var(--ttbp-primary);
  color: var(--ttbp-white);
  border: none;
  border-radius: var(--ttbp-radius);
  font-weight: var(--ttbp-fw-semibold);
}
.ttbp_btn_primary:hover {
  background: var(--ttbp-primary-hover);
}

/* Footer button padding — all buttons in modal footers */
.ttbp_modal_footer .ttbp_button {
  padding: 10px 20px;
}

/* ============================================================
   CLOSED BLOCK INFO PANEL
   ============================================================ */
.bi-block-info {
  padding: 20px;
  background: var(--ttbp-gray-50);
  border: 1px solid var(--ttbp-gray-200);
  border-radius: var(--ttbp-radius);
  margin: 12px 0;
}
.bi-block-info-header {
  font-size: 16px;
  font-weight: var(--ttbp-fw-bold);
  color: var(--ttbp-danger);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ttbp-danger);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bi-block-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 16px;
}
.bi-block-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bi-block-label {
  font-size: 11px;
  font-weight: var(--ttbp-fw-semibold);
  color: var(--ttbp-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bi-block-value {
  font-size: 14px;
  font-weight: var(--ttbp-fw-semibold);
  color: var(--ttbp-gray-800);
}
.bi-block-notes-section {
  margin-top: 12px;
}
.bi-block-notes-section .bi-block-label {
  display: block;
  margin-bottom: 6px;
}
.bi-block-notes-ta {
  width: 100%;
  min-height: 60px;
  padding: 12px;
  border: 1px solid var(--ttbp-gray-200);
  border-radius: var(--ttbp-radius);
  background: var(--ttbp-white);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ttbp-gray-700);
  resize: vertical;
  font-family: inherit;
}
.bi-block-notes-ta:focus {
  outline: none;
  border-color: var(--ttbp-primary);
  box-shadow: 0 0 0 2px rgba(var(--ttbp-primary-rgb, 59, 130, 246), 0.15);
}

/* ============================================================
   REGISTER-STYLE GOLFER ROWS — Booking Info modal
   One tight horizontal row per player, no cards, no scroll.
   ============================================================ */

.info_payment_status {
  display: flex;
  flex-direction: column;
}

/* Single row per golfer */
.bi-gr {
  display: flex;
  align-items: center;
  gap: var(--ttbp-sp-1);
  padding: 3px 10px;
  border-bottom: 1px solid #edf0f2;
  min-height: 30px;
}
.bi-gr:last-child { border-bottom: none; }
.bi-gr:nth-child(odd) { background: #f9fbfc; }
.bi-gr:nth-child(even) { background: var(--ttbp-white); }

/* Player number badge — clickable for profile */
.bi-gr-num {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: var(--ttbp-primary);
  color: var(--ttbp-white);
  font-size: var(--ttbp-fs-xs);
  font-weight: var(--ttbp-fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.bi-gr-num:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(21,128,61,.3);
}

/* Delete player button (far right X) */
.bi-gr-delete {
  min-width: 24px;
  color: var(--ttbp-gray-400);
  font-size: 16px;
  line-height: 1;
  border-color: transparent;
  background: transparent;
  transition: color .12s;
}
.bi-gr-delete:hover {
  color: var(--ttbp-danger, #dc2626);
  background: #fef2f2;
  border-color: #fecaca;
}

/* Field wrappers */
.bi-gr-f {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bi-gr-f-name  { flex: 2.2; }
.bi-gr-f-phone { flex: 1.4; }
.bi-gr-f-email { flex: 2; }
.bi-gr-f-id    { flex: 0.7; }
.bi-gr-f-fee   { flex: 1.6; }

/* Inputs inside rows */
.bi-gr-input,
.bi-gr-fee,
.bi-gr-f input,
.bi-gr-f select {
  width: 100%;
  height: 26px;
  padding: 0 6px;
  font-size: var(--ttbp-fs-sm);
  border: 1px solid var(--ttbp-gray-300);
  border-radius: var(--ttbp-radius-sm);
  background: var(--ttbp-white);
  color: var(--ttbp-gray-900);
  line-height: 26px;
  box-sizing: border-box;
}
.bi-gr-f input:focus,
.bi-gr-f select:focus {
  border-color: var(--ttbp-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(26,124,62,.12);
}

/* Autocomplete dropdown */
.bi-gr-f .ttbp_autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
}

/* Paid status tint */
.bi-gr-fee.ttbp_paid {
  background: #f0fdf4;
  border-color: #16a34a;
  color: var(--ttbp-primary-dark);
}

/* Cart tax micro-line (legacy) */
.bi-gr-tax {
  font-size: 10px;
  color: var(--ttbp-gray-400);
  white-space: nowrap;
  line-height: 1.2;
  margin-top: 1px;
}

/* Cart breakdown row — golf + cart checkbox + tax */
.bi-gr-cart-breakdown {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--ttbp-fs-xs);
  margin-top: 3px;
  flex-wrap: wrap;
}
.bi-gr-cart-golf {
  color: var(--ttbp-gray-700);
  font-weight: var(--ttbp-fw-medium);
  white-space: nowrap;
}
.bi-gr-cart-label {
  display: flex;
  align-items: center;
  gap: var(--ttbp-sp-1);
  cursor: pointer;
  color: var(--ttbp-gray-700);
  font-weight: var(--ttbp-fw-medium);
  white-space: nowrap;
  user-select: none;
}
.bi-gr-cart-label input[type="checkbox"] {
  accent-color: #2563eb;
  width: 13px;
  height: 13px;
  cursor: pointer;
  flex-shrink: 0;
}
.bi-gr-cart-label .fa-golf-cart {
  color: #2563eb;
  font-size: var(--ttbp-fs-sm);
}
.bi-gr-cart-tax {
  color: var(--ttbp-gray-400);
  font-size: 10px;
}

/* In / $ action buttons */
.bi-gr-btn {
  height: 26px;
  padding: 0 8px;
  border-radius: var(--ttbp-radius-sm);
  font-size: var(--ttbp-fs-xs);
  font-weight: var(--ttbp-fw-semibold);
  border: 1px solid var(--ttbp-gray-300);
  background: var(--ttbp-white);
  color: var(--ttbp-gray-700);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: background .12s, border-color .12s, color .12s;
}
.bi-gr-in { min-width: 36px; }
.bi-gr-pay {
  min-width: 52px; height: 52px; padding: 0 14px;
  background: #eff6ff; border-color: #3b82f6; color: #1d4ed8;
  font-weight: 700; font-size: var(--ttbp-fs-base);
  border-radius: var(--ttbp-radius);
  align-self: stretch;
}
.bi-gr-pay:hover { background: #dbeafe; border-color: #2563eb; }
.bi-gr-fee.ttbp_on_tab { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
.bi-gr-charge { min-width: 30px; }
.bi-gr-btn:hover { background: var(--ttbp-gray-100); }
.bi-gr-btn.on.bi-gr-in { background: #dcfce7; border-color: #16a34a; color: var(--ttbp-primary-dark); }
.bi-gr-btn.on.bi-gr-charge { background: #eff6ff; border-color: #3b82f6; color: #1d4ed8; }
.bi-gr-charge:not(.on) { text-decoration: line-through; color: var(--ttbp-gray-400); border-color: var(--ttbp-gray-200); }

/* Red asterisk on $ button */
.bi-gr-charge-star {
  color: var(--ttbp-danger);
  font-size: 9px;
  vertical-align: super;
  font-weight: bold;
  margin-left: 1px;
  pointer-events: auto;
  cursor: pointer;
}
.bi-gr-charge:not(.on) .bi-gr-charge-star { color: var(--ttbp-danger); text-decoration: none; display: inline; }

/* Manual payment note row (shown when $ is ON or a note already exists) */
.bi-gr-pay-note-row {
  grid-column: 1 / -1;
  padding: 4px 4px 2px;
  display: flex;
}
.bi-gr-pay-note-input {
  width: 100%;
  font-size: var(--ttbp-fs-xs);
  border: 1px solid #fca5a5;
  background: #fff5f5;
  border-radius: var(--ttbp-radius-sm);
  padding: 3px 6px;
  color: var(--ttbp-gray-700);
}
.bi-gr-pay-note-input:focus { outline: 2px solid var(--ttbp-danger); border-color: var(--ttbp-danger); }

/* ── Inline per-player coupon ────────────────────────────────────────────── */
.bi-gr-coupon-wrap {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}
.bi-gr-coupon-inline {
  margin-left: auto;
}
.bi-gr-coupon-icon {
  width: 22px; height: 22px;
  padding: 0;
  border-radius: var(--ttbp-radius-sm);
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  border: 1px solid #f59e0b;
  background: transparent;
  color: #b45309;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, border-color .12s;
}
.bi-gr-coupon-icon:hover { background: #fef3c7; border-color: #d97706; }
.bi-gr-coupon-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 4px 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #1a5018;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: var(--ttbp-radius-sm);
  white-space: nowrap;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bi-gr-coupon-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: #991b1b;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}
.bi-gr-coupon-x:hover { background: #fee2e2; }
.bi-gr-coupon-drop {
  position: absolute;
  right: 0;
  top: calc(100% + 3px);
  z-index: 999;
  background: var(--ttbp-white);
  border: 1px solid var(--ttbp-gray-300);
  border-radius: var(--ttbp-radius);
  box-shadow: var(--ttbp-shadow);
  padding: var(--ttbp-sp-2);
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 220px;
}
.bi-gr-coupon-drop select {
  flex: 1;
  height: 28px;
  font-size: var(--ttbp-fs-sm);
  padding: 0 6px;
  border: 1px solid var(--ttbp-gray-300);
  border-radius: var(--ttbp-radius-sm);
  background: var(--ttbp-white);
}
.bi-gr-coupon-apply {
  height: 28px;
  padding: 0 10px;
  background: var(--ttbp-primary);
  color: var(--ttbp-white);
  border: none;
  border-radius: var(--ttbp-radius-sm);
  font-size: var(--ttbp-fs-sm);
  font-weight: var(--ttbp-fw-semibold);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: var(--ttbp-sp-1);
}
.bi-gr-coupon-apply:hover { background: var(--ttbp-primary-dark); }
.bi-gr-coupon-apply:disabled { opacity: .6; cursor: default; }
.bi-gr-coupon-tag { font-size: 9px; color: #1a5018; }
.bi-gr-coupon-icon i.fa-tag { font-size: 11px; }

/* Tab-locked golfer row -- price, cart, coupon are read-only */
.bi-gr-tab-locked .bi-gr-fee { opacity: .55; pointer-events: none; }
.bi-gr-tab-locked .bi-gr-cart-breakdown { opacity: .55; pointer-events: none; }
.bi-gr-tab-locked .bi-gr-coupon-wrap { opacity: .45; pointer-events: none; }
.bi-gr-tab-locked .bi-gr-coupon-icon,
.bi-gr-tab-locked .bi-gr-coupon-x,
.bi-gr-tab-locked .bi-gr-coupon-apply { cursor: default; }

/* — Legacy .gc-* kept for any stray references — */
.gc-header {
  font-size: var(--ttbp-fs-xs);
  font-weight: var(--ttbp-fw-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ttbp-primary);
  line-height: 1;
}

/* Horizontal field rows */
.gc-row {
  display: flex;
  gap: var(--ttbp-sp-2);
  align-items: flex-end;
}

/* Individual field cell */
.gc-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  min-width: 0;
}

.gc-field-name  { flex: 2.2; }
.gc-field-email { flex: 2.2; }
.gc-field-phone { flex: 1.6; }
.gc-field-id    { flex: 0.9; }
.gc-field-fee   { flex: 1.8; }
.gc-field-checkin { flex: 1.4; }
.gc-field-charge  { flex: 1.1; }

/* Compact label */
.gc-label {
  font-size: 10px;
  font-weight: var(--ttbp-fw-semibold);
  color: var(--ttbp-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin: 0;
}

/* Compact input */
.gc-input,
.gc-select,
.gc-field input[type="text"],
.gc-field input[type="email"],
.gc-field input[type="tel"],
.gc-field select {
  width: 100%;
  height: 28px;
  padding: 2px 7px;
  font-size: var(--ttbp-fs-base);
  border: 1px solid var(--ttbp-gray-300);
  border-radius: 5px;
  background: var(--ttbp-white);
  box-sizing: border-box;
  color: var(--ttbp-gray-900);
  line-height: 1;
}

/* Toggle inside card row — keep it aligned */
.gc-field .ttbp_checkbox_label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  margin: 0;
  height: 28px;
}

.gc-field .ttbp_checkbox_text {
  font-size: var(--ttbp-fs-sm);
  white-space: nowrap;
}

/* Autocomplete dropdown stays within field */
.gc-field .ttbp_autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
}

/* Paid status — green tint on select */
.gc-field select.ttbp_paid {
  background: #f0fdf4;
  border-color: #16a34a;
  color: var(--ttbp-primary-dark);
}

/* Booking info section header spacing */
.ttbp_info_section {
  margin-bottom: var(--ttbp-sp-2);
}

.ttbp_section_label {
  font-size: var(--ttbp-fs-sm);
  font-weight: var(--ttbp-fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ttbp-gray-700);
  margin-bottom: 5px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ttbp-gray-200);
}

/* Info grid — tighter rows */
.ttbp_info_grid .tig_row {
  gap: var(--ttbp-sp-2);
  margin-bottom: 6px;
}

.tig_cell {
  padding: 0;
}

.tig_label {
  font-size: 10px;
  font-weight: var(--ttbp-fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ttbp-gray-400);
  display: block;
  margin-bottom: 1px;
}

.tig_value {
  font-size: var(--ttbp-fs-base);
  font-weight: var(--ttbp-fw-medium);
  color: var(--ttbp-gray-900);
  display: block;
}

/* Notes textarea — compact */
.info_booking_message textarea {
  min-height: 40px;
  max-height: 60px;
  resize: vertical;
  font-size: var(--ttbp-fs-base);
}

/* Coupon row — inline compact */
.ttbp_coupon_field {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ttbp_coupon_field select {
  flex: 1;
  height: 30px;
  font-size: var(--ttbp-fs-base);
}

.ttbp_coupon_field button {
  height: 30px;
  padding: 0 10px;
}

/* Block Tee Times modal wider inner */
#ttbp_blockbook .ttbp_modal_inner {
  width: 860px;
  max-width: 98vw;
  margin-top: 40px;
}

/* Booking Entry modal inner */
#ttbp_entry .ttbp_modal_inner {
  width: 660px;
  max-width: 98vw;
  margin-top: 40px;
  overflow: hidden;
  padding-bottom: 0;
}

/* ============================================================
   MODAL GRID FORM — Condensed Row Layouts
   Consistent with Booking Info design: green primary, clean
   inputs, DM Sans, compact labels, subtle borders.
   ============================================================ */
.ttbp_modal_grid_form {
  display: flex;
  flex-direction: column;
  gap: var(--ttbp-sp-3);
  padding: 4px 0;
}
.ttbp_modal_grid_form .ttbp_form_group {
  display: flex;
  flex-direction: column;
  gap: var(--ttbp-sp-1);
  min-width: 0;
}
.ttbp_modal_grid_form .ttbp_form_label,
.ttbp_modal_grid_form > .tmg_row label {
  font-size: 10px;
  font-weight: var(--ttbp-fw-bold);
  text-transform: uppercase;
  color: var(--ttbp-gray-500);
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.2;
}
/* Override base ttbp_form_input heavy margin/padding inside modal grids */
.ttbp_modal_grid_form .ttbp_form_input,
.ttbp_modal_grid_form input.ttbp_form_input,
.ttbp_modal_grid_form select.ttbp_form_input,
.ttbp_modal_grid_form textarea.ttbp_form_input {
  padding: 7px 10px;
  font-size: var(--ttbp-fs-base);
  border: 1px solid var(--ttbp-border);
  border-radius: var(--ttbp-radius-sm);
  height: auto;
  margin-bottom: 0;
  background: var(--ttbp-white);
  color: var(--ttbp-gray-900);
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
  width: 100%;
  font-family: var(--ttbp-font);
}
.ttbp_modal_grid_form .ttbp_form_input:hover {
  border-color: var(--ttbp-gray-400);
}
.ttbp_modal_grid_form .ttbp_form_input:focus,
.ttbp_modal_grid_form input.ttbp_form_input:focus,
.ttbp_modal_grid_form select.ttbp_form_input:focus,
.ttbp_modal_grid_form textarea.ttbp_form_input:focus {
  border-color: var(--ttbp-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,166,81,.12);
}
.ttbp_modal_grid_form input.ttbp_form_input.readonly {
  background: var(--ttbp-gray-50);
  color: var(--ttbp-gray-900);
  font-weight: var(--ttbp-fw-semibold);
  cursor: default;
}
.tmg_row {
  display: grid;
  gap: 10px;
  align-items: start;
}
.tmg_row_1col { grid-template-columns: 1fr; }
.tmg_row_2col { grid-template-columns: 1fr 1fr; }
.tmg_row_3col { grid-template-columns: 1fr 1fr 1fr; }
.tmg_row_4col { grid-template-columns: 1fr 1fr 1fr 1fr; }
.tmg_row_5col { grid-template-columns: 1fr 1fr 0.7fr 0.7fr 0.7fr; }
.tmg_row_6col { grid-template-columns: 1fr 0.6fr 0.6fr 0.6fr 1fr 0.7fr; }
.tmg_span2 { grid-column: span 2; }

/* ── Booking Entry — Row proportions ─────────────────────── */
.tmg_row_entry_r1 {
  grid-template-columns: 1fr 1fr;
}
.tmg_row_entry_r1b {
  grid-template-columns: 1fr 1fr 1fr;
}
/* Row 4: Email / Phone / Member ID */
.tmg_row_entry_r4 {
  grid-template-columns: 1.2fr 1fr 0.8fr;
}
/* Notes fills full width */
form.ttbp_entry .tmg_row_1col { width: 100%; }
form.ttbp_entry textarea.ttbp_form_input {
  width: 100%;
  resize: none;
}
/* Add Round — centered, styled like Booking Info buttons */
.ttbp_entry_submit_wrap {
  display: flex;
  justify-content: center;
  padding: 6px 0 0 0;
  border-top: 1px solid var(--ttbp-border);
  margin: 2px 0 0 0;
}
.ttbp_entry_submit_wrap .ttbp_submit_booking {
  min-width: 200px;
  padding: 10px 24px;
  font-size: var(--ttbp-fs-base);
  font-weight: var(--ttbp-fw-semibold);
  border-radius: var(--ttbp-radius);
  background: var(--ttbp-primary);
  color: var(--ttbp-white);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .1s;
  letter-spacing: 0.01em;
}
.ttbp_entry_submit_wrap .ttbp_submit_booking:hover {
  background: var(--ttbp-primary-hover);
  transform: translateY(-1px);
}

/* ── Block Tee Times — styling ───────────────────────────── */
.ttbp_block_price_section {
  padding: 10px 0 4px;
  border-top: 1px solid var(--ttbp-border);
}
.ttbp_block_price_section > .ttbp_form_group > label {
  font-size: var(--ttbp-fs-xs);
  font-weight: var(--ttbp-fw-bold);
  color: var(--ttbp-primary-dark);
}
#ttbp_blockbook .ttbp_modal_footer {
  justify-content: flex-start;
  gap: 10px;
}

/* ── Block Compact layout ─────────────────────────────────── */
.ttbp_block_compact .ttbp_form_input {
  padding: 6px 8px;
  font-size: var(--ttbp-fs-base);
  height: 36px;
}

.ttbp_block_compact .ttbp_form_group {
  min-width: 0;
  overflow: hidden;
}

.ttbp_block_compact .tmg_row {
  margin-bottom: var(--ttbp-sp-3);
}

.ttbp_block_compact textarea.ttbp_form_input {
  height: auto;
  min-height: 50px;
}

.ttbp_block_compact .ttbp_bulk_price_summary {
  font-size: var(--ttbp-fs-base);
  padding: 8px 10px;
}

/* Block pricing summary — match Booking Info style */
.ttbp_bulk_price_summary {
  background: var(--ttbp-gray-50);
  border: 1px solid var(--ttbp-border);
  border-radius: var(--ttbp-radius);
  padding: 10px 14px;
  font-size: var(--ttbp-fs-base);
}
#ttbp_block_new_price_wrap {
  border-color: var(--ttbp-border);
  background: var(--ttbp-gray-50);
}
#ttbp_block_new_price_save {
  background: var(--ttbp-primary);
  color: var(--ttbp-white);
  border: none;
  border-radius: var(--ttbp-radius-sm);
  font-weight: var(--ttbp-fw-semibold);
  cursor: pointer;
}
#ttbp_block_new_price_save:hover {
  background: var(--ttbp-primary-hover);
}
/* Confirm Block button — green, far right */
#submit_blockbook {
  background: var(--ttbp-primary);
  border: none;
  padding: 10px 22px;
  font-weight: var(--ttbp-fw-semibold);
  border-radius: var(--ttbp-radius);
}
#submit_blockbook:hover {
  background: var(--ttbp-primary-hover);
}
#cancel_blockbook {
  border-radius: var(--ttbp-radius);
  padding: 10px 18px;
  font-weight: var(--ttbp-fw-semibold);
}

/* ── Shared: modal body padding for grid forms ───────────── */
#ttbp_entry .ttbp_modal_body,
#ttbp_blockbook .ttbp_modal_body {
  padding: 10px 14px;
}

form.ttbp_entry textarea.ttbp_form_input {
  height: 45px;
  min-height: 45px;
  max-height: 45px;
}

/* ── Autocomplete dropdowns — consistent style ───────────── */
.ttbp_modal_grid_form .ttbp_autocomplete {
  border: 1px solid var(--ttbp-border);
  border-radius: var(--ttbp-radius);
  box-shadow: var(--ttbp-shadow);
  font-size: var(--ttbp-fs-base);
}

/* ── Form status message — consistent ────────────────────── */
.ttbp_modal_grid_form .ttbp_form_message {
  display: none;
  text-align: center;
  font-size: var(--ttbp-fs-base);
  color: var(--ttbp-gray-500);
  padding: 6px 0;
}

/* ── Manager Settings — consistent button/form styling ───── */
.ttbp-fe-btn {
  background: var(--ttbp-primary);
  color: var(--ttbp-white);
  border: none;
  padding: 9px 18px;
  border-radius: var(--ttbp-radius);
  font-size: var(--ttbp-fs-base);
  font-weight: var(--ttbp-fw-semibold);
  cursor: pointer;
  transition: background .2s, transform .1s;
  font-family: var(--ttbp-font);
  letter-spacing: 0.01em;
}
.ttbp-fe-btn:hover {
  background: var(--ttbp-primary-hover);
  transform: translateY(-1px);
}
/* Manager Settings tabs — match header green */
.ttbp-fe-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--ttbp-primary);
  margin-bottom: 0;
}
.ttbp-fe-tab {
  padding: 10px 20px;
  font-size: var(--ttbp-fs-base);
  font-weight: var(--ttbp-fw-semibold);
  color: var(--ttbp-gray-500);
  text-decoration: none;
  border-radius: 6px 6px 0 0;
  transition: background .15s, color .15s;
}
.ttbp-fe-tab:hover {
  background: var(--ttbp-primary-light);
  color: var(--ttbp-primary-dark);
}
.ttbp-fe-tab.active {
  background: var(--ttbp-primary);
  color: var(--ttbp-white);
}
/* Manager Settings content area */
.ttbp-fe-tab-content {
  background: var(--ttbp-white);
  border: 1px solid var(--ttbp-border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: var(--ttbp-sp-5);
}
/* Manager Settings tables */
.ttbp-fe-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--ttbp-fs-base);
}
.ttbp-fe-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--ttbp-border);
}
.ttbp-fe-table tr:last-child td {
  border-bottom: none;
}
/* ── Pricing tab ─────────────────────────────────────────────────────── */
.ttbp-pricing-section { margin-bottom: var(--ttbp-sp-5); }
.ttbp-pricing-desc { color: var(--ttbp-gray-500); font-size: var(--ttbp-fs-base); margin: 2px 0 12px; }
.ttbp-pricing-table td { vertical-align: middle; padding: 8px 10px; }
.ttbp-pricing-table td:first-child { width: 180px; white-space: nowrap; }
.ttbp-pricing-input {
  border: 1px solid var(--ttbp-border);
  border-radius: var(--ttbp-radius-sm);
  padding: 7px 10px;
  font-size: var(--ttbp-fs-base);
  width: 130px;
  font-family: inherit;
}
.ttbp-pricing-input:focus {
  border-color: var(--ttbp-primary);
  box-shadow: 0 0 0 2px rgba(0,166,81,.12);
  outline: none;
}
.ttbp-pricing-input-wrap {
  display: flex;
  align-items: center;
  gap: var(--ttbp-sp-1);
  flex-wrap: wrap;
}
.ttbp-pricing-sym {
  font-weight: var(--ttbp-fw-semibold);
  color: var(--ttbp-gray-500);
  font-size: var(--ttbp-fs-base);
}
.ttbp-pr-calc {
  font-size: var(--ttbp-fs-sm);
  color: var(--ttbp-primary);
  background: rgba(0,166,81,.06);
  padding: 3px 8px;
  border-radius: var(--ttbp-radius-sm);
  margin-left: 6px;
}
.ttbp-pricing-check {
  font-size: var(--ttbp-fs-base);
  cursor: pointer;
}
.ttbp-pricing-check input { margin-right: 5px; }
.ttbp-pricing-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--ttbp-border);
  background: var(--ttbp-gray-50);
  color: var(--ttbp-gray-500);
  font-size: var(--ttbp-fs-sm);
  font-weight: var(--ttbp-fw-bold);
  cursor: pointer;
  margin-left: 6px;
  padding: 0;
  line-height: 1;
}
.ttbp-pricing-info-btn:hover { border-color: var(--ttbp-primary); color: var(--ttbp-primary); }
.ttbp-pricing-dialog {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ttbp-pricing-dialog-inner {
  background: var(--ttbp-white);
  border-radius: 10px;
  padding: 24px 28px;
  max-width: 440px;
  width: 90%;
  box-shadow: var(--ttbp-shadow-lg);
}
.ttbp-pricing-dialog-inner h4 { margin: 0 0 10px; font-size: var(--ttbp-fs-lg); }
.ttbp-pricing-dialog-inner p { font-size: var(--ttbp-fs-base); color: var(--ttbp-gray-700); line-height: 1.5; margin: 0 0 8px; }
.ttbp-pricing-dialog-close { margin-top: 6px; }
.ttbp-pricing-save-msg {
  display: none;
  font-size: var(--ttbp-fs-base);
  margin-left: 10px;
}

/* Manager Settings notice badges */
.ttbp-fe-notice {
  padding: 10px 14px;
  border-radius: var(--ttbp-radius);
  font-size: var(--ttbp-fs-base);
  margin-bottom: var(--ttbp-sp-3);
}
.ttbp-fe-notice.success {
  background: var(--ttbp-primary-light);
  color: var(--ttbp-primary-dark);
  border: 1px solid #bbf7d0;
}
.ttbp-fe-notice.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Responsive: stack on narrow screens */
@media (max-width: 640px) {
  .tmg_row_4col,
  .tmg_row_5col,
  .tmg_row_6col,
  .tmg_row_entry_r1,
  .tmg_row_entry_r1b,
  .tmg_row_entry_r4 { grid-template-columns: 1fr 1fr; }
  .tmg_span2 { grid-column: span 1; }
  #ttbp_blockbook .ttbp_modal_inner,
  #ttbp_entry .ttbp_modal_inner { width: 98vw; }
}

/* Booking info modal — no scroll, fits content */
#ttbp_booking_info .ttbp_modal_body {
  padding: 0;
  overflow: visible;
  height: auto;
  max-height: none;
}


/* ============================================================
   CART RENTAL TAX BREAKDOWN — golfer card (Round Details)
   Shown below Green Fee select when cart tax is configured.
   Mirrors the 3 separate line items on the order:
     1. Green Fee (untaxed)
     2. Cart Rental (untaxed base)
     3. Cart Rental Tax (named, for tax reporting)
   ============================================================ */
.gc-tax-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 3px;
  padding: 4px 6px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--ttbp-radius-sm);
  font-size: var(--ttbp-fs-xs);
}

.gc-tax-row {
  display: flex;
  justify-content: space-between;
  color: #0369a1;
}

.gc-tax-highlight {
  font-weight: var(--ttbp-fw-semibold);
  color: #0c4a6e;
  border-top: 1px solid #bae6fd;
  padding-top: 1px;
  margin-top: 1px;
}

/* ============================================================
   ROUND DETAILS MODAL — new compact layout (v2.1)
   Summary strip → Players bar → Golfer cards → Notes → Coupon
   ============================================================ */

/* Compact booking summary strip */
.rd-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #f0f4fa;
  border: 1px solid var(--ttbp-gray-300);
  border-radius: var(--ttbp-radius-lg);
  margin-bottom: var(--ttbp-sp-4);
  overflow: hidden;
}
.rd-summary-item {
  display: flex;
  flex-direction: column;
  padding: 8px 14px;
  border-right: 1px solid var(--ttbp-gray-300);
  min-width: 100px;
  flex: 1;
}
.rd-summary-item:last-child {
  border-right: none;
}
.rd-summary-label {
  font-size: 10px;
  font-weight: var(--ttbp-fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ttbp-gray-500);
  margin-bottom: 2px;
}
.rd-summary-val {
  font-size: var(--ttbp-fs-base);
  font-weight: var(--ttbp-fw-semibold);
  color: #1a2b4a;
}

/* Players selector bar */
.rd-players-bar {
  display: flex;
  align-items: center;
  gap: var(--ttbp-sp-3);
  margin-bottom: var(--ttbp-sp-3);
  padding: 8px 12px;
  background: var(--ttbp-primary-dark);
  border-radius: var(--ttbp-radius);
}
.rd-players-label {
  font-size: var(--ttbp-fs-sm);
  font-weight: var(--ttbp-fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ttbp-white);
  white-space: nowrap;
}
.rd-players-bar select#ttbp_slot_players {
  padding: 4px 8px;
  border: 1px solid #3a6bc8;
  border-radius: var(--ttbp-radius-sm);
  background: var(--ttbp-white);
  font-size: var(--ttbp-fs-base);
  font-weight: var(--ttbp-fw-semibold);
  color: #1a2b4a;
  min-width: 80px;
}
.rd-players-bar .ttbp_update_notice {
  color: #ffe066;
  font-size: var(--ttbp-fs-sm);
  font-weight: var(--ttbp-fw-semibold);
  margin-left: auto;
}

/* Notes row */
.rd-notes-row {
  display: flex;
  flex-direction: column;
  gap: var(--ttbp-sp-1);
  margin-top: 14px;
  margin-bottom: 14px;
}
.rd-notes-label {
  font-size: var(--ttbp-fs-xs);
  font-weight: var(--ttbp-fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ttbp-gray-500);
}
.rd-notes-input {
  width: 100%;
  border: 1px solid var(--ttbp-gray-300);
  border-radius: var(--ttbp-radius);
  padding: var(--ttbp-sp-2);
  font-size: var(--ttbp-fs-base);
  resize: vertical;
  box-sizing: border-box;
}

/* Generic section block (coupon, reason, series) */
.rd-section {
  border: 1px solid #e2e6ea;
  border-radius: var(--ttbp-radius-lg);
  padding: 12px 14px;
  margin-bottom: var(--ttbp-sp-3);
}
.rd-section-title {
  font-size: var(--ttbp-fs-xs);
  font-weight: var(--ttbp-fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ttbp-gray-500);
  margin-bottom: var(--ttbp-sp-2);
}

/* player grid — now a flex column list, rows defined in .bi-gr */

/* ── Compact meta strip ───────────────────────────────────────────────────── */
/* ── Booking Info: compact meta strip ─────────────────────────────────────── */
.bi-meta-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--ttbp-sp-1);
  padding: 5px 10px;
  background: #f8fafb;
  border-bottom: 1px solid var(--ttbp-gray-200);
}
.bi-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 20px;
  background: #e8f5ee;
  color: var(--ttbp-primary-dark);
  font-size: var(--ttbp-fs-xs);
  font-weight: var(--ttbp-fw-semibold);
  white-space: nowrap;
  border: 1px solid #bbf7d0;
}
.bi-chip-time { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; font-size: var(--ttbp-fs-sm); font-weight: var(--ttbp-fw-bold); }
.bi-chip-players { background: #f0fdf4; color: #166534; border-color: #bbf7d0; gap: 4px; }
.bi-chip-players .bi-meta-label { color: #166534; font-size: var(--ttbp-fs-xs); }
.bi-chip-players .bi-players-select { height: auto; font-size: var(--ttbp-fs-xs); font-weight: var(--ttbp-fw-semibold); padding: 0 2px; border: none; background: transparent; color: #166534; cursor: pointer; }
.bi-chip-method { background: var(--ttbp-gray-100); color: var(--ttbp-gray-700); border-color: var(--ttbp-gray-300); }
.bi-chip-course { background: #fff7ed; color: #9a3412; border-color: #fed7aa; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.bi-meta-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.bi-meta-label {
  font-size: 10px;
  font-weight: var(--ttbp-fw-bold);
  color: var(--ttbp-gray-500);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
}
.bi-players-select {
  padding: 2px 6px;
  border: 1px solid var(--ttbp-gray-300);
  border-radius: var(--ttbp-radius-sm);
  font-size: var(--ttbp-fs-sm);
  background: var(--ttbp-white);
  height: 24px;
  cursor: pointer;
}
.bi-lead-name {
  font-size: var(--ttbp-fs-sm);
  font-weight: var(--ttbp-fw-semibold);
  color: var(--ttbp-gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.bi-lead-phone {
  font-size: var(--ttbp-fs-xs);
  color: var(--ttbp-gray-500);
  white-space: nowrap;
}
.bi-ride-cap::first-letter { text-transform: capitalize; }

/* ── Pay button selected state (queued for Collect) ──────────────────────── */
.bi-gr-pay.on {
  background: #dbeafe; border-color: #2563eb; color: #1e40af;
  box-shadow: inset 0 0 0 2px #3b82f6;
}

/* ── Collect badge (player count on Collect button) ─────────────────────── */
.ttbp_btn_pos_trigger { position: relative; }
.bi-collect-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; line-height: 18px;
  padding: 0 5px; font-size: 11px; font-weight: 700;
  background: #ef4444; color: #fff; border-radius: 9px;
  text-align: center; pointer-events: none;
}

/* ── Player grid container ────────────────────────────────────────────────── */
.bi-player-grid {
  padding: 2px 0;
}

/* ── Bottom bar: coupon + reason + notes (always visible) ─────────────────── */
.bi-bottom-bar {
  border-top: 1px solid var(--ttbp-gray-200);
  background: var(--ttbp-gray-50);
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  gap: var(--ttbp-sp-1);
}
/* Row 1: notes textarea + reason select side by side */
.bi-bb-row1 {
  display: flex;
  align-items: center;
  gap: 5px;
}
.bi-bb-notes-ta {
  flex: 1;
  min-width: 0;
  padding: 4px 7px;
  font-size: var(--ttbp-fs-sm);
  border: 1px solid var(--ttbp-gray-300);
  border-radius: var(--ttbp-radius-sm);
  resize: none;
  min-height: 28px;
  height: auto;
  box-sizing: border-box;
  background: var(--ttbp-white);
  line-height: 1.4;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bi-bb-notes-ta:focus {
  border-color: var(--ttbp-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(26,124,62,.1);
  resize: vertical;
  overflow: auto;
}
.bi-bb-reason {
  display: flex;
  align-items: center;
}
.bi-bb-reason select {
  height: 26px;
  font-size: var(--ttbp-fs-sm);
  padding: 0 6px;
  border: 1px solid var(--ttbp-gray-300);
  border-radius: var(--ttbp-radius-sm);
  background: var(--ttbp-white);
  white-space: nowrap;
}
/* Row 2: coupon inline */
.bi-bb-coupon {
  display: flex;
  align-items: center;
  gap: var(--ttbp-sp-1);
  flex-wrap: wrap;
}
.bi-bb-coupon select {
  height: 24px;
  font-size: var(--ttbp-fs-xs);
  padding: 0 5px;
  border: 1px solid var(--ttbp-gray-300);
  border-radius: 3px;
  background: var(--ttbp-white);
  max-width: 150px;
}
.bi-bb-apply {
  height: 24px;
  padding: 0 8px;
  font-size: var(--ttbp-fs-xs);
}
.ttbp_applied_coupon {
  font-size: var(--ttbp-fs-xs);
  color: var(--ttbp-primary-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
}
.remove-coupon {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: var(--ttbp-fs-xs);
  cursor: pointer;
  color: var(--ttbp-primary-dark);
}
.remove-coupon:hover { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* ── Open Sale button in Booking Info footer ──────────────────────────── */
.ttbp_btn_pos_trigger {
  background: var(--ttbp-primary);
  color: var(--ttbp-white);
  padding: 10px 20px;
  border-radius: var(--ttbp-radius);
  font-weight: var(--ttbp-fw-semibold);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s, transform 0.1s;
  font-size: var(--ttbp-fs-base);
}
.ttbp_btn_pos_trigger:hover {
  background: var(--ttbp-primary-hover);
  transform: translateY(-1px);
}
.ttbp_btn_pos_trigger i {
  font-size: var(--ttbp-fs-base);
}

/* ── Booking Info payment notice ─────────────────────────────────────────── */
.ttbp_payment_notice {
  font-size: var(--ttbp-fs-sm);
  padding: 5px 8px;
  border-radius: var(--ttbp-radius-sm);
  margin-bottom: var(--ttbp-sp-1);
}
.ttbp-notice-paid {
  color: #065f46;
  background: #d1fae5;
  padding: 3px 8px;
  border-radius: var(--ttbp-radius-sm);
  display: inline-block;
}
.ttbp-notice-deposit {
  color: #1e40af;
  background: #dbeafe;
  padding: 3px 8px;
  border-radius: var(--ttbp-radius-sm);
  display: inline-block;
}

/* ── Golf directory AJAX results + Add to Booking ─────────────────────────── */
#ttbp_ajax_customer_results {
    margin-top: var(--ttbp-sp-3);
}
.ttbp-dir-result {
    border: 1px dashed #a7f3d0;
    background: #f0fdf4;
}
.ttbp-dir-add-wrap {
    display: flex;
    gap: var(--ttbp-sp-1);
    flex-wrap: wrap;
    padding: 6px 10px;
    border-top: 1px solid #d1fae5;
}
.ttbp-dir-add-btn {
    padding: 3px 10px;
    background: var(--ttbp-primary);
    color: var(--ttbp-white);
    border: none;
    border-radius: var(--ttbp-radius-sm);
    font-size: var(--ttbp-fs-xs);
    font-weight: var(--ttbp-fw-semibold);
    cursor: pointer;
}
.ttbp-dir-add-btn:hover { background: var(--ttbp-primary-dark); }

/* ============================================================
   THEME COMPATIBILITY — calendar full width
   Many WordPress themes constrain .entry-content/.page-content
   to a max-width (e.g. 800px). These overrides ensure the
   calendar and its header always fill the available column.
   ============================================================ */
.calendar-container {
    width: 80%;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Prevent theme's entry-content padding from shrinking the header */
.calendar-header {
    box-sizing: border-box;
    width: 100%;
}

/* Common theme wrappers that restrict width — reset for our pages */
.entry-content .calendar-container,
.page-content .calendar-container,
.wp-block-group .calendar-container,
.has-global-padding .calendar-container,
.alignfull .calendar-container {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

/* Block-theme full-width alignment helper */
.wp-block-group.alignfull .calendar-container {
    width: 80%;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile: full width on small screens */
@media (max-width: 768px) {
    .calendar-container,
    .entry-content .calendar-container,
    .page-content .calendar-container,
    .wp-block-group .calendar-container,
    .has-global-padding .calendar-container,
    .alignfull .calendar-container,
    .wp-block-group.alignfull .calendar-container {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Card payment response - pin to bottom of payment area */
#ttbp-card-response {
    font-size: var(--ttbp-fs-sm);
    line-height: 1.4;
    padding: 6px 10px;
    margin-top: var(--ttbp-sp-2);
    border-radius: var(--ttbp-radius-sm);
    text-align: center;
}
#ttbp-card-response:empty {
    display: none;
}

/* Subpage header — Activity Log, Customer Profiles (matches calendar header pattern) */
.ttbp-subpage-header {
    background: var(--ttbp-primary);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: var(--ttbp-sp-4);
    margin-bottom: var(--ttbp-sp-4);
    border-radius: 0;
}
.ttbp-subpage-header h2 {
    color: var(--ttbp-white);
    margin: 0;
    font-size: var(--ttbp-fs-xl);
    font-weight: var(--ttbp-fw-semibold);
    font-family: var(--ttbp-font);
}
.ttbp-subpage-back {
    background: rgba(255,255,255,0.18);
    color: var(--ttbp-white);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 14px;
    border-radius: var(--ttbp-radius);
    font-size: var(--ttbp-fs-base);
    font-weight: var(--ttbp-fw-medium);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--ttbp-font);
}
.ttbp-subpage-back:hover {
    background: rgba(255,255,255,0.28);
    color: var(--ttbp-white);
}

/* ── Customer profile dialog – standardize to token system ── */
#ttbp_register_customer_form .payment-label,
#ttbp_edit_customer_form .payment-label {
    font-size: var(--ttbp-fs-base);
}
#ttbp_register_customer_form .ttbp_form_input,
#ttbp_edit_customer_form .ttbp_form_input {
    font-size: var(--ttbp-fs-base);
}
#ttbp_register_customer_form .ttbp_form_group label,
#ttbp_edit_customer_form .ttbp_form_group label {
    font-size: var(--ttbp-fs-base);
}
#ttbp_register_customer_form,
#ttbp_edit_customer_form {
    font-size: var(--ttbp-fs-base);
}

/* Cash discount dual-price (cash / card) — shared POS surfaces */
.ttbp-cd-dual { white-space: nowrap; font-weight: 600; }
.ttbp-cd-cash { color: #10b981; }
.ttbp-cd-sep { color: #9ca3af; font-weight: 400; margin: 0 2px; }
.ttbp-cd-card { color: #93c5fd; }
.ttbp-cd-summary-row,
.fnb-total-row.ttbp-cd-summary-row,
.ttbp_fnb_cd_summary .ttbp_fnb_total_row,
.ttbp-cd-summary-wrap .ttbp-cd-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #93c5fd;
  padding: 2px 0;
}
.ttbp-cd-cash-total,
.ttbp_fnb_cd_summary .ttbp_fnb_total_row:last-child {
  color: #6ee7b7;
}
.ttbp-cd-card-total-label { font-weight: 600; }

/* 2026-08-30: "My Profile" top-bar entry point + logged-in profile modal
   content (includes/booking-form.php .ttbp_topbar / #ttbp_profile_modal).
   Chrome (.ttbp_fe_modal/.ttbp_modal_inner/header/footer) is the same
   shared modal styling the login/signup/reset modals already use - only
   the body content classes below are new. Uses literal hex instead of
   var(--ttbp-cream)/var(--ttbp-gray-100) in a couple of spots since both
   chain through --ttbp-page-bg, which a staff dark-theme override
   redefines at :root on this page (see the html/body background fix
   above) - the literal values sidestep that instead of inheriting it. */
.ttbp_topbar {
  display: flex;
  justify-content: flex-end;
  padding: 14px 16px 0;
}

/* scoped under .ttbp_topbar (not just .ttbp_profile_link) so this beats
   .ttbp-form button on specificity - same collision as .ttbp_date_cell
   above, so every property that rule also sets (background-color, color,
   width, margin, padding, font-size) is re-declared here too. */
.ttbp_topbar .ttbp_profile_link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  width: auto;
  margin: 0;
  background: var(--ttbp-white, #fff);
  background-color: var(--ttbp-white, #fff);
  color: var(--ttbp-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: var(--ttbp-fw-bold);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.ttbp_topbar .ttbp_profile_link:hover {
  background-color: var(--ttbp-white, #fff);
}

.ttbp_topbar .ttbp_profile_link i {
  font-size: 14px;
}

.ttbp_profile_info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.ttbp_profile_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #FAF6EC;
  border-radius: 10px;
}

.ttbp_profile_label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ttbp-text-dim, #6b7280);
  font-weight: var(--ttbp-fw-bold);
}

.ttbp_profile_value {
  font-size: 14px;
  font-weight: var(--ttbp-fw-semibold);
  color: var(--ttbp-gray-900);
}

.ttbp_profile_soon {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ttbp_profile_soon_row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--ttbp-gray-200, #e5e7eb);
  border-radius: 10px;
}

.ttbp_profile_soon_row i {
  width: 18px;
  text-align: center;
  color: var(--ttbp-primary);
  opacity: 0.6;
}

.ttbp_profile_soon_row span {
  flex: 1;
  font-size: 14px;
  font-weight: var(--ttbp-fw-medium);
  color: var(--ttbp-gray-700, #4a5568);
}

.ttbp_profile_soon_row em {
  font-style: normal;
  font-size: 11px;
  font-weight: var(--ttbp-fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ttbp-gray-500, #718096);
  background: #f3f4f6;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.ttbp_profile_signout {
  color: var(--ttbp-danger, #8b1e1e);
  font-weight: var(--ttbp-fw-bold);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}

/* 2026-09-22: My Profile popup tabs (js/ttbp-member-profile.js). */
#ttbp_profile_modal .ttbp_modal_inner { max-width: 560px; width: 100%; }
/* 2026-09-27 (Tony): "no swiping inside a pop up -- everything fits the space".
   Desktop/tablet (>= 760px): one wide popup, the same size on every tab, content laid out in
   columns so each tab fits without an inner scroll. Phone: the popup IS the page (full screen,
   the page itself scrolls -- no box-inside-a-box scrolling). */
@media (min-width: 760px) {
  #ttbp_profile_modal .ttbp_modal_inner { width: min(980px, calc(100vw - 32px)); max-width: none; height: calc(100vh - 32px); max-height: 760px; overflow: hidden; }
  #ttbp_profile_modal .ttbp_modal_header { padding: 10px 16px; }
  #ttbp_profile_modal .ttbp_modal_footer { padding: 8px 16px; }
  #ttbp_profile_modal .ttbp_modal_body { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding: 14px 18px; }
  #ttbp_profile_modal .ttbp_mp { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  #ttbp_profile_modal .ttbp_mp_tabs { flex: 0 0 auto; margin-bottom: 12px; }
  #ttbp_profile_modal .ttbp_mp_pane.is-active { flex: 1 1 auto; min-height: 0; overflow: hidden; }
  /* compact controls on a big screen (phones keep 16px inputs: no iOS zoom) */
  #ttbp_profile_modal .ttbp_mp_field input { padding: 7px 10px; font-size: 14px; border-radius: 8px; }
  #ttbp_profile_modal .ttbp_mp_field span { font-size: 10px; }
  #ttbp_profile_modal .ttbp_mp_save { padding: 10px 14px; margin-top: 10px !important; }
  #ttbp_profile_modal .ttbp_mp_note { margin-top: 6px; font-size: 12px; line-height: 1.4; }
  #ttbp_profile_modal .ttbp_mp_check { margin: 10px 0 0; }
  /* Profile: 4 columns */
  #ttbp_profile_modal .ttbp_mp_grid { grid-template-columns: repeat(4, 1fr); gap: 8px 12px; }
  #ttbp_profile_modal .ttbp_mp_grid .ttbp_mp_wide { grid-column: span 2; }
  #ttbp_profile_modal .ttbp_mp_form[data-form="profile"] .ttbp_mp_save,
  #ttbp_profile_modal .ttbp_mp_form[data-form="password"] .ttbp_mp_save { width: auto; min-width: 220px; }
  /* Password: three fields in one row */
  #ttbp_profile_modal .ttbp_mp_form[data-form="password"] { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; align-items: end; }
  #ttbp_profile_modal .ttbp_mp_form[data-form="password"] .ttbp_mp_save { grid-column: 1 / -1; justify-self: start; }
  /* Balances & Pay: balances | pay items | card + total */
  #ttbp_profile_modal .ttbp_mp_cols { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; height: 100%; }
  #ttbp_profile_modal .ttbp_mp_paybox { margin-top: 0 !important; border-top: 0 !important; padding-top: 0 !important; border-left: 1px solid #e5e7eb; padding-left: 20px; }
  #ttbp_profile_modal .ttbp_mp_cart { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-items: start; }
  #ttbp_profile_modal .ttbp_mp_bal_row { padding: 10px 12px; }
  #ttbp_profile_modal .ttbp_mp_sec { padding: 8px 0; }
  #ttbp_profile_modal .ttbp_mp_line { padding: 5px 0; }
  #ttbp_profile_modal .ttbp_mp_h { margin: 10px 0 6px; }
  #ttbp_profile_modal .ttbp_mp_paybox > .ttbp_mp_h { margin-top: 0; }
  #ttbp_profile_modal .ttbp_mp_total { margin-top: 0; padding: 8px 12px; }
  #ttbp_profile_modal .ttbp_mp_card { margin-top: 8px; }
  #ttbp_profile_modal .ttbp_mp_charges li { padding: 7px 10px; }
  /* Tee Times: cards in a grid */
  #ttbp_profile_modal .ttbp_mp_tt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  #ttbp_profile_modal .ttbp_mp_tt li { flex-direction: column; align-items: stretch; }
}
@media (max-width: 759px) {
  /* 2026-09-28 (Fore18 phone): align to the TOP, not center. Centered, a popup taller than the
     screen overflowed upward (~400px above the top edge, unreachable by scrolling) -- header and the
     Profile / Balances & Pay / Tee Times tabs were off screen, so the tabs could not be picked. */
  #ttbp_profile_modal { height: 100% !important; top: 0 !important; overflow-y: auto; -webkit-overflow-scrolling: touch; align-items: flex-start; padding: 0; }
  /* 2026-09-28 (Tony, Gallus app): size to the VISIBLE area (dvh) and keep the footer clear of the phone's
     bottom bar / home indicator, so nothing sits under the in-app browser toolbar. */
  @supports (height: 100dvh) { #ttbp_profile_modal { height: 100dvh !important; } }
  #ttbp_profile_modal .ttbp_modal_footer { padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
  #ttbp_profile_modal .ttbp_modal_inner { width: 100%; max-width: none; min-height: 100%; height: auto; max-height: none; border-radius: 0; overflow: visible; }
  #ttbp_profile_modal .ttbp_modal_body { overflow: visible; }
  /* 2026-09-28 (Tony, phone): "pages force a little scroll, eliminate that -- can afford space".
     Tighter chrome, two-column profile fields, password form folded behind its heading. */
  #ttbp_profile_modal .ttbp_modal_header { padding: 8px 14px; }
  #ttbp_profile_modal .ttbp_modal_body { padding: 10px 12px; }
  #ttbp_profile_modal .ttbp_modal_footer { padding: 6px 14px; }
  #ttbp_profile_modal .ttbp_mp_tabs { margin-bottom: 10px; }
  #ttbp_profile_modal .ttbp_mp_tab { padding: 7px 10px; }
  #ttbp_profile_modal .ttbp_mp_grid { grid-template-columns: 1fr 1fr; gap: 6px 10px; }
  #ttbp_profile_modal .ttbp_mp_grid .ttbp_mp_field:has(input[name="street2"]) { grid-column: auto; }
  #ttbp_profile_modal .ttbp_mp_pair { gap: 8px; }
  #ttbp_profile_modal .ttbp_mp_field { gap: 2px; }
  #ttbp_profile_modal .ttbp_mp_field span { font-size: 10px; }
  /* 16px text stays: iOS zooms the page into any smaller input. */
  #ttbp_profile_modal .ttbp_mp_field input, #ttbp_profile_modal .ttbp_mp_field select { padding: 7px 10px; }
  #ttbp_profile_modal .ttbp_mp_check { margin: 8px 0 0; }
  #ttbp_profile_modal .ttbp_mp_note { margin: 4px 0 0; font-size: 12px; line-height: 1.35; }
  #ttbp_profile_modal .ttbp_mp_save { padding: 10px 14px; margin-top: 8px !important; }
  #ttbp_profile_modal .ttbp_mp_h { margin: 8px 0 4px; }
  #ttbp_profile_modal .ttbp_mp_sec { padding: 6px 0; }
  #ttbp_profile_modal .ttbp_mp_line { padding: 4px 0; }
  #ttbp_profile_modal .ttbp_mp_bal_row { padding: 8px 10px; }
  #ttbp_profile_modal .ttbp_mp_total { padding: 8px 10px; }
  #ttbp_profile_modal .ttbp_mp_card { margin-top: 6px; }
  #ttbp_profile_modal .ttbp_mp_pw_h { cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0 4px; margin-top: 6px; border-top: 1px solid var(--ttbp-gray-200, #e5e7eb); }
  #ttbp_profile_modal .ttbp_mp_pw_h .ttbp_mp_pw_caret { font-size: 12px; transition: transform .15s ease; }
  #ttbp_profile_modal .ttbp_mp_pw_h.is-open .ttbp_mp_pw_caret { transform: rotate(90deg); }
  #ttbp_profile_modal .ttbp_mp_pw_h:not(.is-open) + form[data-form="password"] { display: none; }
  /* 2026-09-28 (Tony, Gallus app): swiping the pay form hung / bounced back and forth before the Pay
     button showed -- the page BEHIND the popup kept taking the swipe once the popup reached its end
     (iOS scroll chaining). Lock the page while My Profile is open; the popup is the only scroller. */
  html:has(#ttbp_profile_modal.ttbp_modal_visible), body:has(#ttbp_profile_modal.ttbp_modal_visible) { overflow: hidden !important; }
  #ttbp_profile_modal { overscroll-behavior: contain; }
  /* Make a payment, tighter (Tony: amount section, a line, the amount again, a line, card squeezed at
     the bottom): no divider lines, one label for Add funds, slim Total. Inline styles need !important. */
  #ttbp_profile_modal .ttbp_mp_paybox { margin-top: 10px !important; border-top: 0 !important; padding-top: 0 !important; }
  #ttbp_profile_modal .ttbp_mp_pay_items .ttbp_mp_sec { border-bottom: 0; padding: 2px 0; }
  #ttbp_profile_modal .ttbp_mp_sec:has([name="add_funds"]) > .ttbp_mp_h { display: none; }
  #ttbp_profile_modal .ttbp_mp_pay_checkout .ttbp_mp_total { margin-top: 6px; padding: 6px 10px; }
  #ttbp_profile_modal .ttbp_mp_pay_checkout .ttbp_mp_total strong { font-size: 16px; }
}
/* Wider screens: the password form always shows, so the fold caret is not needed. */
@media (min-width: 760px) {
  #ttbp_profile_modal .ttbp_mp_pw_caret { display: none; }
}
.ttbp_mp_tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.ttbp_mp_tabs::-webkit-scrollbar { display: none; }
.ttbp_mp_tab {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 12px; border: 1px solid var(--ttbp-gray-200, #e5e7eb); border-radius: 999px;
  background: #fff; color: var(--ttbp-gray-700, #4a5568); font-size: 13px;
  font-weight: var(--ttbp-fw-semibold); cursor: pointer; white-space: nowrap;
}
.ttbp_mp_tab i { font-size: 12px; opacity: 0.75; }
.ttbp_mp_tab.is-active { background: var(--ttbp-primary, #4f8c6d); border-color: var(--ttbp-primary, #4f8c6d); color: #fff; }
/* 2026-09-28: site themes (Fore18 Finax) paint button:hover/:focus brown -- on a phone the tapped tab stuck brown. */
.ttbp_mp_tab:hover, .ttbp_mp_tab:focus { background: #fff; color: var(--ttbp-gray-700, #4a5568); border-color: var(--ttbp-gray-200, #e5e7eb); }
.ttbp_mp_tab.is-active:hover, .ttbp_mp_tab.is-active:focus { background: var(--ttbp-primary, #4f8c6d); border-color: var(--ttbp-primary, #4f8c6d); color: #fff; }
.ttbp_mp_pane { display: none; }
.ttbp_mp_pane.is-active { display: block; }
.ttbp_mp_loading, .ttbp_mp_empty { padding: 18px 4px; color: var(--ttbp-text-dim, #6b7280); font-size: 14px; text-align: center; }
.ttbp_mp_msg:empty { display: none; }
.ttbp_mp_msg { margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.ttbp_mp_msg.is-ok { background: #ecfdf3; color: #166534; }
.ttbp_mp_msg.is-err { background: #fef2f2; color: #991b1b; }
.ttbp_mp_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.ttbp_mp_wide { grid-column: 1 / -1; }
.ttbp_mp_pair { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.ttbp_mp_field { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.ttbp_mp_field span {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ttbp-text-dim, #6b7280); font-weight: var(--ttbp-fw-bold);
}
.ttbp_mp_field input {
  width: 100%; box-sizing: border-box; padding: 10px 12px; font-size: 16px; /* 16px: no iOS zoom */
  border: 1px solid var(--ttbp-gray-200, #e5e7eb); border-radius: 10px; background: #fff; color: var(--ttbp-gray-900, #111827);
}
.ttbp_mp_field input[readonly] { background: #FAF6EC; color: var(--ttbp-gray-700, #4a5568); }
.ttbp_mp_field input:focus { outline: 2px solid var(--ttbp-primary, #4f8c6d); outline-offset: 0; border-color: transparent; }
.ttbp_mp_check { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; font-size: 14px; color: var(--ttbp-gray-700, #4a5568); }
.ttbp_mp_note { margin: 10px 0 0; font-size: 13px; color: var(--ttbp-text-dim, #6b7280); line-height: 1.5; }
.ttbp_mp_save {
  display: block; width: 100%; margin-top: 14px !important; padding: 13px 16px; border: 0; border-radius: 10px;
  background: var(--ttbp-primary, #4f8c6d); color: #fff; font-size: 15px; font-weight: var(--ttbp-fw-bold); cursor: pointer;
}
.ttbp_mp_save:hover { filter: brightness(0.95); }
.ttbp_mp_save:disabled { opacity: 0.6; cursor: default; }
.ttbp_mp_bal { display: flex; flex-direction: column; gap: 10px; }
.ttbp_mp_bal_row {
  display: flex; justify-content: space-between; align-items: center; padding: 14px;
  background: #FAF6EC; border-radius: 10px; font-size: 14px; color: var(--ttbp-gray-700, #4a5568);
}
.ttbp_mp_bal_row strong { font-size: 18px; color: var(--ttbp-gray-900, #111827); font-variant-numeric: tabular-nums; }
.ttbp_mp_tt { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ttbp_mp_tt li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--ttbp-gray-200, #e5e7eb); border-radius: 10px; font-size: 14px;
}
.ttbp_mp_tt li span { color: var(--ttbp-gray-700, #4a5568); margin-left: 6px; }
.ttbp_mp_tt li em { font-style: normal; font-size: 12px; color: var(--ttbp-text-dim, #6b7280); white-space: nowrap; }
.ttbp_mp_pay { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ttbp-gray-200, #e5e7eb); }
.ttbp_mp_pay h4 { margin: 0 0 10px; font-size: 15px; color: var(--ttbp-gray-900, #111827); }
.ttbp_mp_split { min-height: 18px; margin: 8px 0 0; font-size: 13px; color: var(--ttbp-gray-700, #4a5568); }
.ttbp_mp_card { margin-top: 10px; }
.ttbp_mp_card > span {
  display: block; margin-bottom: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ttbp-text-dim, #6b7280); font-weight: var(--ttbp-fw-bold);
}
.ttbp_mp_cc_frame {
  display: block; width: 100%; height: 112px; border: 1px solid var(--ttbp-gray-200, #e5e7eb);
  border-radius: 10px; background: #fff;
}
.ttbp_mp_cc_err:empty { display: none; }
/* 2026-09-26: My Profile > Pay (one cart) + open charges on Balances. */
.ttbp_mp_h { margin: 16px 0 8px; font-size: 14px; color: var(--ttbp-gray-900, #111827); }
.ttbp_mp_charges { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ttbp_mp_charges li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--ttbp-gray-200, #e5e7eb); border-radius: 10px; font-size: 14px; }
.ttbp_mp_charges li strong { font-weight: var(--ttbp-fw-semibold); color: var(--ttbp-gray-900, #111827); }
.ttbp_mp_charges li em, .ttbp_mp_line em { display: block; font-style: normal; font-size: 12px; color: var(--ttbp-text-dim, #6b7280); }
.ttbp_mp_charges li span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ttbp_mp_charges small { color: var(--ttbp-text-dim, #6b7280); }
.ttbp_mp_sec { padding: 12px 0; border-bottom: 1px solid var(--ttbp-gray-200, #e5e7eb); }
.ttbp_mp_sec:first-child { padding-top: 0; }
.ttbp_mp_sec .ttbp_mp_h { margin-top: 0; }
.ttbp_mp_sec .ttbp_mp_field { margin-top: 8px; }
.ttbp_mp_line { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--ttbp-gray-900, #111827); cursor: pointer; }
.ttbp_mp_line input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--ttbp-primary, #4f8c6d); }
.ttbp_mp_line span { flex: 1; min-width: 0; }
.ttbp_mp_line b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ttbp_mp_total { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 12px 14px; background: #FAF6EC; border-radius: 10px; font-size: 14px; }
.ttbp_mp_total strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.ttbp_mp_gopay { margin-top: 16px !important; }
.ttbp_mp_cc_err { margin-top: 6px; font-size: 13px; color: #991b1b; }
@media (max-width: 480px) {
  .ttbp_mp_grid { grid-template-columns: 1fr; }
  .ttbp_mp_tab span { display: none; }
  .ttbp_mp_tab { padding: 10px 14px; }
}

/* ============================================================
   2026-08-30: Checkout page (ttbp_step_3) - visual pass to match
   the approved checkout mock. Deliberately CSS-only / additive:
   the CardConnect tokenizer iframe, saved-card controls,
   the split member/guest pricing table and the tax math are all
   real payment logic - none of that markup, IDs or PHP was changed,
   only re-styled.
   ============================================================ */

/* ---- Top bar: name + icon-only menu on the checkout step, in
   place of the "My Profile" pill used everywhere else. Same
   .ttbp_profile_open trigger/modal either way (see js/booking.js
   for the MutationObserver that toggles .ttbp_topbar--checkout). ---- */
.ttbp_topbar_checkout {
  display: none;
  align-items: center;
  gap: 10px;
}

/* 2026-09-28 (Tony): the named pill is used on the checkout step too -- the name + menu-icon look is retired. */
.ttbp_topbar--checkout .ttbp_topbar_default {
  display: inline-flex;
}

.ttbp_topbar--checkout .ttbp_topbar_checkout {
  display: none;
}

/* Signed-in pill: bigger, bordered, name + "Profile & Pay" + caret so it reads as a button. */
.ttbp_topbar .ttbp_profile_link.ttbp_profile_link--named {
  gap: 10px;
  padding: 10px 20px 10px 14px;
  border: 2px solid var(--ttbp-primary);
  font-size: 17px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
  text-align: left;
  line-height: 1.15;
}
.ttbp_topbar .ttbp_profile_link.ttbp_profile_link--named:hover {
  background-color: var(--ttbp-primary);
  color: #fff;
}
.ttbp_topbar .ttbp_profile_link--named > i.fa-circle-user { font-size: 30px; }
.ttbp_topbar .ttbp_profile_link--named .ttbp_pill_text { display: flex; flex-direction: column; }
.ttbp_topbar .ttbp_profile_link--named .ttbp_pill_name { font-size: 17px; font-weight: var(--ttbp-fw-bold); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ttbp_topbar .ttbp_profile_link--named .ttbp_pill_sub { font-size: 12px; font-weight: 600; opacity: .75; text-transform: uppercase; letter-spacing: .4px; }
.ttbp_topbar .ttbp_profile_link--named .ttbp_pill_caret { font-size: 13px; opacity: .8; }

.ttbp_topbar_username {
  font-weight: var(--ttbp-fw-bold);
  font-size: 16px;
  color: var(--ttbp-gray-900);
}

/* .ttbp-form button (0,1,1) beats a plain .ttbp_topbar_menu_btn (0,1,0)
   regardless of source order - same fix as .ttbp_profile_link: scope under
   an ancestor class and re-declare every property that rule also sets. */
.ttbp_topbar .ttbp_topbar_menu_btn {
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--ttbp-white, #fff);
  background-color: var(--ttbp-white, #fff);
  color: var(--ttbp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  flex-shrink: 0;
}

.ttbp_topbar .ttbp_topbar_menu_btn:hover {
  background-color: var(--ttbp-white, #fff);
}

.ttbp_topbar_menu_btn i {
  font-size: 15px;
}

/* ---- Customer Information: kept in the DOM (still submitted with the
   booking) but not shown once we already know who's booking. ---- */
.ttbp_customer_info.ttbp_hidden {
  display: none;
}

/* ---- Payment method cards ---- */
.ttbp_payment_method {
  border: 2px solid var(--ttbp-gray-300, #d1d5db);
  border-radius: 14px;
  background: var(--ttbp-white, #fff);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ttbp_payment_method:has(.ttbp_method_select:checked) {
  border-color: var(--ttbp-primary);
  background: #f0f7ee;
}

.ttbp_payment_tab {
  border: none;
  margin-bottom: 0;
  padding-left: 14px;
  gap: 12px;
}

.ttbp_payment_tab label {
  padding: 12px 14px 12px 0;
}

.ttbp_payment_method .ttbp_method_select {
  width: 18px;
  height: 18px;
  accent-color: var(--ttbp-primary);
  flex-shrink: 0;
  margin: 0;
}

/* the card-details / saved-card / COF area that appears once an online
   method is selected - visually reads as belonging to the card above it */
.ttbp_payment_content_wrapper {
  margin-top: -6px;
  margin-bottom: 4px;
}

.ttbp_payment_content {
  padding: 16px;
  border: 2px solid var(--ttbp-primary);
  /* literal, not var(--ttbp-gray-50) - that token chains through the
     poisoned --ttbp-page-bg on this page (see html/body fix above) */
  background: #f0f7ee;
  border-radius: 14px;
}

/* ---- Booking summary / price detail: receipt-style card, matching
   the mock's .summary-card (was var(--ttbp-gray-50), which is poisoned
   on this page - see the html/body background fix earlier in this file) ---- */
.ttbp_booking_summary {
  background: var(--ttbp-white, #fff);
  border: 1px solid var(--ttbp-gray-200, #e5e7eb);
  border-radius: var(--ttbp-radius-lg, 12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ttbp_table tfoot tr.total-amount th,
.ttbp_table tfoot tr.total-amount td {
  font-weight: var(--ttbp-fw-bold);
  color: var(--ttbp-money, #1a7a45);
  font-size: var(--ttbp-fs-xl);
}

/* admin.css's .ttbp_table thead tr background (var(--ttbp-th-bg), which
   chains through the poisoned --ttbp-gray-50/--ttbp-cream on this page -
   see the html/body fix above) is meant for the staff dashboard's table
   header band, not this customer-facing receipt. .ttbp_table is only used
   here (includes/class-ttbp-ajax.php's checkout review), so this is safe
   to neutralize globally in the customer stylesheet. */
.ttbp_table thead tr {
  background: transparent !important;
}

/* ---- Booking summary receipt: drop the "Booking Summary" header bar and
   the fa-icon/svg-cart "chips" (holes/players/ride, date/time) in favor of
   the mock's plain single-line text, matching .summary-meta. The underlying
   PHP (includes/class-ttbp-ajax.php ttbp_checkout_review) is untouched -
   this only hides the icon glyphs and adds middot separators between the
   text that's already there. ---- */
.ttbp_table thead {
  display: none;
}

.ttbp_summary_chip i,
.ttbp_summary_chip svg {
  display: none;
}

.ttbp_summary_chip:not(:first-child)::before {
  content: "\00b7";
  margin-right: 5px;
  color: var(--ttbp-text-dim, #6b7280);
}

.booking-info ul li.ttbp_summary_row {
  column-gap: 4px;
}

.booking-info h2 {
  font-weight: var(--ttbp-fw-bold);
}

.booking-info ul li {
  color: var(--ttbp-text-dim, #6b7280);
}

/* 2026-09-28: companions to TeeTime_Booking_Pro::isolate_theme_css() (theme stylesheets are dequeued on
   full-page TTBP apps). Without a theme, the popups outside the booking form had no font of their
   own (fell back to Times) and form controls don't inherit a font (fell back to Arial). :where()
   keeps these at zero specificity so every existing TTBP font rule still wins. */
.ttbp_fe_modal { font-family: var(--ttbp-font, 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif); }
:where(#ttbp_dashboard, #ttbp_fnb_app_wrap, #ttbp-booking-form, .ttbp_fe_modal, .ttbp-starter-sheet-page) :where(button, input, select, textarea) { font-family: inherit; }


/* ---- Tee time range slider (2026-10-05): replaces the Morning / Midday / Afternoon buttons ---- */
.ttbp_tod_range { margin-top: 10px; padding: 14px 16px 10px; border: 2px solid var(--ttbp-gray-200); border-radius: 12px; background: var(--ttbp-white, #fff); box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.ttbp_tod_range_head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: var(--ttbp-fs-base); }
.ttbp_tod_range_title { font-weight: var(--ttbp-fw-bold); }
.ttbp_tod_range_text { color: var(--ttbp-primary); white-space: nowrap; }
.ttbp_tod_range_track { position: relative; height: 28px; }
.ttbp_tod_range_track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--ttbp-gray-200); }
.ttbp_tod_range_fill { position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--ttbp-primary); }
.ttbp_tod_range_track input[type=range] { position: absolute; left: 0; top: 0; width: 100%; height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.ttbp_tod_range_track input[type=range]::-webkit-slider-runnable-track { background: none; height: 28px; }
.ttbp_tod_range_track input[type=range]::-moz-range-track { background: none; height: 28px; }
.ttbp_tod_range_track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; box-sizing: border-box; width: 28px; height: 28px; border-radius: 50%; background: var(--ttbp-white, #fff); border: 3px solid var(--ttbp-primary); box-shadow: 0 1px 4px rgba(0,0,0,0.25); cursor: grab; }
.ttbp_tod_range_track input[type=range]::-moz-range-thumb { pointer-events: auto; box-sizing: border-box; width: 28px; height: 28px; border-radius: 50%; background: var(--ttbp-white, #fff); border: 3px solid var(--ttbp-primary); box-shadow: 0 1px 4px rgba(0,0,0,0.25); cursor: grab; }
.ttbp_tod_range_track input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid rgba(0,0,0,0.25); }
.ttbp_tod_range_ends { position: relative; height: 1.6em; margin-top: 6px; font-size: 0.9em; }
.ttbp_tod_range_ends.is-stacked { height: 3.2em; }
.ttbp_tod_end_faint { position: absolute; top: 0; white-space: nowrap; font-size: 0.85em; opacity: 0.4; line-height: 1.6; }
.ttbp_tod_faint_min { left: 0; }
.ttbp_tod_faint_max { right: 0; }
.ttbp_tod_handle_label { position: absolute; top: 0; white-space: nowrap; font-weight: var(--ttbp-fw-bold); color: var(--ttbp-primary); line-height: 1.6; }
.ttbp_tod_handle_label.is-low { top: 1.6em; }

/* Saved card shown as a masked, pre-filled box on the Reservation Hold (2026-10-05) */
.ttbp_cof_masked_box{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border:1px solid #cbd5e0;border-radius:6px;background:#f7fafc;font-size:15px;color:#2d3748;letter-spacing:1px;}
.ttbp_cof_masked_exp{font-size:13px;letter-spacing:0;color:#718096;}
.ttbp_cof_toggle{display:inline-block;margin:8px 0 10px;font-size:13px;color:#3182ce;text-decoration:underline;cursor:pointer;}
