.neve-mega-menu > .sub-menu {
  cursor: default;
  width: var(--container);
  max-width: 100%;
}

.neve-mega-menu .sub-menu .sub-menu {
  max-height: none;
}

.neve-mega-menu .neve-mm-col {
  cursor: default;
  flex: 1;
}

.neve-mega-menu .neve-mm-col .sub-menu .sub-menu {
  right: 0;
  top: 100%;
}

.neve-mega-menu li.neve-mm-divider {
  height: 1px;
  margin: 10px auto;
  width: 100%;
  background-color: currentColor;
}

.neve-mega-menu .neve-mm-heading > span {
  cursor: default;
}

.neve-mm-description {
  padding: 0 0 15px;
  text-transform: none;
  font-size: 0.8em;
  display: flex;
}

.neve-mm-heading > span,
.neve-mm-heading > a {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1em;
  display: flex;
  align-items: center;
}

.header-menu-sidebar-inner .neve-mega-menu .neve-mm-col > .sub-menu .sub-menu {
  max-height: 0;
}

.header-menu-sidebar-inner .neve-mega-menu .neve-mm-col > .sub-menu .sub-menu.dropdown-open {
  max-height: 3000px;
}

.header--row .builder-item.has-nav {
  position: static;
}

@media (min-width: 960px) {
  .header--row .nv-nav-wrap .primary-menu-ul .neve-mega-menu > .sub-menu {
    right: 50% !important;
    left: unset !important;
    transform: translateX(50%);
    position: absolute;
    padding: 20px 10px;
    top: auto;
    display: none;
  }
  .header--row .nv-nav-wrap .primary-menu-ul .neve-mega-menu > .sub-menu:not(.dropdown-open) {
    pointer-events: none;
  }
  .header--row .nv-nav-wrap .primary-menu-ul .neve-mega-menu:hover > .sub-menu,
  .header--row .nv-nav-wrap .primary-menu-ul .neve-mega-menu:focus > .sub-menu,
  .header--row .nv-nav-wrap .primary-menu-ul .neve-mega-menu:focus-within > .sub-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }
  .header--row .nv-nav-wrap .primary-menu-ul .neve-mega-menu {
    position: unset;
  }
  .header--row .nv-nav-wrap .primary-menu-ul .neve-mega-menu .neve-mm-col > .sub-menu {
    visibility: visible;
    position: relative;
    right: initial;
    left: initial;
    opacity: 1;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    text-align: right;
    width: 100%;
  }
  .header--row .nv-nav-wrap .primary-menu-ul .neve-mega-menu .neve-mm-col > .sub-menu a {
    white-space: normal;
  }
  .header--row .nv-nav-wrap .primary-menu-ul .neve-mega-menu .neve-mm-col > .sub-menu li:not(.neve-mm-divider) {
    border: 0;
  }
  .header--row .nv-nav-wrap .primary-menu-ul .neve-mega-menu .neve-mm-col {
    padding: 0 10px;
    align-items: flex-start;
    border: 0;
  }
  .header--row .nv-nav-wrap .primary-menu-ul .neve-mm-heading > span {
    padding: 10px 20px;
  }
  .header--row .nv-nav-wrap .primary-menu-ul .neve-mm-description {
    padding: 0 20px 10px;
  }
  .header--row .nv-nav-wrap .primary-menu-ul .neve-mega-menu .neve-mm-col:not(:last-child) {
    border-left: 1px solid currentColor;
  }
}