:host {
  display: inline-block;
  position: relative;
  --hb-input-number-font-size: 14px;
  --hb-input-number-height: 32px;
  --hb-input-number-border-color: var(--hb-border-color, #dcdfe6);
  --hb-input-number-border-color-hover: var(--hb-color-primary);
  --hb-input-number-bg-color: var(--hb-color-white, #ffffff);
}

.hb-input-number {
  position: relative;
  display: inline-block;
  width: 180px;
  line-height: var(--hb-input-number-height);
}

.hb-input-number__inner {
  -webkit-appearance: none;
  background-color: var(--hb-input-number-bg-color);
  border: 1px solid var(--hb-input-number-border-color);
  border-radius: 4px;
  box-sizing: border-box;
  color: var(--hb-color-text-regular, #606266);
  display: block;
  font-size: inherit;
  height: var(--hb-input-number-height);
  line-height: var(--hb-input-number-height);
  outline: none;
  padding: 0 50px 0 15px;
  text-align: left;
  transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  width: 100%;
}

.hb-input-number--without-controls .hb-input-number__inner {
  padding: 0 15px;
}

.hb-input-number--controls-right .hb-input-number__inner {
  padding: 0 15px 0 50px;
}

.hb-input-number__inner:hover:not(:disabled) {
  border-color: var(--hb-input-number-border-color-hover);
}

.hb-input-number__inner:focus {
  border-color: var(--hb-input-number-border-color-hover);
}

.hb-input-number__inner:disabled {
  background-color: var(--hb-fill-color-light, #f5f7fa);
  border-color: var(--hb-input-number-border-color);
  color: var(--hb-color-text-disabled, #c0c4cc);
  cursor: not-allowed;
}

.hb-input-number__increase,
.hb-input-number__decrease {
  position: absolute;
  z-index: 1;
  top: 1px;
  width: 35px;
  height: calc(100% - 2px);
  text-align: center;
  background: var(--hb-fill-color-light, #f5f7fa);
  color: var(--hb-color-text-regular, #606266);
  cursor: pointer;
  font-size: 13px;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.hb-input-number__increase:hover:not(.hb-input-number__increase--disabled),
.hb-input-number__decrease:hover:not(.hb-input-number__decrease--disabled) {
  color: var(--hb-color-primary);
}

.hb-input-number__increase--disabled,
.hb-input-number__decrease--disabled {
  color: var(--hb-color-text-disabled, #c0c4cc);
  cursor: not-allowed;
}

.hb-input-number__increase {
  right: 1px;
  border-radius: 0 4px 4px 0;
  border-left: 1px solid var(--hb-input-number-border-color);
}

.hb-input-number__decrease {
  right: 36px;
  border-radius: 0;
  border-left: 1px solid var(--hb-input-number-border-color);
}

.hb-input-number--controls-right .hb-input-number__increase {
  right: 1px;
  border-radius: 0 4px 4px 0;
}

.hb-input-number--controls-right .hb-input-number__decrease {
  right: 36px;
  border-radius: 0;
}

.hb-input-number__controls {
  position: absolute;
  right: 1px;
  top: 1px;
  width: 35px;
  height: calc(100% - 2px);
  border-left: 1px solid var(--hb-input-number-border-color);
  border-radius: 0 4px 4px 0;
  background: var(--hb-fill-color-light, #f5f7fa);
}

.hb-input-number--controls-right .hb-input-number__controls {
  left: 1px;
  right: auto;
  border-left: none;
  border-right: 1px solid var(--hb-input-number-border-color);
  border-radius: 4px 0 0 4px;
}

.hb-input-number--controls-right .hb-input-number__controls .hb-input-number__increase {
  position: static;
  border: none;
  border-bottom: 1px solid var(--hb-input-number-border-color);
  border-radius: 0;
}

.hb-input-number--controls-right .hb-input-number__controls .hb-input-number__decrease {
  position: static;
  border: none;
  border-radius: 0 0 0 4px;
}

.hb-input-number--small {
  width: 150px;
}

.hb-input-number--small .hb-input-number__inner {
  height: 24px;
  line-height: 24px;
  font-size: 12px;
  padding: 0 40px 0 12px;
}

.hb-input-number--large {
  width: 200px;
}

.hb-input-number--large .hb-input-number__inner {
  height: 40px;
  line-height: 40px;
  font-size: 16px;
  padding: 0 55px 0 18px;
}

.hb-input-number--disabled {
  cursor: not-allowed;
}

