/* The checkout uses the same container, rem scaling and glass palette as .dev/shop and .dev/schedule. */
body:has(form.checkout) { background: #fff url("../images/order/background-circles.svg") center top / max(100%, 64rem) auto no-repeat; }
body:has(form.checkout) header[class*="hero-"] { padding-bottom: 0; }
body:has(form.checkout) header[class*="hero-"]::after { display: none; }
body:has(form.checkout) .checkout__body.checkout__container { display: block; padding: 0; max-width: none; }
body:has(form.checkout) form.checkout.container { width: 100%; margin-inline: auto; padding-top: 1rem; padding-bottom: 7.5rem; color: #172942; }
@media (min-width: 1200px) {
    body:has(form.checkout) form.checkout.container { max-width: 90rem; padding-inline: 2.5rem; padding-bottom: calc(7.5rem + 100px); }
}
@media (min-width: 1600px) {
    body:has(form.checkout) form.checkout.container { max-width: 100rem; }
}
form.checkout { width: 100%; font-family: "Montserrat", sans-serif; }
form.checkout *, form.checkout *::before, form.checkout *::after { box-sizing: border-box; }
form.checkout [hidden] { display: none !important; }
.checkout__visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.checkout__breadcrumbs { display: flex; align-items: center; gap: .875rem; color: #20273d; font-size: .875rem; line-height: 1.2; }
.checkout__breadcrumbs a { color: #78879e; text-decoration: none; }
.checkout__breadcrumbs a:hover { color: #008bf3; }
.checkout__page-heading { display: flex; align-items: flex-start; gap: 1.5rem; margin: 3.5rem 0 2rem; }
.checkout__back { display: block; flex: 0 0 3.25rem; width: 3.25rem; height: 3.25rem; text-decoration: none; }
.checkout__back img { display: block; width: 100%; height: 100%; }
.checkout__back:hover { opacity: .8; }
.checkout__back:focus-visible { outline: 2px solid #3c6ab9; outline-offset: 3px; border-radius: .875rem; }
.checkout__title { margin: 0; color: #20273d; font-size: 2.25rem; line-height: 1.2; font-weight: 600; }
form.checkout > .checkout__container { display: grid; grid-template-columns: minmax(0, 2.064fr) minmax(20rem, 1fr); gap: 1.5rem; align-items: start; max-width: none; padding: 0; }
.checkout__main, .checkout__summary { min-width: 0; }
.checkout__glass { padding: 1.5rem; border: .0625rem solid rgb(60 106 185 / 20%); border-radius: 2rem; background: linear-gradient(90deg, rgb(89 142 203 / 20%), rgb(197 220 255 / 20%)); box-shadow: 0 .125rem .25rem rgb(23 41 66 / 10%); -webkit-backdrop-filter: blur(1.125rem); backdrop-filter: blur(1.125rem); }
.checkout__panel { min-width: 0; padding: 1.5rem; border-radius: 1rem; background: #fff; box-shadow: 0 .125rem .25rem rgb(23 41 66 / 8%); }
.checkout__top-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.checkout__start { display: grid; gap: 1rem; }
.checkout__section-title { display: block; margin: 0 0 1rem; color: #172942; font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.checkout__start .checkout__section-title { margin: 0; }
.checkout__date-wrap { display: inline-flex; align-items: center; justify-self: start; gap: .5rem; width: fit-content; max-width: 100%; min-height: 3.0625rem; padding: .75rem 1rem; border-radius: .875rem; background: #f3f3f5; }
.checkout__date-wrap img { flex: 0 0 1rem; }
.checkout__date-label { color: #172942; font-size: .875rem; line-height: 1.2; }
.checkout__payer-switch { display: flex; margin: .5rem 0 0; padding: 0; border: 0; border-radius: .875rem; background: #f3f3f5; }
.checkout__payer-option { position: relative; display: block; margin: 0; cursor: pointer; }
.checkout__payer-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checkout__payer-option span { display: block; padding: .85rem 1rem; border-radius: .875rem; color: #60708a; font-size: 1rem; line-height: 1.2; white-space: nowrap; transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.checkout__payer-option input:checked + span { color: #172942; background: #fff; box-shadow: 0 1px 2px rgb(23 41 66 / 18%); }
.checkout__payer-option input:focus-visible + span { outline: 2px solid #008bf3; outline-offset: 2px; }
.checkout__section { margin-top: 2rem; }
.checkout__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.checkout__legal-reveal { display: grid; grid-template-rows: 0fr; margin-top: 0; opacity: 0; pointer-events: none; transition: grid-template-rows .4s ease, margin-top .4s ease, opacity .3s ease; }
.checkout__legal-reveal.is-open { grid-template-rows: 1fr; margin-top: 1rem; opacity: 1; pointer-events: auto; }
.checkout__legal-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; min-height: 0; overflow: hidden; }
.checkout__field { position: relative; display: block; min-width: 0; height: 3.0625rem; border: .0625rem solid #e8e8ec; border-radius: .875rem; background: #fff; box-shadow: 0 1px 1px rgb(23 41 66 / 9%); color: #172942; transition: border-color .25s ease, background-color .25s ease; }
.checkout__field > span { position: absolute; z-index: 1; top: 50%; left: .9375rem; max-width: calc(100% - 1.875rem); transform: translateY(-50%); color: #687991; font-size: .8125rem; line-height: 1.1; pointer-events: none; transition: top .25s ease, transform .25s ease, font-size .25s ease; }
.checkout__field:focus-within > span, .checkout__field.is-filled > span, .checkout__field:has(> input:not(:placeholder-shown)) > span, .checkout__field:has(> input:-webkit-autofill) > span { top: .45rem; transform: translateY(0); font-size: .75rem; }
.checkout__field b { color: #f00; font-weight: 500; }
.checkout__field input { display: block; width: 100%; height: 100%; min-width: 0; padding: 1.25rem .9375rem .25rem; border: 0; outline: 0; background: transparent; color: #172942; font: inherit; font-size: .875rem; line-height: 1.2; }
.checkout__field:focus-within { border-color: #3c6ab9; }
.checkout__field.is-invalid { border-color: #f8ccd4; background: #fdf2f4; }
.checkout__field input:-webkit-autofill,
.checkout__field input:-webkit-autofill:hover,
.checkout__field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #172942;
    border-radius: inherit;
}
.checkout__field.is-invalid input:-webkit-autofill,
.checkout__field.is-invalid input:-webkit-autofill:hover,
.checkout__field.is-invalid input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fdf2f4 inset;
    box-shadow: 0 0 0 1000px #fdf2f4 inset;
}
.checkout__promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.checkout__promo-button, .checkout__submit { display: inline-flex; align-items: center; justify-content: center; min-height: 3.0625rem; padding: .75rem 1rem; border: 0; border-radius: .875rem; color: #fff; background: #008bf3; font: inherit; font-size: .875rem; line-height: 1.2; text-align: center; cursor: pointer; }
.checkout__promo-button:hover:not(:disabled), .checkout__submit:hover:not(:disabled) { background: #007bda; }
.checkout__promo-button--success, .checkout__promo-button--success:disabled { background: #00cd6a; color: #fff; opacity: 1; cursor: default; }
.checkout__promo-button--success::before { content: ""; flex: 0 0 1.25rem; width: 1.25rem; height: 1.25rem; margin-right: .5rem; background: url("../images/order/promo-success.svg") center / contain no-repeat; }
.checkout__promo-message { grid-column: 1 / -1; min-height: 0; margin: 0; color: #b5364d; font-size: .8125rem; }
.checkout__promo-message:empty { display: none; }
.checkout__consents { display: grid; gap: .5rem; margin: 0 0 1.5rem; }
.checkout__consent { display: flex; align-items: center; gap: .75rem; color: #2a4977; font-size: .875rem; line-height: 1.4; cursor: pointer; }
.checkout__consent input { flex: 0 0 1.5rem; width: 1.5rem; height: 1.5rem; margin: 0; appearance: none; border: 1px solid #7e94b8; border-radius: .375rem; background: #fff; cursor: pointer; }
.checkout__consent input:checked { border: 0; background: url("../images/order/checkbox.svg") center / contain no-repeat; }
.checkout__consent a { color: #008bf3; text-decoration: none; }
.checkout__consent a:hover { text-decoration: underline; }
.checkout__field.checkout__validation-flash { transition: none; }
.checkout__validation-flash { animation: checkout-validation-flash 1.1s ease-in-out; }
@keyframes checkout-validation-flash {
    13.636%, 86.364% { border-color: #e6002a; background-color: #f8ccd4; }
}
@keyframes checkout-validation-highlight {
    from, to { border-color: #e6002a; background-color: #f8ccd4; }
}
@media (prefers-reduced-motion: reduce) {
    .checkout__validation-flash { animation: checkout-validation-highlight .8s; }
}
.checkout__panel--summary { padding: 2rem 1.5rem; }
.checkout__overview, .checkout__payment { display: contents; }
.checkout__more, .checkout__payment-prices, .checkout__date-short { display: none; }
.checkout__course { display: flex; align-items: flex-start; gap: .75rem; }
.checkout__course-media { display: contents; }
.checkout__course-image { flex: 0 0 8.25rem; width: 8.25rem; height: auto; border-radius: .75rem; }
.checkout__course-image--mobile { display: none; }
@media (min-width: 768px) {
    .checkout__payer-switch { margin-top: 0; padding: 1px; }
    .checkout__payer-option span { display: flex; align-items: center; justify-content: center; min-height: 2.9375rem; padding: 0 1rem; }
    .checkout__payer-option input:checked + span { border: 1px solid #e8e8ec; box-shadow: 0 2px 2px 0 #0000001a; }
    .checkout__course-media { position: relative; display: block; flex: 0 0 8.25rem; width: 8.25rem; aspect-ratio: 279 / 208; overflow: hidden; border-radius: .75rem; background: #dceaf7 url("../images/shop-speaker-background-q90.webp") center / cover no-repeat; }
    .checkout__course-image--desktop { display: none; }
    .checkout__course-image--mobile { position: absolute; inset-inline: 0; bottom: 0; display: block; width: 100%; height: 92%; object-fit: contain; object-position: center bottom; border-radius: 0; }
}
.checkout__course-title { min-width: 0; margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.checkout__facts { display: grid; gap: .75rem; margin: 1.5rem 0; }
.checkout__fact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; align-items: start; }
.checkout__fact dt { display: flex; align-items: center; gap: .5rem; color: #60708a; font-size: .75rem; font-weight: 400; }
.checkout__fact dt img { flex: 0 0 1.5rem; width: 1.5rem; height: 1.5rem; }
.checkout__fact dt .checkout__fact-icon--mobile { display: none; }
.checkout__fact dd { min-width: 0; margin: 0; color: #172942; font-size: .75rem; overflow-wrap: anywhere; }
@media (min-width: 768px) {
    .checkout__fact { align-items: center; }
    .checkout__fact dt, .checkout__fact dd { min-height: 1.5rem; }
    .checkout__fact dd { display: flex; align-items: center; }
}
.checkout__prices { display: grid; gap: .75rem; padding: 1.5rem 0; border-top: 1px solid #eef0f4; border-bottom: 1px solid #eef0f4; }
.checkout__price-line { display: flex; justify-content: space-between; gap: 1rem; font-size: .875rem; }
.checkout__price-line--discount span:last-child { color: #008b52; }
.checkout__total { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 0 1.25rem; font-size: 1.25rem; }
.checkout__total-value { font-size: 1.5rem; white-space: nowrap; }
.checkout__submit { width: 100%; }
.checkout__submit:disabled { color: #c5cbd5; background: #f2f4f8; cursor: not-allowed; }
.checkout__submit-error { margin: .75rem 0 0; color: #b5364d; font-size: .8125rem; }
.checkout__payment-note { margin: .75rem 0 0; color: #7f8da3; font-size: .75rem; text-align: center; }
@media (max-width: 1199.98px) {
    form.checkout > .checkout__container { grid-template-columns: minmax(0, 1fr); }
    .checkout__summary { max-width: none; }
}
@media (max-width: 767.98px) {
    body:has(form.checkout) { background-image: none; }
    body:has(form.checkout) header[class*="hero-"] .site-header__bar { padding-top: calc(3rem + env(safe-area-inset-top, 0px)); }
    body:has(form.checkout) .site-header__icon-button { --bs-btn-bg: #6689c8; --bs-btn-hover-bg: #3c6ab9; --bs-btn-active-bg: #3c6ab9; }
    body:has(form.checkout) header[class*="hero-"] .hero-section { display: none; }
    body:has(form.checkout) .site-floating-partner { display: none; }
    body:has(form.checkout) form.checkout.container { padding: 1rem 1rem 5rem; }
    .checkout__breadcrumbs, .checkout__title-course { display: none; }
    .checkout__page-heading { align-items: center; gap: 2.9375rem; margin: .5rem 0 1.5rem; }
    .checkout__back { flex-basis: 3.25rem; width: 3.25rem; height: 3.25rem; }
    .checkout__title { color: #000; font-size: 1.25rem; line-height: 1.2; }
    form.checkout > .checkout__container { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
    .checkout__main, .checkout__main > .checkout__glass, .checkout__main .checkout__panel, .checkout__top-row, .checkout__summary, .checkout__panel--summary { display: contents; }
    .checkout__start { display: none; }
    .checkout__overview, .checkout__payment { display: block; padding: 1rem; border: 1px solid #eaf2fd; border-radius: 1.5rem; background: #fff; box-shadow: 0 .25rem 1rem rgb(23 56 107 / 12%), 0 .125rem .25rem rgb(23 41 66 / 8%); }
    .checkout__overview { order: 1; min-height: 25.5rem; margin-bottom: 2.5rem; }
    .checkout__course { display: grid; gap: .75rem; }
    .checkout__course-media { position: relative; display: block; width: 100%; aspect-ratio: 279 / 208; overflow: hidden; border-radius: 1rem; background: #dceaf7 url("../images/shop-speaker-background-q90.webp") center / cover no-repeat; }
    .checkout__course-image--desktop { display: none; }
    .checkout__course-image--mobile { display: block; }
    .checkout__course-image { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 92%; object-fit: contain; object-position: center bottom; border-radius: 0; }
    .checkout__course-title { font-size: 1.25rem; line-height: 1.15; }
    .checkout__facts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem .25rem; margin: 1rem 0; }
    .checkout__fact { display: inline-flex; align-items: center; gap: .25rem; min-height: 1.25rem; }
    .checkout__fact--date { order: 1; }
    .checkout__fact--difficulty { order: 2; }
    .checkout__fact--duration { order: 3; }
    .checkout__fact--format { order: 4; }
    .checkout__fact--location, .checkout__fact--includes { display: none; }
    .checkout__fact dt { display: flex; flex: 0 0 1.25rem; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; margin: 0; font-size: 0; }
    .checkout__fact dt img { flex-basis: 1.25rem; width: 1.25rem; height: 1.25rem; }
    .checkout__fact dt .checkout__fact-icon--desktop { display: none; }
    .checkout__fact dt .checkout__fact-icon--mobile { display: block; }
    .checkout__fact dd { display: flex; align-items: center; height: 1.25rem; margin: 0; color: #60708a; font-size: .6875rem; line-height: 1; white-space: nowrap; }
    #checkout-summary-date { display: none; }
    .checkout__date-short { display: inline; }
    .checkout__more { display: block; margin: .25rem 0 .75rem; overflow: hidden; color: #172942; font-size: .625rem; line-height: 1; }
    .checkout__more summary { display: inline-flex; align-items: center; gap: .375rem; width: fit-content; cursor: pointer; list-style: none; }
    .checkout__more summary::-webkit-details-marker { display: none; }
    .checkout__more summary svg { flex: 0 0 10px; transition: transform .2s ease; }
    .checkout__more[open]:not(.is-closing) summary svg { transform: rotate(180deg); }
    .checkout__more dl { display: grid; gap: .5rem; margin: .75rem 0 0; }
    .checkout__more dl > div { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
    .checkout__more dt, .checkout__more dd { margin: 0; font-weight: 400; }
    .checkout__overview .checkout__prices { gap: .5rem; padding: .75rem 0 .625rem; border-top: 0; }
    .checkout__overview .checkout__price-line { color: #60708a; font-size: .875rem; }
    .checkout__overview .checkout__total { padding: .625rem 0 0; font-size: .875rem; }
    .checkout__overview .checkout__total-value { font-size: 1rem; }
    .checkout__payer-switch { order: 2; display: flex; width: 100%; min-height: 2.8125rem; margin: 0 0 1.5rem; padding: .25rem; background: #eaf2fd; }
    .checkout__payer-option { flex: 1 1 0; min-width: 0; }
    .checkout__payer-option:first-of-type { flex: 0 0 48.8%; }
    .checkout__payer-option span { display: flex; align-items: center; justify-content: center; min-height: 2.3125rem; padding: .375rem .25rem; border-radius: .625rem; color: rgb(23 41 66 / 70%); font-size: .8125rem; text-align: center; white-space: nowrap; }
    .checkout__section[aria-labelledby="checkout-user-title"] { order: 3; margin: 0; }
    .checkout__user-title-extra { display: none; }
    .checkout__section-title { margin-bottom: .75rem; color: #000; font-size: 1.25rem; }
    .checkout__fields, .checkout__legal-fields { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
    .checkout__field { height: 4rem; }
    .checkout__section[aria-labelledby="checkout-promo-title"] { order: 4; margin-top: 1.5rem; }
    .checkout__promo { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
    .checkout__promo-message { order: 1; }
    .checkout__promo-button { order: 2; display: none; }
    .checkout__promo:focus-within .checkout__promo-button, .checkout__field--promo.is-filled + .checkout__promo-button, .checkout__promo-button--success { display: inline-flex; }
    .checkout__consent { gap: .625rem; font-size: .8125rem; line-height: 1.3; }
    .checkout__consent input { flex-basis: 1.5rem; }
    .checkout__payment { order: 6; min-height: 14.9375rem; margin-top: 2.5rem; padding: 1.5rem .6875rem; }
    .checkout__payment-prices { display: block; }
    .checkout__payment .checkout__prices { gap: .5rem; padding: 0 0 1.375rem; border-top: 0; }
    .checkout__payment .checkout__total { padding: 1.3125rem 0 1.375rem; font-size: 1.25rem; }
    .checkout__payment .checkout__total-value { font-size: 1.5rem; }
    .checkout__submit { min-height: 3.25rem; }
    .checkout__payment-note { margin-top: .75rem; }
}
