@include prefix(number) {
  display: inline-block;
  .number-prepend-button, .number-append-button {
    display: inline-flex;
    padding: 0;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: background-color ease 300ms;
    border-radius: inherit;

    &:hover {
      background-color: plv(secondary-light-1);
    }
  }
  &.number-button-type-button {
    .number-prepend-button, .number-append-button {
      &[plain-click-node-waving] {
        border-left: initial;
      }
    }

    @include sizeMixin(input, ()) {
      .number-prepend-button, .number-append-button {
        width: $height,
      }
    }
  }
  &.number-button-type-right {
    .number-button-container {
      display: flex;
      color: plv(text-2);
      flex-direction: column;
      align-items: stretch;
      justify-content: center;
      padding: 0 !important;
      position: relative;

      &:after {
        position: absolute;
        top: calc(50% - 0.5px);
        left: 0;
        right: 0;
        content: '';
        background-color: plv(border-color);
        height: 1px;
      }
    }

    .number-prepend-button, .number-append-button {
      transform: scale(0.9);
    }

    @include sizeMixin(input, ()) {
      .number-button-container {
        width: $height;
        height: calc(#{$height} - 2px);
      }
    }
  }

  .input-box {
    align-self: center;
  }

  &.input-mode-text {
    .number-prepend-button, .number-append-button, .number-button-container {
      display: none;
    }
  }
}

@include prefix(number-resize) {
  padding-left: 100%;
  position: relative;
  color: plv(text-2);

  & > div {
    position: absolute;
    @include inset;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: row-resize;
    user-select: none;
  }
  &:hover {
    background-color: plv(secondary-light-2);
  }
  &.number-resize-dragging {
    background-color: plv(background-color);
    box-shadow: plv(message-box-shadow);
  }
}
