/* v1.0.0 — Homepage-only, transient overlay visibility.
   The original main Bridge homepage intentionally puts the floating header at z-index:999,
   while its sibling cart and search layers are at z-index:100 and 260.
   Only when the mini cart or search dialog is open, visually hide that header.
   It returns to its original design/scroll behavior as soon as the popup closes. */
body.rd-home-overlay-active #rd-bridge-root > #rd-bridge-header,
body.rd-home-overlay-active #rd-bridge-root > .site-header[data-rd-header] {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Keep the existing popups in the normal viewport, above the dimming backdrop.
   Their size, location, padding, animations, and styling are not changed. */
body.rd-home-overlay-active #rd-bridge-root > .cart-backdrop {
    z-index: 1090 !important;
}
body.rd-home-overlay-active #rd-bridge-root > .cart-drawer {
    z-index: 1100 !important;
}
body.rd-home-overlay-active #rd-bridge-root > .search-overlay.is-open {
    z-index: 1110 !important;
}
