/* V2.1 fixes over the frozen V2 design. No commerce values or handlers. */

/* Reserve the compact menu control and suppress full-flow navigation before
 * its first paint. No-JS leaves this HTML class absent and navigation visible.
 */
@media (max-width: 1023px) {
  html.esp-nav-preboot-v21 body.esp-redesign.esp-fidelity-v21 .esp-header__main > .esp-nav-panel {
    position: absolute !important;
    inset-block-start: 0;
    inset-inline-start: 0;
    display: block !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0;
    margin: 0;
    padding: 0 !important;
    overflow: hidden !important;
    clip-path: inset(50%);
    visibility: hidden;
    pointer-events: none;
  }

  html.esp-nav-preboot-v21 body.esp-redesign.esp-fidelity-v21 .esp-header__main > .esp-nav-panel * {
    visibility: hidden !important;
  }

  html.esp-nav-preboot-v21 body.esp-redesign.esp-fidelity-v21 .esp-header__main > .esp-menu-toggle[hidden] {
    display: inline-flex !important;
    visibility: hidden;
    pointer-events: none;
  }

  /* MMM showMobileMenu tests jQuery :visible on this bar. display:none breaks
   * its native API. Retain a 1px layout box, while clipping/opacity hide it.
   * The controller adds inert/aria-hidden, restoring both for native fallback.
   */
  body.esp-redesign.esp-fidelity-v2.esp-fidelity-v21 .esp-header__main:has(> .esp-menu-toggle:not([hidden])) > .esp-nav-panel .mega-menu-toggle {
    position: absolute !important;
    inset-block-start: 0;
    inset-inline-start: 0;
    display: block !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0;
    clip-path: inset(50%);
    opacity: 0;
    pointer-events: none;
  }
}

/* The parent colors bdi directly, so an inherited outer .price color cannot
 * fix its measured 2.36:1 gold-on-cream contrast. Keep native values unchanged.
 */
body.esp-redesign.esp-fidelity-v21 .woocommerce .price :where(bdi, .woocommerce-Price-amount),
body.esp-redesign.esp-fidelity-v21 .esp-product-card .price :where(bdi, .woocommerce-Price-amount) {
  color: var(--esp-ink) !important;
}

body.esp-redesign.esp-fidelity-v21 .woocommerce .price del,
body.esp-redesign.esp-fidelity-v21 .esp-product-card .price del {
  opacity: 1;
}

body.esp-redesign.esp-fidelity-v21 .woocommerce .price del :where(bdi, .woocommerce-Price-amount),
body.esp-redesign.esp-fidelity-v21 .esp-product-card .price del :where(bdi, .woocommerce-Price-amount) {
  color: var(--esp-muted) !important;
}

body.esp-redesign.esp-fidelity-v21 .esp-native-action-label {
  display: block;
  margin: 0;
  font: inherit;
  line-height: inherit;
}

/* Genuine header-logo fallback remains legible without recoloring brand art. */
body.esp-redesign.esp-fidelity-v21 .esp-footer__brand--custom-logo-fallback .custom-logo-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: var(--esp-radius);
  background: var(--esp-paper);
}

body.esp-redesign.esp-fidelity-v21 .esp-footer__brand--custom-logo-fallback .custom-logo-link:focus-visible {
  outline-color: var(--esp-gold-on-dark);
}
