/* Public checkout only. Brand tokens come from institutional.css. */
.checkout-page{background:linear-gradient(180deg,#eef4fa 0,#f8fafb 350px);color:var(--rep-text)}
.checkout-page .public-brand{max-width:1120px;margin:auto;padding:28px 24px;justify-content:flex-start;border-bottom:1px solid var(--rep-border)}
.checkout-page .brand-seal{border-radius:12px;width:42px;height:42px;font-size:22px}
.checkout-page .public-shell{width:min(1120px,100%);padding:36px 24px 40px}
.checkout-heading{margin-bottom:30px;max-width:650px}.checkout-heading h1{font-size:clamp(28px,3.5vw,40px);line-height:1.15;letter-spacing:-.035em;margin:10px 0 12px;font-weight:750}.checkout-heading p{color:var(--rep-muted);font-size:15px}
.checkout-grid{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:32px;align-items:start}
.checkout-summary{min-width:0;position:sticky;top:24px;background:var(--rep-primary-dark);color:white;padding:32px;border-radius:20px;overflow:hidden;border-top:5px solid #f4c430}
.summary-topline{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#d3e6f6;font-size:10px;letter-spacing:.12em;font-weight:650}.summary-emblem{border:1px solid #ffffff35;border-radius:8px;padding:6px;font-size:12px;letter-spacing:.03em}
.checkout-summary h2{font-size:27px;line-height:1.25;letter-spacing:-.025em;color:white;margin:24px 0 10px}.summary-description{color:#d3e6f6;font-size:14px;line-height:1.7}.summary-plan{margin:26px 0 22px;padding-top:20px;border-top:1px solid #ffffff25}.summary-plan>span,.summary-schedule span{font-size:11px;color:#d3e6f6}.summary-plan h3{font-size:18px;color:white;font-weight:650;margin-top:5px}
.checkout-price{display:grid;gap:12px;font-size:13px}.checkout-price>div{display:flex;justify-content:space-between;gap:12px}.checkout-price dt{color:#d3e6f6}.checkout-price dd{font-weight:600;white-space:nowrap}.checkout-price .checkout-total{margin-top:8px;padding-top:22px;border-top:1px solid #ffffff25;align-items:center}.checkout-total dt{font-size:12px;font-weight:700;color:white;letter-spacing:.08em}.checkout-total dt span{display:block;letter-spacing:0;color:#d3e6f6;font-size:10px;font-weight:400;margin-top:4px}.checkout-total dd{font-size:36px;letter-spacing:-.04em;line-height:1.15}.checkout-total small{font-size:11px;letter-spacing:.02em;margin-left:7px;color:#d3e6f6}
.summary-schedule{display:grid;grid-template-columns:1fr 1fr;gap:16px;background:#ffffff0a;border:1px solid #ffffff18;border-radius:12px;padding:16px;margin:24px 0}.summary-schedule strong{display:block;font-size:13px;margin-top:4px}.summary-assurance{display:flex;gap:10px;font-size:12px;color:#d3e6f6;line-height:1.6}.summary-assurance>span{color:#f4c430;font-weight:bold}
.checkout-main{min-width:0}.checkout-form-panel{background:white;border:1px solid var(--rep-border);border-radius:20px;padding:32px;box-shadow:0 8px 30px #13477506}.checkout-form-heading{display:flex;gap:14px;align-items:center}.checkout-step{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#edf4fb;color:var(--rep-primary);font-size:14px;font-weight:750}.checkout-form-heading h2{font-size:24px;letter-spacing:-.02em;margin:3px 0;color:var(--rep-primary-dark)}.checkout-intro{font-size:13px;color:var(--rep-muted);margin:18px 0}.required-legend{font-size:11px;color:var(--rep-muted);margin-bottom:20px}.required-mark{color:var(--rep-danger);font-weight:750}
.checkout-page .public-field label{font-size:12px;color:var(--rep-text);font-weight:650}.checkout-page .public-field input,.checkout-page .public-field select{min-height:50px;border-radius:11px;background:#fbfcfe;border:1px solid #c7d3df;padding:12px 14px;font-size:14px;transition:border-color .15s,background .15s}.checkout-page .public-field input:hover,.checkout-page .public-field select:hover{border-color:#8babc8;background:white}.checkout-page .public-field input:focus,.checkout-page .public-field select:focus{background:white;border-color:var(--rep-primary);outline:3px solid #0758a825;outline-offset:2px;box-shadow:none}.checkout-page .public-field [aria-invalid=true]{border-color:var(--rep-danger);background:#fffafb}.checkout-page .public-field input:disabled,.checkout-page .public-field select:disabled{background:#edf0f3;cursor:not-allowed;color:#64748b}.checkout-page .public-field input:-webkit-autofill{-webkit-box-shadow:0 0 0 40px #f1f6fc inset}.public-field-error{display:flex;align-items:flex-start;gap:7px}.public-field-error>span{display:inline-grid;place-items:center;width:16px;height:16px;margin-top:3px;border-radius:50%;background:var(--rep-danger);color:white;font-size:10px;flex-shrink:0}
.checkout-section-label{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--rep-border);padding-top:20px;margin-top:4px;font-size:12px;font-weight:650;color:var(--rep-primary-dark)}.checkout-section-label small{color:var(--rep-muted);font-size:10px;font-weight:400}.checkout-gateway-note{border-left:3px solid var(--rep-primary);background:#f1f6fb;padding:12px 14px;border-radius:0 8px 8px 0;font-size:12px;color:var(--rep-muted)}
.checkout-page .public-consent{border-top:1px solid var(--rep-border);padding-top:18px}.checkout-page .public-consent .checkbox-label{font-size:12px;font-weight:400;line-height:1.7;min-height:44px;align-items:flex-start}.checkout-page .public-consent input{margin-top:4px;accent-color:var(--rep-primary)}
.checkout-page .checkout-submit{min-height:54px;width:100%;border-radius:12px;font-size:14px;box-shadow:0 5px 12px #0758a81a;transition:background .15s,transform .15s}.checkout-submit:after{content:"→";font-size:20px}.checkout-submit:hover:not(:disabled){transform:translateY(-1px)}.checkout-submit:disabled{opacity:.7;transform:none;cursor:wait}.checkout-submit[aria-busy=true]:after{content:"";width:16px;height:16px;border:2px solid #ffffff50;border-top-color:#fff;border-radius:50%;animation:checkout-spin .8s linear infinite}.checkout-return-note{font-size:11px;color:var(--rep-muted);line-height:1.7;margin-top:20px;padding-top:16px;border-top:1px solid var(--rep-border)}
.checkout-resume{padding:20px;background:#eaf2fa;border:1px solid #c4d8ea;border-left:4px solid var(--rep-primary);border-radius:12px;margin-bottom:20px}.checkout-resume h2{font-size:14px}.checkout-resume p{font-size:12px;line-height:1.6}.checkout-page .checkout-resume .button{width:auto;font-size:12px;padding:9px 14px}
.checkout-page .checkout-alert{font-size:13px;border-radius:12px;line-height:1.7}.result-heading{margin:0 auto 28px;text-align:center}.checkout-result{max-width:700px;margin:auto;background:white;padding:40px;border:1px solid var(--rep-border);border-radius:22px;text-align:center}.result-status{display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:20px}.result-status>span{display:grid;place-items:center;width:66px;height:66px;border-radius:20px;background:#fff6df;color:var(--rep-warning);font-size:30px;font-weight:650}.result-status.success>span{background:var(--rep-success-bg);color:var(--rep-success)}.result-status.neutral>span{background:var(--rep-neutral-bg);color:var(--rep-neutral)}.result-status small{font-size:10px;letter-spacing:.12em;color:var(--rep-muted);font-weight:650}.checkout-result h2{font-size:28px;line-height:1.25;letter-spacing:-.025em;color:var(--rep-primary-dark)}.result-message{margin:22px 0;color:var(--rep-muted);font-size:14px}.result-message .checkout-alert{text-align:left}.result-period{padding:20px;margin:26px 0;background:#f4f7fb;border-radius:12px;display:grid;gap:6px}.result-period>span{font-size:10px;letter-spacing:.1em;color:var(--rep-muted)}.result-period strong{font-size:15px}.result-period small{font-size:12px;color:var(--rep-muted)}.result-actions{display:grid;gap:12px}.checkout-page .public-footer{padding-bottom:30px}
@keyframes checkout-spin{to{transform:rotate(360deg)}}
@media(max-width:850px){.checkout-grid{grid-template-columns:minmax(0,1fr);gap:22px}.checkout-summary{position:static}.checkout-summary h2{font-size:24px}.checkout-summary .summary-description{font-size:13px}.checkout-heading{margin-bottom:24px}.checkout-total dd{font-size:32px}}
@media(max-width:600px){.checkout-page .public-brand{padding:20px 18px}.checkout-page .public-shell{padding:24px 16px 30px}.checkout-form-panel,.checkout-summary{padding:24px 20px;border-radius:16px}.checkout-field-row{grid-template-columns:1fr}.checkout-heading h1{font-size:29px}.checkout-heading p{font-size:13px}.checkout-result{padding:28px 20px}.checkout-result h2{font-size:24px}.checkout-section-label{flex-wrap:wrap}.checkout-page .checkout-resume .button{width:100%}.checkout-total dd{font-size:30px}}
@media(prefers-reduced-motion:reduce){.checkout-submit{transition:none}.checkout-submit[aria-busy=true]:after{animation:none}}
/* Compact subscription header and native responsive plan details. */
.checkout-masthead{max-width:1120px;margin:auto;padding:12px 24px 10px;border-bottom:1px solid var(--rep-border)}
.checkout-institution{font-size:11px;font-weight:650;color:var(--rep-muted);letter-spacing:.02em}
.checkout-masthead h1{font-size:clamp(26px,3vw,34px);font-weight:750;color:var(--rep-primary-dark);line-height:1.2;letter-spacing:-.03em;margin:3px 0}
.checkout-masthead p{font-size:13px;color:var(--rep-muted)}
.checkout-masthead+.public-shell{padding-top:24px}
.checkout-summary h2{font-size:24px;margin:16px 0 12px;overflow-wrap:anywhere}
.summary-amount{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;margin-bottom:22px}.summary-amount strong{font-size:36px;line-height:1.2;letter-spacing:-.04em}.summary-amount>span{font-size:12px;color:#d3e6f6}.summary-amount small{width:100%;font-size:11px;color:#d3e6f6}
.summary-detail-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;min-height:44px;font-size:12px;font-weight:600;list-style:none;border-top:1px solid #ffffff25;padding-top:12px;color:#e3eff9}.summary-detail-toggle::-webkit-details-marker{display:none}
.checkout-summary-details[open]>.summary-detail-toggle>span{transform:rotate(45deg)}
.checkout-summary-details.summary-ready>.summary-detail-toggle{display:none}
.summary-detail-content{border-top:1px solid #ffffff25;padding-top:20px}
.summary-link-name{font-size:12px;color:#d3e6f6;font-weight:650;margin-bottom:8px}
.summary-detail-content .summary-description{margin-bottom:20px}
.summary-detail-content .summary-schedule{margin-bottom:0}
.checkout-contact{border:0;padding:0;min-width:0}.checkout-contact legend{font-weight:650;font-size:12px;color:var(--rep-primary-dark);margin-bottom:14px}
.checkout-page .checkout-security-label{display:flex;gap:7px;align-items:center;font-size:12px;color:var(--rep-primary-dark);font-weight:650;margin:0}
.checkout-security-label>span{font-size:14px}
.checkout-page .checkout-gateway-note{background:transparent;border:0;border-radius:0;padding:0;margin-top:-10px;font-size:12px;line-height:1.6}
.checkout-page .public-consent{padding-top:6px;border-top:0}
.checkout-return-note{border-top:0;padding-top:0;margin-top:16px}
@media(max-width:850px){
 .checkout-masthead{padding:12px 18px 10px}.checkout-masthead h1{font-size:27px}.checkout-masthead+.public-shell{padding-top:18px}
 .checkout-summary{padding:20px;border-top-width:3px}.checkout-summary>.summary-topline{display:none}
 .checkout-summary h2{font-size:20px;line-height:1.3;margin:0 0 10px}
 .summary-amount{margin-bottom:8px}.summary-amount strong{font-size:30px}.summary-amount small{display:none}
 .checkout-summary-details.summary-ready>.summary-detail-toggle{display:flex}.summary-detail-content{border-top:0;padding-top:16px}
 .checkout-summary-details:not([open])>.summary-detail-content{display:none}
 .checkout-grid{gap:18px}.summary-schedule{margin-top:18px;padding:12px}.summary-description{font-size:12px}
}
.summary-detail-toggle:focus-visible{outline:2px solid #f4c430;outline-offset:4px;border-radius:4px}





.checkout-masthead{display:grid;grid-template-columns:minmax(0,1fr);column-gap:24px;row-gap:2px;align-items:center}
.checkout-masthead.has-company-logo{grid-template-columns:160px minmax(0,1fr)}
.checkout-company-logo{grid-column:1;grid-row:1 / span 2;width:100%;height:56px;object-fit:contain;object-position:left center}
.checkout-masthead h1,.checkout-masthead p{grid-column:1;min-width:0;text-align:right}
.checkout-masthead h1{grid-row:1}.checkout-masthead p{grid-row:2;margin:0;text-align:right}
.checkout-masthead.has-company-logo h1,.checkout-masthead.has-company-logo p{grid-column:2}
@media(max-width:850px){
 .checkout-masthead.has-company-logo{grid-template-columns:88px minmax(0,1fr);column-gap:14px}
 .checkout-company-logo{height:48px}
}
@media(max-width:400px){
 .checkout-masthead.has-company-logo{grid-template-columns:64px minmax(0,1fr);column-gap:12px}
}

/* Server-calculated installment preview. */
.installment-calendar[hidden]{display:none}
.installment-calendar{min-width:0;border:1px solid var(--rep-border);border-radius:12px;padding:20px;background:#f5f9fd}
.installment-calendar h3{font-size:16px;font-weight:700;color:var(--rep-primary-dark);margin:0 0 8px}
.installment-calendar-intro,.installment-calendar-note{font-size:12px;line-height:1.6;color:var(--rep-muted)}
.installment-calendar-note{margin-top:10px}
.installment-timeline{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:18px 0;list-style:none;padding:0;margin:22px 0}
.installment-timeline li{position:relative;min-width:0;padding-right:12px}
.installment-timeline li:before{content:"";position:absolute;left:16px;right:0;top:15px;height:2px;background:#c7d8e8}
.installment-timeline li:last-child:before{display:none}
.installment-step{position:relative;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--rep-primary-dark);color:white;font-size:12px;font-weight:700;margin-bottom:12px}
.installment-date{display:block;font-size:12px;line-height:1.5;color:var(--rep-primary-dark)}
.installment-amount{display:block;font-size:24px;line-height:1.4;color:var(--rep-primary-dark);margin-top:4px}
.installment-amount small{font-size:10px;font-weight:500}
@media(max-width:600px){
 .installment-calendar{padding:16px}
 .installment-timeline{display:flex;flex-direction:column;gap:0;margin:18px 0}
 .installment-timeline li{display:flex;gap:14px;padding:0 0 20px}
 .installment-timeline li:before{left:15px;top:16px;bottom:0;right:auto;width:2px;height:auto}
 .installment-timeline li:last-child{padding-bottom:0}
 .installment-step{flex:none;margin:0}
 .installment-amount{font-size:22px}
}
[data-billing-summary][hidden]{display:none}.summary-financed-total{font-size:12px;color:#e3eff9;margin:-10px 0 18px;line-height:1.6}

[data-billing-summary="installments"] .summary-amount small{display:block}

/* Certification-only presentation; existing subscription styles are unchanged. */
.summary-detail-content .certification-payment-type{margin-top:20px}
.checkout-page .checkout-alert.info{background:#eff6ff;color:#1e40af;border-color:#bfdbfe}

/* The form grid provides spacing even when alternate billing fields are hidden. */
.checkout-page .purchase-billing, .checkout-page .purchase-billing-choice { margin: 0; }
.checkout-page .purchase-billing-choice .purchase-radio-label:last-child { margin-bottom: 0; }
