.mmz-mega {
  position: relative;
  display: inline-block;
}

.mmz-panel {
  position: relative;
  background: var(--e-global-color-primary);
}

.mmz-cols {
  display: block;
  padding: 0;
}

.mmz-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mmz-a {
  display: block;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  color: #111827;
}

.mmz-a:hover {
  background: var(--e-global-color-primary);
}

/* L1 column */
.mmz-l1 {
  white-space: nowrap;
  min-width: 200px;
  /*max-height: 60vh;*/
  overflow: auto;
  border: 1px solid #e5e7eb;
}

.mmz-l1 > .mmz-li-l1 {
  /* */
}

/* L2 flyout */
.mmz-level2 {
  position: absolute;
  top: 0;
  right: 100%;
  height: 100%;
  min-width: 200px;
  background: var(--e-global-color-primary);
  border: 1px solid #e5e7eb;
  display: none;
  /*max-height: 60vh;*/
}

.mmz-li-l1:hover > .mmz-level2 {
  display: block;
}

/* L3 flyout */
.mmz-level3 {
  position: absolute;
  top: 0;
  right: 100%;
  min-width: 200px;
  height: 100%;
  background: var(--e-global-color-primary);
  border: 1px solid #e5e7eb;
  display: none;
  /*max-height: 60vh;*/
}

.mmz-li-l2:hover > .mmz-level3 {
  display: block;
}

.mmz-a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mmz-icon-img img,
.mmz-icon-svg svg {
  width: 24px;
  height: 24px;
  display: block;
}

.mmz-icon-svg svg {
  vertical-align: middle;
  font-size: 24px;
}

/* open/closed indicator for items that have a submenu */
.mmz-caret {
  margin-inline-start: auto;
  display: inline-block;
  flex-shrink: 0;
  font-size: 10px;
  line-height: 1;
  transition: transform 0.2s ease;
  width: 10px;
  height: 10px;
}

.mmz-caret svg {
  fill: white;
}

.mmz-li-l1:hover > .mmz-a-l1 .mmz-caret,
.mmz-li-l2:hover > .mmz-a-l2 .mmz-caret {
  transform: rotate(180deg);
}

@media (max-width: 1024px) {
  .mmz-l1,
  .mmz-level2,
  .mmz-level3 {
    position: static;
    display: block;
    width: auto;
    border: none;
    max-height: none;
    overflow: visible;
  }
}