@use "../../libs/css/theme" as *;
@use "../../libs/css/mixin" as *;


@include b(number-box) {
  @include flex(row);
  align-items: center;

  @include e(slot) {
    /* #ifndef APP-NVUE */
    touch-action: none;
    /* #endif */
  }

  @include e(input, plus, minus) {
    background-color: $hy-background--empty;
    width: 35px;
    @include flex;
    justify-content: center;
    align-items: center;
    /* #ifndef APP-NVUE */
    touch-action: none;
    /* #endif */
  }

  @include e(plus) {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;

    @include m(hover) {
      background-color: $hy-background--hover;
    }

    @include m(disabled) {
      color: $hy-text-color--disabled;
      background-color: $hy-background--disabled;
    }
  }

  @include e(minus) {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;

    @include m(hover) {
      background-color: $hy-background--hover;
    }

    @include m(disabled) {
      color: $hy-text-color--disabled;
      background-color: $hy-background--disabled;
    }
  }

  @include e(input) {
    position: relative;
    text-align: center;
    font-size: 15px;
    padding: 0;
    margin: 0 2px;
    @include flex;
    align-items: center;
    justify-content: center;
    color: $hy-text-color;
    box-sizing: border-box;

    @include m(disabled) {
      color: $hy-text-color--disabled;
      background-color: $hy-background--disabled;
    }
  }
}