/* Loaded only when the first enabled page-owned section opts into header overlay. */
.sw-header-overlay-page {
  --sw-header-overlay-height: 5rem;
  position: relative;
}

.sw-header-overlay-page > :is(.sw-micro-header, .sw-header) {
  position: fixed !important;
  z-index: 1040 !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  width: 100%;
  transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease, backdrop-filter .22s ease;
}

.sw-header-overlay-page:not(.sw-header-overlay-past) > :is(.sw-micro-header, .sw-header) {
  --brand-navbar-text: #fff;
  --brand-navbar-link: rgba(255, 255, 255, .94);
  --brand-navbar-link-hover: #fff;
  border-color: transparent !important;
  background: linear-gradient(180deg, rgba(5, 9, 16, .68), rgba(5, 9, 16, .28) 72%, transparent) !important;
  box-shadow: none !important;
  color: #fff !important;
}

.sw-header-overlay-page.sw-header-overlay-past > :is(.sw-micro-header, .sw-header) {
  border-color: var(--brand-card-border, rgba(0, 0, 0, .1)) !important;
  background: var(--brand-navbar-bg, var(--brand-card-bg, #fff)) !important;
  box-shadow: var(--brand-shadow-sm, 0 2px 8px rgba(15, 23, 42, .1));
}

.sw-header-overlay-page:not(.sw-header-overlay-past) > :is(.sw-micro-header, .sw-header) :is(.navbar-brand, .navbar-brand .text-brand-heading, .nav-link, .navbar-toggler) {
  color: #fff !important;
}

.sw-header-overlay-page:not(.sw-header-overlay-past) > :is(.sw-micro-header, .sw-header) .btn-brand-primary {
  border-color: rgba(255, 255, 255, .82) !important;
  background: rgba(5, 9, 16, .34) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
  backdrop-filter: blur(8px);
}

.sw-header-overlay-page:not(.sw-header-overlay-past) > :is(.sw-micro-header, .sw-header) .btn-brand-primary:hover,
.sw-header-overlay-page:not(.sw-header-overlay-past) > :is(.sw-micro-header, .sw-header) .btn-brand-primary:focus-visible {
  border-color: #fff !important;
  background: #fff !important;
  color: #111827 !important;
}

.sw-header-overlay-page:not(.sw-header-overlay-past) > :is(.sw-micro-header, .sw-header) .navbar-toggler {
  border-color: rgba(255, 255, 255, .58) !important;
}

.sw-header-overlay-page:not(.sw-header-overlay-past) > :is(.sw-micro-header, .sw-header) .navbar-toggler-icon {
  filter: grayscale(1) invert(1) brightness(2);
}

.sw-header-overlay-page:not(.sw-header-overlay-past) > :is(.sw-micro-header, .sw-header) :is(.sw-header-social-topbar__bar, .sw-header-offcanvas-search__bar, .sw-header-topbar) {
  border-color: rgba(255, 255, 255, .2) !important;
  background: rgba(5, 9, 16, .24) !important;
  color: rgba(255, 255, 255, .94) !important;
  backdrop-filter: blur(10px);
}

.sw-header-overlay-page:not(.sw-header-overlay-past) > :is(.sw-micro-header, .sw-header) :is(.sw-header-social-topbar__bar, .sw-header-offcanvas-search__bar, .sw-header-topbar) a {
  color: #fff !important;
}

.sw-header-overlay-page:not(.sw-header-overlay-past) > :is(.sw-micro-header, .sw-header) :is(.sw-header-cart.btn-brand-outline-secondary, .sw-header-offcanvas-search__categories .btn-outline-brand) {
  border-color: rgba(255, 255, 255, .68) !important;
  background: rgba(5, 9, 16, .2) !important;
  color: #fff !important;
}

.sw-header-overlay-page:not(.sw-header-overlay-past) > :is(.sw-micro-header, .sw-header) .sw-header-offcanvas-search__form .form-control {
  border-color: rgba(255, 255, 255, .56) !important;
  background: rgba(255, 255, 255, .94) !important;
  color: #111827 !important;
}

.sw-header-overlay-page:not(.sw-header-overlay-past) > :is(.sw-micro-header, .sw-header) :is(.sw-logo-image, .sw-header-logo-img)[src] {
  border-radius: var(--brand-radius-sm, .375rem);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .16);
  padding: .2rem .35rem;
}

.sw-header-overlay-page:not(.sw-header-overlay-past) > :is(.sw-micro-header, .sw-header) .offcanvas {
  --brand-navbar-link: var(--brand-body-text, #212529);
  --brand-navbar-link-hover: var(--brand-primary, #0d6efd);
  color: var(--brand-body-text, #212529) !important;
}

.sw-header-overlay-page:not(.sw-header-overlay-past) > :is(.sw-micro-header, .sw-header) .offcanvas .nav-link {
  color: var(--brand-body-text, #212529) !important;
}

@media (max-width: 991.98px) {
  .sw-header-overlay-page:not(.sw-header-overlay-past) > :is(.sw-micro-header, .sw-header) .navbar-collapse:is(.show, .collapsing) {
    margin-top: .75rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--brand-radius-md, .75rem);
    background: rgba(5, 9, 16, .9);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
    padding: .8rem 1rem;
    backdrop-filter: blur(14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sw-header-overlay-page > :is(.sw-micro-header, .sw-header) {
    transition: none;
  }
}
