/* Site audit fixes: accessibility and mobile overlay coordination. */
.site-audit-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.popup-dialog-mask .close-icon:focus-visible,
.policy-bottom-bar .ck-button:focus-visible,
.popup-dialog-mask [role="button"]:focus-visible {
  outline: 3px solid currentColor !important;
  outline-offset: 3px !important;
}

.policy-bottom-bar button.ck-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  font-family: inherit;
}

@media (max-width: 767px) {
  .popup-dialog-mask.show:not(.is-slide-in) {
    align-items: flex-end !important;
    padding: 12px !important;
    background: rgba(15, 23, 42, 0.28) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .popup-dialog-mask.show:not(.is-slide-in) .custom-class-popup-8,
  .popup-dialog-mask.show:not(.is-slide-in) .custom-class-popup-10 {
    width: min(100%, 520px) !important;
    max-width: 100% !important;
    max-height: 64dvh !important;
  }

  .popup-dialog-mask.show:not(.is-slide-in) .popup-content {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 64dvh !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .popup-dialog-mask .custom-class-popup-8 .subscription-before .left-box {
    height: 132px !important;
    min-height: 132px !important;
  }

  .popup-dialog-mask .custom-class-popup-8 .subscription-before .right-box {
    padding: 30px 22px 24px !important;
  }

  .policy-bottom-bar:not(.hidden) {
    max-height: 34dvh;
    overflow-y: auto;
    padding: 12px 16px !important;
  }

  .policy-bottom-bar:not(.hidden) .style-msg {
    font-size: 14px !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
  }

  .policy-bottom-bar:not(.hidden) .style-button .ck-button {
    min-height: 44px;
  }

  /*
   * The chat and consent controls are independent plugin layers.
   * Keep them from occupying the same touch target while consent is visible.
   */
  html.site-cookie-visible #smartsupp-widget-container,
  html.site-cookie-visible #chat-application,
  html.site-cookie-visible [data-testid="widgetButtonFrame"],
  html.site-cookie-visible iframe[title*="chat" i] {
    bottom: min(36dvh, 250px) !important;
  }

  /* Do not display the consent prompt and a campaign modal simultaneously. */
  html.site-cookie-visible .popup-dialog-mask.show {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html:has(.policy-bottom-bar:not(.hidden)) .popup-dialog-mask.show {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Quick-view controls are discoverable on desktop without covering mobile imagery. */
  .f-product-quickview-button,
  .f-product-card__quick-view {
    display: none !important;
  }
}
