// ========================= Input =========================
.@{input-prefix-cls}-clear-icon {
  margin: 0 @input-affix-margin;
  color: @disabled-color !important;
  font-size: @font-size-sm;
  vertical-align: -1 * @hd;
  // https://github.com/ant-design/ant-design/pull/18151
  // https://codesandbox.io/s/wizardly-sun-u10br
  cursor: pointer;
  transition: color 0.3s;

  &:hover {
    color: #00000073 !important;
  }

  &:active {
    color: @text-color;
  }

  &-hidden {
    visibility: hidden;
  }

  &:last-child {
    margin-right: 0;
  }
}

// ======================= TextArea ========================
.@{input-prefix-cls}-affix-wrapper-textarea-with-clear-btn {
  padding: 0 !important;
  border: 0 !important;

  .@{input-prefix-cls}-clear-icon {
    position: absolute;
    top: 8 * @hd;
    right: 8 * @hd;
    z-index: 1;
  }
}
