/* Uses the existing Nomatic visual assets; it does not replace the first hero. */
@media (min-width: 768px) {
  body #header .nf-site-shell {
    width: min(1440px, calc(100vw - 48px)) !important;
    max-width: none !important;
    padding-inline: 0 !important;
  }

  body #header .nf-site-logo img {
    width: 238px !important;
    height: auto !important;
    max-height: 62px !important;
    object-fit: contain !important;
  }

  body #header .nf-site-logo {
    width: 238px !important;
    min-width: 238px !important;
    flex: 0 0 238px !important;
  }

  body #header .nf-site-main {
    grid-template-columns: 180px minmax(0, 1fr) 174px !important;
    gap: 20px !important;
  }

  body #header .nf-site-search {
    width: 100% !important;
    min-width: 0 !important;
  }

  body #header .nf-site-cats {
    width: 100vw !important;
    min-height: 44px !important;
    margin: 10px 0 0 calc(50% - 50vw) !important;
    padding: 0 max(24px, calc((100vw - 1380px) / 2)) !important;
    justify-content: center !important;
    gap: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #078fe2 !important;
    box-shadow: 0 5px 13px rgba(7, 79, 126, .16) !important;
  }

  body #header .nf-site-cats a {
    height: 44px !important;
    padding: 0 22px !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
  }

  body #header .nf-site-cats a:hover,
  body #header .nf-site-cats a:focus-visible {
    color: #fff !important;
    background: rgba(255,255,255,.13) !important;
  }

  body #header .nf-site-cats a > .material-icons {
    color: currentColor !important;
    font-size: 17px !important;
  }

  body #header .nf-site-cats a[href*="nomaticpremium"] > .material-icons {
    display: none !important;
  }
}

/* Existing slide two and three: a reliable, complete desktop and mobile frame. */
body#index.page-index .nf-hero-carousel .nf-hero-v2 {
  position: relative !important;
  min-height: 300px !important;
  overflow: hidden !important;
  background: #eaf7ff !important;
}

body#index.page-index .nf-hero-carousel .nf-hero-v2-hours {
  background: linear-gradient(105deg, #edf9ff 0%, #d7f0ff 56%, #c0e7fb 100%) !important;
}

body#index.page-index .nf-hero-carousel .nf-hero-v2-hours::after {
  content: "";
  position: absolute;
  inset: -35% -10% -35% 65%;
  border: 40px solid rgba(7,143,226,.12);
  border-radius: 50%;
  pointer-events: none;
}

body#index.page-index .nf-hero-carousel .nf-hero-v2 > .nf-hero-v2-content {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: min(52%, 620px) !important;
  min-height: 300px !important;
  padding: 38px 56px !important;
  color: #10233a !important;
}

body#index.page-index .nf-hero-carousel .nf-hero-v2 h2,
body#index.page-index .nf-hero-carousel .nf-hero-v2 p,
body#index.page-index .nf-hero-carousel .nf-hero-v2 span {
  visibility: visible !important;
  opacity: 1 !important;
}

body#index.page-index .nf-hero-carousel .nf-hero-v2 h2 {
  margin: 12px 0 8px !important;
  color: #10233a !important;
  font-size: clamp(28px, 3vw, 44px) !important;
  font-weight: 500 !important;
  line-height: 1.06 !important;
}

body#index.page-index .nf-hero-carousel .nf-hero-v2 p {
  max-width: 430px !important;
  margin: 0 !important;
  color: #4c6579 !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

body#index.page-index .nf-hero-carousel .nf-hero-v2-kicker,
body#index.page-index .nf-hero-carousel .nf-hero-v2-time {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

body#index.page-index .nf-hero-carousel .nf-hero-v2-time {
  margin-top: 18px !important;
  padding: 9px 13px !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #0876bb !important;
  box-shadow: 0 7px 18px rgba(26,109,158,.12) !important;
}

body#index.page-index .nf-hero-carousel .nf-hero-v2-benefits > img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
}

body#index.page-index .nf-hero-carousel .nf-hero-v2-benefits > .nf-hero-v2-content {
  background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.91) 72%, rgba(255,255,255,0) 100%) !important;
}

@media (max-width: 767px) {
  body#index.page-index .nf-hero-carousel .nf-hero-v2,
  body#index.page-index .nf-hero-carousel .nf-hero-v2 > .nf-hero-v2-content {
    min-height: 228px !important;
  }
  body#index.page-index .nf-hero-carousel .nf-hero-v2 > .nf-hero-v2-content {
    width: 78% !important;
    padding: 24px !important;
  }
  body#index.page-index .nf-hero-carousel .nf-hero-v2 h2 {
    font-size: 27px !important;
  }
  body#index.page-index .nf-hero-carousel .nf-hero-v2 p {
    font-size: 14px !important;
  }
}

/* Compact replacement for the former account-language visual. */
#my-account .nf-account-product-rotator {
  display: block !important;
  margin: 0 0 14px !important;
  padding: 12px 14px !important;
  overflow: hidden !important;
  border: 1px solid #d8e9f4 !important;
  border-radius: 14px !important;
  background: #f4fbff !important;
}
#my-account .nf-account-product-rotator__label {
  display: block !important;
  margin: 0 0 7px !important;
  color: #5b7182 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}
#my-account .nf-account-product-rotator__item {
  display: grid !important;
  grid-template-columns: 48px minmax(0,1fr) 22px !important;
  align-items: center !important;
  gap: 10px !important;
  color: #10233a !important;
  text-decoration: none !important;
}
#my-account .nf-account-product-rotator__item img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;
  border-radius: 9px !important;
  background: #fff !important;
}
#my-account .nf-account-product-rotator__copy { min-width: 0 !important; }
#my-account .nf-account-product-rotator__name {
  display: block !important;
  overflow: hidden !important;
  color: #10233a !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#my-account .nf-account-product-rotator__price {
  display: block !important;
  margin-top: 3px !important;
  color: #087dc3 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}
#my-account .nf-account-product-rotator__item > .material-icons {
  color: #6f8494 !important;
  font-size: 22px !important;
}
