/* mega-menu/src/scss/widget.scss */
.elementor-element:has(.decklopedia-mega-menu),
.elementor-widget-container:has(.decklopedia-mega-menu),
.elementor-widget-mega_menu_widget,
.elementor-location-header {
  position: static;
  z-index: 1;
}
body.nav-open {
  overflow: hidden;
  height: 100vh;
  position: fixed;
  width: 100%;
}
.decklopedia-mega-menu {
  position: absolute;
  top: 0;
  width: 100vw;
  margin: 0 -16px;
  display: none;
  background: #fff;
  z-index: 9999;
}
@media (min-width: 1024px) {
  .decklopedia-mega-menu {
    position: static;
    width: 100%;
    height: auto;
    margin: 0;
    display: flex;
  }
}
.decklopedia-mega-menu.is-visible {
  display: flex;
  flex-flow: column;
  gap: 16px;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.decklopedia-mega-menu .mobile-header {
  padding: 12px 24px;
  background-color: #f1f1f1;
  border-bottom: 1px solid #cccccc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 60px;
}
@media (min-width: 1024px) {
  .decklopedia-mega-menu .mobile-header {
    display: none;
  }
}
.decklopedia-mega-menu .mobile-header .elementor-button {
  font-family: "Roboto Flex", Sans-serif;
  font-weight: 600;
  background-color: var(--e-global-color-primary, #cc1919);
  padding: 11px 16px;
  font-size: 14px;
  color: #fff;
}
.decklopedia-mega-menu .mobile-header .elementor-button:hover {
  background-color: var(--e-global-color-primary, #cc1919);
  color: #fff;
}
.decklopedia-mega-menu-container {
  position: relative;
}
@media (min-width: 1024px) {
  .decklopedia-mega-menu-container {
    position: static;
  }
}
.decklopedia-mega-menu .elementor-widget-heading {
  margin-right: auto;
}
.decklopedia-mega-menu .add-deck {
  padding: 0 16px;
}
@media (min-width: 1024px) {
  .decklopedia-mega-menu .add-deck {
    display: none;
  }
}
.decklopedia-mega-menu .add-deck .elementor-size-lg {
  width: 100%;
}
.decklopedia-mega-menu .add-deck .elementor-button {
  font-family: "Roboto Flex", Sans-serif;
  font-weight: 600;
  background-color: var(--e-global-color-accent);
}
.decklopedia-mega-menu:has(.is-open) .add-deck {
  display: none;
}
.decklopedia-mega-menu-list {
  margin: 0;
  padding: 0 24px;
  list-style-type: none;
  display: flex;
  flex-flow: column;
}
@media (min-width: 992px) {
  .decklopedia-mega-menu-list {
    flex-flow: row;
    padding: 0;
    gap: 2rem;
  }
}
.decklopedia-mega-menu-list .menu-item > a,
.decklopedia-mega-menu-list .menu-item > a:link {
  color: var(--e-global-color-5abb337, #0d0d0d);
  font-family: var(--e-global-typography-primary-font-family, "Poppins");
  font-weight: 600;
  font-size: 1rem;
}
.decklopedia-mega-menu-list .menu-item {
  display: flex;
  padding: 16px 0;
  border-bottom: 1px solid #cccccc;
  flex-flow: row wrap;
  justify-content: space-between;
}
@media (min-width: 1024px) {
  .decklopedia-mega-menu-list .menu-item {
    padding: 0;
    border-bottom: none;
  }
}
@media (min-width: 1024px) {
  .decklopedia-mega-menu-list .menu-item .mobile-icn {
    display: none;
  }
}
.decklopedia-mega-menu-list .menu-item.active,
.decklopedia-mega-menu-list .menu-item:hover {
  position: static;
}
.decklopedia-mega-menu-list .menu-item.active > a,
.decklopedia-mega-menu-list .menu-item:hover > a {
  color: var(--e-global-color-primary, #cc1919);
}
.decklopedia-mega-dropdown {
  width: 100vw;
  background-color: var(--e-a-color-white, #fff);
  left: 9999999px;
  overflow: hidden;
  transition: left 0.3s ease;
  position: absolute;
  top: 0;
  background: #fff;
  z-index: 999;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.3);
  clip-path: inset(0 0 -24px 0);
}
.decklopedia-mega-dropdown.is-open {
  left: 0;
}
@media (min-width: 992px) {
  .decklopedia-mega-dropdown {
    top: 100%;
    left: 0;
    display: none;
  }
}
@media (min-width: 992px) {
  .menu-item:hover .decklopedia-mega-dropdown,
  .decklopedia-mega-dropdown.is-open {
    display: block;
  }
}
