@use "@befe/brick-style/src/themes/base";
@use "@befe/brick-style/src/themes/menu";
@use "./menu-item";

.brick-menu-submenu {
  margin: 0;
  padding: 0;

  &-type-group {
    > .brick-menu-item-content {
      &,
      &:focus,
      &:hover,
      &:active,
      .brick-menu-item-prefix,
      .brick-menu-item-suffix {
        color: menu.$menu-group-item-text-color;
      }

      &,
      &:focus,
      &:hover,
      &:active {
        cursor: default;
        background: none;
      }
    }
  }

  &-selected:not(&-disabled) {
    @include menu-item.selectedMenuItemContent()
  }

  &-selected:not(.brick-menu-submenu-type-group),
  &-has-descendant-selected:not(.brick-menu-submenu-type-group) {
    > .brick-menu-item-content {
      &,
      a,
      .brick-menu-item-prefix,
      .brick-menu-item-suffix {
        color: menu.$menu-item-selected-text-color;
      }
    }
  }
}
