/* Quantity Stepper v18
   Reusable +/- quantity control for Quick Shop, Product Details and Cart. */
.quantity-stepper {
    --qty-accent-start: #ff8a3d;
    --qty-accent-end: #ec2f78;
    --qty-border: #ead8df;
    display: inline-flex;
    align-items: stretch;
    width: 100%;
    max-width: 180px;
    min-height: 42px;
    overflow: hidden;
    border: 1px solid var(--qty-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(31, 41, 55, .06);
}

.quantity-stepper-btn {
    width: 44px;
    flex: 0 0 44px;
    border: 0;
    background: #fff;
    color: #242424;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, transform .12s ease;
}

.quantity-stepper-btn:hover:not(:disabled),
.quantity-stepper-btn:focus-visible:not(:disabled) {
    color: #fff;
    background: linear-gradient(135deg, var(--qty-accent-start), var(--qty-accent-end));
    outline: none;
}

.quantity-stepper-btn:active:not(:disabled) {
    transform: scale(.94);
}

.quantity-stepper-btn:disabled {
    color: #c9c9c9;
    background: #f7f7f8;
    cursor: not-allowed;
}

.quantity-stepper-input {
    min-width: 50px;
    width: 72px;
    flex: 1 1 auto;
    border: 0;
    border-left: 1px solid var(--qty-border);
    border-right: 1px solid var(--qty-border);
    border-radius: 0;
    background: #fff;
    color: #222;
    text-align: center;
    font-weight: 700;
    box-shadow: none !important;
    outline: none;
    -moz-appearance: textfield;
}

.quantity-stepper-input::-webkit-outer-spin-button,
.quantity-stepper-input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.quantity-stepper-input:focus {
    background: #fffafc;
}

.quantity-stepper-cart {
    max-width: 138px;
    min-height: 36px;
    border-radius: 9px;
}

.quantity-stepper-cart .quantity-stepper-btn {
    width: 36px;
    flex-basis: 36px;
    font-size: 1.2rem;
}

.quantity-stepper-cart .quantity-stepper-input {
    width: 54px;
    min-width: 42px;
    font-size: .9rem;
    padding: 0 4px;
}

.cart-quantity-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 138px;
}

.cart-quantity-note {
    color: #8b6f78;
    font-size: .68rem;
    line-height: 1.15;
    white-space: nowrap;
}

.cart-quantity-form.is-updating .quantity-stepper {
    opacity: .58;
    pointer-events: none;
}

.quantity-cart-action {
    min-height: 42px;
}

@media (max-width: 575.98px) {
    .quantity-stepper {
        max-width: none;
    }

    .quantity-stepper-cart {
        max-width: 132px;
    }

    .cart-quantity-note {
        display: none;
    }
}
