/* The fixed anchor must not qualify as a full-width Safari chrome colour source.
   Its visible child keeps the original viewport-relative menu geometry. */
@media (max-width: 575px) {
  div[class*="_header_wrapper_"]:has([class*="_mobileBrandSlot_"]) {
    width: 0;
    left: 0;
    right: auto;
    background: transparent;
    border-bottom-color: transparent;
    pointer-events: none;
  }

  div[class*="_header_wrapper_"]:has([class*="_mobileBrandSlot_"]) > * {
    pointer-events: auto;
  }

  div[class*="_header_wrapper_"]:has([class*="_mobileBrandSlot_"]) > header {
    width: 100vw;
    margin-inline: 0;
    background-color: #fff;
  }

  div[class*="_header_wrapper_"][class*="_isScrolled_"]:has([class*="_mobileBrandSlot_"]) > header {
    width: calc(100vw - var(--container-padding));
    margin-left: calc(var(--container-padding) / 2);
  }

  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    div[class*="_header_wrapper_"]:has([class*="_mobileBrandSlot_"]) > header {
      background-color: rgba(255, 255, 255, 0.67);
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
    }
  }
}

@media (max-width: 575px) and (prefers-reduced-transparency: reduce),
       (max-width: 575px) and (prefers-contrast: more),
       (max-width: 575px) and (forced-colors: active) {
  div[class*="_header_wrapper_"]:has([class*="_mobileBrandSlot_"]) > header {
    background-color: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
