/**
 * 自定义 select 样式，为 a-select 添加 custom-select 类
 */
.custom-form .ant-form-item .ant-select,
.custom-form-item.ant-form-item .ant-select,
.custom-select {
  border-radius: 4px;

  &.ant-select .ant-select-selector {
    padding-right: 12px;
  }

  &.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {
    border-color: $yili-default-color;
    box-shadow: none;
    outline: none;
  }

  &.ant-select:not(.ant-select-customize-input) .ant-select-selector {
    border-radius: 4px;
  }

  .ant-select-arrow .ant-select-suffix {
    &::after {
      content: '';
      display: inline-block;
      width: 12px;
      height: 10px;
      background-image: url('~@/assets/img/customize/arrow_down_black.png');
      background-position: center center;
      background-size: 100% 100%;
      background-repeat: no-repeat;
    }

    svg {
      display: none;
    }
  }

  &.ant-select-disabled {
    .ant-select-selection-placeholder {
      color: #bfbfbf;
      font-weight: 400;
      font-size: 14px;
    }

    .ant-select-selection-item {
      color: #8c8c8c;
    }

    .ant-select-arrow .ant-select-suffix {
      &::after {
        background-image: url('~@/assets/img/customize/arrow_down_gray.png');
      }
    }
  }

  /**
   * 多选
   */
  .ant-select-selection-overflow-item .ant-select-selection-item {
    border-color: #f5f5f5;
    border-radius: 4px;

    .ant-select-selection-item-content {
      color: #262626;
    }

    .ant-select-selection-item-remove {
      display: inline-flex;
      align-items: center;
      justify-content: center;

      .anticon-close {
        display: inline-flex;
        flex: none;
        align-items: center;
        justify-content: center;
        width: 12px;
        height: 12px;
        border-radius: 12px;
        background-color: #bfbfbf;
        line-height: normal;

        svg {
          font-size: 7px;

          path {
            fill: #f0f0f0;
            stroke: #f0f0f0;
          }
        }

        &:hover {
          background-color: #8c8c8c;
        }
      }
    }
  }
}
