.booking-shell { max-width: 850px; }
.booking-calendar-shell { max-width: 1120px; }
.booking-header .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
.booking-header .header-cta { display: inline-flex; justify-self: end; }
.booking-shell h1 { font-size: 2rem; line-height: 1.5; }
.booking-shell h2 { font-size: 1.35rem; }
.booking-shell .header-inner, .booking-shell form > * { min-width: 0; }
.booking-notice { padding: 1rem; background: #e7f4f5; border-left: 4px solid var(--teal-dark, #0f7f84); }
.booking-shell fieldset { border: 0; padding: 0; margin: 2rem 0; min-width: 0; }
.booking-shell legend { font-weight: 700; margin-bottom: 1rem; }
.booking-teachers, .booking-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.booking-option { display: flex; align-items: center; gap: .7rem; padding: 1rem; border: 1px solid #b3ceca; border-radius: 8px; background: white; min-width: 0; cursor: pointer; }
.booking-option:has(input:checked) { outline: 3px solid #0f7f84; background: #e7f4f5; }
.booking-option input { width: auto; flex: 0 0 auto; }
.booking-option-text { min-width: 0; line-height: 1.6; }
.booking-timezone { display: inline-block; white-space: nowrap; }
.booking-option img { width: 76px; height: 76px; object-fit: contain; }
.booking-shell label { min-width: 0; }
#customer-fields label { display: grid; gap: .4rem; margin-bottom: 1rem; }
#customer-fields input, #customer-fields select { width: 100%; padding: .8rem; box-sizing: border-box; }
.booking-shell button:disabled { opacity: .6; cursor: not-allowed; }
.booking-shell :focus-visible { outline: 3px solid #0f7f84; outline-offset: 4px; }
.booking-policy { margin:1.5rem 0; padding:1rem; background:#fff; border:1px solid #b3ceca; border-radius:8px; }
.booking-consent { display:flex; align-items:flex-start; gap:.7rem; line-height:1.7; }
.booking-consent input { flex:0 0 18px; width:18px; height:18px; margin-top:.3rem; }
@media (max-width: 640px) { .booking-teachers, .booking-slots { grid-template-columns: 1fr; } .booking-shell .button { width: 100%; white-space: normal; } }
@media (max-width: 640px) {
  .booking-header .header-inner { grid-template-columns: 1fr; gap: .5rem; padding-block: .65rem; }
  .booking-header .header-cta { justify-self: start; min-height: 44px; padding: .55rem 1rem; font-size: .85rem; }
}

.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.calendar-toolbar p { margin: 0; text-align: center; font-size: .9rem; }
.calendar-toolbar button, .calendar-tabs button { min-height: 44px; padding: .6rem .8rem; border: 1px solid #b3ceca; border-radius: 6px; background: #fff; color: #155e60; cursor: pointer; }
.calendar-help { font-size: .9rem; color: #405458; }
.calendar-tabs { display: none; }
.weekly-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; width: 100%; }
.calendar-day { min-width: 0; background: #f7f7f4; padding: .45rem; border-top: 3px solid #85babc; }
.booking-shell .calendar-date { font-size: .9rem; margin: .3rem 0 .8rem; text-align: center; }
.calendar-slot { display: grid; gap: .45rem; padding: .7rem .45rem; margin-bottom: .6rem; min-width: 0; background: #fff; border: 1px solid #cfdddc; border-radius: 6px; line-height: 1.6; font-size: .85rem; }
.calendar-slot strong { color: #174e54; }
.calendar-time { font-size: .8rem; }
.calendar-select { display: flex; gap: .35rem; align-items: center; min-height: 44px; cursor: pointer; }
.calendar-select input { width: 18px; height: 18px; margin: 0; flex: 0 0 18px; }
.calendar-slot:has(input:checked) { outline: 2px solid #0f7f84; background: #e7f4f5; }
.state-held { background: #fff6e5; color: #634e2d; border-style: dashed; }
.state-booked { background: #e9eff5; color: #334c63; border-color: #aabccc; }
.state-unavailable { background: #f0f0ee; color: #4d595d; border-style: dashed; }
.state-booked .calendar-state { color: #334c63; font-weight: 700; }
.state-unavailable .calendar-state { color: #4d595d; }
.state-tentative, .state-short_notice { border-color: #d5ae72; background: #fff9eb; }
.calendar-contact { display: flex; flex-wrap: wrap; align-content: center; min-height: 44px; color: #73451e; text-decoration: underline; text-underline-offset: 3px; }
.calendar-contact span { display: inline-block; }
.calendar-state, .calendar-empty { font-size: .85rem; color: #44565c; }
.booking-shell [hidden] { display: none !important; }
.weekly-calendar > *, .calendar-slot > * { min-width: 0; max-width: 100%; }
@media (max-width: 1024px) {
  .calendar-toolbar { flex-wrap: wrap; }
  .calendar-toolbar p { order: -1; width: 100%; }
  .weekly-calendar { grid-template-columns: minmax(0, 1fr); }
  .calendar-day { display: none; padding: .8rem; }
  .calendar-day-active { display: block; }
  .calendar-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin-bottom: .8rem; }
  .calendar-tabs button { padding: .5rem .2rem; font-size: .8rem; min-width: 0; }
  .calendar-tabs button[aria-pressed="true"] { background: #0f7f84; color: #fff; border-color: #0f7f84; }
  .calendar-slot { padding: .9rem; font-size: 1rem; }
  .calendar-time { font-size: .9rem; }
}

/* Public monthly booking calendar. Private weekly views are unchanged. */
.month-toolbar, .month-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.month-toolbar { justify-content: space-between; }
.month-toolbar p { margin: 0; text-align: center; }
.month-toolbar button, .month-actions button {
  min-height: 44px;
  padding: .5rem .75rem;
  border: 1px solid #87afae;
  border-radius: 6px;
  color: #174e54;
  background: #fff;
  font: inherit;
}
.month-actions { margin-block: .6rem; }
.month-calendar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.month-panel { min-width: 0; border: 1px solid #b3ceca; border-radius: 8px; padding: .4rem; }
.month-title { margin: .45rem 0; text-align: center; }
.month-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.month-weekday { text-align: center; font-size: .78rem; color: #405458; }
.month-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: .15rem 0;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #405458;
  background: #f2f5f4;
  font: inherit;
  line-height: 1.2;
}
.month-date-number { font-weight: 700; }
.month-date-state { font-size: .7rem; white-space: nowrap; }
.month-available { border-color: #438b89; color: #104f50; background: #e7f4f5; cursor: pointer; }
.month-available[aria-pressed="true"] { color: #fff; background: #126466; }
.month-past, .month-outside { background: #f7f7f5; }
.month-loading, .month-error, .month-unknown { border-style: dashed; border-color: #a8b7b7; }
.month-date:focus-visible { outline-offset: -3px; }
.month-selection { display: block; margin-top: 1rem; }
.month-slot-heading:focus { outline: 2px solid #0f7f84; outline-offset: 3px; }
.month-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.month-slot-option {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .5rem;
  border: 1px solid #b3ceca;
  border-radius: 6px;
  cursor: pointer;
}
.month-slot-option:has(input:checked) { border-color: #0f7f84; background: #e7f4f5; }
.month-slot-option input { flex: 0 0 auto; margin: 0; }
@media (max-width: 760px) {
  .month-calendar, .month-options { grid-template-columns: minmax(0, 1fr); }
  .month-toolbar p { order: -1; width: 100%; text-align: left; }
}

.booking-teacher-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1rem;
  min-width: 0;
  padding: .5rem .75rem;
  border-block: 1px solid #cfdddc;
}
.booking-teacher-intro__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .9rem;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.booking-teacher-intro__person {
  display: flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  color: #174e54;
  font-weight: 700;
}
.booking-teacher-intro__person img {
  flex: 0 0 36px;
  width: 36px;
  height: 45px;
  border-radius: 6px;
  object-fit: contain;
  object-position: center bottom;
}
.booking-teacher-intro__link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  color: #155e60;
  text-decoration: underline;
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}
