.maxter-dim-overlay {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  display: none;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

.maxter-dim-overlay.is-active {
  display: block;
  opacity: 1;
  z-index: 99999;
}

.maxter-dim-overlay-active .ariane {
  z-index: 1 !important;
}

@media (min-width: 768px) {
  .maxter-nav__item:not(.is-open) > .maxter-nav__dropdown {
    transform: rotate(0deg) !important;
  }

  .maxter-nav__item:hover .maxter-nav__dropdown[aria-expanded="false"],
  .maxter-nav__item:focus-within .maxter-nav__dropdown[aria-expanded="false"] {
    transform: rotate(0deg) !important;
  }

  .maxter-nav__item:hover .maxter-nav__submenu,
  .maxter-nav__item:focus-within .maxter-nav__submenu {
    display: none !important;
  }

  .maxter-nav__item.is-open .maxter-nav__submenu {
    display: block !important;
  }

  .maxter-nav__item.is-open > .maxter-nav__link,
  .maxter-nav__item.is-open > .maxter-nav__dropdown {
    color: var(--mx-green-dark);
  }

}

.maxter-search.is-dim-active,
.maxter-search:focus-within,
.maxter-search-mobile.is-dim-active,
.maxter-search-mobile:focus-within,
#_mobile_ps_searchbar.is-dim-active,
#_mobile_ps_searchbar:focus-within,
.maxter-mobile-menu__search.is-dim-active,
.maxter-mobile-menu__search:focus-within {
  position: relative;
  z-index: 100001;
}

.maxter-search.is-dim-active .maxter-search__dropdown,
.maxter-search:focus-within .maxter-search__dropdown {
  z-index: 100002;
}

.maxter-mobile-menu.is-search-dim {
  position: fixed;
}

.maxter-mobile-menu.is-search-dim::after {
  content: "";
  position: absolute;
  top: var(--maxter-mobile-menu-dim-top, 0);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.72);
  pointer-events: auto;
}

.maxter-mobile-menu.is-search-dim .maxter-mobile-menu__head,
.maxter-mobile-menu.is-search-dim .maxter-mobile-menu__search {
  position: relative;
  z-index: 4;
}
