@inputScope: ~'@{prefixCls}Input';
.@{inputScope} {
  display: inline-block;
  // max-width: 216px;
  &-xs {
    width: @input-xs-width;
    max-width: @input-xs-width;
  }
  &-x {
    width: @input-x-width;
    max-width: @input-x-width;
  }
  &-md {
    width: @input-md-width;
    max-width: @input-md-width;
  }
  &-l {
    width: @input-l-width;
    max-width: @input-l-width;
  }
  &-xl {
    width: @input-xl-width;
    max-width: @input-xl-width;
  }
}
// .ant-input {
//   min-width: 216px;
// }
.ant-input, .ant-input-affix-wrapper {
  border-radius: @border-r-3;
  border-color: @border-color-base;
  padding: 4px 8px;
  color: @heading-color;
  &:hover:not(.ant-input-affix-wrapper-disabled,.ant-input-disabled), 
  &:focus:not(.ant-input-affix-wrapper-disabled), 
  &:active:not(.ant-input-affix-wrapper-disabled) {
    border-color: @primary-color;
  }
  &.ant-input-affix-wrapper-focused {
    border-color: @primary-color;
  }
  &.isSuccess {
    border-color: @success-color;
    // &:hover, &:focus, &:active {
    // }
    &.ant-input-affix-wrapper-focused {
      box-shadow: 0 0 0 2px fade(@success-color, 20%);
    }
    &:focus {
      box-shadow: 0 0 0 2px fade(@success-color, 20%);
    }
  }
  &.isWarning {
    border-color: @warning-color;
    // &:hover, &:focus, &:active {
    // }
    &.ant-input-affix-wrapper-focused {
      box-shadow: 0 0 0 2px fade(@warning-color, 20%);
    }
    &:focus {
      box-shadow: 0 0 0 2px fade(@warning-color, 20%);
    }
  }
  &.isError {
    border-color: @error-color;
    // &:hover, &:focus, &:active {
    // }
    &.ant-input-affix-wrapper-focused {
      box-shadow: 0 0 0 2px fade(@error-color, 20%);
    }
    &:focus {
      box-shadow: 0 0 0 2px fade(@error-color, 20%);
    }
  }
  .ant-input-prefix {
    margin-right: 16px;
  }
  &[disabled] {
    background: @disabled-bg-color;
  }
  .ant-input-suffix {
    font-size: 14px;
    font-weight: 400;
    color: @text-color-secondary;
    .anticon-close-circle {
      font-size: 12px;
      &:hover {
        color: @text-color;
      }
    }
  }
  .ant-input-textarea-clear-icon {
    color: @text-color-secondary;
    &:hover {
      color: @text-color;
    }
  }
}
.ant-input-textarea-show-count {
  position: relative;
  &::after {
    position: absolute;
    right: 8px;
    bottom: 1px;
    font-size: 12px;
    font-weight: 400;
    line-height: 22px;
    color: @text-color-secondary;
    width: calc(100% - 16px);
    background: @white-color;
  }
  .ant-input {
    padding-bottom: 24px;
    min-height: 46px;
  }
}
.ant-input-textarea {
  textarea {
    padding-right: 0;
  }
  // textarea::-webkit-scrollbar {
  //   width: 6px;
  //   height: 6px;
  // }
  // textarea::-webkit-scrollbar-thumb {
  //   margin-right: 2px;
  //   width: 10px;
  //   border-radius: 4px;
  //   // background: #000;
  //   border-right: 3px solid #fff;
  //   border-left: 3px solid #fff;
  // }
}
.ant-input-group-addon {
  font-size: 14px;
  font-weight: 400;
  color: @heading-color;
  background: @icon-hover-bgColor;
  padding: 0 12px;
}
.ant-input-clear-icon {
  font-size: 14px;
  color: @text-color-secondary;
  &:hover {
    color: @text-color-secondary;
  }
}
.ant-input-affix-wrapper {
  padding: 4px 4px 4px 8px;
  border-radius: @border-r-3;
  // &:hover, &:focus, &:active {
  //   border-color: @primary-color;
  // }
}
.input-describe {
  font-size: 12px;
  font-weight: 400;
  color: @text-color-secondary;
  line-height: 20px;
}
.ant-input-lg {
  font-size: 16px;
  font-weight: 400;
  padding: 6px 12px;
  height: 40px;
}

.ant-input-sm {
  font-size: 12px;
  font-weight: 400;
  padding: 2px 12px;
  font-size: 12px;
}
.ant-input-textarea-clear-icon {
  color: @text-color-secondary;
  // margin-right: 2px;
  &:hover {
    color: @text-color;
  }
}
.ant-form-item .ant-input-textarea-show-count::after {
  margin-bottom: 0;
}