@import './var.less';

.@{input-number-prefix-cls}-wrapper {
  position: relative;
  display: flex;
  display: inline-block;
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 4px 11px;
  color: rgba(0, 0, 0, 0.85);
  font-size: 14px;
  line-height: 1.5715;
  background-color: #fff;
  background-image: none;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  transition: all 0.3s;

  &&-borderless {
    background-color: transparent;
    border: none;
    box-shadow: none;
  }

  input.@{ant-prefix}-input-number-input {
    padding: 0;
    border: none;
    outline: none;
  }
}

.@{input-number-prefix-cls} {
  &&-hide-step {
    .@{ant-prefix}-input-number-handler-wrap {
      display: none;
    }
  }

  &-suffix {
    display: flex;
    flex: none;
    align-items: center;
    margin-left: 4px;
  }

  &-clear-icon {
    margin: 0 4px;
    color: rgba(0, 0, 0, 0.25);
    font-size: 12px;
    vertical-align: -1px;
    cursor: pointer;
    transition: color 0.3s;

    &&-hidden {
      visibility: hidden;
    }
  }
}
