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

@layer payload-default {
  .slash-menu-popup {
    background: var(--theme-input-bg);
    width: 200px;
    color: var(--theme-elevation-800);
    border-radius: $style-radius-m;
    list-style: none;
    font-family: var(--font-body);
    max-height: 300px;
    overflow-y: auto;
    z-index: 10;
    position: absolute;
    box-shadow:
      0px 1px 2px 1px rgba(0, 0, 0, 0.1),
      0px 4px 16px 0px rgba(0, 0, 0, 0.2),
      0px -4px 8px 0px rgba(0, 0, 0, 0.1);

    &__group {
      padding-bottom: 8px;
    }

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

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

      &--selected {
        background: var(--theme-elevation-100);
      }

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

      .icon {
        color: var(--theme-elevation-500);
      }
    }
  }

  html[data-theme='light'] {
    .slash-menu-popup {
      box-shadow:
        0px 1px 2px 1px rgba(0, 0, 0, 0.05),
        0px 4px 8px 0px rgba(0, 0, 0, 0.1);
    }
  }
}
