// core
.p-tieredmenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-tieredmenu .p-submenu-list {
  position: absolute;
  min-width: 100%;
  z-index: 1;
  display: none;
}

.p-tieredmenu .p-menuitem-link {
  cursor: pointer;
  display: flex;
  align-items: center;
  text-decoration: none;
  overflow: hidden;
  position: relative;
}

.p-tieredmenu .p-menuitem-text {
  line-height: 1;
}

.p-tieredmenu .p-menuitem {
  position: relative;
}

.p-tieredmenu .p-menuitem-link .p-submenu-icon {
  margin-left: auto;
}

.p-tieredmenu .p-menuitem-active > .p-submenu-list {
  display: block;
  left: 100%;
  top: 0;
}

.p-tieredmenu-enter-from,
.p-tieredmenu-leave-active {
  opacity: 0;
}

.p-tieredmenu-enter-active {
  transition: opacity 250ms;
}

// theme
.p-tieredmenu {
  padding: $verticalMenuPadding;
  background: $menuBg;
  color: $menuTextColor;
  border: $menuBorder;
  border-radius: $borderRadius;
  min-width: $menuWidth;

  &.p-tieredmenu-overlay {
    background: $overlayMenuBg;
    border: $overlayMenuBorder;
    box-shadow: $overlayMenuShadow;
  }

  .p-tieredmenu-root-list {
    outline: 0 none;
  }

  .p-submenu-list {
    padding: $verticalMenuPadding;
    background: $overlayMenuBg;
    border: $overlayMenuBorder;
    box-shadow: $overlayMenuShadow;
    border-radius: $borderRadius;
  }

  .p-menuitem {
    @include menuitem();
  }

  .p-menuitem-separator {
    border-top: $divider;
    margin: $menuSeparatorMargin;
  }

  .p-submenu-icon {
    font-size: $menuitemSubmenuIconFontSize;

    &.p-icon {
      width: $menuitemSubmenuIconFontSize;
      height: $menuitemSubmenuIconFontSize;
    }
  }
}
