/* Raak het select altijd, zelfs als de wrapper niet klopt */
.custom-add-to-cart select,
.custom-add-to-cart .variations select,
.custom-add-to-cart .variations td.value select,
.variations_form.cart select {
    width: 80%;
    font-family: "Fauna One", sans-serif;
    font-size: clamp(0.9rem, 1.5vw + 0.5rem, 1rem);
    border-radius: 6px;
    border: 1px solid #ffc857 !important;
    color: #375248 !important;
    background-color: #f9f9f9 !important;
    padding: 0.4rem 0.3rem;
}

/* === BASISSTRUCTUUR === */
.custom-add-to-cart form.cart {
    display: block;
    margin-top: 0px;
    margin-bottom: 0;
    border: 0px solid #2bff00;
}

/* === VARIATIES (dropdowns) === */
.custom-add-to-cart .variations {
    margin-bottom: 0px !important; 
    width: 100%;
    border: 0px dotted #9d00ff;
}

.custom-add-to-cart .variations tr,
.custom-add-to-cart .variations td {
    display: block;
    width: 100%;
    border: 0px solid #2389e9;
    padding-bottom: 0px;
}

.custom-add-to-cart .variations td.label {
    margin-bottom: 5px;
    border: 1px solid #df22df;
}

.custom-add-to-cart .variations td.value select {
    width: 80%;
    font-family: "Fauna One", sans-serif;
    font-size: clamp(0.9rem, 1.5vw + 0.5rem, 1rem);
    border-radius: 6px;
    border: 1px solid #00fad9;
    color: #00fad9;
    background-color: #00ffff73;
    padding: 0.4rem 1.6rem;
}

/* === AANTAL + KNOP === */
.custom-add-to-cart .woocommerce-variation-add-to-cart {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0px;
    flex-wrap: nowrap;
    margin-top: 0.1rem;
    border: 0px dotted #ff00ff;
}

/* === AANTAL VELD === */
.custom-add-to-cart .quantity input[type="number"] {
    width: 45px;
    height: 48px;
    font-size: clamp(0.99rem, 1.5vw + 0.5rem, 1.09rem);
    border: 0.5px solid #80cda7;
    border-radius: 8px;
    padding: 6px;
    background: #f5fffa;
    color: #375248;
    text-align: center;
    box-sizing: border-box;
}

/* === TOEVOEGEN AAN WINKELWAGEN KNOP === */
.custom-add-to-cart .single_add_to_cart_button {
    height: 48px;
    background-color: #375248 !important;
    color: #ffc857 !important;
    border: 1px solid #375248 !important;
    border-radius: 18px;
    padding: 0 8px;
    font-size: clamp(0.99rem, 1.5vw + 0.5rem, 1.09rem);
    font-family: "Fauna One", serif;
    text-transform: none;
    letter-spacing: 0.1px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === KNOP HOVER === */
.custom-add-to-cart .single_add_to_cart_button:hover {
    background-color: #253932 !important;
    color: #ffc857 !important;
    box-shadow: none;
    cursor: pointer;
    border-radius: 8px !important;
    border: 1px solid #375248 !important;
}

/* === EXTRA LABEL (optioneel extra info) === */
.custom-add-to-cart .extra-likeur-label {
    font-size: 1.2rem;
    color: #ff00ff;
    margin-top: 20px;
    margin-bottom: 5px;
    font-family: "Fauna One", serif;
}

/* Beperk de breedte van container zodat hij niet buiten het scherm valt */
.custom-add-to-cart {
    max-width: 100%;
    overflow-x: hidden;
}

/* Zorg dat knop + aantal niet uit beeld schuiven */
.custom-add-to-cart .woocommerce-variation-add-to-cart {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
}

/* Beperk knopbreedte op klein scherm */
.custom-add-to-cart .single_add_to_cart_button {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Specifieke aanpassing voor heel smalle schermen */
@media (max-width: 400px) {
    .custom-add-to-cart .woocommerce-variation-add-to-cart {
        flex-wrap: nowrap;
        /* Alleen hier toestaan dat ze onder elkaar gaan */
        justify-content: flex-start;
    }

    .custom-add-to-cart .quantity,
    .custom-add-to-cart .single_add_to_cart_button {
        width: auto;
        text-align: center;
        flex-shrink: 0;
    }
}

