/* Astra still owns the menu position and keyboard-open state. */
body.ast-desktop #ast-hf-menu-1 > #menu-item-1207 > .astra-full-megamenu-wrapper {
  --products-menu-duration: 200ms;
  display: block !important;
  background-color: var(--mirror-blue, #2251a6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity var(--products-menu-duration) ease-out,
    transform var(--products-menu-duration) ease-out,
    visibility 0s linear var(--products-menu-duration);
}

/* Keep the content available to paint while the wrapper fades out. */
body.ast-desktop #ast-hf-menu-1 > #menu-item-1207 > .astra-full-megamenu-wrapper > .astra-megamenu {
  display: flex !important;
  background-color: transparent;
  opacity: 1;
  visibility: inherit;
}

body.ast-desktop #ast-hf-menu-1 > #menu-item-1207 > .astra-full-megamenu-wrapper > .astra-megamenu > .menu-item {
  display: block;
}

body.ast-desktop #ast-hf-menu-1 > #menu-item-1207:hover > .astra-full-megamenu-wrapper,
body.ast-desktop #ast-hf-menu-1 > #menu-item-1207 > .astra-megamenu-wrapper-focus {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  body.ast-desktop #ast-hf-menu-1 > #menu-item-1207 > .astra-full-megamenu-wrapper {
    --products-menu-duration: 0s;
    transform: none;
  }
}

/* Keep the current category visible across both catalog navigation widgets. */
body.elementor-kit-5 :is(#menu-products-category, #menu-1-c517c2d, #menu-2-c517c2d, #menu-item-1207 .astra-megamenu)
  > li:is(.current-menu-item, :has(> a[aria-current])) {
  background-color: #e7f0ff;
}

body.elementor-kit-5 :is(#menu-products-category, #menu-1-c517c2d, #menu-2-c517c2d, #menu-item-1207 .astra-megamenu)
  > li:is(.current-menu-item, :has(> a[aria-current])) > a {
  width: 100%;
  background-color: #e7f0ff !important;
  color: var(--mirror-blue-hover, #173b7a) !important;
  font-weight: 700;
}

body.elementor-kit-5 #menu-products-category > li:is(.current-menu-item, :has(> a[aria-current])) > a {
  box-shadow: inset 3px 0 var(--mirror-blue, #2251a6);
}

body.elementor-kit-5 #menu-2-c517c2d > .menu-item > a {
  min-height: 44px;
  align-items: center;
}
