@import './quantityKeyboard.less';

.vm-quantity-stepper() {
  --vm-stepper-control-size: 76px;
  --vm-stepper-value-size: 34px;
  width: auto;
  height: auto;
  grid-template-columns: var(--vm-stepper-control-size) minmax(var(--vm-stepper-control-size), max-content) var(--vm-stepper-control-size);
  gap: 12px;

  .numeric-stepper-button {
    width: var(--vm-stepper-control-size);
    height: var(--vm-stepper-control-size);
    border-radius: 16px;
    background: var(--vm-customer-primary);
    color: var(--vm-primary-foreground);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    touch-action: manipulation;
  }
  .numeric-stepper-minus:not(.numeric-stepper-button-disabled) {
    border: 1px solid rgba(36, 28, 63, 0.15);
    background: #fff;
    color: var(--vm-customer-ink);
  }
  .numeric-stepper-button-disabled {
    opacity: 0.35;
  }
  .numeric-stepper-display {
    width: auto;
    min-width: var(--vm-stepper-control-size);
    max-width: none;
    height: var(--vm-stepper-control-size);
    padding: 0 8px;
    border-radius: 12px;
    color: var(--vm-customer-ink);
    font-size: var(--vm-stepper-value-size);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
}
