body:has(.club-calendar) {background:#fff}
.club-calendar {--accent:#172b3d; --edge:#dce3e6}
html[lang=en] .club-calendar {--accent:#711f36}
.club-calendar .calendar-head,.club-calendar .calendar-nav {display:flex;justify-content:space-between;align-items:center;gap:12px}
.club-calendar .calendar-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center;margin:14px 0 24px}
.club-calendar .calendar-grid > span {padding:6px 0}
.club-calendar .calendar-grid button {justify-self:center;width:min(100%,42px);aspect-ratio:1;border-radius:50%;padding:0}
.club-calendar button,.club-calendar .wix-continue {color:var(--accent);border:1px solid var(--accent);border-radius:8px;background:white;min-height:36px;padding:7px 12px;cursor:pointer}
.club-calendar button[aria-pressed=true] {color:white;background:var(--accent)}
.club-calendar button:disabled {color:#a0a9af;border-color:transparent;cursor:default}
.club-calendar .class-row {display:grid;grid-template-columns:minmax(56px,1fr) minmax(0,4fr) auto;gap:14px;align-items:start;padding:14px 0;border-top:1px solid var(--edge)}
.club-calendar .class-row small {display:block;color:#52616a}
.club-calendar .class-row button {align-self:center}
.club-calendar dialog {box-sizing:border-box;width:min(460px,calc(100% - 36px));padding:24px;border:1px solid var(--edge);border-radius:14px;background:white;color:#172b3d}
.club-calendar dialog::backdrop {background:#172b3d66}
.club-calendar .wix-continue {display:inline-flex;align-items:center;margin-bottom:10px}
.club-calendar .calendar-note {margin-top:14px}
.club-calendar .calendar-nav button {border-color:var(--edge)}
@media(max-width:640px) {
 .club-calendar .calendar-grid button {width:min(100%,38px)}
 .club-calendar .class-row {gap:10px}
}
.weekly-schedule [hidden] {display:none!important}

@media(max-width:760px) {
  html[lang] body:has(.club-calendar) > :is(header,.club-global-header) > .subpage-actions {
    padding-inline-end: 34px;
  }
}

@media (min-width: 761px) {
  .club-calendar #club-date-grid button:disabled {
    color: #a0a9af !important;
    border-color: transparent !important;
    background: transparent !important;
  }
}

@media (max-width:760px) {
  .club-calendar .calendar-grid { margin-bottom:44px; }
}

html body .club-calendar #club-booking-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  margin: auto;
  padding: clamp(18px, 5vw, 26px);
}
.booking-dialog-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
html body #club-booking-dialog #club-booking-title { margin:0; font-size:20px !important; line-height:1.3 !important; }
#club-booking-dialog form { margin:0; }
html body .club-calendar #club-booking-dialog .booking-dialog-close { border:0; font-size:22px !important; line-height:1; width:36px; padding:0; }
.booking-session-summary { padding:14px; border-radius:10px; background:#f3f6f4; margin-bottom:16px; }
html body #club-booking-dialog #club-booking-class { margin:0 0 5px; font-size:16px !important; line-height:1.4 !important; }
html body #club-booking-dialog :is(#club-booking-info,.booking-preview-note) { margin:0; font-size:13px !important; line-height:1.5 !important; color:#495c55; }
#club-booking-dialog #club-booking-pass label { display:grid; gap:6px; margin:0; font-weight:600; }
#club-booking-dialog select { min-height:44px; width:100%; padding:7px 9px; box-sizing:border-box; border:1px solid #bac7c0; border-radius:8px; background:#fff; color:inherit; font:inherit; }
html body #club-booking-dialog .booking-preview-note { margin:12px 0; }
html body .club-calendar #club-booking-dialog :is(#club-booking-confirm,.booking-dialog-return button,.wix-continue) { width:100%; min-height:44px; display:flex; box-sizing:border-box; align-items:center; justify-content:center; text-align:center; font-size:14px !important; }
html body .club-calendar #club-booking-dialog :is(#club-booking-confirm,.wix-continue) { background:var(--accent); color:#fff; }
html body #club-booking-dialog .booking-dialog-return { margin-top:8px; }

.schedule-day-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.schedule-program-filter { display:flex; gap:4px; flex-wrap:wrap; }
html body .schedule-program-filter button { min-height:30px; padding:4px 7px; font-size:12px !important; }

/* Space under the calendar, and between the notice, agreement and button. */
@media (min-width:761px) { html body .club-calendar #club-date-grid { margin-bottom:64px !important; } }
html body #club-booking-dialog .booking-preview-note { margin:0 0 16px !important; }
html body #club-booking-dialog .booking-consent { margin:0 0 18px !important; font-size:13px !important; line-height:1.5 !important; }
html body #club-booking-dialog .booking-consent > span { display:flex; gap:8px; align-items:flex-start; }
html body #club-booking-dialog .booking-consent input { flex:none; width:18px; height:18px; margin:1px 0 0; }
html body #club-booking-dialog .booking-consent[hidden] { display:none; }

/* More room between the calendar and the day's classes; days without classes stay plain. */
@media (min-width:761px) { html body .club-calendar #club-date-grid { margin-bottom:104px !important; } }
@media (max-width:760px) {
  html body .club-calendar #club-date-grid { margin-bottom:72px !important; }
  html body .club-calendar #club-date-grid button:disabled { color:#a0a9af !important; border-color:transparent !important; background:transparent !important; }
}

/* Pass chooser in the booking dialog. */
html body #club-booking-dialog .booking-pass-picker { margin:0 0 12px !important; font-size:13px !important; }
html body #club-booking-dialog .booking-pass-picker[hidden] { display:none !important; }
html body #club-booking-dialog .booking-pass-picker select { font-size:13px !important; font-weight:400; text-overflow:ellipsis; }

/* Smaller filter buttons, like the consultation button. */
html body .club-calendar .schedule-program-filter button { min-height:29px; padding:4px 10px; border-radius:2px; font-size:12px !important; line-height:1.4 !important; }
@media (max-width:760px) { html body .club-calendar .schedule-program-filter button { min-height:26px; padding:3px 7px; font-size:12px !important; } }
/* Desktop: 1.5 times the room between the calendar and the day's classes. */
@media (min-width:761px) { html body .club-calendar #club-date-grid { margin-bottom:156px !important; } }
/* The notice and the agreement use the same lettering. */
html body #club-booking-dialog :is(.booking-consent, .booking-consent label) { font-family:var(--club-font) !important; font-size:13px !important; font-weight:400 !important; line-height:1.5 !important; letter-spacing:normal !important; color:#495c55 !important; }

/* PC: keep the filter buttons small. */
@layer club-desktop-standard {
  @media (min-width:761px) { html:root body .club-calendar .schedule-program-filter button:not(#x):not(#y) { font-size:12px !important; line-height:17px !important; min-height:29px !important; height:29px !important; padding:4px 10px !important; } }
}

/* Booking dialog: black lettering, and movement while Wix is answering. */
html body #club-booking-dialog :is(#club-booking-title,#club-booking-class,#club-booking-info,.booking-preview-note,.booking-session-summary,.booking-consent,.booking-consent *:not(button),#club-booking-pass label,.booking-pass-picker,select,#club-booking-complete p) { color:#111 !important; opacity:1 !important; }
html body #club-booking-dialog .booking-preview-note.is-working { margin:0 0 10px !important; font-size:15px !important; font-weight:700 !important; text-align:center; }
.booking-progress { height:6px; margin:0 0 16px; border-radius:3px; background:#e3e8e5; overflow:hidden; }
.booking-progress[hidden] { display:none; }
.booking-progress > span { display:block; width:40%; height:100%; border-radius:3px; background:var(--accent,#172b3d); animation:booking-progress 1.2s ease-in-out infinite; }
@keyframes booking-progress { from { transform:translateX(-100%); } to { transform:translateX(250%); } }
html body .club-calendar #club-booking-dialog #club-booking-confirm.is-working { opacity:1 !important; cursor:progress; gap:0; }
.booking-preview-note.is-working::after, #club-booking-confirm.is-working::after { content:''; display:inline-block; width:1.5em; text-align:left; animation:booking-dots 1.4s steps(1,end) infinite; }
#club-booking-confirm.is-working::before { content:''; width:15px; height:15px; margin-right:8px; border:2px solid rgba(255,255,255,.45); border-top-color:#fff; border-radius:50%; animation:booking-spin .8s linear infinite; }
@keyframes booking-dots { 0% { content:''; } 25% { content:'.'; } 50% { content:'..'; } 75% { content:'...'; } }
@keyframes booking-spin { to { transform:rotate(360deg); } }
@layer club-desktop-standard { html:root body #club-booking-dialog .booking-preview-note.is-working:not(#x):not(#y) { font-size:15px !important; font-weight:700 !important; line-height:1.6 !important; color:#111 !important; } }
