@charset "UTF-8";
.ew-input-number {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  padding: 0;
  max-width: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
  height: 32px; /* 统一高度 */
}

.ew-input-number:focus-within {
  border-color: #4096ef;
}

.ew-input-number__input {
  flex: 1;
  border: none;
  outline: none;
  padding: 4px 10px;
  font-size: 14px;
  background: transparent;
  min-width: 0;
  height: 100%; /* 继承父容器高度 */
  box-sizing: border-box;
  color: #222;
  font-family: inherit;
}

.ew-input-number__buttons {
  width: 32px;
  min-width: 24px;
  display: flex;
  flex-direction: column;
  background: #fff;
  height: 100%; /* 继承父容器高度 */
  padding: 0;
  margin: 0;
  border-left: 1px solid #e5e6eb;
}

.ew-input-number__button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50%;
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  min-height: 0;
  box-sizing: border-box;
  transition: background 0.2s;
  color: #666;
}

.ew-input-number__button--up {
  border-bottom: 1px solid #e5e6eb;
}

.ew-input-number__button:active {
  background: #f0f8ff;
}

.ew-input-number__icon {
  width: 14px;
  height: 14px;
  display: block;
  margin: 0 auto;
  vertical-align: middle;
  pointer-events: none;
}