/* Checkout shares the system shell; payment amounts remain server-owned. */
.page-checkout .plans-header { width: calc(100% - 36px); max-width: 1060px; min-height: 0; margin: 28px auto 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.page-checkout .plans-header .header-frame { margin: 0; }
.page-checkout .plans-header + .checkout-page { padding-top: 12px; }
@media (max-width: 760px) {
    .page-checkout .plans-header { position: sticky; top: 8px; z-index: 40; width: calc(100% - 20px); margin-top: 12px; }
}
body.page-checkout {
    --checkout-blue: #1978ff;
    --checkout-pink: #df1b72;
    --checkout-muted: #7c87aa;
}
.checkout-shell { width: 100%; margin-inline: auto; padding: 10px 0 32px; color: #17366a; font-size: 16px; line-height: 1.5; }
.checkout-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 3px 25px; }
.checkout-toolbar .checkout-secure { text-align: left; margin: 0; }
.checkout-toolbar .checkout-secure strong { justify-content: flex-start; }
.checkout-shell h1,.checkout-shell h2,.checkout-shell h3,.checkout-shell p { margin: 0; }
.checkout-shell svg { width: 22px; height: 22px; stroke-width: 1.7; }
.checkout-shell a,.checkout-shell button,.checkout-shell summary { -webkit-tap-highlight-color: transparent; }
.checkout-shell :focus-visible { outline: 3px solid #80b9ff; outline-offset: 4px; }
.checkout-header { min-height: 105px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 20px; }
.checkout-brand { width: fit-content; display: block; }
.checkout-brand img { display: block; width: 220px; height: auto; }
.checkout-secure { text-align: center; }
.checkout-secure strong { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 900; }
.checkout-secure svg { color: #2bb781; width: 21px; }
.checkout-secure>span { display: block; margin-top: 3px; color: var(--checkout-muted); font-size: 13px; }
.checkout-back { justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #d9eaff; border-radius: 18px; padding: 10px 18px; background: #f4f9ff; color: #1c64c5; font-size: 14px; font-weight: 800; transition: background .2s; }
.checkout-back:hover { background: #e7f2ff; }
.checkout-back svg { width: 17px; height: 17px; transform: rotate(180deg); }
.checkout-progress { max-width: 530px; margin: 4px auto 28px; }
.checkout-progress ol { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 0; }
.checkout-progress li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #8b92b3; font-size: 13px; font-weight: 700; }
.checkout-progress li:not(:last-child)::after { content: ''; position: absolute; height: 2px; top: 16px; left: calc(50% + 23px); right: calc(-50% + 23px); background: #dfe4f3; }
.checkout-progress li.is-complete::after { background: #7ab5ff; }
.checkout-progress a { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.progress-dot { display: grid; place-items: center; border: 1px solid #dae1f2; background: #f0f3fa; width: 33px; height: 33px; border-radius: 50%; color: #96a0bd; font-size: 15px; font-weight: 900; }
.progress-dot svg { width: 20px; height: 20px; stroke-width: 2.5; }
.is-complete .progress-dot,.is-current .progress-dot { background: var(--checkout-blue); border-color: var(--checkout-blue); color: #fff; }
.is-current .progress-dot { box-shadow: 0 0 0 5px #eff6ff; }
.checkout-progress .is-current { color: #153c78; font-weight: 900; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr); gap: 22px; align-items: start; }
.checkout-panel { background: #fff; border: 1px solid #e6edf7; border-radius: 21px; box-shadow: 0 6px 28px #234d8410; min-width: 0; }
.checkout-form-panel { padding: 30px 30px 22px; }
.checkout-kicker { display: block; font-size: 11px; font-weight: 900; letter-spacing: 1.7px; color: #93a5bd; margin-bottom: 6px; }
.checkout-intro h1 { position: relative; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.18; font-weight: 900; letter-spacing: -1px; color: #12366f; }
.checkout-intro .title-rays { position: absolute; width: 32px; height: 32px; left: -25px; top: -9px; }
.checkout-intro p { color: var(--checkout-muted); margin-top: 8px; font-size: 16px; }
.checkout-selected-plan { display: flex; align-items: center; gap: 12px; background: linear-gradient(115deg, #fff5fb, #fdf5fa); border: 1px solid #f6cfe3; border-radius: 14px; padding: 14px 15px 14px 5px; margin: 23px 0 25px; scroll-margin-top: 20px; }
.checkout-selected-plan>img { flex: 0 0 85px; width: 85px; height: 85px; }
.selected-plan-copy { min-width: 0; flex: 1; }
.checkout-pill { display: inline-flex; padding: 2px 9px; border-radius: 20px; background: #f76fa8; color: white; font-size: 11px; font-weight: 900; margin-bottom: 5px; }
.selected-plan-copy h2 { font-size: 17px; font-weight: 900; line-height: 1.35; letter-spacing: -.25px; }
.selected-plan-copy p { margin-top: 4px; color: var(--checkout-muted); font-size: 13px; line-height: 1.45; }
.selected-plan-price { color: #c60b5e; font-size: 23px; white-space: nowrap; line-height: 1.15; text-align: right; font-weight: 900; }
.selected-plan-price small { display: block; font-size: 12px; margin-top: 4px; letter-spacing: .7px; }
.checkout-plan-picker { margin: -9px 0 25px; }
.checkout-plan-picker label,.checkout-field label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 7px; }
.checkout-select-wrap { position: relative; }
.checkout-select-wrap select { width: 100%; min-height: 47px; appearance: none; padding: 10px 35px 10px 13px; border: 1px solid #dce5f2; border-radius: 10px; background: #fff; color: #25436e; font-size: 14px; }
.checkout-select-wrap>svg { pointer-events: none; position: absolute; right: 12px; top: 13px; width: 18px; height: 18px; color: #98a3bd; }
.checkout-methods { padding: 0; margin: 0 0 24px; border: 0; min-width: 0; }
.checkout-methods legend { padding: 0; display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 900; margin-bottom: 14px; }
.checkout-methods legend svg { color: var(--checkout-blue); width: 22px; height: 22px; }
.payment-method-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 10px; }
.payment-method { display: flex; align-items: center; gap: 10px; min-height: 63px; padding: 11px 12px; border: 1px solid #dce3f2; border-radius: 11px; position: relative; font-size: 13px; font-weight: 800; color: #253e70; }
.payment-method>input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.payment-method:has(input:focus-visible) { outline: 3px solid #80b9ff; outline-offset: 3px; }
.payment-method>svg { color: #7e8aaa; width: 26px; height: 25px; }
.payment-method small { display: block; font-size: 10px; font-weight: 600; color: #929ab2; margin-top: 1px; }
.payment-method.is-selected { border-color: #3c94ff; background: #f4faff; box-shadow: 0 0 0 3px #eef7ff; }
.payment-method.is-selected>svg { color: #187dff; }
.payment-method.is-unavailable { cursor: not-allowed; background: #fdfdff; }
.method-radio { width: 16px; height: 16px; margin-left: auto; border-radius: 50%; border: 1.5px solid #cad2e8; flex-shrink: 0; }
.is-selected .method-radio { background: #fff; border: 5px solid var(--checkout-blue); }
.checkout-account-fields { display: grid; gap: 18px; }
.checkout-input { display: flex; align-items: center; min-height: 47px; gap: 12px; border: 1px solid #dae1ef; border-radius: 9px; padding: 0 13px; background: linear-gradient(#fff, #fdfdff); box-shadow: 0 2px 3px #2f4d8403; }
.checkout-input>svg { color: #939fc2; width: 19px; height: 19px; }
.checkout-input input { border: 0; outline: none; padding: 10px 0; width: 100%; min-width: 0; background: transparent; color: #35517d; font-size: 15px; line-height: 1.5; }
.checkout-input input::placeholder { color: #939dbc; opacity: 1; }
.checkout-input:focus-within { border-color: #61a7ff; box-shadow: 0 0 0 3px #eaf4ff; }
.checkout-field>p { font-size: 12px; color: #8993b1; margin-top: 6px; }
.checkout-field>p a { color: #2e78cc; text-decoration: underline; text-underline-offset: 3px; }
.secure-payment-entry { padding: 18px; border-radius: 12px; margin-top: 22px; border: 1px solid #dcecff; background: linear-gradient(125deg, #f5faff, #fcfdff); }
.secure-entry-heading { display: flex; gap: 12px; align-items: flex-start; }
.secure-entry-heading>div { flex: 1; min-width: 0; }
.secure-card-icon { display: grid; place-items: center; flex-shrink: 0; width: 39px; height: 39px; border-radius: 11px; background: #e2f0ff; color: #2883e4; }
.secure-card-icon>svg { width: 26px; height: 25px; }
.secure-entry-heading h3 { font-size: 15px; line-height: 1.4; font-weight: 900; }
.secure-entry-heading p { font-size: 13px; color: #7c8bad; line-height: 1.6; margin-top: 5px; }
.secure-entry-heading .secure-entry-lock { color: #67bb9e; width: 18px; height: 18px; }
.payment-brands { display: flex; align-items: center; gap: 15px; margin-top: 16px; padding-top: 13px; border-top: 1px solid #e4edf7; }
.visa-wordmark { color: #183c8b; font-size: 20px; font-style: italic; letter-spacing: -1px; line-height: 1; font-weight: 1000; }
.mastercard-mark { width: 33px; height: 22px; display: flex; align-items: center; }
.mastercard-mark i { display: block; width: 21px; height: 21px; border-radius: 50%; background: #ed654d; }
.mastercard-mark i+i { background: #ffbc49; margin-left: -9px; opacity: .9; }
.payment-brands-caption { margin-left: auto; font-size: 11px; color: #8794ad; }
.payment-brands-caption b { font-size: 19px; font-weight: 900; color: #6772a0; letter-spacing: -.8px; margin-left: 3px; }
.checkout-promo { border: 1px solid #e0e5f1; border-radius: 10px; margin-top: 18px; }
.checkout-promo summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 13px; cursor: pointer; font-size: 13px; font-weight: 700; }
.checkout-promo summary::-webkit-details-marker { display: none; }
.checkout-promo summary>svg { color: #9b93ba; width: 19px; height: 19px; }
.checkout-promo .promo-chevron { margin-left: auto; width: 16px; height: 16px; transition: transform .2s; }
.checkout-promo[open] .promo-chevron { transform: rotate(180deg); }
.checkout-promo>p { padding: 0 15px 14px; font-size: 13px; line-height: 1.6; color: #7b87a6; }
.checkout-remember { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: 13px; font-weight: 700; }
.checkout-remember input { accent-color: var(--checkout-blue); width: 17px; height: 17px; flex-shrink: 0; margin: 1px 0 0; }
.checkout-remember small { display: block; margin-top: 3px; font-size: 11px; color: #8b94ad; font-weight: 500; }
.checkout-pay { display: flex; width: 100%; align-items: center; justify-content: center; gap: 12px; min-height: 55px; border: 0; border-radius: 14px; padding: 13px 16px; color: white; background: linear-gradient(110deg, #f12486, #df1167); box-shadow: 0 6px 0 #bd165c, 0 12px 22px #e91e7229; margin-top: 25px; font-size: 17px; font-weight: 900; line-height: 1.4; transition: transform .2s, box-shadow .2s; }
.checkout-pay:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 0 #bd165c, 0 15px 25px #e91e7229; }
.checkout-pay:disabled { opacity: 1; cursor: not-allowed; background: linear-gradient(110deg, #d9679c, #c34a80); box-shadow: 0 5px 0 #a5426e, 0 10px 18px #c34a801a; }
.checkout-pay>svg:first-child { width: 18px; height: 18px; }
.checkout-pay>svg:last-child { width: 22px; height: 22px; }
.pay-divider { opacity: .65; padding: 0 3px; }
.checkout-payment-note { text-align: center; color: #8691ac; font-size: 12px; margin-top: 15px !important; }
.checkout-payment-note a { color: #5b75a0; text-decoration: underline; text-underline-offset: 3px; }
.checkout-trust { display: grid; grid-template-columns: .95fr 1.35fr 1fr; gap: 10px; border-top: 1px solid #edf0f7; margin-top: 24px; padding-top: 20px; }
.checkout-trust>div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.checkout-trust svg { color: #27b47e; width: 24px; height: 25px; }
.checkout-trust>div:nth-child(2) svg { color: #2193f0; }
.checkout-trust>div:nth-child(3) svg { color: #e3488a; }
.checkout-trust strong { display: block; font-size: 10px; font-weight: 900; line-height: 1.4; }
.checkout-trust small { display: block; color: #929bb3; font-size: 10px; line-height: 1.4; margin-top: 2px; }
.checkout-sidebar { display: grid; gap: 16px; min-width: 0; }
.checkout-order { padding: 26px 24px 20px; }
.checkout-order>h2 { display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 900; letter-spacing: -.4px; padding-bottom: 19px; border-bottom: 1px solid #edf0f7; }
.checkout-order>h2>svg:first-child { width: 28px; height: 27px; flex-shrink: 0; }
.checkout-order>h2>.order-rays { margin-left: 1px; width: 27px; height: 27px; transform: rotate(110deg); }
.order-product { display: flex; align-items: center; gap: 11px; padding: 19px 0 18px; }
.order-product>img { width: 68px; height: 68px; padding: 0 2px; flex-shrink: 0; background: #fff4d9; border-radius: 12px; }
.order-product>div { flex: 1; min-width: 0; }
.order-product h3 { font-size: 14px; line-height: 1.4; font-weight: 900; }
.order-product p { font-size: 11px; line-height: 1.55; color: #8992b1; margin-top: 5px; }
.order-product>strong { color: #ca0b61; font-size: 18px; line-height: 1.2; text-align: right; white-space: nowrap; font-weight: 900; }
.order-product>strong small { display: block; font-size: 10px; margin-top: 3px; letter-spacing: .5px; }
.order-includes-label { font-size: 13px; font-weight: 900; margin-bottom: 11px !important; }
.order-benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.order-benefits li { display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.45; color: #61759b; }
.order-benefits li>svg { width: 18px; height: 18px; border-radius: 50%; background: #31b982; color: #fff; padding: 3px; stroke-width: 3; }
.order-benefits strong { font-weight: 800; }
.checkout-balance { display: flex; gap: 8px; align-items: center; background: #f5f9ff; border: 1px solid #e2edfb; border-radius: 8px; padding: 10px; margin-top: 19px; font-size: 12px; color: #607ba2; }
.checkout-balance svg { width: 18px; height: 18px; }
.checkout-balance strong { margin-left: auto; font-weight: 800; }
.order-breakdown { border-top: 1px solid #edf0f7; margin: 23px 0 12px; padding-top: 16px; display: grid; gap: 8px; }
.order-breakdown>div { display: flex; gap: 10px; justify-content: space-between; font-size: 13px; color: #6b7d9c; }
.order-breakdown dd { margin: 0; font-weight: 800; color: #264673; }
.order-breakdown .order-discount dd { color: #2bb580; }
.order-total { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: linear-gradient(110deg, #faf0fb, #fff1f6); border: 1px solid #fcf0f7; border-radius: 12px; padding: 16px; margin: 0 -8px; font-size: 21px; font-weight: 900; }
.order-total>strong { color: #ce0b63; font-size: 23px; white-space: nowrap; }
.checkout-single-purchase { display: flex; gap: 14px; align-items: center; background: #ecfaf2; border: 1px solid #e2f6eb; border-radius: 15px; padding: 14px 20px; }
.checkout-single-purchase>svg { width: 37px; height: 45px; flex-shrink: 0; }
.checkout-single-purchase h3 { font-size: 13px; font-weight: 900; line-height: 1.5; }
.checkout-single-purchase p { color: #7b93a1; font-size: 12px; margin-top: 3px; }
.checkout-teacher-card { background: linear-gradient(120deg, #f7f1ff, #f8f3ff 70%, #faf6ff); border: 1px solid #f0e8fb; border-radius: 18px; padding: 22px 21px 20px 8px; display: flex; align-items: center; gap: 10px; overflow: hidden; }
.teacher-portrait { position: relative; flex: 0 0 120px; width: 120px; height: 141px; align-self: flex-end; }
.teacher-portrait>img { width: 133px; height: 153px; max-width: none; object-fit: contain; object-position: center bottom; position: absolute; bottom: -20px; left: -1px; }
.teacher-heart { position: absolute; left: 96px; top: -2px; z-index: 1; transform: rotate(16deg); }
.teacher-heart svg { width: 22px; height: 22px; color: #f46a99; }
.teacher-card-label { font-size: 9px; letter-spacing: .8px; color: #a393c2; font-weight: 900; }
.checkout-teacher-card h3 { font-size: 17px; line-height: 1.4; font-weight: 900; margin-top: 5px; }
.checkout-teacher-card em { font-style: normal; color: #9c65ce; }
.checkout-teacher-card p { color: #9483ad; font-size: 12px; line-height: 1.7; margin-top: 8px; }
.checkout-access { position: relative; background: #edf8ff; border: 1px solid #dff1ff; border-radius: 17px; padding: 22px 20px 34px 17px; display: flex; gap: 13px; overflow: hidden; }
.checkout-access>.access-bolt { flex-shrink: 0; width: 29px; height: 39px; }
.checkout-access h3 { font-size: 14px; font-weight: 900; }
.checkout-access p { color: #7a93ac; font-size: 12px; line-height: 1.65; margin-top: 6px; max-width: 290px; }
.checkout-access a { display: inline-flex; align-items: center; gap: 6px; color: #2e8ec4; font-size: 11px; font-weight: 800; margin-top: 10px; position: relative; z-index: 1; }
.checkout-access a>svg { width: 15px; height: 15px; }
.checkout-access>.access-plane { position: absolute; right: 5px; bottom: 2px; width: 112px; height: 52px; opacity: .85; }
.checkout-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 29px 3px 36px; color: #99a4b9; font-size: 12px; }
.checkout-footer>span,.checkout-footer>a { display: flex; align-items: center; gap: 7px; }
.checkout-footer>span>svg { color: #e694b7; width: 16px; height: 16px; }
.checkout-footer>a { color: #7091b8; }
.checkout-footer>a>svg { width: 15px; height: 15px; }
.checkout-notice { border: 1px solid #d3e9ff; border-radius: 12px; background: #eff7ff; color: #365f8c; padding: 15px; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 14px; }
@media (max-width:1100px) {
    .checkout-layout { gap: 18px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
    .checkout-form-panel { padding: 26px 23px 22px; }
    .checkout-order { padding: 23px 19px 19px; }
    .payment-method { padding: 10px 8px; gap: 7px; font-size: 12px; }
    .payment-method>svg { width: 22px; }
    .payment-method-grid { gap: 8px; }
    .checkout-selected-plan { gap: 7px; }
    .checkout-selected-plan>img { width: 72px; height: 72px; flex-basis: 72px; }
    .selected-plan-copy h2 { font-size: 15px; }
    .selected-plan-price { font-size: 21px; }
    .checkout-order>h2 { font-size: 17px; gap: 8px; }
    .checkout-order>h2>.order-rays { display: none; }
    .order-product { gap: 8px; }
    .order-product>img { width: 54px; height: 54px; }
    .order-product>strong { font-size: 16px; }
    .teacher-portrait { flex-basis: 97px; width: 97px; }
    .teacher-portrait>img { width: 112px; }
    .teacher-heart { left: 79px; }
    .checkout-teacher-card h3 { font-size: 15px; }
    .checkout-trust { gap: 7px; }
    .checkout-trust>div { gap: 5px; }
    .checkout-trust svg { width: 20px; }
}
@media (max-width:900px) {
    .checkout-shell { max-width: 660px; }
    .checkout-header { min-height: 98px; grid-template-columns: 1fr 1fr; }
    .checkout-brand img { width: 190px; }
    .checkout-secure { grid-column: 1 / -1; grid-row: 2; margin: -1px 0 18px; }
    .checkout-secure>span { font-size: 12px; }
    .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .checkout-progress { margin-top: 3px; margin-bottom: 25px; }
    .checkout-form-panel { padding: 29px 28px 24px; }
    .checkout-intro h1 { font-size: 34px; }
    .payment-method { font-size: 14px; padding: 13px; gap: 10px; }
    .payment-method>svg { width: 26px; }
    .checkout-selected-plan>img { width: 85px; height: 85px; flex-basis: 85px; }
    .selected-plan-copy h2 { font-size: 17px; }
    .checkout-order { padding: 25px; }
    .checkout-order>h2 { font-size: 21px; }
    .order-product>img { width: 72px; height: 72px; }
    .order-product h3 { font-size: 16px; }
    .order-product>strong { font-size: 20px; }
    .order-benefits li { font-size: 15px; }
    .order-includes-label { font-size: 15px; }
    .order-product p,.order-breakdown>div { font-size: 13px; }
    .checkout-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .checkout-order,.checkout-single-purchase { grid-column: 1 / -1; }
    .checkout-teacher-card { padding: 20px 15px; flex-direction: column; align-items: flex-start; }
    .teacher-portrait { align-self: center; height: 112px; width: 130px; flex-basis: auto; }
    .teacher-portrait>img { height: 140px; width: 130px; bottom: -10px; }
    .teacher-heart { left: 105px; }
    .checkout-access { flex-direction: column; padding: 22px 20px 40px; }
    .checkout-access>.access-bolt { width: 30px; height: 42px; }
    .checkout-teacher-card h3 { font-size: 17px; }
    .checkout-trust strong,.checkout-trust small { font-size: 11px; }
    .checkout-trust svg { width: 25px; }
}
@media (max-width:520px) {
    .checkout-shell { width: 100%; }
    .checkout-toolbar { padding-bottom: 15px; gap: 9px; }
    .checkout-toolbar .checkout-secure { margin: 0; }
    .checkout-toolbar .checkout-secure>span { max-width: 165px; }
    .checkout-header { gap: 12px; min-height: 94px; padding-top: 9px; }
    .checkout-brand img { width: 170px; }
    .checkout-back { padding: 9px 13px; font-size: 12px; border-radius: 14px; }
    .checkout-secure { margin: 2px 0 15px; }
    .checkout-secure strong { font-size: 14px; }
    .checkout-secure>span { font-size: 11px; }
    .checkout-progress { margin: 7px 0 24px; }
    .checkout-progress li { font-size: 12px; }
    .progress-dot { width: 30px; height: 30px; font-size: 14px; }
    .checkout-progress li:not(:last-child)::after { top: 14px; }
    .checkout-form-panel { padding: 25px 18px 21px; }
    .checkout-kicker { font-size: 9px; letter-spacing: 1.1px; }
    .checkout-intro h1 { font-size: 30px; letter-spacing: -.7px; }
    .checkout-intro .title-rays { width: 24px; height: 24px; left: -14px; top: -9px; }
    .checkout-intro p { font-size: 14px; }
    .checkout-selected-plan { display: grid; grid-template-columns: 65px minmax(0, 1fr); column-gap: 10px; row-gap: 8px; margin-top: 20px; padding: 13px 12px 14px 5px; }
    .checkout-selected-plan>img { grid-row: 1 / 3; align-self: center; width: 65px; height: 65px; }
    .selected-plan-copy { grid-column: 2; }
    .selected-plan-copy h2 { font-size: 15px; }
    .selected-plan-copy p { font-size: 11px; }
    .selected-plan-price { grid-column: 2; justify-self: start; font-size: 20px; margin-left: 0; display: inline-flex; align-items: baseline; gap: 3px; line-height: 1; }
    .selected-plan-price small { font-size: 11px; margin-left: 2px; margin-top: 0; }
    .checkout-pill { font-size: 10px; }
    .checkout-methods legend { font-size: 15px; }
    .payment-method-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .payment-method { flex-direction: column; gap: 6px; padding: 12px 3px 10px; font-size: 11px; justify-content: flex-start; min-height: 100px; text-align: center; }
    .payment-method>svg { width: 25px; height: 23px; }
    .payment-method small { font-size: 9px; }
    .method-radio { position: absolute; top: 6px; right: 5px; width: 11px; height: 11px; }
    .is-selected .method-radio { border-width: 3px; }
    .checkout-input input { font-size: 16px; }
    .checkout-field label { font-size: 14px; }
    .secure-payment-entry { padding: 15px 13px; }
    .secure-entry-heading { gap: 9px; }
    .secure-card-icon { width: 32px; height: 33px; border-radius: 8px; }
    .secure-card-icon>svg { width: 24px; }
    .secure-entry-heading h3 { font-size: 14px; }
    .secure-entry-heading p { font-size: 12px; }
    .secure-entry-heading .secure-entry-lock { display: none; }
    .payment-brands { gap: 10px; }
    .payment-brands-caption { font-size: 9px; }
    .payment-brands-caption b { font-size: 18px; }
    .checkout-promo summary { font-size: 12px; gap: 7px; padding: 12px 10px; }
    .checkout-pay { font-size: 15px; gap: 9px; }
    .checkout-payment-note { font-size: 11px; }
    .checkout-trust { grid-template-columns: 1fr; gap: 13px; padding-top: 18px; margin-top: 21px; }
    .checkout-trust>div { gap: 10px; }
    .checkout-trust>div>span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
    .checkout-trust strong,.checkout-trust small { font-size: 11px; }
    .checkout-trust small { margin-top: 0; }
    .checkout-order { padding: 22px 18px 18px; }
    .checkout-order>h2 { font-size: 19px; }
    .order-product { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 7px 12px; }
    .order-product>img { grid-row: 1 / 3; align-self: center; width: 60px; height: 60px; }
    .order-product>div { grid-column: 2; }
    .order-product h3 { font-size: 15px; }
    .order-product>strong { grid-column: 2; justify-self: start; font-size: 19px; margin-left: 0; display: flex; align-items: baseline; gap: 3px; }
    .order-product>strong small { margin-left: 3px; margin-top: 0; }
    .order-benefits li { font-size: 13px; }
    .order-includes-label { font-size: 13px; }
    .order-total>strong { font-size: 21px; }
    .order-total { font-size: 19px; padding: 14px; margin-inline: -5px; }
    .checkout-single-purchase { padding: 15px; gap: 11px; }
    .checkout-single-purchase h3 { font-size: 12px; }
    .checkout-single-purchase p { font-size: 11px; }
    .checkout-sidebar { grid-template-columns: minmax(0, 1fr); }
    .checkout-teacher-card { flex-direction: row; align-items: center; gap: 16px; padding: 24px 18px 22px 9px; }
    .teacher-portrait { width: 104px; height: 130px; align-self: flex-end; flex: 0 0 104px; }
    .teacher-portrait>img { width: 120px; height: 143px; bottom: -22px; left: -6px; }
    .teacher-heart { left: 82px; }
    .checkout-teacher-card h3 { font-size: 15px; }
    .checkout-teacher-card p { font-size: 11px; }
    .teacher-card-label { font-size: 8px; }
    .checkout-access { flex-direction: row; padding-bottom: 32px; }
    .checkout-access h3 { font-size: 13px; }
    .checkout-access a { font-size: 10px; }
    .checkout-footer { flex-direction: column; gap: 10px; font-size: 11px; padding-block: 24px; }
}
@media (prefers-reduced-motion: reduce) { .checkout-shell * { transition: none !important; scroll-behavior: auto !important; } }

/* Standalone checkout page: one white card on the full-bleed background, no site header or footer. */
body.page-checkout { padding: 0; }
.checkout-page { min-height: 100vh; padding: 28px 18px 40px; display: flex; flex-direction: column; align-items: center; }
.checkout-page .flash { width: 100%; max-width: 1060px; margin: 0 0 14px; }
.checkout-card { width: 100%; max-width: 1060px; background: rgba(255,255,255,.96); border: 1px solid #fff; border-radius: 28px; padding: 22px 22px 26px; box-shadow: 0 18px 50px rgba(52,95,140,.2); }
.checkout-card .checkout-shell { padding: 0; max-width: none; }
.checkout-card .checkout-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 4px 4px 14px; }
.checkout-card .checkout-toolbar .checkout-secure { text-align: center; }
.checkout-card .checkout-toolbar .checkout-secure strong { justify-content: center; font-size: 17px; }
.checkout-card .checkout-back { justify-self: end; }
.checkout-logo img { display: block; width: 190px; height: auto; }
.checkout-card .checkout-progress { margin: 0 auto 22px; }
@media (max-width: 760px) {
    .checkout-page { padding: 12px 10px 28px; }
    .checkout-card { padding: 14px 12px 18px; border-radius: 22px; }
    .checkout-card .checkout-toolbar { grid-template-columns: auto auto; grid-template-areas: "logo back" "secure secure"; row-gap: 10px; }
    .checkout-card .checkout-logo { grid-area: logo; }
    .checkout-card .checkout-back { grid-area: back; }
    .checkout-card .checkout-toolbar .checkout-secure { grid-area: secure; }
    .checkout-logo img { width: 140px; }
}
body.page-checkout { background: #cfe9fb url('../images/school-background.webp') center top / cover fixed no-repeat; }
