/* Match the theme's compact header, including phones in landscape. */
.wm-bigm-button,
.wm-mobile-links {
  display: none;
}

@media (max-width: 1239px) {
  /* The theme keeps this wrapper static. Contain absolute positioning in the cart's own box. */
  #Top_bar .top_bar_right_wrapper.wm-bigm-tools {
    contain: layout;
  }

  #Top_bar .wm-bigm-tools > .wm-bigm-button {
    all: unset;
    box-sizing: border-box;
    position: absolute;
    top: calc(100% + 3px);
    right: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border-radius: 50%;
  }

  #Top_bar .wm-bigm-button > span {
    display: block;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    border: 2px solid #f5c060;
    border-radius: 50% 50% 50% 5px;
    background: #fff2dc;
    box-shadow: 0 2px 8px rgb(8 32 58 / 20%);
  }

  #Top_bar .wm-bigm-button img {
    position: absolute;
    display: block;
    width: 220%;
    max-width: none;
    height: auto;
    left: -60%;
    top: -2%;
  }

  #Top_bar .wm-bigm-button:focus-visible {
    outline: 3px solid #f5c060;
    outline-offset: 1px;
  }

  /* On interior pages the second button belongs inside the header band. */
  body:not(:has(#wm-video-hero)) #Header.wm-bigm-header,
  body:not(:has(#wm-video-hero)) #Header.wm-bigm-header #Top_bar {
    min-height: 110px;
  }

  #Footer .wm-mobile-links {
    clear: both;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 16px;
    margin: 8px auto 0;
    padding: 0 4px;
  }

  #Footer .wm-mobile-links > :is(button, a) {
    all: unset;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 44px;
    color: inherit;
    font: inherit;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }

  #Footer .wm-mobile-links > :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }

  #Footer .wm-mobile-links > [hidden],
  html.wm-footer-top #back_to_top.sticky,
  html.wm-footer-cookies #CookiebotWidget:not(.CookiebotWidget-open) {
    display: none !important;
  }
}

.wm-recaptcha-note {
  display: none;
}

@media (max-width: 1239px) {
  /* Replace only Google's floating badge, and only after the footer notice is in place. */
  body:has(#Footer #wm-recaptcha-site-note) .grecaptcha-badge:is([data-style="bottomright"], [data-style="bottomleft"]) {
    visibility: hidden !important;
  }

  body:has(#Footer #wm-recaptcha-site-note):has(.grecaptcha-badge:is([data-style="bottomright"], [data-style="bottomleft"])) .wm-recaptcha-note {
    display: block;
    margin: 8px 0 12px;
    color: inherit;
    font-size: 13px;
    line-height: 1.5;
  }

  #Footer #wm-recaptcha-site-note {
    clear: both;
    text-align: center;
  }
}
