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

.message-action-dropdown {
  flex: 0 0 auto;

  &__content {
    flex-direction: column;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    width: 126px;
    padding: 4px 0;

    @include theme() {
      background-color: get(dropdown-color-default);
    }
  }
}

.message-action-dropdown__item {
  border: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 34px;
  padding: 4px 8px;
  cursor: pointer;
  gap: 4px;
  font-size: 14px;
  transition: background-color 0.2s ease;
  outline: none;

  &:focus,
  &:focus-visible,
  &:focus-within {
    outline: none;
    box-shadow: none;
  }

  @include theme() {
    color: get(text-color-primary);
    background-color: get(dropdown-color-default);

    &:hover {
      background-color: get(dropdown-color-hover);
    }

    &:active {
      background-color: get(dropdown-color-active);
    }
  }

  &.message-action-dropdown__item--delete {
    color: var(--uikit-text-color-error);
  }

  &-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;

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