@import '~antd/es/select/style/index.less';
@import '../variable.less';

@select-prefix-cls: ~'@{ant-prefix}-select';
@icon-prefix-cls: ~'@{ant-prefix}-icon';

.@{select-prefix-cls} {
  &:not(&-disabled):hover &-selector {
    border-color: @text-color-primary;
  }
  &-focused:not(&-disabled)&-multiple &-selector,
  &-focused:not(&-disabled)&-single:not(&-customize-input) &-selector {
    box-shadow: none;
  }

  &-arrow {
    width: @icon-size !important;
    height: @icon-size !important;
    margin-top: -@icon-size / 2 !important;

    .@{icon-prefix-cls} {
      vertical-align: top;
      transition: transform 0.3s;

      > svg {
        vertical-align: top;
      }

      // .@{select-prefix-cls}-open &.@{icon-prefix-cls}-caret-down {
      //   transform: rotate(180deg);
      // }
    }
  }

  &-not-found-content {
    display: @select-not-found-content-display;
    flex-direction: @select-not-found-content-flex-direction;
    align-items: @select-not-found-content-align-items;
    margin: @select-not-found-content-margin;
  }
}

// 单选
.@{select-prefix-cls}-single {
  &:not(.@{select-prefix-cls}-customize-input) {
    .@{select-prefix-cls}-selector {
      padding: 0 @select-single-padding-right 0 @input-padding-horizontal;
    }
  }
  &.@{select-prefix-cls}-show-arrow .@{select-prefix-cls}-selection-item {
    padding-right: 24px;
  }
}
