.snt-number-field {
  display: block;
  font-size: 0;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}
.snt-number-field__input {
  -moz-appearance: textfield;
  background-color: #fff;
  border: 1px solid #ddd;
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 100%;
  min-height: 1.5rem;
  min-width: 3rem;
  padding: 0.4375rem 0.875rem;
  transition: border-color 0.15s;
  width: 100%;
  height: 100%;
  &::-webkit-outer-spin-button,
  &::-webkit-inner-spin-button {
    -webkit-appearance: none;
  }
  &:focus {
    border-color: #0074d9;
    outline: none;
  }
  &:disabled,
  &[readonly] {
    background-color: #f8f8f8;
  }
}
.snt-number-input--controls {
  & > input {
    padding-left: 2.275rem;
    padding-right: 2.275rem;
  }
}
.snt-number-input--center {
  & > input {
    text-align: center;
  }
}
.snt-number-input__button {
  background-color: #fff;
  border: 0;
  border-radius: 0.25rem;
  bottom: 1px;
  position: absolute;
  top: 1px;
  width: 2rem;
  z-index: 1;
  &:focus {
    outline: none;
  }
  &:hover {
    &::before,
    &::after {
      background-color: #0074d9;
    }
  }
  &:disabled {
    opacity: 0.65;
    &::before,
    &::after {
      background-color: #ddd;
    }
  }
  &::before,
  &::after {
    background-color: #111;
    content: "";
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: background-color 0.15s;
  }
  &::before {
    height: 1px;
    width: 50%;
  }
  &::after {
    height: 50%;
    width: 1px;
  }
  &--minus {
    border-bottom-right-radius: 0;
    border-right: 1px solid #ddd;
    border-top-right-radius: 0;
    left: 1px;
    &::after {
      visibility: hidden;
    }
  }
  &--plus {
    border-bottom-left-radius: 0;
    border-left: 1px solid #ddd;
    border-top-left-radius: 0;
    right: 1px;
  }
}