$bg-item-hover-color: var(--user-header-bg-color, var(--header-panel-color-bg-hover));
$item-text-color: var(--header-panel-color);

.menu__item.menu {
  cursor: pointer;

  &.text {
    padding: 7px 10px;

    font-size: 14px;
    font-weight: 500;
    color: $item-text-color;

    border-radius: 2px;

    &:hover {
      background-color: $bg-item-hover-color;
    }
  }

  &.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    height: 52px;

    line-height: 160%;
    color: var(--main-menu-icon-color);
    text-decoration: none;

    &.active {
      position: relative;
      padding: 0 20px;
      background: #2222220f;
    }

    .sub__title {
      margin-top: -8px;
      font-family: var(--bmenu-item-font);
      font-size: 10px;
      white-space: pre-line;

      &.line-height {
        margin-top: -3px;
        line-height: 1;
      }
    }
  }
}

.menu:hover .animation-hide {
  animation: show-caption 0.01s 0.01s 1;
  animation-fill-mode: both;
  animation-delay: 0.5s;
}

.animation-hide {
  opacity: 0;
}

.overlay-item {
  min-width: 320px;
  background: var(--color-gray-fff);
  border-radius: 3px;
  box-shadow:
    rgb(78 78 78) 0 4px 8px -2px,
    rgb(9 30 66 / 31%) 0 0 1px 0;
}
