@import '../../../../scss/styles.scss';

html[data-theme='light'] {
  .slash-menu-popup {
    @include shadow-m;
  }
}

.slash-menu-popup {
  background: var(--color-base-0);
  width: 200px;
  color: var(--color-base-800);
  border-radius: 4px;
  list-style: none;
  font-family: var(--font-body);
  max-height: 300px;
  overflow-y: auto;
  z-index: 10;
  position: absolute;

  &__group {
    padding-bottom: 8px;
  }

  &__group-title {
    padding-left: 10px;
    color: var(--color-base-600);
    font-size: 10px;
  }

  &__item {
    all: unset;
    padding-left: 12px;
    font-size: 13px;
    box-sizing: border-box;
    background: none;
    border: none;
    color: var(--color-base-900);
    display: flex;
    align-items: center;
    height: 30px;
    width: 100%;
    cursor: pointer;

    &--selected {
      background: var(--color-base-100);
    }

    &-text {
      margin-left: 6px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    .icon {
      color: var(--color-base-500);
      min-width: fit-content;
    }
  }
}
