/* Course options use the page scroll; only the existing price summary sticks. */
body.course-page {
  --course-price-sticky-top: calc(var(--nav-h, 84px) + 66px);
  overflow-x: clip;
  overflow-y: visible;
}

body.course-page .booking-sidebar {
  overflow: visible;
}

body.course-page .booking-card {
  position: static;
  top: auto;
  max-height: none;
  overflow: visible;
  grid-template-rows: auto auto auto;
}

body.course-page .booking-card__scroll {
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
}

body.course-page .booking-card__summary {
  position: sticky;
  top: var(--course-price-sticky-top);
  z-index: 80;
}

body.course-page .booking-card__summary[data-course-price-pinned="true"] {
  position: fixed;
  left: var(--course-price-fixed-left);
  width: var(--course-price-fixed-width);
  margin: 0;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(17,19,24,.16), 0 0 0 1px #e5d477;
}

body.course-page .booking-card__summary[data-course-price-footer-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}

body.course-page .course-price-placeholder { min-width: 0; pointer-events: none; }
body.course-page .course-price-placeholder[hidden] { display: none; }
body.course-page .course-price-actions {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .45rem;
  padding-top: .65rem;
}
body.course-page .booking-card__summary[data-course-price-pinned="true"] .course-price-actions { display: grid; }
body.course-page .course-price-actions > * {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: .5rem .35rem;
  border: 1px solid #d7c36a;
  border-radius: 8px;
  color: #333c4c;
  background: #fffdf5;
  font: inherit;
  font-size: .65rem;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
}
body.course-page .course-price-actions > .course-price-actions__enrol {
  border-color: var(--yellow, #f7d84b);
  background: var(--yellow, #f7d84b);
  color: #111318;
}
body.course-page .course-price-actions > *:hover { border-color: #a88d1b; }
body.course-page .course-price-actions > *:focus-visible { outline: 3px solid #111318; outline-offset: 2px; }
body.course-page .course-price-actions__enrol:disabled { opacity: .5; cursor: default; }

body.course-page .booking-sidebar[id] { scroll-margin-top: calc(var(--course-price-sticky-top) + 12px); }

body.course-page .booking-card__topline {
  border-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

body.course-page .booking-card__scroll :is(button, input, select, textarea, a, label, [tabindex]) {
  scroll-margin-top: calc(var(--course-price-sticky-top) + var(--course-price-summary-height, 130px) + 12px);
}

@media (max-width: 679px) {
  body.course-page .course-price-actions > * { min-height: 40px; font-size: .7rem; }
  body.course-page[data-course-price-pinned="true"] .course-content-section {
    scroll-margin-top: calc(var(--course-price-sticky-top) + var(--course-price-pinned-height, 130px) + 12px);
  }
}
