/*
 * House of Reformer — public booking CTA visibility hotfix.
 * Add-on only: the locked core booking plugin is not modified.
 */

/* The class detail sheet can be taller than a short desktop/laptop viewport.
   Make the sheet itself scroll so the booking action can never sit off-screen. */
.hor-fe-modal--class-detail .hor-fe-modal-sheet {
  max-height: calc(100vh - 32px) !important;
  max-height: calc(100dvh - 32px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

/* Keep the action strip visible while a customer reads a longer description. */
.hor-fe-modal--class-detail .hor-fe-modal-actions {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 6 !important;
  background: #fffdf9 !important;
  box-shadow: 0 -10px 22px rgba(33, 29, 24, .07) !important;
}

/* The primary booking control must never inherit a pale/transparent theme
   button style. Deliberately use the darkest House ink for strong contrast. */
.hor-fe-modal--class-detail .hor-fe-modal-actions .hor-fe-btn[data-confirm] {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 190px !important;
  min-height: 50px !important;
  padding: 14px 22px !important;
  border: 2px solid #211d18 !important;
  border-radius: 999px !important;
  background: #211d18 !important;
  color: #fffdf9 !important;
  -webkit-text-fill-color: #fffdf9 !important;
  box-shadow: 0 10px 24px rgba(33, 29, 24, .22) !important;
  font-family: 'Manrope', Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

.hor-fe-modal--class-detail .hor-fe-modal-actions .hor-fe-btn[data-confirm]:hover,
.hor-fe-modal--class-detail .hor-fe-modal-actions .hor-fe-btn[data-confirm]:focus-visible {
  border-color: #6f5a46 !important;
  background: #6f5a46 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  outline: 3px solid rgba(130, 106, 82, .25) !important;
  outline-offset: 2px !important;
}

/* Keep the secondary 'Back to timetable' action readable but visually
   subordinate to the booking action. */
.hor-fe-modal--class-detail .hor-fe-modal-actions .hor-fe-btn[data-close] {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  border: 1px solid rgba(33, 29, 24, .38) !important;
  background: #f1e9de !important;
  color: #211d18 !important;
  -webkit-text-fill-color: #211d18 !important;
}

@media (max-width: 640px) {
  .hor-fe-modal--class-detail .hor-fe-modal-sheet {
    max-height: calc(100vh - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
  }

  .hor-fe-modal--class-detail .hor-fe-modal-actions {
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
  }

  .hor-fe-modal--class-detail .hor-fe-modal-actions .hor-fe-btn[data-confirm],
  .hor-fe-modal--class-detail .hor-fe-modal-actions .hor-fe-btn[data-close] {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* v1.0.9 — mobile booking-page layout repair.
   Add-on only. These overrides intentionally sit after locked core styles. */
@media (max-width: 700px) {
  /* Footer CTA: prevent theme/core specificity conflicts from turning the
     pale CTA band into part of the dark footer or collapsing both links. */
  body.hor-has-booking-page .hor-site-footer-cta {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 24px !important;
    width: 100% !important;
    padding: 38px 20px 40px !important;
    background: #eee3d7 !important;
    color: #2b231d !important;
    border-bottom: 1px solid rgba(71, 53, 40, .13) !important;
  }

  body.hor-has-booking-page .hor-site-footer-cta-copy,
  body.hor-has-booking-page .hor-site-footer-cta-actions {
    width: 100% !important;
    max-width: none !important;
  }

  body.hor-has-booking-page .hor-site-footer-cta-copy > span {
    color: #7b6048 !important;
  }

  body.hor-has-booking-page .hor-site-footer-cta-copy h2 {
    color: #2b231d !important;
    font-size: clamp(38px, 11vw, 46px) !important;
    line-height: .96 !important;
  }

  body.hor-has-booking-page .hor-site-footer-cta-copy p {
    color: #6f6257 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  body.hor-has-booking-page .hor-site-footer-cta-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 0 !important;
  }

  body.hor-has-booking-page .hor-site-footer-cta-actions a {
    box-sizing: border-box !important;
    display: flex !important;
    width: 100% !important;
    min-height: 52px !important;
    padding: 0 18px !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
  }

  body.hor-has-booking-page .hor-site-footer-cta-primary {
    background: #4b382a !important;
    border: 1px solid #4b382a !important;
    color: #fffaf4 !important;
    -webkit-text-fill-color: #fffaf4 !important;
  }

  body.hor-has-booking-page .hor-site-footer-cta-secondary {
    background: transparent !important;
    border: 1px solid rgba(75, 56, 42, .38) !important;
    color: #4b382a !important;
    -webkit-text-fill-color: #4b382a !important;
  }
}

@media (max-width: 620px) {
  /* Account navigation must not create a clipped/off-screen final tab. */
  body.hor-has-booking-page .hor-fe-app-shell--v2 .hor-fe-tabs {
    position: relative !important;
    top: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    overflow: visible !important;
    width: 100% !important;
    padding: 7px !important;
  }

  body.hor-has-booking-page .hor-fe-app-shell--v2 .hor-fe-tab,
  body.hor-has-booking-page .hor-fe-app-shell--v2 .hor-fe-tab--secondary {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 9px 8px !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.25 !important;
  }

  /* The legacy mobile rule sets the switch to width:100% while the v2 card
     is flex-row. Stack the card so the address retains the full usable width. */
  body.hor-has-booking-page .hor-fe-studio-context--compact {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 14px !important;
  }

  body.hor-has-booking-page .hor-fe-studio-context--compact > div {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.hor-has-booking-page .hor-fe-studio-context--compact h2 {
    display: block !important;
    width: 100% !important;
    margin: 0 0 6px !important;
  }

  body.hor-has-booking-page .hor-fe-studio-context--compact > div > p:not(.hor-fe-section-eyebrow) {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    font-size: 10px !important;
    line-height: 1.55 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  body.hor-has-booking-page .hor-fe-studio-context--compact .hor-fe-studio-switch {
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    align-self: stretch !important;
    width: 100% !important;
    min-height: 42px !important;
    margin: 0 !important;
  }
}

/* v1.0.10 — Glofox → Revolut self-service membership handover. */
body.hor-has-booking-page .hor-be-renewal-banner {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .9fr);
  gap: 24px;
  margin: 14px 0;
  padding: 22px 24px;
  border: 1px solid rgba(79, 58, 42, .20);
  border-radius: 18px;
  background: #f2e8dc;
  color: #241d18;
  box-shadow: 0 10px 30px rgba(48, 36, 27, .06);
}
body.hor-has-booking-page .hor-be-renewal-banner.is-success {
  grid-template-columns: 1fr;
  background: #edf3ea;
  border-color: rgba(58, 88, 54, .22);
}
body.hor-has-booking-page .hor-be-renewal-kicker {
  display: block;
  margin-bottom: 8px;
  font: 700 9px/1.2 'IBM Plex Mono', monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #785f4a;
}
body.hor-has-booking-page .hor-be-renewal-copy h3,
body.hor-has-booking-page .hor-be-renewal-banner.is-success strong {
  display: block;
  margin: 0 0 9px;
  font-family: 'Noto Serif Display', Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.05;
}
body.hor-has-booking-page .hor-be-renewal-copy p,
body.hor-has-booking-page .hor-be-renewal-banner.is-success p {
  margin: 0;
  color: #6f6257;
  font-size: 13px;
  line-height: 1.65;
}
body.hor-has-booking-page .hor-be-renewal-list { display: grid; gap: 10px; }
body.hor-has-booking-page .hor-be-renewal-list article {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(68, 49, 36, .15);
  border-radius: 14px;
  background: #fffdf9;
}
body.hor-has-booking-page .hor-be-renewal-list article > div { display: grid; gap: 3px; }
body.hor-has-booking-page .hor-be-renewal-list article strong { font-size: 14px; }
body.hor-has-booking-page .hor-be-renewal-list article span,
body.hor-has-booking-page .hor-be-renewal-list article small { color: #74685d; font-size: 11px; line-height: 1.45; }
body.hor-has-booking-page .hor-be-renewal-list button {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 1px solid #4b382a;
  border-radius: 999px;
  background: #4b382a;
  color: #fffaf4;
  -webkit-text-fill-color: #fffaf4;
  font: 800 10px/1.2 'Manrope', Arial, sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
}
body.hor-has-booking-page .hor-be-renewal-list button:disabled { opacity: .62; cursor: wait; }
@media (max-width: 760px) {
  body.hor-has-booking-page .hor-be-renewal-banner { grid-template-columns: 1fr; margin: 10px 0; padding: 18px; border-radius: 14px; }
}

/* v1.0.15 — make the 24-hour cancellation rule visible in My Bookings */
.hor-cancellation-policy-note{display:block!important;max-width:520px;margin:8px 0 0!important;color:#7c6d62!important;font-size:11px!important;line-height:1.5!important}
