/**
 * Quantity Buttons - Styles
 * Style dla przycisków +/- przy polu ilości
 * Author: Mustaf (https://mustaf.com/)
 */

.quantity-with-buttons {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.quantity-with-buttons input.qty {
    border: none !important;
    border-radius: 0 !important;
    text-align: center;
    width: 60px;
    height: 50px;
    padding: 0 !important;
    margin: 0 !important;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #1E1E1E;
    background: #F5F3EF;
    -moz-appearance: textfield; /* Firefox */
}

/* Ukryj strzałki w Chrome, Safari, Edge */
.quantity-with-buttons input.qty::-webkit-outer-spin-button,
.quantity-with-buttons input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-button {
    background: #F5F3EF;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #1E1E1E;
    transition: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    user-select: none;
}

.qty-button:hover {
    background: #F5F3EF;
    color: #1E1E1E;
}

.qty-button:active {
    background: #F5F3EF;
    transform: none;
}

.qty-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button.qty-button.qty-minus, button.qty-button.qty-plus {
    border-radius: 0 !important;
    border: none !important;
    color: #1E1E1E !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    margin-left: 0px !important;
    padding: 0 !important;
}

.qty-button.qty-minus:hover, .qty-button.qty-plus:hover {
    background: #F5F3EF;
}

/* Responsywność */
@media (max-width: 768px) {
    .quantity-with-buttons input.qty {
        width: 50px;
        height: 45px;
        font-size: 18px;
    }
    
    .qty-button {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Integracja z różnymi motywami */
.woocommerce .quantity-with-buttons,
.woocommerce-page .quantity-with-buttons {
    margin: 0;
}

/* Fix dla Elementora */
.elementor-widget-woocommerce-product-add-to-cart .quantity-with-buttons {
    display: inline-flex;
}


