/*
    Mixin to progressively-enhance :focus-visible, keeping :focus where not supported
    Add an arbitrary list of selectors into the arguments, and the styling in the block.
    I you pass no selectors to the mixin the parent ("ampersand") operator is used instead.

    There are two mixins: 
    - focus-visible: a generic focus-visible, giving you "slots" to decide what to render for :focus, :focus reset, and :focus-visible
    - focus-visible-outline: a focus-visible, which only resets the outline. If you don't need more custom resets, use this one!

    Use focus-visible:
    The key thing here is checking which slot is being rendered.
    For example, you can reset box-shadow here, or anything else.

    @include focus-visible using ($slot) {
        @if $slot == focus {
            outline: 2px solid transparent;
            box-shadow: 0 0 0 4px blue;
        }
        @if $slot == focusReset {
            box-shadow: none;
        }
        @if $slot == focusVisible {
            box-shadow: 0 0 0 4px blue;
        }
    }

    Use focus-visible-outline:
    @include focus-visible-outline("button", "a[href]") {
        outline: 2px solid blue;
    }

    Resulting CSS (compressed):

    button:focus,
    a[href]:focus {
        outline: 2px solid blue;
    }

    button:focus:not(:focus-visible),
    a[href]:focus:not(:focus-visible) {
        outline: none;
    }
    button:focus-visible,
    a[href]:focus-visible {
        outline: 2px solid blue;
    }
*/
.uic-stepper {
  display: inline-block;
  padding: 8px;
}
.uic-stepper--has-label {
  padding: 2px 8px 8px;
}
.uic-stepper__label, .uic-stepper__helper-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--uic-color-black);
}
.uic-stepper__label {
  font-size: var(--uic-font-size-normal);
  line-height: var(--uic-line-height-normal);
}
.uic-stepper__helper-text {
  font-size: var(--uic-font-size-small);
  line-height: var(--uic-line-height-small);
}
.uic-stepper__label:not(:empty) {
  margin-bottom: 4px;
}
.uic-stepper__helper-text:not(:empty) {
  margin-top: 3px;
}
.uic-stepper__input {
  flex: 1 1 184px;
}
.uic-stepper__input .uic-input-field {
  padding: 0;
}
.uic-stepper__input .uic-input-field__label {
  display: none;
}
.uic-stepper--invalid .uic-stepper__helper-text {
  color: var(--uic-color-red1);
}
.uic-stepper uic-button:not([disabled]) {
  z-index: 1;
}
.uic-stepper uic-button:hover,
.uic-stepper uic-button:active,
.uic-stepper uic-button:focus {
  z-index: 2;
}
.uic-stepper uic-button {
  padding: 0;
}
.uic-stepper__controls {
  display: flex;
  align-items: center;
}
.uic-stepper__increase, .uic-stepper__decrease, .uic-stepper__increase_to_max, .uic-stepper__decrease_to_min {
  padding: 0;
}
.uic-stepper__increase, .uic-stepper__decrease_to_min {
  --uic-button-shadow: 1px 3px 4px -1px var(--uic-atom-shadow-color-primary),
      1px 3px 8px -1px var(--uic-atom-shadow-color-secondary);
}
.uic-stepper__decrease, .uic-stepper__increase_to_max {
  --uic-button-shadow: -1px 3px 4px -1px var(--uic-atom-shadow-color-primary),
      -1px 3px 8px -1px var(--uic-atom-shadow-color-secondary);
  margin-right: -1px;
  margin-left: 4px;
}