.MenuItem {
  width: 100%;
  background: none;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  display: flex;
  padding: 0.75rem 1rem;
  position: relative;
  overflow: hidden;
  line-height: 1.5rem;
  white-space: nowrap;
  color: var(--color-text);
  --ripple-color: rgba(0, 0, 0, 0.08);
  cursor: pointer;
  unicode-bidi: plaintext;

  @media (hover: hover) {
    &:hover,
    &:focus {
      background-color: var(--color-chat-hover);
      text-decoration: none;
      color: inherit;
    }
  }

  @media (max-width: 600px) {
    &:focus,
    &:hover,
    &:active {
      text-decoration: none;
      color: inherit;
    }

    &:active {
      background-color: var(--color-chat-hover);
    }
  }

  i {
    font-size: 1.5rem;
    margin-right: 2rem;
    color: var(--color-icon-secondary);
  }

  .menu-item-name {
    margin-right: 2rem;

    &.capitalize {
      text-transform: capitalize;
    }
  }

  &.disabled {
    opacity: 0.5 !important;
    cursor: default !important;
  }

  &.destructive {
    color: var(--color-error);

    i {
      color: inherit;
    }
  }

  &:not(.has-ripple):not(.disabled):not(.compact):active {
    background-color: var(--color-item-active);
    transition: none !important;
  }

  .Switcher, .menu-item-badge {
    margin-left: auto;
  }

  .menu-item-badge {
    margin-right: 0.25rem;
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: normal;
    line-height: normal;
  }

  &[dir="rtl"] {
    i {
      margin-left: 2rem;
      margin-right: 0;
    }

    .menu-item-name {
      margin-left: 2rem;
      margin-right: 0;
    }

    > .Switcher {
      margin-left: 0;
      margin-right: auto;
    }
  }

  &.compact {
    align-items: center;
    font-size: 0.875rem;
    margin: 0.125rem 0.25rem;
    padding: 0.25rem;
    border-radius: 0.375rem;
    width: auto;
    font-weight: 500;
    transform: scale(1);
    transition: 0.15s ease-in-out transform;

    i {
      max-width: 1.25rem;
      font-size: 1.25rem;
      margin-left: 0.5rem;
      margin-right: 1.25rem;

      &::before {
        max-width: 1.25rem;
      }
    }

    @media (hover: hover) {
      &:hover,
      &:focus,
      &:active {
        background: var(--color-background-compact-menu-hover);
        text-decoration: none;
      }

      &:active {
        transform: scale(0.98);
      }
    }
  }
}
