@import '../common/index.wxss';

.van-stepper {
  font-size: 0;
}

.van-stepper__minus,
.van-stepper__plus {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  margin: 2rpx;
  vertical-align: middle;
  border: 0;
  background-color: #f2f3f5;
  background-color: var(--stepper-background-color,#f2f3f5);
  color: #323233;
  color: var(--stepper-button-icon-color,#323233);
  width: 56rpx;
  width: var(--stepper-input-height,56rpx);
  height: 56rpx;
  height: var(--stepper-input-height,56rpx);
  padding: 8rpx;
  padding: var(--padding-base,8rpx);
}

.van-stepper__minus:before,
.van-stepper__plus:before {
  width: 18rpx;
  height: 2rpx;
}

.van-stepper__minus:after,
.van-stepper__plus:after {
  width: 2rpx;
  height: 18rpx;
}

.van-stepper__minus:empty.van-stepper__minus:after,
.van-stepper__minus:empty.van-stepper__minus:before,
.van-stepper__minus:empty.van-stepper__plus:after,
.van-stepper__minus:empty.van-stepper__plus:before,
.van-stepper__plus:empty.van-stepper__minus:after,
.van-stepper__plus:empty.van-stepper__minus:before,
.van-stepper__plus:empty.van-stepper__plus:after,
.van-stepper__plus:empty.van-stepper__plus:before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  background-color: currentColor;
  content: "";
}

.van-stepper__minus--hover,
.van-stepper__plus--hover {
  background-color: #e8e8e8;
  background-color: var(--stepper-active-color,#e8e8e8);
}

.van-stepper__minus--disabled,
.van-stepper__plus--disabled {
  color: #c8c9cc;
  color: var(--stepper-button-disabled-icon-color,#c8c9cc);
}

.van-stepper__minus--disabled,
.van-stepper__minus--disabled.van-stepper__minus--hover,
.van-stepper__minus--disabled.van-stepper__plus--hover,
.van-stepper__plus--disabled,
.van-stepper__plus--disabled.van-stepper__minus--hover,
.van-stepper__plus--disabled.van-stepper__plus--hover {
  background-color: #f7f8fa;
  background-color: var(--stepper-button-disabled-color,#f7f8fa);
}

.van-stepper__minus {
  border-radius: 8rpx 0 0 8rpx;
  border-radius: var(--stepper-border-radius,8rpx) 0 0 var(--stepper-border-radius,8rpx);
}

.van-stepper__minus:after {
  display: none;
}

.van-stepper__plus {
  border-radius: 0 8rpx 8rpx 0;
  border-radius: 0 var(--stepper-border-radius,8rpx) var(--stepper-border-radius,8rpx) 0;
}

.van-stepper--round .van-stepper__input {
  background-color: initial!important;
}

.van-stepper--round .van-stepper__minus,
.van-stepper--round .van-stepper__plus {
  border-radius: 100%;
}

.van-stepper--round .van-stepper__minus:active,
.van-stepper--round .van-stepper__plus:active {
  opacity: .7;
}

.van-stepper--round .van-stepper__minus--disabled,
.van-stepper--round .van-stepper__minus--disabled:active,
.van-stepper--round .van-stepper__plus--disabled,
.van-stepper--round .van-stepper__plus--disabled:active {
  opacity: .3;
}

.van-stepper--round .van-stepper__plus {
  color: #fff;
  background-color: #ee0a24;
}

.van-stepper--round .van-stepper__minus {
  color: #ee0a24;
  background-color: #fff;
  border: 2rpx solid #ee0a24;
}

.van-stepper__input {
  display: inline-block;
  box-sizing: border-box;
  min-height: 0;
  margin: 2rpx;
  padding: 2rpx;
  text-align: center;
  vertical-align: middle;
  border: 0;
  border-width: 2rpx 0;
  border-radius: 0;
  -webkit-appearance: none;
  font-size: 28rpx;
  font-size: var(--stepper-input-font-size,28rpx);
  color: #323233;
  color: var(--stepper-input-text-color,#323233);
  background-color: #f2f3f5;
  background-color: var(--stepper-background-color,#f2f3f5);
  width: 64rpx;
  width: var(--stepper-input-width,64rpx);
  height: 56rpx;
  height: var(--stepper-input-height,56rpx);
}

.van-stepper__input--disabled {
  color: #c8c9cc;
  color: var(--stepper-input-disabled-text-color,#c8c9cc);
  background-color: #f2f3f5;
  background-color: var(--stepper-input-disabled-background-color,#f2f3f5);
}