/* Explicit buttons: consistent controls for native and formatted numeric inputs. */
body .ic-number-stepper {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    flex: 0 1 auto;
    align-self: flex-start;
    line-height: 0;
    vertical-align: middle;
}
body .ic-number-stepper.ic-number-stepper input.ic-number-stepper__input {
    width: 100%;
    padding-right: 28px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    vertical-align: top;
}
body .ic-number-stepper.ic-number-stepper input.ic-number-stepper__input[type="number"]:not([readonly]) {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}
body .ic-number-stepper.ic-number-stepper input.ic-number-stepper__input[type="number"]:not([readonly])::-webkit-inner-spin-button,
body .ic-number-stepper.ic-number-stepper input.ic-number-stepper__input[type="number"]:not([readonly])::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
body .ic-number-stepper__controls {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    width: 16px;
    height: 24px;
    z-index: 2;
}
body .ic-number-stepper .ic-number-stepper__button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 16px !important;
    height: 12px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #8b8b8b !important;
    box-shadow: none !important;
    cursor: pointer;
    line-height: 1 !important;
    transform: none !important;
    transition: color 120ms ease !important;
}
body .ic-number-stepper .ic-number-stepper__button:hover,
body .ic-number-stepper .ic-number-stepper__button:focus-visible {
    background: transparent !important;
    color: #808080 !important;
    outline: none;
}
/* Keep a keyboard-only focus cue without a mouse-hover border or background. */
body .ic-number-stepper .ic-number-stepper__button:focus-visible {
    outline: 1px dotted #888888;
    outline-offset: 0;
}
body .ic-number-stepper__button svg {
    width: 10px !important;
    height: 8px !important;
    fill: currentColor;
    stroke: none;
    pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
    body .ic-number-stepper__controls { opacity: 0; }
    body .ic-number-stepper:hover .ic-number-stepper__controls,
    body .ic-number-stepper:focus-within .ic-number-stepper__controls { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    body .ic-number-stepper .ic-number-stepper__button { transition: none !important; }
}
