/*
 * Copyright (c) 2026, Salesforce, Inc.,
 * All rights reserved.
 * For full license text, see the LICENSE.txt file
 */

/**
  * @summary Variant for number input with increment and decrement buttons
*/
.slds-input_counter {
  text-align: center;
  padding-block: 0;
  padding-inline: var(--slds-g-spacing-8);

  &[type='number'] {
    appearance: textfield;
  }

  &::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
  }
}

/**
 * @summary Positions decrement button within counter input field
 */
.slds-input__button_decrement {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-start: 0.75rem;
}

/**
 * @summary Positions increment button within counter input field
 */
.slds-input__button_increment {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-end: 0.75rem;
}
