/* Compact review. Only the middle scrolls; confirmation stays in view. */
.free-enrollment-dialog { width: min(620px, calc(100% - 32px)); max-width: 620px; max-height: calc(100dvh - 32px); border: 1px solid #e2e8f0; border-radius: 20px; color: #1c2d43; box-shadow: 0 28px 90px rgb(8 25 48 / 24%); }
.free-enrollment-dialog::backdrop { background: rgb(14 28 48 / 52%); backdrop-filter: blur(6px); }
.free-enrollment-dialog-shell { max-height: calc(100dvh - 34px); }
.free-enrollment-dialog-head { min-height: 0; gap: 13px; padding: 23px 25px 20px; background: #fff; color: #1c2d43; }
.free-enrollment-dialog-head .free-enrollment-head-icon { display: grid; place-items: center; width: 43px; height: 43px; flex-shrink: 0; border: 1px solid #e2eafa; border-radius: 13px; background: #f0f5fd; color: #285795; }
.free-enrollment-head-icon svg { width: 26px; height: 26px; }
.free-enrollment-dialog-head > div { gap: 5px; }
.free-enrollment-dialog-head > div > span { color: #5b7190; font-size: 9px; font-weight: 650; letter-spacing: .11em; }
.free-enrollment-dialog-head h2 { color: #1c2d43; font-size: 25px; font-weight: 700; line-height: 1.25; letter-spacing: -.035em; }
.free-enrollment-dialog-head button { width: 36px; height: 36px; margin-left: auto; border: 1px solid #e2e8f0; border-radius: 50%; color: #576b82; background: #fff; font-size: 23px; }
.free-enrollment-dialog-head button:hover { background: #f3f6fa; }
.free-enrollment-dialog-content { display: flex; flex-direction: column; padding: 0; overflow: hidden; min-height: 0; }
.free-enrollment-confirmation, .free-enrollment-layout { display: flex; flex-direction: column; gap: 0; margin: 0; min-height: 0; }
.free-enrollment-main { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 25px 20px; scrollbar-width: thin; }
.free-enrollment-course { grid-template-columns: 90px minmax(0, 1fr); gap: 14px; border: 0; background: #f3f6fa; padding: 14px; border-radius: 12px; }
.free-enrollment-course > img { width: 90px; height: 78px; border-radius: 8px; aspect-ratio: auto; }
.free-enrollment-course > div { gap: 5px; }
.free-enrollment-course > div > span { color: #537091; font-size: 9px; font-weight: 650; letter-spacing: .05em; }
.free-enrollment-course h3 { color: #20334a; font-size: 16px; font-weight: 650; line-height: 1.4; letter-spacing: -.015em; }
.free-enrollment-course p { color: #586d85; font-size: 11px; line-height: 1.6; }
.free-enrollment-scope { margin-top: 16px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.free-enrollment-scope ul { display: flex; flex-wrap: wrap; gap: 8px 17px; margin: 0; padding: 0; }
.free-enrollment-scope li { display: flex; align-items: center; gap: 6px; }
.free-enrollment-scope li > span { width: 16px; height: 16px; border-radius: 50%; background: #eaf5ef; color: #25724d; font-size: 10px; font-weight: 650; }
.free-enrollment-scope li p { margin: 0; }
.free-enrollment-scope li strong { color: #435970; font-size: 11px; font-weight: 500; line-height: 1.5; }
.free-enrollment-cip-note { margin: 9px 0 0; color: #586d85; font-size: 11px; line-height: 1.5; }
.free-enrollment-account-line { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; margin-top: 18px; border-top: 1px solid #e6ebf2; padding: 16px 0 0; background: transparent; border-radius: 0; }
.free-enrollment-account-line > span { width: 32px; height: 32px; border-radius: 50%; color: #285795; background: #eaf0f9; font-size: 10px; font-weight: 650; }
.free-enrollment-account-line strong { color: #283e56; font-size: 12px; font-weight: 600; }
.free-enrollment-account-line em { color: #61738a; font-size: 11px; }
.free-enrollment-consent { align-items: center; margin-top: 15px; padding: 12px; gap: 9px; border-color: #dde5ef; background: #fff; border-radius: 9px; }
.free-enrollment-consent strong { color: #354c65; font-size: 12px; font-weight: 500; line-height: 1.5; }
.free-enrollment-consent:has(input:checked) { border-color: #a4bddc; background: #f6f9fe; }
.free-enrollment-consent > span { width: 19px; height: 19px; border-width: 1.5px; margin-top: 0; }
.free-enrollment-consent input:checked + span::after { left: 5px; top: 2px; }
.free-enrollment-legal { margin: 10px 1px 0; color: #62748a; font-size: 10px; line-height: 1.6; }
.free-enrollment-legal a { color: #355d94; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.free-enrollment-bottom { flex-shrink: 0; padding: 16px 25px 22px; border-top: 1px solid #e6ebf2; background: #fff; box-shadow: 0 -6px 18px rgb(25 46 75 / 2%); }
.free-enrollment-zero-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 15px; padding: 0; border: 0; }
.free-enrollment-zero-total > div { display: grid; gap: 3px; }
.free-enrollment-zero-total span { color: #405570; font-size: 12px; font-weight: 500; }
.free-enrollment-zero-total small { grid-column: auto; color: #63758a; font-size: 10px; line-height: 1.4; }
.free-enrollment-zero-total strong { color: #1e3f6e; font-size: 28px; font-weight: 700; letter-spacing: -.04em; }
.free-enrollment-actions, .free-enrollment-actions.is-auth, .free-enrollment-actions.is-success { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin: 0; }
.free-enrollment-actions button { min-height: 46px; border-radius: 9px; font-size: 12px; font-weight: 600; padding: 12px 18px; }
.free-enrollment-actions .is-primary { display: flex; align-items: center; justify-content: center; gap: 14px; background: #245799; border-color: #245799; }
.free-enrollment-actions .is-primary:disabled { color: #6c7d92; background: #e7ecf3; border-color: #e7ecf3; }
.free-enrollment-actions .is-secondary { color: #586b82; border-color: #e2e8f0; }
.free-enrollment-account-note { margin-top: 17px; min-height: 0; gap: 10px; padding: 13px; background: #f5f8fc; }
.free-enrollment-account-note strong, .free-enrollment-processing strong { color: #2c425d; font-size: 13px; font-weight: 600; }
.free-enrollment-account-note p, .free-enrollment-processing p { color: #5c7188; font-size: 11px; margin-top: 4px; }
.free-enrollment-processing { min-height: 82px; margin-top: 16px; padding: 16px; }
.free-enrollment-success { padding: 8px 0; }
.free-enrollment-success h3 { font-size: 23px; line-height: 1.35; margin-top: 10px; }
.free-enrollment-success p { color: #5c7188; font-size: 12px; }
.free-enrollment-success-caption { margin: 12px 0 0; color: #256646; font-size: 11px; text-align: center; }
@media (max-width: 620px) {
  .free-enrollment-dialog { width: calc(100% - 24px); border-radius: 16px; max-height: calc(100dvh - 24px); }
  .free-enrollment-dialog-shell { max-height: calc(100dvh - 26px); }
  .free-enrollment-dialog-head { gap: 10px; padding: 18px; }
  .free-enrollment-dialog-head .free-enrollment-head-icon { width: 36px; height: 36px; border-radius: 10px; }
  .free-enrollment-head-icon svg { width: 23px; height: 23px; }
  .free-enrollment-dialog-head h2 { font-size: 21px; }
  .free-enrollment-dialog-head button { width: 32px; height: 32px; margin-left: auto; }
  .free-enrollment-main { padding: 0 18px 17px; }
  .free-enrollment-course { grid-template-columns: 66px minmax(0, 1fr); gap: 11px; padding: 12px; }
  .free-enrollment-course > img { width: 66px; height: 82px; display: block; }
  .free-enrollment-course h3 { font-size: 14px; }
  .free-enrollment-course p { font-size: 10px; }
  .free-enrollment-scope ul { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .free-enrollment-account-line { margin-top: 15px; padding-top: 13px; }
  .free-enrollment-consent { padding: 11px; margin-top: 13px; }
  .free-enrollment-bottom { padding: 14px 18px 18px; }
  .free-enrollment-zero-total { margin-bottom: 12px; }
  .free-enrollment-zero-total strong { font-size: 26px; }
  .free-enrollment-actions, .free-enrollment-actions.is-auth, .free-enrollment-actions.is-success { grid-template-columns: auto minmax(0, 1fr); }
  .free-enrollment-actions button { padding: 11px 13px; min-height: 44px; font-size: 11px; }
}
@media (max-width: 360px) {
  .free-enrollment-dialog-head { gap: 8px; padding: 15px; }
  .free-enrollment-dialog-head .free-enrollment-head-icon { display: none; }
  .free-enrollment-dialog-head h2 { font-size: 21px; }
  .free-enrollment-main { padding-inline: 15px; }
  .free-enrollment-bottom { padding-inline: 15px; }
  .free-enrollment-consent strong { font-size: 11px; }
}
@media (max-height: 620px) {
  .free-enrollment-dialog-head { padding-block: 12px; }
  .free-enrollment-main { padding-bottom: 12px; }
  .free-enrollment-scope { margin-top: 12px; }
  .free-enrollment-scope ul { gap: 6px 17px; }
  .free-enrollment-account-line { margin-top: 12px; padding-top: 10px; }
  .free-enrollment-consent { margin-top: 11px; padding: 10px; }
  .free-enrollment-legal { margin-top: 8px; }
  .free-enrollment-bottom { padding-top: 11px; padding-bottom: 13px; }
  .free-enrollment-zero-total { margin-bottom: 10px; }
}
@media (max-height: 620px) and (min-width: 621px) {
  .free-enrollment-dialog-head h2 { font-size: 22px; }
  .free-enrollment-dialog-head .free-enrollment-head-icon { width: 36px; height: 36px; }
  .free-enrollment-course { grid-template-columns: 76px minmax(0, 1fr); padding: 11px; }
  .free-enrollment-course > img { width: 76px; height: 64px; }
  .free-enrollment-course h3 { font-size: 15px; }
  .free-enrollment-zero-total strong { font-size: 25px; }
  .free-enrollment-actions button { min-height: 44px; padding-block: 11px; }
}
@media (prefers-reduced-motion: reduce) { .free-enrollment-dialog * { animation: none !important; transition: none !important; } }
