/* Public affiliate pages. Keep these rules scoped away from checkout and admin. */
body:has(.affiliates), #app:has(.affiliates) > main { height: auto; }
.affiliates { --af-ink: #303b70; --af-blue: #608fcc; --af-light: #edf7ff; --af-line: #dde6f0; color: var(--af-ink); background: #fff; font-family: 'Nunito', sans-serif; font-size: 16px; line-height: 1.65; }
.affiliates *, .affiliates *::before, .affiliates *::after { box-sizing: border-box; }
.affiliates h1, .affiliates h2, .affiliates h3, .affiliates p { margin: 0; color: inherit; }
.affiliates h1, .affiliates h2, .affiliates h3 { font-family: inherit; }
.affiliates h3 { line-height: 1.4; }
.affiliates a { color: inherit; text-decoration: none; }
.affiliates a:hover { text-decoration: underline; text-underline-offset: 4px; }
.affiliates :focus-visible { outline: 3px solid #337dbe; outline-offset: 5px; }
.affiliates [id] { scroll-margin-top: 110px; }
.af-container { width: min(1680px, calc(100% - 96px)); margin-inline: auto; }
.af-header { background: #fff; border-bottom: 1px solid #ecf0f7; position: sticky; top: 0; z-index: 40; }
.af-nav { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 94px; }
.af-logo { width: 140px; height: auto; display: block; }
.af-nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 700; }
.affiliates .af-button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; padding: 15px 25px; background-color: #3c4b80; color: #fff; border: 1px solid #303971; border-radius: 7px; font: inherit; font-size: 14px; font-weight: 800; line-height: 1.5; cursor: pointer; text-decoration: none; transition: background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.affiliates .af-button:hover { background: #25315d; box-shadow: 0 5px 16px #303b7020; }
.affiliates .af-button-small { font-size: 12px; padding: 12px 18px; gap: 12px; }
.affiliates .af-button-outline { background: transparent; color: var(--af-ink); border-color: #8295b7; }
.affiliates .af-button-outline:hover { background: #fff; }
.affiliates .af-button-white { background: #fff; color: var(--af-ink); border-color: #fff; }
.af-eyebrow { font-size: 10px; letter-spacing: 1.8px; font-weight: 800; display: block; margin-bottom: 14px; color: #526c94; }
.af-hero { background: linear-gradient(110deg, #f2fbff, #e7f2ff); overflow: hidden; }
.af-hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 20px; }
.af-hero-copy { padding: clamp(50px, 4vw, 80px) 0 48px; position: relative; z-index: 1; }
.af-hero-copy .af-eyebrow { display: flex; align-items: center; gap: 8px; }
.af-eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: #5a91cd; }
.affiliates h1 { font-size: clamp(38px, 3.5vw, 64px); line-height: 1.12; font-weight: 800; letter-spacing: -1.8px; }
.affiliates h1 em { color: #628abe; font-style: normal; }
.af-hero-copy > p { max-width: 590px; font-size: 18px; line-height: 1.6; }
.af-hero-copy .af-hero-lead { margin-top: 22px; margin-bottom: 8px; font-size: 18px; font-weight: 800; }
.af-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.af-trust { display: flex; gap: 20px; margin-top: 38px; }
.af-trust > span { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 700; line-height: 1.45; }
.af-trust i { display: grid; place-items: center; border-radius: 50%; background: #deedff; flex: 0 0 36px; height: 36px; font-size: 20px; color: #5d85b9; }
.af-hero-image { position: relative; min-width: 0; }
.af-hero-image > img { width: calc(100% + 48px); height: 100%; position: absolute; object-fit: cover; object-position: 44% top; }
.af-hero-image::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 30px; background: linear-gradient(90deg, #edf7ff, transparent); }
.af-image-note { position: absolute; z-index: 2; right: 0; bottom: 25px; display: flex; align-items: center; gap: 13px; padding: 14px 22px; background: #fffffff0; border: 1px solid white; border-radius: 10px; box-shadow: 0 8px 35px #303b7012; }
.af-image-note strong, .af-image-note div > span { display: block; }
.af-image-note strong { font-size: 14px; }
.af-image-note div > span { font-size: 11px; }
.af-section { padding: 65px 0; }
.affiliates h2 { font-size: 29px; font-weight: 800; letter-spacing: -.6px; line-height: 1.25; }
.af-section-heading { text-align: center; margin-bottom: 35px; }
.af-section-heading .af-eyebrow { margin-bottom: 9px; }
.af-section-heading > p { margin-top: 12px; font-size: 14px; color: #66738a; }
.af-how { background: #eef6ff; }
.af-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; text-align: center; }
.af-step-icon { width: 74px; height: 74px; display: grid; place-items: center; margin: 0 auto 22px; background: white; border-radius: 50%; font-size: 31px; color: #3f5087; }
.af-steps li { position: relative; }
.af-steps li:not(:last-child)::after { content: '→'; position: absolute; right: -24px; top: 20px; font-size: 25px; color: #95adca; }
.af-steps li:last-child .af-step-icon { background: var(--af-ink); color: #fff; }
.af-steps h3 { font-size: 13px; font-weight: 800; }
.af-steps h3 > span { display: inline-grid; place-items: center; width: 19px; height: 19px; background: var(--af-ink); color: #fff; border-radius: 50%; font-size: 10px; line-height: 1; margin-right: 4px; vertical-align: middle; }
.af-steps p { font-size: 14px; line-height: 1.65; margin-top: 10px; color: #566581; }
.af-benefits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.af-benefit { border: 1px solid var(--af-line); border-radius: 10px; text-align: center; padding: 27px 17px; }
.af-benefit > i { font-size: 34px; line-height: 1; display: block; margin-bottom: 22px; color: #729bd0; }
.af-benefit h3 { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.af-benefit p { font-size: 14px; color: #63708a; }
.af-vaccines { background: #edf7ff; padding: 40px 0; }
.af-vaccines-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 60px; align-items: center; }
.af-vaccines h2 { font-size: 24px; }
.af-vaccines p { font-size: 13px; margin: 10px 0 14px; }
.af-text-link { font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; gap: 12px; }
.af-vaccine-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; text-align: center; }
.af-vaccine-list > span { font-size: 11px; font-weight: 700; }
.af-icon { width: 49px; height: 49px; border-radius: 50%; background: #fff; color: #6591c7; display: inline-grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.af-vaccine-list .af-icon { display: grid; margin: 0 auto 12px; }
.af-join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.af-join-grid > div > p { max-width: 430px; font-size: 15px; margin-top: 18px; }
.af-checks { list-style: none; padding: 0; margin: 23px 0 0; font-size: 13px; }
.af-checks li { margin-top: 12px; }
.af-checks i { color: #7dadd4; margin-right: 9px; }
.af-join-card { border-radius: 12px; padding: 36px; background: linear-gradient(130deg, #435b8b, #303463); color: #fff; }
.af-join-card > i { font-size: 35px; color: #b9dcf8; display: block; margin-bottom: 15px; }
.af-join-card p { margin: 16px 0 24px; font-size: 14px; color: #dfebff; }
.af-faq { background: #f8fbfe; }
.af-faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 65px; }
.af-faq-grid > div > p { margin: 14px 0 22px; }
.af-faq details { padding: 20px 0; border-bottom: 1px solid var(--af-line); }
.af-faq details:first-child { padding-top: 0; }
.af-faq summary { cursor: pointer; font-weight: 800; font-size: 15px; }
.af-faq details p { margin-top: 14px; font-size: 14px; color: #5f6c84; }
.af-final-cta { padding: 38px 0; }
.af-final-cta .af-container { background: #e5f2ff; padding: 30px 40px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.af-final-cta h2 { font-size: 22px; }
.af-final-cta p { margin-top: 6px; font-size: 14px; }
.af-footer { background: #2c355b; color: #fff; padding: 46px 0 20px; font-size: 12px; }
.af-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; }
.af-footer .af-logo { background: white; border-radius: 7px; padding: 9px; width: 128px; margin-bottom: 15px; }
.af-footer h2 { font-size: 13px; letter-spacing: 0; margin-bottom: 17px; }
.af-footer p { color: #d6e1f1; }
.af-footer-grid > div > a:not(:first-child) { display: block; margin-top: 8px; color: #d6e1f1; }
.af-copyright { text-align: center; margin-top: 35px; padding-top: 20px; border-top: 1px solid #ffffff20; font-size: 10px; color: #c1cde0; }
.af-skip { position: fixed; left: 15px; top: -100px; z-index: 50; background: #fff; padding: 10px; }
.af-skip:focus { top: 10px; }
.af-nav-account { display: flex; align-items: center; gap: 18px; }
.af-account-hint { padding: 14px; background: #edf7ff; border-radius: 7px; margin-bottom: 24px !important; font-size: 13px; }
.af-account-hint a { text-decoration: underline; font-weight: 800; }
.af-consent { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; font-size: 13px; text-align: left; }
.af-consent input { margin-top: 5px; flex-shrink: 0; width: 18px; height: 18px; }
.af-consent a { text-decoration: underline; }
.af-state-rejected { color: #942b3c; background: #ffedf0; }
.af-state-approved { color: #22624c; background: #e2f5eb; }
.af-share-label { display: block; margin-top: 25px; font-weight: 800; font-size: 14px; }
.af-share-input { width: 100%; min-width: 0; padding: 12px; font-size: 15px; border: 1px solid #d7e0eb; border-radius: 6px; margin-top: 8px; color: #303b70; }
.af-status-logout { margin-top: 20px; }
.af-status-terms { border-top: 1px solid #d7e0eb; margin-top: 28px; padding-top: 6px; }
@media(max-width: 1100px) { .af-nav-account { gap: 10px; } .af-nav-links { gap: 14px; } }
@media(max-width: 580px) { .af-nav-account { flex-direction: column; gap: 4px; padding: 10px 0; } .af-nav-account .af-text-link { font-size: 11px; } }
.af-registration { background: linear-gradient(125deg, #edf7ff, #f8fbff 65%); padding: 30px 0 70px; }
.af-back { margin-bottom: 34px; }
.af-registration-grid { display: grid; grid-template-columns: .85fr 1.45fr; gap: 65px; align-items: start; }
.af-registration-intro { padding-top: 30px; }
.af-registration-intro h1 { font-size: 44px; }
.af-registration-intro > p { margin: 22px 0 30px; color: #61718a; font-size: 15px; }
.af-review-note { display: flex; align-items: start; gap: 15px; margin-top: 28px; }
.af-review-note h2 { font-size: 15px; letter-spacing: 0; }
.af-review-note p { font-size: 13px; color: #63718a; margin-top: 6px; }
.af-registration-intro .af-help { font-size: 13px; margin-top: 35px; }
.af-help a { font-weight: 800; color: var(--af-ink); }
.af-form { background: #fff; border: 1px solid #e0e9f3; border-radius: 14px; padding: 35px; box-shadow: 0 15px 50px #30447808; }
.af-form h2 { font-size: 26px; }
.af-form .af-form-lead { font-size: 12px; color: #6e7a8c; margin: 7px 0 28px; }
.af-form fieldset { border: 0; padding: 0; margin: 0 0 25px; min-width: 0; }
.af-form legend { float: none; width: 100%; font-size: 14px; font-weight: 800; border-bottom: 1px solid #edf0f5; padding-bottom: 13px; margin-bottom: 18px; }
.af-form legend > span { color: #7898c0; font-size: 11px; margin-right: 8px; }
.af-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 20px; }
.af-field { min-width: 0; }
.af-field-wide { grid-column: 1 / -1; }
.af-field > label { display: block; font-size: 12px; font-weight: 800; margin-bottom: 7px; }
.af-field label > span { color: #577dac; }
.af-field input:not([type=file]) { width: 100%; border: 1px solid #d7e0eb; border-radius: 6px; background: #fff; color: #303b70; padding: 10px 12px; font: inherit; font-size: 16px; min-height: 45px; }
.af-field input[aria-invalid=true] { border-color: #b33348; }
.af-field-hint, .af-field-error { display: block; font-size: 11px; line-height: 1.5; margin-top: 5px; }
.af-field-hint { color: #6b798e; }
.af-field-hint:empty { display: none; }
.af-field-error { color: #a52c42; }
.af-upload { padding: 22px 15px; background: #f8fbff; border: 1px dashed #a9bfd8; border-radius: 8px; text-align: center; }
.af-upload > i { display: block; font-size: 29px; color: #7498c3; }
.af-upload strong { font-size: 13px; }
.af-upload p { font-size: 11px; color: #6b798e; margin-top: 3px; }
.af-upload input { display: block; max-width: 100%; margin: 13px auto 0; font-size: 12px; }
.af-upload input::file-selector-button { background: white; color: var(--af-ink); border: 1px solid #b8c8dc; padding: 8px 10px; border-radius: 5px; margin-right: 10px; cursor: pointer; }
.af-form .af-privacy { font-size: 11px; color: #67758b; line-height: 1.7; margin-bottom: 22px; }
.af-privacy a { text-decoration: underline; font-weight: 800; }
.af-submit { width: 100%; }
.af-submit:disabled { opacity: .6; cursor: wait; }
.af-form .af-form-caption { text-align: center; font-size: 10px; color: #6e7b8f; margin-top: 13px; }
.af-errors { background: #fff2f3; color: #97243a; border: 1px solid #e8bdc5; padding: 16px; border-radius: 8px; margin-bottom: 25px; font-size: 13px; }
.af-errors ul { margin: 8px 0; padding-left: 20px; }
.af-success { max-width: 690px; margin: 10px auto 35px; text-align: center; padding: 45px; background: #fff; border: 1px solid var(--af-line); border-radius: 15px; }
.af-success .af-step-icon { background: #eaf6f3; color: #378471; }
.af-success h1 { font-size: 38px; }
.af-success p { font-size: 15px; margin-top: 23px; color: #65748b; }
.af-pending { display: inline-flex; align-items: center; gap: 10px; background: #fff5d9; color: #785f23; padding: 8px 18px; border-radius: 30px; margin-top: 25px; font-size: 13px; font-weight: 800; }
.af-success .af-button { margin-top: 28px; }
@media (max-width: 1100px) {
    .af-nav-links { gap: 16px; font-size: 12px; }
    .af-hero-grid { grid-template-columns: 1.2fr 1fr; }
    .af-trust { gap: 12px; flex-wrap: wrap; }
    .af-registration-grid { gap: 30px; }
    .af-vaccines-grid { gap: 30px; }
    .af-vaccine-list { gap: 10px; }
}
@media (max-width: 850px) {
    .af-container { width: calc(100% - 40px); }
    .af-nav { min-height: 78px; gap: 15px; }
    .af-nav-links { display: none; }
    .af-logo { width: 120px; }
    .af-hero-copy { padding-top: 40px; }
    .affiliates h1 { font-size: 39px; }
    .af-actions { flex-direction: column; align-items: flex-start; }
    .af-hero-image > img { object-position: 48% center; }
    .af-image-note { padding: 12px; right: -5px; bottom: 20px; }
    .af-benefits { grid-template-columns: repeat(3, 1fr); }
    .af-steps { gap: 16px; }
    .af-steps li:not(:last-child)::after { right: -15px; font-size: 20px; }
    .af-vaccines-grid, .af-faq-grid { grid-template-columns: 1fr; gap: 30px; }
    .af-vaccine-list { max-width: 600px; }
    .af-join-grid { gap: 25px; }
    .af-join-card { padding: 25px; }
    .af-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .af-registration-grid { grid-template-columns: 1fr; }
    .af-registration-intro { max-width: 620px; padding-top: 0; }
    .af-registration-intro h1 br { display: none; }
    .af-registration-intro h1 em::before { content: ' '; }
    .af-registration-intro > p { margin-bottom: 15px; }
    .af-review-note { margin-top: 16px; }
    .af-registration-intro .af-help { margin: 20px 0 0; }
}
@media (max-width: 580px) {
    .af-hero-grid { display: flex; flex-direction: column; gap: 0; }
    .af-hero-copy { padding: 35px 0 25px; }
    .affiliates h1 { font-size: 38px; }
    .af-hero-copy .af-hero-lead { font-size: 17px; }
    .af-hero-copy > p { font-size: 15px; }
    .af-actions { align-items: stretch; }
    .af-trust { gap: 10px; margin-top: 25px; justify-content: space-between; }
    .af-trust > span { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 9px; }
    .af-hero-image { height: 340px; margin-inline: -20px; }
    .af-hero-image > img { width: 100%; object-position: center 27%; }
    .af-hero-image::after { display: none; }
    .af-image-note { right: 20px; bottom: 16px; }
    .af-section { padding: 42px 0; }
    .affiliates h2 { font-size: 26px; }
    .af-steps { grid-template-columns: 1fr; gap: 25px; text-align: left; }
    .af-steps li { padding-left: 85px; min-height: 65px; }
    .af-step-icon { width: 60px; height: 60px; font-size: 26px; }
    .af-steps .af-step-icon { position: absolute; left: 0; top: 0; }
    .af-steps li:not(:last-child)::after { display: none; }
    .af-steps h3 { font-size: 14px; }
    .af-steps p { margin-top: 6px; font-size: 13px; }
    .af-benefits { grid-template-columns: 1fr 1fr; gap: 12px; }
    .af-benefit { padding: 24px 15px; }
    .af-benefit:last-child { grid-column: 1 / -1; }
    .af-benefit h3 { font-size: 14px; }
    .af-benefit p { font-size: 12px; }
    .af-vaccine-list { grid-template-columns: repeat(3, 1fr); gap: 22px; }
    .af-join-grid { grid-template-columns: 1fr; gap: 30px; }
    .af-final-cta .af-container { flex-direction: column; align-items: stretch; padding: 25px; }
    .af-final-cta h2 { font-size: 22px; }
    .af-footer-grid { column-gap: 18px; font-size: 11px; }
    .af-footer h2 { font-size: 13px; }
    .af-form { padding: 25px 20px; }
    .af-fields { grid-template-columns: 1fr; }
    .af-success { padding: 28px 20px; }
    .af-success h1 { font-size: 30px; }
    .af-nav .af-button { padding: 10px 12px; font-size: 11px; gap: 8px; }
    .af-eyebrow { font-size: 9px; letter-spacing: 1.2px; }
    .af-registration-intro h1 { font-size: 36px; }
    .af-review-note h2 { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .affiliates * { transition: none !important; } }

/* Enlarge the icon glyphs without changing their circular backgrounds. */
.affiliates .bi::before { font-size: 1.3em; }
.affiliates .af-button:hover, .affiliates .af-button:focus-visible { color: #fff; }
.affiliates .af-button-outline:hover, .affiliates .af-button-outline:focus-visible { color: var(--af-ink); background-color: #e5f2ff; }
.affiliates .af-button-white:hover, .affiliates .af-button-white:focus-visible { color: #25315d; background-color: #e5f2ff; border-color: #e5f2ff; }
.af-login-card { max-width: 560px; margin: 0 auto; }
.affiliates .af-login-card h1 { font-size: clamp(30px, 4vw, 42px); }
.af-login-card .af-field, .af-login-card > a, .af-login-card > p { margin-top: 20px; }
.af-login-remember { display: block; margin: 18px 0; }
.af-login-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; margin-top: 24px; text-align: center; }
