/* R4: family checkout only. Existing certification/Admin styling is preserved. */
.checkout-family{--blue:#075dc7;--ink:#132b48;--muted:#61738a;--line:#dce4ef;--surface:#f5f7fb;background:#edf2f8;color:var(--ink)}
.checkout-family .shell{width:min(1040px,calc(100% - 48px));margin:24px auto;min-height:0;background:white;border:1px solid #dce4ef;border-radius:18px;overflow:visible;box-shadow:0 12px 40px #132b4807}
.checkout-family .shell:before,.checkout-family .shell:after{display:none}
.checkout-family header{height:76px;padding:0 32px;border-bottom:1px solid var(--line)}
.checkout-family .brand{gap:12px;font-size:12px;line-height:1.45}.checkout-family .brand img{width:42px;height:42px}.checkout-family .brand b{display:none}
.checkout-family main{width:calc(100% - 64px);max-width:920px;min-height:0;margin:28px auto 32px}
.checkout-family main[data-view=entry]{max-width:720px;margin:44px auto 52px}
.checkout-family main:is([data-view=reingreso-contact],[data-view=reingreso-students],[data-view=reingreso-review],[data-view=lookup],[data-view=access],[data-view=verify],[data-view=ventanilla]){max-width:640px}
.checkout-family main:is([data-view=processing],[data-view=pending],[data-view=declined],[data-view=card-rejected],[data-view=verification-pending],[data-view=configuration-review],[data-view=expired],[data-view=session-expired]){max-width:580px;text-align:center}
.checkout-family h1{font-size:30px;line-height:1.18;letter-spacing:-.035em;margin:0 0 22px}.checkout-family main[data-view=entry] h1{font-size:36px;text-align:center;margin-bottom:28px}
.checkout-family h2{font-size:18px;line-height:1.3;margin:0 0 16px}.checkout-family .lead{font-size:14px;line-height:1.6;margin:0 0 20px;color:var(--muted)}
.checkout-family .entry-choices{grid-template-columns:1fr 1fr;gap:16px;margin:0}.checkout-family .entry-choice{min-height:126px;padding:26px 42px 26px 24px;border-radius:12px;background:#fff;border-color:var(--line)}
.checkout-family .entry-choice strong{font-size:18px;line-height:1.3}.checkout-family .entry-choice span{font-size:13px;line-height:1.5;margin-top:8px;max-width:240px}.checkout-family .entry-choice:first-child{background:var(--blue);border-color:var(--blue);color:#fff}.checkout-family .entry-choice:first-child span{color:#e3efff}.checkout-family .entry-choice:first-child:hover{background:#064fab}.checkout-family .entry-choice:last-child:hover{background:#f5f8fd;border-color:var(--blue)}
.checkout-family .entry-choice .choice-icon{position:absolute;right:20px;top:30px;width:19px;height:19px}.checkout-family .entry-choice:first-child .choice-icon{filter:brightness(0) invert(1)}
.checkout-family .field{font-size:13px;font-weight:400;gap:7px;margin:16px 0}.checkout-family .field input,.checkout-family .field select{height:48px;min-height:48px;border-radius:8px;padding:11px 13px;font-size:15px;border-color:var(--line);background:white}
.checkout-family .row{gap:16px}.checkout-family .check-line{font-size:13px;min-height:40px}.checkout-family .field-help{font-size:12px;line-height:1.5;color:var(--muted);margin:8px 0 14px}
.checkout-family .primary{min-height:48px;border-radius:8px;margin-top:20px;padding:12px 18px;font-size:14px}.checkout-family .primary:hover:not(:disabled){background:#064fab}.checkout-family .secondary{min-height:46px;border-radius:8px;font-size:14px;background:white;border-color:var(--line)}.checkout-family .text-link{font-size:13px;min-height:44px;padding:10px 0}
.checkout-family button:disabled{cursor:not-allowed;opacity:.55}.checkout-family :is(button,a,input,select,summary):focus-visible{outline:3px solid #075dc7;outline-offset:3px}.checkout-family .primary:focus-visible{outline-color:#142b48;box-shadow:0 0 0 2px white}
.checkout-family .entry-progress,.checkout-family .progress{margin:0 0 22px}.checkout-family .entry-progress ol,.checkout-family .progress ol{margin:0;padding:0}.checkout-family .progress{max-width:660px}.checkout-family .progress li{font-size:11px}.checkout-family .progress li span{width:25px;height:25px;font-size:11px}.checkout-family .progress li span img{width:25px;height:25px}
.checkout-family .student{background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0 0 16px;margin:0 0 20px}.checkout-family .student strong{font-size:16px}.checkout-family .student p{font-size:13px;line-height:1.4;margin:5px 0}.checkout-family .student small{font-size:12px;color:var(--muted)}
.checkout-family .paid-pill{font-size:12px;padding:7px 10px;margin:0 0 12px}.checkout-family .notice,.checkout-family .success{font-size:13px;line-height:1.55;padding:13px 15px;border-radius:9px;margin:16px 0}.checkout-family .notice p{font-size:12px}.checkout-family .promotion-compact{margin:0 0 16px;font-size:12px;color:var(--muted)}.checkout-family .promotion-compact summary{cursor:pointer;min-height:28px;color:var(--blue)}.checkout-family .promotion-compact p{margin:8px 0}
.checkout-family .selection-layout,.checkout-family .card-layout,.checkout-family .review-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:32px;align-items:start}
.checkout-family .advanced{margin:0;border:0;padding:0}.checkout-family .advanced>summary{font-size:15px;min-height:36px;padding:0 0 12px;color:var(--ink)}
.checkout-family #advance-concepts{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.checkout-family .option{min-height:46px;padding:10px 0;border:0;border-bottom:1px solid #edf1f6;border-radius:0;background:none;margin:0;gap:9px;align-items:center;font-size:13px}.checkout-family .option>strong{font-size:13px}.checkout-family .option input{width:18px;height:18px;accent-color:var(--blue)}
.checkout-family .selection-actions{display:flex;gap:18px;margin:0 0 8px}.checkout-family .selection-actions button{padding:6px 0;min-height:34px;font-size:12px;color:var(--blue);border:0;background:none}
.checkout-family .selection-summary,.checkout-family .order-summary{position:static;background:#f5f7fb;border:1px solid #e3e9f2;border-radius:12px;padding:20px}.checkout-family .selection-summary h2,.checkout-family .order-summary h2{font-size:16px;margin:0 0 16px}.checkout-family .selection-summary .primary{margin-top:18px}.checkout-family .selection-count{font-size:12px;color:var(--muted);margin:0 0 12px}
.checkout-family .payment-detail{font-size:13px;margin:0 0 8px;width:100%;border-collapse:collapse}.checkout-family .payment-detail th,.checkout-family .payment-detail td{padding:12px 0;border-bottom:1px solid var(--line);font-weight:400}.checkout-family .payment-detail thead th{font-size:11px;color:var(--muted);text-transform:none;padding-top:0}.checkout-family .payment-detail th{text-align:left}.checkout-family .payment-detail th:last-child,.checkout-family .payment-detail td{text-align:right;white-space:nowrap}
.checkout-family .line{font-size:13px;margin:0;padding:9px 0}.checkout-family .line strong{font-size:13px}.checkout-family .line.bonus{color:#17704f}.checkout-family .total-line{padding-top:15px;margin-top:8px;border-top:1px solid var(--line);font-size:16px}.checkout-family .total-line strong{font-size:16px}.checkout-family .total-line strong:last-child{font-size:24px;color:var(--blue)}.checkout-family .discount-note{font-size:11px;line-height:1.5;color:#17704f;margin:4px 0 0}
.checkout-family .retention{background:#f5f7fb;margin:18px 0 0;padding:12px 14px}.checkout-family .retention strong{font-size:12px}.checkout-family .retention p{font-size:12px;line-height:1.5;margin:5px 0 0}
.checkout-family .card-layout #card-form>.field:first-child{margin-top:0}.checkout-family .card-layout .primary{margin-top:18px}.checkout-family .payment-review{border:0;background:none;padding:0}
.checkout-family .review-layout{grid-template-areas:"actions summary"}.checkout-family .review-layout>.order-summary{grid-area:summary}.checkout-family .review-actions{grid-area:actions}
@media(max-width:760px){.checkout-family .review-layout{grid-template-areas:"summary" "actions"}}
@media(min-width:761px){.checkout-family main[data-view=selection]>.paid-pill{vertical-align:middle;margin:0 14px 12px 0}.checkout-family main[data-view=selection]>.promotion-compact{display:inline-block;vertical-align:middle;margin:0 0 12px}}
@media(min-width:761px){.checkout-family main[data-view=selection]>.account-summary{padding-top:10px;margin-top:12px}}
.checkout-family .account-summary,.checkout-family .receipt-history{padding-top:14px;margin-top:18px;border-top:1px solid var(--line)}.checkout-family .account-summary>summary,.checkout-family .receipt-history>summary{font-size:12px;color:var(--muted);min-height:28px;cursor:pointer}.checkout-family .receipt-history h2{font-size:14px}.checkout-family .receipt-link{padding:12px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}.checkout-family .receipt-link strong{font-size:13px}.checkout-family .receipt-link b{font-size:13px}
.checkout-family .student-entry{border:1px solid var(--line);border-radius:10px;padding:14px 18px;margin-bottom:16px}.checkout-family .student-entry legend{font-size:13px;font-weight:700}.checkout-family .student-entry .field{margin:12px 0}.checkout-family .remove-student{right:14px;top:-18px}.checkout-family .entry-review{border:0;border-radius:0;padding:0}.checkout-family .entry-review p{font-size:13px}.checkout-family .review-student{padding:12px 0}.checkout-family .review-student strong{font-size:14px}
.checkout-family .registered-students{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}.checkout-family .registered-students article{margin:0;padding:20px;border:1px solid var(--line);border-radius:12px}.checkout-family .registered-students h2{font-size:17px;margin:0 0 6px}.checkout-family .registered-students p{font-size:13px;margin:6px 0}.checkout-family .reservation-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--ink);font-size:17px;letter-spacing:.03em;background:#f2f6fc;border-radius:8px;padding:12px 14px;overflow-wrap:anywhere}
.checkout-family .registered-students .reservation-code{font-size:16px;margin:16px 0}.checkout-family .registered-students .primary{margin-top:14px}.checkout-family .registered-students .secondary{margin-top:8px}.checkout-family .code-caption{font-size:12px;color:var(--muted);margin-bottom:6px}
.checkout-family .status-symbol{width:64px;height:64px;background:none;border-radius:0;margin:24px auto 20px}.checkout-family .status-symbol img{width:64px;height:64px}.checkout-family .spinner{width:50px;height:50px;border:0;margin:32px auto;background:none;animation:spin 1.4s linear infinite}.checkout-family .result-amount{font-size:38px;line-height:1.15;font-weight:700;letter-spacing:-.04em;margin:10px 0 24px}.checkout-family .result-caption{font-size:12px;color:var(--muted);margin:0}.checkout-family .result-meta{display:grid;grid-template-columns:1fr 1fr;gap:16px;text-align:left;margin:24px 0;font-size:12px}.checkout-family .result-meta dt{color:var(--muted);margin-bottom:6px}.checkout-family .result-meta dd{margin:0;overflow-wrap:anywhere;line-height:1.5;font-size:13px}
.checkout-family .receipt-preview{border:1px solid var(--line);border-radius:12px;padding:22px;background:white;margin:0}.checkout-family .receipt-heading{margin-bottom:20px}.checkout-family .receipt-heading .brand-word{width:110px;height:auto}.checkout-family .receipt-heading span{font-size:12px;color:var(--muted)}.checkout-family .receipt-preview h2{font-size:18px;margin:0 0 6px}.checkout-family .receipt-preview .card-caption{font-size:12px;margin:0 0 18px}.checkout-family .receipt-preview .success{font-size:12px;padding:11px 13px}.checkout-family .receipt-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.checkout-family .receipt-actions .primary,.checkout-family .receipt-actions .secondary{margin-top:18px}.checkout-family .non-fiscal-note{font-size:11px;color:var(--muted);text-align:center;margin-top:14px;line-height:1.5}
.checkout-family main[data-view=receipt]>h1{text-align:center;margin-bottom:8px}.checkout-family main[data-view=receipt]>.status-symbol{margin:16px auto}.checkout-family main[data-view=receipt]>.result-amount{text-align:center;margin:8px 0 22px}
.checkout-family .support{margin-top:18px}.checkout-family .support p{font-size:11px;line-height:1.6}.checkout-family .footnote{font-size:11px;line-height:1.6;margin-top:14px}.checkout-family footer{padding:18px 24px;margin:0;border-top:1px solid #edf1f6;text-align:center;font-size:11px;color:var(--muted)}
.checkout-family .preview-banner + .review-tools{display:none}.checkout-family .review-tools{padding:9px 20px}.checkout-family .review-tools>div{font-size:11px}.checkout-family .preview-banner{font-size:11px;padding:8px 12px}
@media(max-width:760px){.checkout-family .shell{width:calc(100% - 24px);margin:12px auto;border-radius:12px}.checkout-family header{height:68px;padding:0 16px}.checkout-family .brand{font-size:10px;gap:9px}.checkout-family .brand img{width:36px;height:36px}.checkout-family .back{font-size:12px}.checkout-family main{width:calc(100% - 32px);margin:24px auto 28px}.checkout-family main[data-view=entry]{margin:30px auto 36px}.checkout-family h1{font-size:27px;margin-bottom:20px}.checkout-family main[data-view=entry] h1{font-size:32px}.checkout-family .entry-choices,.checkout-family .selection-layout,.checkout-family .card-layout,.checkout-family .review-layout{grid-template-columns:1fr;gap:20px}.checkout-family .entry-choice{min-height:104px;padding:22px 42px 22px 20px}.checkout-family .entry-choice strong{font-size:17px}.checkout-family .entry-choice .choice-icon{top:25px}.checkout-family .field input,.checkout-family .field select{font-size:16px}.checkout-family .selection-summary,.checkout-family .order-summary{padding:18px}.checkout-family .receipt-actions{grid-template-columns:1fr;gap:0}.checkout-family .result-amount{font-size:34px}.checkout-family .result-meta{gap:14px;font-size:11px}.checkout-family .result-meta dd{font-size:12px}.checkout-family .receipt-preview{padding:18px}.checkout-family .progress ol{gap:5px}.checkout-family .progress li{font-size:10px}.checkout-family .progress li span{width:23px;height:23px}.checkout-family .progress li span img{width:23px;height:23px}.checkout-family .review-tools>div{flex-wrap:wrap;gap:8px}.checkout-family footer{padding:16px}}
@media(max-width:420px){.checkout-family .registered-students{grid-template-columns:1fr}.checkout-family .option{font-size:12px}.checkout-family .option>strong{font-size:12px}.checkout-family #advance-concepts{gap:0 12px}.checkout-family .entry-progress li{font-size:10px}.checkout-family .entry-progress ol{gap:8px}}
@media(prefers-reduced-motion:reduce){.checkout-family .spinner{animation:none}.checkout-family main>*{animation:none!important}}

.checkout-family .option:has(input:checked){box-shadow:none;background:#f1f6fd;border-color:#e0eaf6;border-radius:6px;padding-inline:8px}
.checkout-family .receipt-preview .brand-word{background:#132b48;padding:7px 9px;border-radius:5px;height:42px;object-fit:contain}

@media(min-width:761px){body.checkout-family{min-height:100dvh;display:flex;flex-direction:column}.checkout-family .shell{flex-shrink:0;margin-top:auto;margin-bottom:auto}.checkout-family .preview-banner{flex-shrink:0}}
@media(max-width:760px){.checkout-family #advance-concepts{grid-template-columns:1fr}}

.checkout-family main[data-view=verify]{max-width:920px}
.checkout-family .receipt-status{display:flex;justify-content:center;align-items:center;gap:13px;margin:4px 0 12px}.checkout-family .receipt-status img{width:48px;height:48px}.checkout-family .receipt-status h1{margin:0;font-size:30px}
.checkout-family .receipt-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px}.checkout-family .sample-badge{display:inline-block;margin:0 0 12px;padding:5px 8px;border-radius:5px;background:#f3f7fc;color:#50667d;font-size:11px;line-height:1.4}.checkout-family .receipt-grid .result-meta{margin:18px 0;gap:14px;grid-template-columns:1fr}.checkout-family .receipt-grid .result-meta>div{display:grid;grid-template-columns:110px 1fr;gap:10px}.checkout-family .receipt-grid .result-meta dt,.checkout-family .receipt-grid .result-meta dd{font-size:12px;line-height:1.5;margin:0}.checkout-family .receipt-grid .card-caption{margin-bottom:12px}.checkout-family .other-student{display:block;margin:8px auto 0;min-height:40px}.checkout-family main[data-view=receipt]>.result-amount{margin:0 0 20px}
@media(min-width:761px){.checkout-family main:is([data-view=selection],[data-view=card],[data-view=verify],[data-view=review]){margin:20px auto}.checkout-family main[data-view=selection] .progress{margin-bottom:16px}.checkout-family main[data-view=selection]>h1{margin-bottom:16px}.checkout-family main[data-view=selection]>.student{padding-bottom:10px;margin-bottom:14px}.checkout-family .selection-summary{padding:18px}.checkout-family .selection-summary .payment-detail th,.checkout-family .selection-summary .payment-detail td{padding:10px 0}.checkout-family .selection-summary .line{padding:8px 0}.checkout-family .selection-summary .primary{margin-top:14px}.checkout-family main[data-view=receipt]{margin:22px auto}.checkout-family .receipt-preview{padding:18px 22px}.checkout-family .receipt-heading{margin-bottom:16px}.checkout-family .non-fiscal-note{margin-top:10px}}
@media(max-width:760px){.checkout-family .receipt-grid{grid-template-columns:1fr;gap:12px}.checkout-family .receipt-status{flex-direction:column;gap:12px}.checkout-family .receipt-status h1{font-size:27px}.checkout-family .receipt-grid .result-meta>div{grid-template-columns:100px 1fr}.checkout-family .receipt-grid .result-meta dd{font-size:11px}}

/* Original accepted marks from SERFINSA; all PNG bytes unchanged. */
.checkout-family footer{padding:10px 16px}.checkout-family .payment-footer{display:flex;align-items:center;justify-content:center;gap:24px;flex-wrap:wrap}.checkout-family .payment-marks{display:flex;align-items:center;gap:16px}.checkout-family .payment-marks img{display:block;height:26px;width:auto;object-fit:contain}.checkout-family .payment-marks .visa{height:20px}.checkout-family .payment-security-label{font-size:12px;color:var(--muted);white-space:nowrap}
