@use "@tencentcloud/uikit-base-component-react/dist/styles/theme/util" as *;

.emoji-picker {
  flex: 0 0 auto;

  &__icon {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;

    @include theme() {
      color: get(text-color-link);
    }

    &:hover {
      @include theme() {
        background-color: get(button-color-secondary-hover);
      }
    }

    &:active {
      @include theme() {
        background-color: get(button-color-secondary-active);
      }
    }

    &--disabled {
      cursor: not-allowed;
      opacity: 0.4;

      &:hover, &:active {
        background-color: transparent !important;
      }
    }
  }

  &__list {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 8px;
    width: 310px;
    border-radius: 16px;
    padding: 10px;

    @include theme() {
      background-color: get(dropdown-color-default);
      box-shadow: 0 0 10px 0 get(shadow-color);
    }

    &-item {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      cursor: pointer;
    }
  }
}
