/* A local savings overview, set against the full-width vault scene. */
.bf-savings { position: relative; isolation: isolate; min-height: 700px; padding: clamp(64px, 7vw, 112px) 0; color: var(--white); background: var(--navy); }
.bf-savings::before { content: ""; position: absolute; z-index: 1; inset: 0; background: rgba(0,13,69,.52); pointer-events: none; }
.bf-savings__layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "widget intro"; align-items: center; gap: clamp(32px, 5vw, 80px); }
.bf-savings__widget { grid-area: widget; min-width: 0; padding: 26px; color: var(--navy); background: var(--white); border-radius: 12px; font-variant-numeric: tabular-nums; }
.bf-savings .bf-savings__widget-heading { margin: 0 0 5px; color: var(--navy); font-size: var(--bridge-subheading-size); line-height: 1.4; }
.bf-savings .bf-savings__widget-intro { margin: 0 0 16px; color: #4e5c75; font-size: 12px; line-height: 1.5; }
.bf-savings__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
.bf-savings__tabs button { position: relative; min-width: 0; min-height: 45px; padding: 10px 4px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #4e5c75; font: inherit; font-weight: 700; cursor: pointer; font-size: 13px; line-height: 1.45; }
.bf-savings__tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--red); }
.bf-savings__tabs button:hover { color: var(--navy); background: #f3f6fb; }
.bf-savings__tabs button:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.bf-savings__tabs button:disabled { cursor: default; }
#savings-widget-panel { padding: 0; min-height: 0; background: transparent; }
.bf-savings #savings-widget-prompt { margin: 18px 0; color: #4e5c75; font-size: 13px; line-height: 1.5; }
.bf-savings fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.bf-savings__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bf-savings .field { display: block; min-width: 0; margin: 0; color: var(--navy); font-size: 12px; font-weight: 600; line-height: 1.5; }
.bf-savings__control { position: relative; display: block; margin-top: 6px; }
.bf-savings__currency { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #4e5c75; font-size: 14px; pointer-events: none; }
.bf-savings .field input { display: block; width: 100%; min-width: 0; min-height: 46px; padding: 10px 8px 10px 27px; border: 1px solid #b8c8df; border-radius: 5px; background: var(--white); color: var(--navy); font-family: inherit; font-size: 14px; font-weight: 600; caret-color: var(--blue); }
#ready-to-save .bf-savings__control input { padding-left: 34px; }
.bf-savings .field input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.bf-savings .field input[aria-invalid="true"] { border-color: var(--red); }
.bf-savings__submit { width: 100%; min-height: 46px; margin-top: 18px; }
.bf-savings__results { min-height: 177px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.bf-savings .bf-savings__time-label { margin: 0 0 4px; color: #4e5c75; font-size: 12px; line-height: 1.45; }
.bf-savings__time { display: block; color: var(--navy); font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
.bf-savings .bf-savings__detail { margin: 9px 0 18px; color: #4e5c75; font-size: 12px; line-height: 1.5; }
.bf-savings__progress-labels { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 7px 16px; margin-bottom: 9px; color: #4e5c75; font-size: 11px; line-height: 1.5; }
.bf-savings__progress-labels strong { color: var(--navy); }
.bf-savings__progress { height: 8px; overflow: hidden; background: #dfe8f5; border-radius: 4px; }
.bf-savings__progress > span { display: block; height: 100%; width: 20%; border-radius: inherit; background: var(--red); }
.bf-savings [hidden] { display: none !important; }
.bf-savings .bf-savings__status { margin: 12px 0 0; color: #4e5c75; font-size: 12px; line-height: 1.55; }
.bf-savings .bf-savings__status:empty { display: none; }
.bf-savings .bf-savings__status[data-state="error"] { color: #b00822; }
.bf-savings .bf-savings__note { margin: 18px -26px -26px; padding: 13px 26px; border-top: 1px solid var(--border); border-radius: 0 0 12px 12px; color: #4e5c75; background: #f7f9fc; font-size: 11px; line-height: 1.5; }
.bf-savings .bf-savings__member { margin: 22px 0 0; font-size: 13px; line-height: 1.5; }
.bf-savings__intro { grid-area: intro; min-width: 0; text-align: left; color: var(--white); }
.bf-savings .bf-savings__intro h2 { max-width: 18ch; margin: 0 0 var(--fb-section-intro-gap); color: var(--white); font-size: clamp(30px, 3.4vw, 48px); line-height: 1.14; letter-spacing: -.02em; text-wrap: balance; }
.bf-savings .bf-savings__intro p { max-width: 26ch; margin: 0; color: var(--white); font-size: clamp(18px, 2vw, 24px); line-height: 1.45; }
.bf-savings__intro .text-link { color: var(--white); text-underline-offset: .2em; }
.bf-savings__intro a:focus-visible { outline: 3px solid var(--fb-focus-on-dark); outline-offset: 4px; }
.bf-savings__media { position: absolute; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--navy); pointer-events: none; }
.bf-savings__image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.bf-savings__visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.bf-savings ::selection { color: var(--navy); background: #ffde86; }
@media (max-width: 1100px) and (min-width: 851px) {
  .bf-savings__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-savings__fields .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 850px) {
  .bf-savings { min-height: 0; padding-block: var(--fb-section-space); }
  .bf-savings__layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "widget"; gap: var(--fb-grid-gap); }
  .bf-savings__intro, .bf-savings__widget { width: 100%; max-width: 560px; margin-inline: auto; }
  .bf-savings .bf-savings__intro h2 { font-size: clamp(28px, 5vw, 38px); margin-bottom: var(--bridge-heading-space); }
  .bf-savings .bf-savings__intro p { font-size: 18px; max-width: 38ch; }
  .bf-savings__image { object-position: center; }
}
@media (max-width: 560px) {
  .bf-savings__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-savings__fields .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .bf-savings__widget { padding: 21px 18px; }
  .bf-savings__fields { grid-template-columns: minmax(0, 1fr); }
  .bf-savings__tabs button { padding-inline: 3px; font-size: 12px; }
  .bf-savings__time { font-size: 27px; }
  .bf-savings .bf-savings__note { margin: 18px -18px -21px; padding: 13px 18px; }
}
