/* ============================================================
   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 (Clover-style 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;

}


.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: #f0f7ff;

  box-shadow: 0 0 0 1px var(--ttbp-primary), 0 2px 8px rgba(62,50,244,0.12);

}


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: #eef3ff;
  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: #dbe4ff;
}

/* 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: #eef3ff;
  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='%233e32f4' 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(62,50,244,0.08), 0 2px 6px rgba(62,50,244,0.1);
}
.ttbp_styled_select:focus {
  outline: none;
  border-color: var(--ttbp-primary);
  box-shadow: 0 0 0 2px var(--ttbp-primary), 0 2px 8px rgba(62,50,244,0.15);
}
.ttbp_styled_select:hover {
  border-color: var(--ttbp-primary);
  box-shadow: 0 0 0 1px var(--ttbp-primary), 0 3px 10px rgba(62,50,244,0.14);
}

/* 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;
}

.ttbp_slot {
  display: grid;
  grid-template-columns: 1fr 4fr 2fr;
  border: 2px solid var(--ttbp-gray-300);
  border-radius: 20px;
  padding: 20px 15px;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.ttbp_slots label input {

  display: none;

}


.ttbp_slots label input:checked+div.ttbp_slot {

  border-color: var(--ttbp-primary);

}


.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: var(--ttbp-fs-3xl);

}


.ttbp_slot_time p {

  margin: 0;

  font-size: var(--ttbp-fs-lg);

  font-weight: var(--ttbp-fw-medium);

  line-height: 1.5em;

}


.ttbp_slot_time span {

  line-height: 1.5em;

  display: block;

  font-size: var(--ttbp-fs-base);

  font-weight: var(--ttbp-fw-normal);

}


.ttbp_slot_time * {

  color: var(--ttbp-gray-900);

}


.ttbp_slot_pricing {

  display: flex;

  align-items: center;

  gap: 10px;

  font-size: var(--ttbp-fs-3xl);

  color: var(--ttbp-gray-900);

  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-primary);

  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-primary-dark);

  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: none;

  cursor: pointer;

  box-shadow: none;

  color: rgba(255,255,255,0.7);

  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: rgba(255,255,255,0.1);
  color: var(--ttbp-white);
}


.calendar-nav button.active {

  background: var(--ttbp-white);

  color: var(--ttbp-primary);

  border: 1px solid transparent;

  font-weight: var(--ttbp-fw-bold);

}


.time-slots {

  background-color: var(--ttbp-white);

  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_clover_form_row:first-child {

  grid-column: span 3;

}


#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_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);

  display: flex;

  align-items: center;

  gap: 5px;

}


.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;

}


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_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;

  }


  .ttbp_slot {

    grid-template-columns: 1fr;

  }


  .ttbp_checkout {

    grid-template-columns: 1fr;

    gap: var(--ttbp-sp-5);

  }


  #ttbp_billing_form {

    grid-column: span 1;

    padding-right: 0;

  }


  .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);

  }


  div#date-display {

    display: none;

  }


  .date-picker {

    margin: 20px 0;

  }


  input.date-display.flatpickr-input.flatpickr-mobile {

    padding: var(--ttbp-sp-2);

    text-align: left;

  }


  button[type="button"].date_nav {

    display: none;

  }


  .date-picker {

    grid-template-columns: 1fr;

  }


  .ttbp_card_fields {

    grid-template-columns: repeat(1, 1fr);

  }


  .ttbp_rides {

    grid-template-columns: repeat(2, 1fr);

  }


  .ttbp_clover_form_row:first-child {

    grid-column: span 1;

  }


  .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;

  }

}

/* 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), #8e2de2);
  /* 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);
}

.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 sent to Clover:
     1. Green Fee (untaxed)
     2. Cart Rental (untaxed base)
     3. Cart Rental Tax (named, for Clover 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;
    }
}

/* Clover payment response - pin to bottom of payment area */
#ttbp-clover-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-clover-response:empty {
    display: none;
}

/* Clover SDK privacy link -- styled for footer of payment area */
.clover-privacy-link,
a.clover-privacy-link {
    display: block;
    text-align: center;
    font-size: var(--ttbp-fs-xs);
    color: var(--ttbp-gray-500);
    margin-top: var(--ttbp-sp-3);
    padding-top: var(--ttbp-sp-2);
}

/* 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);
}

