﻿/* Interaction styles for the original header, insurer logos and contact form. */
html { scroll-padding-top: var(--local-nav-top, 90px); }
main { overflow-wrap: anywhere; min-width: 0; }
main .elementor-widget, main .cmplz-dropdown .name { min-width: 0; overflow-wrap: anywhere; }
::selection { background: #312783; color: #fff; }
:where(a, button, input, textarea):focus-visible { outline: 2px solid #2378bc; outline-offset: 4px; }

.elementor-location-header { position: relative; z-index: 555; }
.sticky-sentinel { position: absolute; top: 0; width: 1px; height: 1px; pointer-events: none; }
.elementor-location-header .local-sticky { position: fixed !important; inset: 0 0 auto !important; width: 100% !important; background: var(--e-global-color-primary, #004c97) !important; box-shadow: 0 4px 20px rgb(0 0 0 / 8%); }
[data-hero-header] .elementor-location-header > header { transition: background-color 240ms ease-out, box-shadow 240ms ease-out; }
[data-hero-header] .elementor-location-header > header:not(.local-sticky) { background-color: transparent !important; }
[data-hero-header] .elementor-location-header > header:not(.local-sticky):has(:focus-visible, button[aria-expanded="true"]) { background-color: var(--e-global-color-primary, #004c97) !important; }
@media (hover: hover) {
  [data-hero-header] .elementor-location-header > header:not(.local-sticky):hover { background-color: var(--e-global-color-primary, #004c97) !important; }
}
@media (prefers-reduced-motion: reduce) {
  [data-hero-header] .elementor-location-header > header { transition: none; }
}
.site-nav { --menu-color: #312783; color: #fff; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.site-nav li { position: relative; min-width: 0; }
.site-nav .nav-row { display: flex; align-items: stretch; }
.site-nav a { display: flex; align-items: center; gap: 4px; text-decoration: none; color: inherit; }
.site-nav > ul > li > a,
.site-nav > ul > li > .nav-row > a { padding: 10px clamp(10px, 1.5vw, 24px); font-size: 12px; font-weight: 700; line-height: 18px; text-transform: uppercase; white-space: nowrap; }
.site-nav > ul > li > .nav-row > a { padding-inline-end: 0; }
.site-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-nav .wpml-ls-flag { display: inline-block; }
.elementor-location-header .site-nav :is(a, button):focus-visible,
.elementor-location-header .site-nav-toggle:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.elementor-location-header :is(.nav-expand, .site-nav-toggle) {
  display: inline-grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
}
.elementor-location-header .nav-expand { width: 32px; flex: none; }
.elementor-location-header .site-nav .nav-expand:is(:hover, :focus, :active) {
  background: transparent;
  color: #fff;
}
.nav-expand svg { display: block; width: 9px; height: 8px; }
.nav-expand[aria-expanded="true"] svg { transform: rotate(180deg); }
.elementor-location-header .site-nav-toggle { display: none; }
.site-nav .site-submenu { background: var(--menu-color); padding: 6px 0; color: #fff; }
.site-nav .site-submenu-root {
  position: absolute;
  z-index: 2;
  inset: calc(100% + var(--nav-gap, 0px)) auto auto 0;
  width: clamp(220px, 23vw, 286px);
  box-shadow: 0 8px 18px rgb(0 0 0 / 14%);
}
.site-nav .site-submenu-root::before { content: ''; position: absolute; inset: auto 0 100%; height: var(--nav-gap, 0px); }
.site-nav .site-submenu-root.align-end { inset-inline: auto 0; }
.site-nav .site-submenu a { min-height: 40px; padding: 9px 18px; font-size: 14px; line-height: 20px; font-weight: 600; }
.site-nav .site-submenu .nav-row > a { flex: 1; }
.site-nav .site-submenu .site-submenu { margin-inline: 18px 0; padding-block: 0 3px; border-inline-start: 1px solid rgb(255 255 255 / 25%); }
.site-nav[hidden], .site-nav .site-submenu[hidden] { display: none; }

@media (min-width: 1025px) {
  .site-nav {
    /* Mirror the visible logo inset, including the padding around the language chevron. */
    --nav-end-margin: max(0px, calc(6.83vw - 56.5px));
    width: min(calc(100% - var(--nav-end-margin)), max(510px, 44.5vw));
    margin-inline: auto var(--nav-end-margin);
  }
  .site-nav > ul { flex-wrap: nowrap; }
}

.local-form-status { margin: 12px 0 0; padding: 12px; border: 1px solid #312783; color: #312783; background: #fff; font-size: 14px; line-height: 1.5; }
.local-form-status:empty { padding: 0; margin: 0; border: 0; }
.local-map-link { display: flex; min-height: 240px; align-items: center; justify-content: center; padding: 32px; background: #f3f3f3; color: #312783; text-decoration: underline; text-align: center; }

.consent-panel:not(.consent-inline) {
  position: fixed;
  inset-block-end: max(12px, env(safe-area-inset-bottom));
  inset-inline-start: max(12px, env(safe-area-inset-left));
  z-index: 560;
  color: #312783;
  background: #fff;
  box-shadow: 0 4px 20px rgb(25 17 65 / 16%);
  border: 1px solid #dcd8ed;
  border-radius: 8px;
  font-family: system-ui, sans-serif;
  width: min(370px, calc(100% - 24px));
  padding: 12px;
}
.consent-panel[hidden] { display: none; }
.consent-panel:not(.consent-inline) h2 { margin: 0 0 3px; color: inherit; font: 650 14px/1.25 system-ui, sans-serif; }
.consent-panel:not(.consent-inline) p { margin: 0 0 8px; color: #302c3b; font-size: 12px; line-height: 1.35; }
.consent-panel a { color: #312783; text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent-actions button { min-height: 36px; padding: 4px 8px; color: #312783; background: #fff; border: 1px solid #312783; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 650; }
.consent-actions button:is(:hover, :focus, [aria-pressed="true"]) { color: #312783; background: #f1eefb; }
[data-cookie-preferences] { scroll-margin-block-start: 12px; }
.consent-inline { margin-block: 18px 24px; }
.consent-inline .consent-actions { max-width: 240px; }
.consent-inline .consent-actions button { min-height: 44px; font-size: 14px; }
.consent-inline [aria-pressed="true"] { box-shadow: inset 0 0 0 1px currentColor; }

.elementor-image-carousel-wrapper { overflow: hidden; }
.elementor-image-carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.elementor-image-carousel::-webkit-scrollbar { display: none; }
.elementor-image-carousel .swiper-slide { flex: 0 0 calc((100% - 120px) / 7); width: auto; scroll-snap-align: start; }
.elementor-image-carousel .swiper-slide-image { width: 100%; height: 90px; object-fit: contain; }
.elementor-image-carousel [data-loop-copy], .insurer-controls { display: none; }

@media (max-width: 1024px) {
  .elementor-location-header .site-nav-toggle { display: inline-grid; align-self: center; width: 42px; height: 42px; background: #312783; }
  .elementor-location-header .site-nav-toggle:is(:hover, :focus, :active) { background: #312783; color: #fff; }
  .site-nav-toggle svg { width: 20px; height: 20px; fill: currentColor; }
  .site-nav-toggle[aria-expanded="false"] .elementor-menu-toggle__icon--close,
  .site-nav-toggle[aria-expanded="true"] .elementor-menu-toggle__icon--open { display: none; }
  .site-nav {
    position: fixed;
    inset: var(--local-nav-top, 70px) 0 auto;
    max-height: calc(100dvh - var(--local-nav-top, 70px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--menu-color);
    padding-block: 8px 12px;
  }
  .site-nav > ul { display: block; }
  .site-nav > ul > li > a,
  .site-nav > ul > li > .nav-row > a { min-height: 48px; padding: 12px 24px; }
  .site-nav .nav-row > a { flex: 1; }
  .elementor-location-header .nav-expand { width: 54px; min-height: 44px; }
  .site-nav .site-submenu-root { position: static; width: auto; box-shadow: none; margin-inline: 24px; border-inline-start: 1px solid rgb(255 255 255 / 25%); }
  .site-nav .site-submenu-root::before { content: none; }
  .site-nav .site-submenu a { padding-inline: 16px 0; }
  .site-nav .site-submenu .site-submenu { margin-inline-start: 16px; }
}
@media (max-width: 767px) {
  .elementor-image-carousel { gap: 18px; }
  .elementor-image-carousel .swiper-slide { flex-basis: calc((100% - 36px) / 3); }
  .elementor-image-carousel .swiper-slide-image { height: 64px; max-width: 108px; }
  .elementor-image-carousel [data-loop-copy] { display: block; }
  .insurer-controls { display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 6px; }
  .insurer-controls button { display: grid; place-items: center; border: 0; background: transparent; margin: 0; padding: 0; color: #312783; cursor: pointer; }
  .insurer-controls button:is(:hover, :focus, :active) { background: transparent; color: #312783; }
  .insurer-controls .insurer-dot { width: 20px; height: 30px; }
  .insurer-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #aaa7b3; }
  .insurer-dot[aria-current="true"]::before { background: #312783; }
  .insurer-controls .insurer-pause { width: 34px; height: 34px; margin-inline-start: 4px; }
  .insurer-controls .insurer-pause[hidden] { display: none; }
  .insurer-pause svg { width: 13px; height: 13px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .elementor-button { transition: background-color .2s, color .2s, transform .35s cubic-bezier(.16, 1, .3, 1); }
  main .elementor-button:hover { transform: translateY(-2px); }
  .site-nav .site-submenu:not([hidden]) { animation: menu-appear 160ms ease-out both; }
  .section-arrive { animation: section-arrive 740ms cubic-bezier(.18, .65, .32, 1) both; }
  @keyframes section-arrive { from { opacity: .25; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes menu-appear { from { opacity: .6; } to { opacity: 1; } }
}
