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

.attachment-picker {
  flex: 0 0 auto;

  &__single-button {
    cursor: pointer;
    padding: 4px 0;
    border-radius: 8px;

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

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

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

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

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

  &__popup {
    flex-direction: column;
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    padding: 4px 0;
    width: 144px;

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

    &-button {
      border: none;
      display: flex;
      flex-direction: row;
      align-items: center;
      padding: 4px 8px;
      cursor: pointer;
      gap: 4px;
      font-size: 14px;
      height: 34px;
      transition: all 0.2s ease;
      user-select: none;
      justify-content: flex-start;

      @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);
        }
      }

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

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

      &-icon {
        padding: 4px;
        border-radius: 4px;
        cursor: pointer;
        overflow: hidden;
      }
    }
  }

  &--expanded {
    flex-direction: row;
  }
}
