.mep-qty-stepper {
    display: grid;
    grid-template-columns: minmax(38px, 0.8fr) minmax(42px, 1fr) minmax(38px, 0.8fr);
    width: 100%;
    min-width: 0;
    min-height: 44px;
    overflow: hidden;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    background: #fff;
    font-variant-numeric: tabular-nums;
}

.mep-qty-stepper-btn {
    display: grid;
    min-width: 0;
    min-height: 44px;
    place-items: center;
    border: 0;
    border-radius: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.mep-qty-stepper-btn.minus {
    border-right: 1px solid #ffd0cd;
    background: #fff0ef;
    color: #b42318;
}

.mep-qty-stepper-btn.plus {
    border-left: 1px solid #c8efd1;
    background: #eaf8ed;
    color: #176b2c;
}

.mep-qty-stepper-btn:active:not(:disabled) {
    filter: saturate(1.25);
    transform: scale(0.92);
}

.mep-qty-stepper-btn:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid #007aff;
    outline-offset: -2px;
}

.mep-qty-stepper-btn:disabled {
    opacity: 0.28;
}

.mep-qty-stepper-value {
    display: grid;
    min-width: 0;
    place-items: center;
    padding: 0 4px;
    background: #fff;
    color: #1d1d1f;
    font-size: 16px;
    font-weight: 850;
    line-height: 1;
}

.mep-stock-adjust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mep-stock-adjust-row > div {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    padding-bottom: 0;
}

[data-theme="dark"] .mep-qty-stepper {
    border-color: #48484a;
    background: #2c2c2e;
}

[data-theme="dark"] .mep-qty-stepper-value {
    background: #2c2c2e;
    color: #fff;
}

[data-theme="dark"] .mep-qty-stepper-btn.minus {
    border-right-color: #68312e;
    background: #3a2020;
    color: #ffb4af;
}

[data-theme="dark"] .mep-qty-stepper-btn.plus {
    border-left-color: #285d34;
    background: #173820;
    color: #91e6a3;
}

@media (max-width: 430px) {
    .mep-qty-stepper,
    .mep-qty-stepper-btn {
        min-height: 46px;
    }

    .mep-qty-stepper-btn {
        font-size: 26px;
    }
}
