/* CDS: responsive refinements for the default Medicate header. */
@media (min-width: 769px) {
  /* Nested flyouts otherwise extend beyond the right side of the viewport. */
  .site #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item ul.mega-sub-menu {
    left: auto;
    right: 100%;
  }
}
@media (max-width: 1023px) {
  header#pt-header.pt-header-default .pt-bottom-header .navbar {
    min-height: 88px;
    gap: 8px;
    padding: 12px 0;
  }
  header#pt-header.pt-header-default .pt-bottom-header .navbar .navbar-brand {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    order: 0;
  }
  header#pt-header.pt-header-default .pt-bottom-header .navbar .navbar-brand img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
    padding: 0;
  }
  header#pt-header.pt-header-default .pt-menu-search-block {
    flex: 0 0 36px;
    margin: 0;
    order: 1;
  }
  header#pt-header.pt-header-default .pt-bottom-header .navbar-toggler {
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 10px;
    order: 2;
  }
  header#pt-header.pt-header-default .pt-menu-search-block > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }
  header#pt-header.pt-header-default .navbar-collapse {
    order: 3;
  }
}

/* Max Mega Menu owns the mobile toggle. Do not nest it inside Bootstrap's
   collapsed panel: otherwise opening the menu requires two hamburgers. */
@media (max-width: 768px) {
  header#pt-header.pt-header-default:has(#mega-menu-wrap-primary) .navbar-toggler {
    display: none;
  }
  header#pt-header.pt-header-default:has(#mega-menu-wrap-primary) .pt-menu-search-block {
    margin-right: 52px;
  }
  header#pt-header.pt-header-default:has(#mega-menu-wrap-primary) .pt-bottom-header .navbar .navbar-collapse.collapse,
  header#pt-header.pt-header-default:has(#mega-menu-wrap-primary) .pt-bottom-header .navbar .navbar-collapse.collapsing {
    display: block !important;
    position: static;
    flex: 0 0 100%;
    width: 100%;
    max-height: none;
    height: auto !important;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }
  header#pt-header.pt-header-default #mega-menu-wrap-primary {
    position: static;
    width: 100%;
    background: transparent;
  }
  header#pt-header.pt-header-default #mega-menu-wrap-primary .mega-menu-toggle {
    position: absolute;
    top: 22px;
    right: 0;
    transform: none;
    width: 44px;
    height: 44px;
    background: #176b9e;
    border-radius: 6px;
  }
  header#pt-header.pt-header-default #mega-menu-wrap-primary .mega-toggle-blocks-right,
  header#pt-header.pt-header-default #mega-menu-wrap-primary .mega-toggle-animated-block {
    width: 44px;
    margin: 0;
  }
  header#pt-header.pt-header-default #mega-menu-wrap-primary .mega-toggle-animated {
    width: 44px;
    height: 44px;
    padding: 10px;
  }
  header#pt-header.pt-header-default #mega-menu-wrap-primary .mega-toggle-animated-box {
    width: 24px;
  }
  header#pt-header.pt-header-default #mega-menu-wrap-primary .mega-toggle-animated-inner,
  header#pt-header.pt-header-default #mega-menu-wrap-primary .mega-toggle-animated-inner::before,
  header#pt-header.pt-header-default #mega-menu-wrap-primary .mega-toggle-animated-inner::after {
    width: 24px;
    background-color: #fff;
  }
  header#pt-header.pt-header-default #mega-menu-wrap-primary #mega-menu-primary {
    padding: 0;
    background: #fff;
    border-radius: 6px;
  }
  header#pt-header.pt-header-default #mega-menu-wrap-primary .mega-menu-open + #mega-menu-primary {
    max-height: 65vh;
    max-height: 65svh;
    overflow-y: auto;
    margin-top: 4px;
    border: 1px solid #dbe7ef;
  }
  header#pt-header.pt-header-default #mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item > a.mega-menu-link {
    min-height: 44px;
    height: auto;
    padding: 12px 16px;
    line-height: 1.4;
    font-size: 16px;
    white-space: normal;
    overflow-wrap: anywhere;
    color: #243e52;
    background: #fff;
  }
  header#pt-header.pt-header-default #mega-menu-wrap-primary #mega-menu-primary li.mega-current-menu-item > a.mega-menu-link,
  header#pt-header.pt-header-default #mega-menu-wrap-primary #mega-menu-primary li.mega-toggle-on > a.mega-menu-link {
    color: #176b9e;
    background: #eef5fa;
  }
  header#pt-header.pt-header-default #mega-menu-wrap-primary #mega-menu-primary .mega-sub-menu {
    background: #f7fafc;
  }
  header#pt-header.pt-header-default #mega-menu-wrap-primary #mega-menu-primary .mega-sub-menu .mega-menu-link {
    padding-left: 28px;
  }
  header#pt-header.pt-header-default #mega-menu-wrap-primary #mega-menu-primary .mega-sub-menu .mega-sub-menu .mega-menu-link {
    padding-left: 40px;
  }
  header#pt-header.pt-header-default #mega-menu-wrap-primary button:focus-visible,
  header#pt-header.pt-header-default #mega-menu-wrap-primary a:focus-visible {
    outline: 3px solid #e2a800;
    outline-offset: 2px;
  }
  .pt-breadcrumb {
    padding: 32px 0 !important;
  }
  .site .pt-breadcrumb .pt-breadcrumb-title h1 {
    font-size: clamp(25px, 7vw, 36px);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .pt-breadcrumb .breadcrumb {
    flex-wrap: wrap;
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  /* Scope package spacing and typography to the existing page. */
  .page-id-17340 .elementor-section > .elementor-container {
    min-width: 0;
  }
  .page-id-17340 .elementor-widget-heading .elementor-heading-title {
    overflow-wrap: anywhere;
  }
  .page-id-17340 .elementor-17340 > .elementor-section:first-child {
    padding-top: 32px;
  }
  .page-id-17340 .elementor-widget-button .elementor-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
  }
  .pt-footer a {
    overflow-wrap: anywhere;
  }
}

/* CDS contact strip and footer links. */
header#pt-header .cds-header-top-row .pt-header-contact ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 18px;
  row-gap: 6px;
  padding: 8px 0;
}
header#pt-header .cds-header-top-row .pt-header-contact ul li {
  margin: 0;
  line-height: 1.5;
}
header#pt-header .cds-header-top-row .pt-header-contact ul li a {
  line-height: 1.5;
}
.cds-policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 12px;
  font-size: 14px;
}
.cds-policy-links a { text-decoration: underline; }
.page-id-1509 .elementor-element-925e01c {
  width: 100%;
  max-width: none;
}
.page-id-1509 .elementor-widget-google_maps iframe {
  display: block;
  width: 100%;
  height: 350px;
}
@media (max-width: 767px) {
  .page-id-1509 .elementor-icon-box-description a {
    display: inline-block;
    padding: 5px 0;
    overflow-wrap: anywhere;
  }
}

/* Give footer contact details more room than the short useful-links list. */
@media (min-width: 992px) {
  #pt-footer .pt-footer-top > .container > .row > div:nth-child(2) {
    flex: 0 0 25%;
    max-width: 25%;
  }
  #pt-footer .pt-footer-top > .container > .row > div:nth-child(3) {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  #pt-footer .pt-footer-top > .container > .row > div:nth-child(3) {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
#pt-footer .pt-contact li > a {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
#pt-footer .pt-contact li > a > i {
  flex: 0 0 20px;
  margin-right: 0;
}
#pt-footer .pt-contact li > a > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Keep consent placeholders within the same space as the Google map. */
.elementor-widget-google_maps .cmplz-blocked-content-container {
  height: 350px !important;
  min-height: 350px !important;
  max-height: 350px !important;
  aspect-ratio: auto !important;
  background-image: none !important;
  background-color: #eef4f8 !important;
  border-top: 1px solid #d5e2ec;
  border-bottom: 1px solid #d5e2ec;
  box-sizing: border-box;
}
.elementor-widget-google_maps .cmplz-blocked-content-container .cmplz-blocked-content-notice {
  width: calc(100% - 40px);
  max-width: 420px;
  padding: 18px 24px;
  border: 0;
  border-radius: 8px;
  background: #194b79;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  box-shadow: 0 4px 16px rgba(25, 75, 121, 0.12);
  white-space: normal;
}
.elementor-widget-google_maps .cmplz-blocked-content-notice:hover {
  background: #126b9e;
}
.elementor-widget-google_maps .cmplz-blocked-content-notice:focus-visible {
  outline: 3px solid #194b79;
  outline-offset: 5px;
}
