[hidden]{display:none!important}
.rf-calc-details{margin-top:1.05rem;padding:1.2rem 1.35rem;background:#f5f8ff;border:1px solid #dce7f7;border-radius:16px}
.rf-calc-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:1.1rem}
.rf-calc-metrics>div{padding:.9rem 1rem;border-radius:12px;background:#fff;border:1px solid #e3ebf5;display:grid;gap:.3rem}
.rf-calc-metrics small{font-size:.71rem;color:#53627b}
.rf-calc-metrics strong{font:800 clamp(1.05rem,2.2vw,1.35rem)/1.25 'Open Sans',sans-serif;color:#083763;font-variant-numeric:tabular-nums}
.rf-chart{width:100%;height:13px;border-radius:99px;display:flex;background:#e5eef7;overflow:hidden}
.rf-chart span{height:100%;transition:width .25s ease-out}
#rf-principal-bar{background:#0865bf}#rf-interest-bar{background:#e5ab16}
.rf-chart-legend{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;font-size:.71rem;color:#4c5a72;margin-top:.45rem}
.rf-chart-legend span{display:flex;align-items:center;gap:6px}
.rf-chart-legend i{display:inline-block;width:8px;height:8px;border-radius:2px}
.rf-key-principal{background:#0865bf}.rf-key-interest{background:#e5ab16}
.rf-calc-prefill{padding:.8rem 1rem;background:#e9f4ff;border:1px solid #bcd8f0;color:#073f76;border-radius:12px;font-size:.78rem;line-height:1.65}
.rf-form-status{margin-top:.8rem;font-size:.82rem;line-height:1.6;color:#365472}
.rf-form-status.error{color:#a22727}.rf-form-status.success{color:#136140;background:#effaf2;padding:.9rem;border-radius:10px}
.rf-trap,.rf-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.rf-chat-root{position:fixed;z-index:2000;right:20px;bottom:18px;font-family:'Open Sans',Arial,sans-serif}
.rf-chat-toggle{background:#08386b;color:#fff;border:1px solid #13518e;border-radius:100px;padding:14px 19px;box-shadow:0 10px 35px rgba(5,29,65,.26);font-size:.83rem;font-weight:700;display:flex;align-items:center;gap:8px;cursor:pointer;transition:transform .18s,background .18s}
.rf-chat-toggle:hover,.rf-chat-toggle:focus-visible{background:#07569b;transform:translateY(-2px)}
.rf-chat-toggle:focus-visible,.rf-chat-option:focus-visible,.rf-chat-head button:focus-visible,.rf-chat-submit:focus-visible{outline:3px solid #e3b82a;outline-offset:2px}
.rf-chat-panel{position:absolute;right:0;bottom:64px;width:min(390px,calc(100vw - 24px));max-height:min(690px,calc(100dvh - 98px));background:#fff;border:1px solid #dce5f2;border-radius:20px;box-shadow:0 20px 65px rgba(4,21,47,.26);display:flex;flex-direction:column;overflow:hidden}
.rf-chat-head{background:linear-gradient(125deg,#0a2a57,#095494);color:#fff;padding:17px;display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.rf-chat-head strong{display:block;font-size:.96rem}.rf-chat-head small{display:block;margin-top:5px;font-size:.66rem;line-height:1.45;opacity:.9;max-width:290px}
.rf-chat-head button{border:0;border-radius:10px;background:rgba(255,255,255,.13);color:#fff;font-size:1.55rem;line-height:1;width:32px;height:32px;cursor:pointer}
.rf-chat-body{overflow-y:auto;min-height:110px;max-height:445px;padding:17px 16px 5px;scrollbar-color:#c0cadc transparent;scrollbar-width:thin}
.rf-bubble{font-size:.82rem;line-height:1.72;background:#f3f7fc;color:#172b4e;border:1px solid #e1eaf5;border-radius:14px 14px 14px 4px;padding:12px 13px;margin:0 0 12px}
.rf-chat-actions{padding:10px 16px 16px;display:flex;flex-direction:column;gap:7px;overflow:auto;max-height:260px}
.rf-chat-option{text-align:left;border:1px solid #d7e4f3;background:#fff;border-radius:12px;padding:11px 12px;color:#113963;font-weight:700;font-size:.79rem;cursor:pointer;line-height:1.4}
.rf-chat-option:hover{background:#eff6fe;border-color:#9cbfe2}
.rf-chat-link{display:inline-flex;margin:0 0 10px;font-size:.79rem;font-weight:700;color:#085ca6}
.rf-chat-form{display:flex;flex-direction:column;gap:9px;padding-bottom:8px}
.rf-chat-form label{display:flex;flex-direction:column;gap:5px;font-weight:700;font-size:.72rem;color:#24405e}
.rf-chat-form input,.rf-chat-form textarea{font-family:inherit;padding:10px 12px;border:1px solid #cedbec;border-radius:10px;color:#182a46;font-size:.81rem;outline-offset:2px;width:100%;background:#fff}
.rf-chat-form input:focus,.rf-chat-form textarea:focus{border-color:#0a68bd;outline:2px solid #b9dafa}
.rf-chat-privacy{font-size:.66rem;line-height:1.5;color:#53627b}.rf-chat-privacy a{color:#065da7;text-decoration:underline}
.rf-chat-submit{background:#0656a6;color:#fff;border:0;border-radius:10px;padding:12px 14px;font-size:.81rem;font-weight:800;cursor:pointer}
.rf-chat-submit[disabled],.fsub[disabled]{opacity:.55;cursor:wait}
.rf-chat-status{font-size:.72rem;line-height:1.5;overflow-wrap:anywhere;color:#9b2f25}.rf-chat-status.success{color:#146941}
@media(max-width:620px){.rf-calc-metrics{grid-template-columns:1fr}.rf-chat-root{right:12px;bottom:12px}.rf-chat-panel{bottom:58px;width:calc(100vw - 24px);max-height:calc(100dvh - 90px)}.rf-chat-body{max-height:calc(100dvh - 320px)}.rf-chat-toggle{padding:13px 16px}}
@media(prefers-reduced-motion:reduce){.rf-chat-toggle,.rf-chart span{transition:none!important}}

/* v3: compact, readable mortgage calculator — focus on instalment, not marketing totals. */
.calculator-v2{padding:2.65rem 0!important}
.calculator-v2 .calculator-layout{max-width:1050px!important;grid-template-columns:minmax(0,.77fr) minmax(0,1.23fr)!important;gap:2rem!important;align-items:center!important}
.calculator-v2 .calculator-intro h2{font-size:clamp(1.42rem,2.15vw,1.95rem)!important;line-height:1.3!important}
.calculator-v2 .calculator-intro .desc{font-size:.85rem!important;line-height:1.7!important}
.calculator-v2 .calculator-tip{margin:1rem 0!important;font-size:.76rem!important}
.calculator-v2 .calc-card{max-width:620px!important;width:100%!important}
.calculator-v2 .calc-head{padding:.8rem 1.05rem!important}
.calculator-v2 .calc-head h3{font-size:.94rem!important}
.calculator-v2 .calc-head>span{font-size:.65rem!important}
.calculator-v2 .calc-body{padding:1rem 1.1rem!important}
.calculator-v2 .calc-grid{gap:.95rem 1.1rem!important}
.calculator-v2 .calc-lbl{font-size:.68rem!important;min-height:0!important}
.calculator-v2 .calc-lbl>span{font-size:.78rem!important}
.calculator-v2 .calc-slider{margin:.25rem 0!important}
.calculator-v2 .calc-result{margin-top:.9rem!important;padding:.85rem!important}
.calculator-v2 .cr-val{font-size:clamp(1.2rem,1.8vw,1.45rem)!important;margin-bottom:.16rem!important}
.calculator-v2 .cr-lbl{font-size:.63rem!important}
.calculator-v2 .calc-disclosures{margin-top:.6rem!important;font-size:.67rem!important;gap:.1rem!important}
.calculator-v2 .calc-note{font-size:.66rem!important;margin-top:.6rem!important;line-height:1.65!important}
.calculator-v2 .calc-cta-row{margin-top:.7rem!important;gap:.25rem!important}
.calculator-v2 .calc-cta-row .btn-p{padding:.6rem!important}
.rf-calc-own{font-size:.71rem;color:#4e647e;margin:.7rem .15rem 0;line-height:1.5}
.rf-calc-assumptions{margin-top:.4rem;padding:.2rem .1rem}
.rf-calc-assumptions>summary{cursor:pointer;color:#07569b;text-decoration:underline;text-underline-offset:3px;font-weight:700;font-size:.69rem;line-height:1.6}
.rf-calc-assumptions>p{font-size:.69rem;line-height:1.6;color:#4d607a;margin:.35rem 0 0}
.nav-item .nav-trigger.active,.nav-menu .nav-item>a.active{color:var(--bm)!important;border-bottom-color:var(--bx)!important}
.mob-menu a.active{background:#e9f4fc;color:var(--bd);border-left:3px solid var(--bm)}
.rf-chat-search{padding:0 16px 11px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;border-bottom:1px solid #e9f0f7}
.rf-chat-search input{min-width:0;border:1px solid #b6d4ec;border-radius:10px;background:#fff;padding:10px 11px;font-size:14px;color:#193d60}
.rf-chat-search input:focus-visible{outline:2px solid #0b71c8;outline-offset:1px}
.rf-chat-search button{font-size:.77rem;font-weight:800;background:#075ba5;color:#fff;border:0;border-radius:10px;padding:0 12px;cursor:pointer}
.rf-chat-search-hint{font-size:.68rem;color:#566d86;margin:7px 0 0;grid-column:1/-1;line-height:1.5}
.rf-chat-result-title{font-size:.73rem;line-height:1.5;color:#225277;font-weight:800;margin:0 0 9px}
.rf-chat-answer{text-align:left;font-size:.82rem;line-height:1.75;color:#153658;padding:12px 13px;background:#f0f6fc;border:1px solid #dceafa;border-radius:10px;margin:0 0 12px}
.rf-chat-option.rf-chat-related{font-size:.74rem;font-weight:600}
@media(max-width:860px){.calculator-v2 .calculator-layout{grid-template-columns:1fr!important;max-width:640px!important;gap:1.2rem!important}.calculator-v2 .calc-card{max-width:620px!important;margin:0 auto}.calculator-v2 .calculator-intro h2{font-size:1.7rem!important}}
@media(max-width:620px){.calculator-v2{padding:2.1rem 0!important}.calculator-v2 .calc-body{padding:.9rem!important}.calculator-v2 .calc-grid{gap:.8rem!important}.calculator-v2 .calc-result{padding:.7rem!important}.calculator-v2 .calc-lbl{font-size:.63rem!important}.calculator-v2 .cr-val{font-size:1.23rem!important}.rf-chat-search{padding:0 12px 10px}}

/* Guard against an older calculator script still cached in some sessions. */
.calculator-v2 .rf-calc-details{display:none!important}


/* A compact accessible mobile chat launcher, so it never covers the
   homepage primary CTA as a wide floating pill. */
@media (max-width:767px){
  .rf-chat-root{
    right:calc(12px + env(safe-area-inset-right, 0px));
    bottom:calc(12px + env(safe-area-inset-bottom, 0px))
  }
  .rf-chat-toggle{
    display:flex;justify-content:center;align-items:center;
    flex-shrink:0;width:48px;height:48px;min-height:48px;
    padding:0;border-radius:50%;font-size:1.2rem;line-height:1;
    box-shadow:0 5px 18px rgba(5,29,65,.22)
  }
  .rf-chat-toggle span{display:none}
  .rf-chat-panel{
    right:0;bottom:59px;
    width:min(390px,calc(100vw - 24px));
    max-height:calc(100dvh - 92px)
  }
}

@media (max-width:767px){
  .rf-chat-root.rf-chat-avoid-cta .rf-chat-toggle{
    visibility:hidden;opacity:0;pointer-events:none
  }
}
