.booking-form-wrapper .booking-form-subtitle {
  font-size: 15px;
  line-height: 18px;
  color: var(--goldColor);
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.booking-form-wrapper .booking-form-title {
  margin-bottom: 20px;
}

.booking-form-wrapper .booking-form-section {
  margin-bottom: 30px;
}

.booking-form-wrapper .booking-form-section-title {
  margin-bottom: 10px;
}

.booking-form-wrapper .booking-form-section-description {
  margin-bottom: 20px;
}

.booking-form-wrapper .booking-form-control-wrapper {
  width: 100%;
}

.booking-form-wrapper .booking-form-control {
  height: 65px;
  width: 100%;
  border: 2px solid var(--naturalColor);
  border-radius: 5px;
  padding: 20px !important;
  font-size: 16px;
}

.booking-form-wrapper .booking-form-control:focus {
  outline: none;
}

.booking-form-wrapper .booking-form-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.booking-form-wrapper .booking-form-submit-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.booking-form-wrapper .booking-form-submit-loading .btn-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.booking-form-wrapper .booking-form-submit-loading .btn-inner::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: booking-form-spin 0.7s linear infinite;
}

@keyframes booking-form-spin {
  to {
    transform: rotate(360deg);
  }
}

.booking-form-wrapper .booking-form-inline-error {
  margin-top: 8px;
  color: #d63638;
  font-size: 14px;
}

.booking-form-wrapper .booking-form-details {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 30px;
}

.booking-form-wrapper .booking-form-detail {
  flex: 1;
}

.booking-form-wrapper .booking-form-detail-label {
  margin-bottom: 0;
}

.booking-form-wrapper .booking-form-detail-value {
  margin-top: 5px;
}

.booking-form-wrapper .booking-form-detail-full {
  flex-basis: 100%;
}

.booking-form-wrapper .booking-form-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.booking-form-wrapper .booking-form-field {
  width: calc((100% - 15px) / 2);
}

.booking-form-wrapper .booking-form-field-full {
  width: 100%;
}

.booking-form-wrapper .booking-form-options {
  font-family: 'Lato', Arial, HelveticaNeue, "Helvetica Neue", Helvetica, sans-serif !important;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.booking-form-wrapper .booking-form-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: inherit;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  color: inherit;
  cursor: pointer;
}

.booking-form-wrapper .booking-form-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.booking-form-wrapper .booking-form-alternate {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--naturalColor);
}

.booking-form-wrapper .booking-form-alternate-text {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 22px;
}

.booking-form-wrapper .booking-form-alternate-link {
  color: var(--purpleColor);
  font-size: 15px;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.booking-form-wrapper .booking-form-alternate-link:hover {
  text-decoration: none;
}

/* Booking progress */

.booking-form-wrapper .booking-form-progress {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin: 25px 0 45px;
  padding: 0;
}

.booking-form-wrapper .booking-form-progress-line {
  position: absolute;
  top: 17px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--naturalColor);
  z-index: 0;
}

.booking-form-wrapper .booking-form-progress-loading {
  display: block;
  width: 0;
  height: 100%;
  background: var(--purpleColor);
  transition: width 0.3s ease;
}

.booking-form-wrapper .booking-form-progress-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Lato', Arial, HelveticaNeue, "Helvetica Neue", Helvetica, sans-serif;
}

.booking-form-wrapper .booking-form-progress-step.is-first {
  align-items: flex-start;
}

.booking-form-wrapper .booking-form-progress-step.is-last {
  align-items: flex-end;
}

.booking-form-wrapper .booking-form-progress-step.is-first .booking-form-progress-label {
  text-align: left;
}

.booking-form-wrapper .booking-form-progress-step.is-last .booking-form-progress-label {
  text-align: right;
}

.booking-form-wrapper .booking-form-progress-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--naturalColor);
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  color: var(--naturalColor);
  transition: all 0.2s ease;
}

.booking-form-wrapper .booking-form-progress-label {
  max-width: 100%;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: var(--naturalColor);
  text-align: center;
  transition: all 0.2s ease;
}

.booking-form-wrapper .booking-form-progress-step.is-active .booking-form-progress-number {
  background: var(--purpleColor);
  border-color: var(--purpleColor);
  color: #fff;
}

.booking-form-wrapper .booking-form-progress-step.is-active .booking-form-progress-label {
  color: var(--purpleColor);
  font-weight: 600;
}

.booking-form-wrapper .booking-form-progress-step.is-complete .booking-form-progress-number {
  background: var(--goldColor);
  border-color: var(--goldColor);
  color: #fff;
}

.booking-form-wrapper .booking-form-progress-step.is-complete .booking-form-progress-label {
  color: var(--purpleColor);
}

/* Confirmation */

.booking-form-wrapper .booking-form-confirmation {
  padding: 20px;
  border: 1px solid var(--naturalColor);
  border-radius: 5px;
}

.booking-form-wrapper .booking-form-confirmation p {
  margin: 0 0 10px;
}

.booking-form-wrapper .booking-form-confirmation p:last-child {
  margin-bottom: 0;
}

.booking-form-wrapper .booking-form-note {
  margin-top: 20px;
}

.booking-form-wrapper .booking-form-note-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.booking-form-wrapper textarea.booking-form-control {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.booking-form-wrapper .booking-selected-slot,
.booking-form-wrapper .booking-selected-patient {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--naturalColor);
}

/* Calendar */

.booking-form-wrapper .booking-calendar {
  width: 100%;
  margin-top: 30px;
}

.booking-form-wrapper .booking-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.booking-form-wrapper .booking-calendar-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: var(--purpleColor);
}

.booking-form-wrapper .booking-calendar-header button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--naturalColor);
  border-radius: 4px;
  background: #fff;
  color: var(--purpleColor);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.booking-form-wrapper .booking-calendar-header button:hover:not(:disabled) {
  background: var(--purpleColor);
  border-color: var(--purpleColor);
  color: #fff;
}

.booking-form-wrapper .booking-calendar-header button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.booking-form-wrapper .booking-calendar-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 30px;
  border: 1px solid var(--naturalColor);
  border-radius: 5px;
  color: var(--naturalColor);
  font-size: 14px;
}

.booking-form-wrapper .booking-calendar-loading p {
  margin: 0;
}

.booking-form-wrapper .booking-calendar-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--naturalColor);
  border-radius: 5px;
  background: #fff;
}

/*
 * FullCalendar-like time grid.
 *
 * 1 time column
 * 7 day columns
 *
 * Header row and time column stay pinned while the body
 * scrolls, like FullCalendar's timeGrid view.
 *
 * Grid lines are drawn with an inset box-shadow (not a real
 * border) on every cell. Because the shadow is painted inside
 * each cell's own box, two cells sharing an edge paint the exact
 * same line instead of stacking into a doubled-up border - that's
 * what keeps a thin, single-pixel line aligned across the whole
 * grid, time column included.
 */
.booking-form-wrapper .booking-calendar-grid {
  --calendar-grid-line: #d8dcd5;
  --calendar-grid-line-strong: #b9c2b4;
  display: grid;
  grid-template-columns: 70px repeat(7, minmax(130px, 1fr));
  min-width: 980px;
  width: 100%;
  background: #fff;
}

.booking-form-wrapper .booking-calendar-time-header,
.booking-form-wrapper .booking-calendar-time,
.booking-form-wrapper .booking-calendar-day-header,
.booking-form-wrapper .booking-calendar-slot {
  box-shadow: inset 0 0 0 1px var(--calendar-grid-line);
}

/* Time column */

.booking-form-wrapper .booking-calendar-time-header {
  position: sticky;
  left: 0;
  z-index: 2;
  height: 75px;
  background: #fff;
}

.booking-form-wrapper .booking-calendar-time {
  position: sticky;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  height: 48px;
  padding: 3px 8px 0 0;
  background: #fff;
  color: var(--naturalColor);
  font-size: 11px;
  line-height: 1;
}

/* Day headers */

.booking-form-wrapper .booking-calendar-day-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 75px;
  padding: 10px 8px;
  background: #fff;
  text-align: center;
}

.booking-form-wrapper .booking-calendar-day-header.is-today {
  background: rgba(0, 0, 0, 0.03);
}

.booking-form-wrapper .booking-calendar-day-header span {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--naturalColor);
  text-transform: uppercase;
}

.booking-form-wrapper .booking-calendar-day-header strong {
  display: block;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  color: var(--purpleColor);
}

.booking-form-wrapper .booking-calendar-today-label {
  display: block;
  margin-bottom: 2px;
  color: var(--goldColor);
  font-size: 10px;
  line-height: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Time cells */

.booking-form-wrapper .booking-calendar-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 5px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: transparent;
  font-family: inherit;
  font-size: 12px;
  line-height: 16px;
  cursor: default;
  transition: all 0.2s ease;
}

/*
 * Available = white/open, like an empty seat. Unavailable is the
 * one that's greyed out, since that's the state that can't be
 * interacted with.
 */
.booking-form-wrapper .booking-calendar-slot.is-unavailable {
  background: #f2f2f0;
  cursor: default;
}

.booking-form-wrapper .booking-calendar-slot.is-available {
  background: #fff;
  color: var(--purpleColor);
  cursor: pointer;
  font-size: 15px;
  opacity: 0.8;
}

.booking-form-wrapper .booking-calendar-slot.is-available:hover {
  background: rgba(46, 44, 100, 0.06);
}

.booking-form-wrapper .booking-calendar-slot.is-available.is-today {
  background: rgba(46, 44, 100, 0.03);
}

.booking-form-wrapper .booking-calendar-slot.is-available.is-today:hover {
  background: rgba(46, 44, 100, 0.08);
}

.booking-form-wrapper .booking-calendar-slot.is-selected {
  background: var(--purpleColor);
  color: #fff;
  font-weight: 600;
}

.booking-form-wrapper .booking-calendar-slot.is-selected:hover {
  background: var(--purpleColor);
  color: #fff;
}

/*
 * The rest of the rows an appointment's duration covers, beyond
 * its start slot - shown as part of the same selected block.
 */
.booking-form-wrapper .booking-calendar-slot.is-in-range {
  background: rgba(46, 44, 100, 0.35);
}

.booking-form-wrapper .booking-calendar-slot:disabled {
  opacity: 1;
}

/* Full-hour grid line, like FullCalendar's timeGrid */

.booking-form-wrapper .booking-calendar-slot.is-hour-mark,
.booking-form-wrapper .booking-calendar-time.is-hour-mark {
  box-shadow: inset 0 0 0 1px var(--calendar-grid-line), inset 0 -1px 0 0 var(--calendar-grid-line-strong);
}

/* Empty */

.booking-form-wrapper .booking-calendar-empty {
  margin-top: 15px;
  padding: 30px;
  border: 1px solid var(--naturalColor);
  border-radius: 5px;
  text-align: center;
  color: var(--naturalColor);
  font-size: 14px;
}

.booking-form-wrapper .booking-calendar-empty p {
  margin: 0;
}

/* Patient */

.booking-form-wrapper .booking-patient-loading {
  padding: 20px 0;
  color: var(--naturalColor);
  font-size: 14px;
}

.booking-form-wrapper .booking-patient-loading p {
  margin: 0;
}

.booking-form-wrapper .booking-patient-summary {
  flex-wrap: wrap;
}

.booking-form-wrapper .booking-patient-summary .booking-form-detail {
  min-width: 150px;
}

/* Date of birth calendar */

.booking-dob-calendar {
  position: absolute;
  z-index: 9999;
  width: 380px;
  max-width: calc(100vw - 30px);
  padding: 24px;
  background: #fff;
  border: 1px solid var(--naturalColor);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-family: 'Lato', Arial, HelveticaNeue, "Helvetica Neue", Helvetica, sans-serif;
}

.booking-dob-calendar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.booking-dob-calendar-header select {
  flex: 1;
  height: 48px;
  padding: 0 10px;
  border: 2px solid var(--naturalColor);
  border-radius: 5px;
  font-size: 17px;
  background: #fff;
}

.booking-dob-calendar-prev,
.booking-dob-calendar-next {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--naturalColor);
  border-radius: 5px;
  background: #fff;
  color: var(--purpleColor);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.booking-dob-calendar-prev:hover,
.booking-dob-calendar-next:hover {
  background: var(--purpleColor);
  border-color: var(--purpleColor);
  color: #fff;
}

.booking-dob-calendar-weekdays,
.booking-dob-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.booking-dob-calendar-weekdays {
  margin-bottom: 6px;
}

.booking-dob-calendar-weekdays span {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--naturalColor);
  text-transform: uppercase;
}

.booking-dob-calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.booking-dob-calendar-day.is-empty {
  cursor: default;
}

.booking-dob-calendar-day:not(.is-empty):hover {
  background: rgba(46, 44, 100, 0.08);
}

.booking-dob-calendar-day.is-selected {
  background: var(--purpleColor);
  color: #fff;
  font-weight: 600;
}

/* Responsive */

@media (max-width: 767px) {
  .booking-form-wrapper .booking-form-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .booking-form-wrapper .booking-form-detail {
    width: 100%;
  }

  .booking-form-wrapper .booking-form-field,
  .booking-form-wrapper .booking-form-field-full {
    width: 100%;
  }

  .booking-form-wrapper .booking-form-options {
    flex-direction: column;
    gap: 12px;
  }

  .booking-form-wrapper .booking-form-progress {
    margin: 20px 0 35px;
  }

  .booking-form-wrapper .booking-form-progress-label {
    font-size: 12px;
    line-height: 16px;
  }

  .booking-form-wrapper .booking-form-progress-number {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .booking-form-wrapper .booking-form-progress-line {
    top: 16px;
  }

  .booking-form-wrapper .booking-form-actions {
    flex-wrap: wrap;
  }

  .booking-form-wrapper .booking-calendar-header {
    align-items: center;
  }

  .booking-form-wrapper .booking-calendar-title {
    font-size: 16px;
    line-height: 22px;
  }

  .booking-form-wrapper .booking-calendar-grid {
    grid-template-columns: 60px repeat(7, 110px);
    min-width: 830px;
  }

  .booking-form-wrapper .booking-calendar-time-header,
  .booking-form-wrapper .booking-calendar-day-header {
    height: 70px;
  }

  .booking-form-wrapper .booking-calendar-slot,
  .booking-form-wrapper .booking-calendar-time {
    height: 45px;
    min-height: 45px;
  }

  .booking-form-wrapper .booking-calendar-day-header {
    padding: 8px 5px;
  }

  .booking-form-wrapper .booking-calendar-day-header span {
    font-size: 11px;
  }

  .booking-form-wrapper .booking-calendar-day-header strong {
    font-size: 14px;
  }

  .booking-form-wrapper .booking-calendar-today-label {
    font-size: 9px;
  }

  .booking-form-wrapper .booking-calendar-header button {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}

/* Checkout order summary (Cart/Checkout blocks item-data value - see build_booking_summary_checkout_html()) */

.booking-checkout-line {
  display: block;
  margin-top: 3px;
}

.booking-checkout-line:first-child {
  margin-top: 0;
}

.booking-checkout-line--label + .booking-checkout-line {
  margin-top: 7px;
}

/* The top-right price next to the title is redundant with the individual-price line already shown
   underneath the name - :has() scopes the hide to booking rows only (identified by our own
   .booking-checkout-line marker), so every other product's price column is untouched. */
.wc-block-components-order-summary-item:has(.booking-checkout-line) .wc-block-components-order-summary-item__total-price {
  display: none;
}

.booking-checkout-line--section {
  margin-top: 7px;
}

/* Order-received / My Account order table (order/order-details.php) - .booking-order-item is stamped on
   the <tr> by booking_order_item_row_class() so this only ever touches a booking line item's own row. */

.woocommerce-table--order-details tr.booking-order-item .wc-item-meta {
  padding-left: 0;
  margin-left: 0;
}