/* Rates-page adviser and next-step panels. Shared navigation and rate data stay unchanged. */
.rates-refresh #advisor-cta.rates-adviser{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:34px;align-items:center;margin:52px 0 32px;padding:28px 32px!important;background:#eee6fb!important;border:1px solid #e2d4f4;border-radius:24px!important;color:#40176d!important}
.rates-refresh .rates-adviser-copy{min-width:0;max-width:490px}
.rates-refresh .rates-adviser-kareem{display:block;width:128px;height:128px;object-fit:contain;margin:-55px 0 0;pointer-events:none}
.rates-refresh #rates-adviser-title{font-size:28px;font-weight:800;line-height:1.2;letter-spacing:-.65px;color:#40176d;margin:0 0 12px}
.rates-refresh .rates-adviser-copy>p{color:#574467!important;font-size:14px!important;line-height:1.7!important;margin:0!important}
.rates-refresh .rates-adviser-copy>a{background:#40176d!important;color:#fff!important;border-radius:14px!important;min-height:50px;padding:12px 18px!important;margin-top:20px!important;justify-content:center;box-sizing:border-box}
.rates-refresh .rates-adviser-copy>a:hover{background:#54208c!important}
.rates-refresh .rates-adviser-copy>a svg{background:#259e52;padding:3px;box-sizing:content-box;border-radius:50%;flex-shrink:0}
.rates-refresh #ratesAdvisorForm{min-width:0!important;width:100%;max-width:100%;padding:24px!important;border:1px solid #e1d5ef;border-radius:18px!important;gap:12px!important;box-sizing:border-box;box-shadow:0 8px 24px #40176d07}
.rates-refresh #ratesAdvisorForm input:not([type="hidden"]):not([name="website"]),.rates-refresh #ratesAdvisorForm .phone-cc{min-width:0;min-height:48px;border-color:#dcccE9!important;border-radius:10px!important;color:#372343;background:#fff;box-sizing:border-box}
.rates-refresh #ratesAdvisorForm .phone-row{min-width:0;display:flex;gap:8px}
.rates-refresh #ratesAdvisorForm .phone-row input{flex:1;width:0}
.rates-refresh #ratesAdvisorForm .phone-cc{max-width:112px;flex:0 0 112px;font:inherit;font-size:14px;padding:8px}
.rates-refresh #ra-submit{background:#40176d!important;color:#fff!important;border-radius:12px!important;min-height:50px;padding:12px!important}
.rates-refresh #ra-submit:hover{background:#54208c!important}
.rates-refresh #ra-feedback,.rates-refresh #ra-success{line-height:1.6}
.rates-refresh .rates-next-steps{margin-top:36px;padding:30px 32px;border-radius:24px;border:1px solid #e2d4f4;background:#f2ebfc;text-align:start}
.rates-refresh .rates-next-eyebrow{margin:0 0 8px;color:#6d28d9;font-size:12px;font-weight:800;letter-spacing:.04em}
.rates-refresh #rates-next-title{margin:0 0 12px;color:#40176d;font-size:28px;line-height:1.25;letter-spacing:-.65px}
.rates-refresh .rates-next-description{margin:0;max-width:640px;color:#574467;font-size:14px;line-height:1.7}
.rates-refresh .rates-next-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.rates-refresh .rates-next-actions a,.rates-refresh .mc-elig-cta .btn-primary{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:12px 20px;border-radius:13px;font-size:14px;font-weight:750;line-height:1.4;text-decoration:none;box-sizing:border-box}
.rates-refresh .rates-next-actions .btn-primary,.rates-refresh .mc-elig-cta .btn-primary{background:#40176d;color:#fff;border:1px solid #40176d}
.rates-refresh .rates-next-actions .btn-primary:hover,.rates-refresh .mc-elig-cta .btn-primary:hover{background:#54208c;border-color:#54208c}
.rates-refresh .rates-next-actions .rates-secondary{background:#fff;color:#40176d;border:1px solid #d4bde9}
.rates-refresh .rates-next-actions .rates-secondary:hover{background:#faf7ff;border-color:#b793d7}
.rates-refresh .rates-adviser :focus-visible,.rates-refresh .rates-next-steps a:focus-visible,.rates-refresh .mc-elig-cta a:focus-visible{outline:3px solid #945ccf;outline-offset:4px}
/* The earlier table CTA remains. The repeated footer pair has the same destination
   as the single eligibility action immediately above it, so only that pair is hidden. */
.rates-refresh .mc-elig-cta{max-width:none;margin:24px 0;padding:22px;border:1px solid #e2d4f4;border-radius:18px;background:#f5effc;color:#574467}
.rates-refresh .mc-elig-cta>p{color:#574467;line-height:1.6}
.rates-refresh .mc-elig-cta:has(+.mc-shell-foot){display:none}
@media(max-width:760px){
 .rates-refresh #advisor-cta.rates-adviser{grid-template-columns:1fr;gap:22px;padding:22px 18px!important;margin-top:32px;border-radius:22px!important}
 .rates-refresh .rates-adviser-copy{display:grid;grid-template-columns:88px minmax(0,1fr);column-gap:14px;align-items:center;max-width:none}
 .rates-refresh .rates-adviser-kareem{width:96px;height:96px;margin:-18px 0 0 -5px}
 .rates-refresh #rates-adviser-title{font-size:24px;letter-spacing:-.45px;margin:0}
 .rates-refresh .rates-adviser-copy>p{grid-column:1/-1;margin-top:10px!important}
 .rates-refresh .rates-adviser-copy>a{grid-column:1/-1;margin-top:18px!important;justify-self:start}
 .rates-refresh #ratesAdvisorForm{padding:18px!important}
 .rates-refresh #ratesAdvisorForm input:not([type="hidden"]):not([name="website"]),.rates-refresh #ratesAdvisorForm .phone-cc{font-size:16px!important}
 .rates-refresh #ratesAdvisorForm .phone-cc{max-width:104px;flex-basis:104px}
 .rates-refresh .rates-next-steps{padding:24px 22px;border-radius:22px}
 .rates-refresh #rates-next-title{font-size:25px}
 .rates-refresh .rates-next-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:22px}
 .rates-refresh .rates-next-actions a{width:100%}
}
@media(max-width:360px){
 .rates-refresh #advisor-cta.rates-adviser{padding:20px 14px!important}
 .rates-refresh #ratesAdvisorForm{padding:14px!important}
 .rates-refresh #ratesAdvisorForm .phone-cc{max-width:96px;flex-basis:96px}
 .rates-refresh .rates-next-steps{padding:22px 18px}
}

/* Bank identity is added outside the generated rates-table markup. */
.rates-refresh .rates-logo-table .rates-bank-identity{display:flex;align-items:center;gap:12px;min-width:230px}
.rates-refresh .rates-logo-table .rates-bank-mark{display:flex;align-items:center;justify-content:center;flex:0 0 76px;width:76px;height:46px;padding:3px;background:#fff;border-radius:8px;box-sizing:border-box}
.rates-refresh .rates-logo-table .rates-bank-mark[hidden]{display:none}
.rates-refresh .rates-logo-table .rates-bank-mark img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain}
.rates-refresh .rates-logo-table .rates-bank-mark-reversed{background:#40176d;padding:6px 8px}
.rates-refresh .rates-logo-table .rates-bank-copy{display:block;min-width:0;max-width:260px;white-space:normal}
.rates-refresh .rates-logo-table .rates-bank-copy strong{line-height:1.45}
.rates-refresh .rates-logo-table .rates-bank-copy small{line-height:1.5}
@media(max-width:760px){
 .rates-refresh .rates-logo-table .rates-bank-identity{gap:10px;min-width:220px}
 .rates-refresh .rates-logo-table .rates-bank-mark{flex-basis:62px;width:62px;height:40px}
 .rates-refresh .rates-logo-table .rates-bank-copy{max-width:210px}
}

.rates-refresh .rates-logo-table .rates-bank-mark-wide{flex-basis:98px;width:98px}
@media(max-width:760px){.rates-refresh .rates-logo-table .rates-bank-mark-wide{flex-basis:86px;width:86px}}

/* The table remains the source of truth. Its mobile view uses the same row data. */
.rates-mobile-comparison{display:none}
@media(max-width:760px){
 .rates-refresh .rates-products-wrap{overflow:visible!important}
 .rates-refresh .rates-logo-table.rates-has-mobile-cards{display:none}
 .rates-refresh .rates-mobile-comparison{display:block}
 .rates-refresh .rates-mobile-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}
 .rates-refresh .rates-mobile-toolbar label{font-size:13px;font-weight:700;color:#40176d;white-space:nowrap}
 .rates-refresh .rates-mobile-toolbar select{max-width:235px;min-width:0;width:100%;min-height:44px;padding:10px 32px 10px 12px;border:1px solid #d9c9ef;border-radius:10px;background:#fff;color:#40176d;font:inherit;font-size:14px}
 .rates-refresh .rates-mobile-list{display:grid;gap:16px}
 .rates-refresh .rates-mobile-card{padding:18px;border:1px solid #e2d4f4;border-radius:20px;background:#fff;min-width:0}
 .rates-refresh .rates-mobile-card[hidden]{display:none}
 .rates-refresh .rates-mobile-card .rates-bank-identity{display:flex;align-items:center;gap:12px;min-width:0;margin-bottom:14px}
 .rates-refresh .rates-mobile-card .rates-bank-mark{display:flex;align-items:center;justify-content:center;flex:0 0 68px;width:68px;height:44px;padding:3px;border-radius:8px;background:#fff;box-sizing:border-box}
 .rates-refresh .rates-mobile-card .rates-bank-mark[hidden]{display:none}
 .rates-refresh .rates-mobile-card .rates-bank-mark img{display:block;width:100%;height:100%;object-fit:contain}
 .rates-refresh .rates-mobile-card .rates-bank-mark-reversed{background:#40176d;padding:6px}
 .rates-refresh .rates-mobile-card .rates-bank-copy{min-width:0;font-size:14px;line-height:1.4;color:#251751}
 .rates-refresh .rates-mobile-card .rates-bank-copy strong{font-size:15px;line-height:1.35}
 .rates-refresh .rates-mobile-card .rates-bank-copy small{font-size:12px;line-height:1.4;color:#665477}
 .rates-refresh .rates-mobile-type{margin:0 0 13px}
 .rates-refresh .rates-mobile-metrics{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:12px;padding:15px 0;border-top:1px solid #eee6f6;border-bottom:1px solid #eee6f6;margin:0 0 14px}
 .rates-refresh .rates-mobile-metrics dt{font-size:12px;line-height:1.4;color:#665477;margin:0 0 4px}
 .rates-refresh .rates-mobile-metrics dd{margin:0;font-size:20px;line-height:1.35;font-weight:800;color:#40176d}
 .rates-refresh .rates-mobile-metrics .rate-val{font-size:25px;line-height:1.2;color:#6d28d9}
 .rates-refresh .rates-mobile-details{border:0;border-radius:0;background:none;margin:0}
 .rates-refresh .rates-mobile-details summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:0;cursor:pointer;color:#40176d;font-size:14px;font-weight:700;list-style:none}
 .rates-refresh .rates-mobile-details summary::-webkit-details-marker{display:none}
 .rates-refresh .rates-mobile-details summary::after{content:'+';font-size:22px;font-weight:500}
 .rates-refresh .rates-mobile-details[open] summary::after{content:'−'}
 .rates-refresh .rates-mobile-details dl{margin:4px 0 16px;display:grid;gap:12px}
 .rates-refresh .rates-mobile-details dt{font-size:12px;line-height:1.4;font-weight:700;color:#665477;margin:0 0 3px}
 .rates-refresh .rates-mobile-details dd{font-size:14px;line-height:1.6;color:#372343;margin:0;overflow-wrap:anywhere}
 .rates-refresh .rates-mobile-details dd small{font:inherit}
 .rates-refresh .rates-mobile-apply{display:flex;justify-content:center;align-items:center;min-height:46px;padding:10px 16px;margin-top:10px;border-radius:12px;background:#40176d;color:#fff;font-size:14px;font-weight:750;text-decoration:none;box-sizing:border-box}
 .rates-refresh .rates-mobile-apply:hover{background:#54208c}
 .rates-refresh .rates-mobile-comparison :focus-visible{outline:3px solid #945ccf;outline-offset:3px}
 .rates-refresh .rates-mobile-empty{font-size:14px;padding:18px;background:#f5effc;border-radius:14px;color:#574467}
}

/* Country-code chevron centred independently of native select chrome. */
.rates-refresh #ratesAdvisorForm select.phone-cc{appearance:none;-webkit-appearance:none;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%236d28d9' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center;background-size:12px 12px;padding:10px 30px 10px 12px;line-height:24px;flex-basis:114px;max-width:114px}
@media(max-width:760px){.rates-refresh #ratesAdvisorForm select.phone-cc{flex-basis:118px;max-width:118px}}
@media(max-width:360px){.rates-refresh #ratesAdvisorForm select.phone-cc{flex-basis:116px;max-width:116px;padding-left:10px}}

/* Bring comparison data closer to the introduction without hiding any copy. */
.rates-refresh .page-hero{padding-block:28px 24px!important;min-height:0}
.rates-refresh .page-hero h1{margin-block:6px 10px!important}
.rates-refresh .page-hero .subtitle{margin-block:0 10px!important}
.rates-refresh .page-hero .updated{margin-block:8px 0!important}
.rates-refresh .rates-comparison-section{padding-top:28px!important}
.rates-refresh .rates-comparison-section>.container>div:first-child{margin-bottom:18px!important}
.rates-refresh .rates-comparison-section .rates-asof{margin-block:12px 16px!important;padding-block:12px!important}
.rates-refresh .rates-comparison-section .rate-filters{margin-block:12px 16px!important}
@media(max-width:760px){
 .rates-refresh .page-hero{padding-block:22px 20px!important}
 .rates-refresh .rates-comparison-section{padding-top:22px!important}
 .rates-refresh .rates-comparison-section #todays-rates{margin-bottom:10px!important}
 .rates-refresh .rates-comparison-section>.container>div:first-child{margin-bottom:14px!important}
}
