/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/


/* =Theme customization starts here
*/

.ds-vertical-align {
    display: flex;
    flex-direction: column;
    justify-content: center;
}



.woocommerce .col2-set .col-1, .woocommerce-page .col2-set .col-1{width:100% !important;}

/* ========== WRAPPER LAYOUT ========== */
form.checkout.woocommerce-checkout {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Forcer la colonne détails */
#customer_details {
    order: 1;
}

/* Forcer la colonne récap */
#order_review,
#order_review_heading {
    order: 2;
}

/* Cacher l’en-tête d’origine */
#order_review_heading {
    display: none !important;
}

/* Ajouter un vrai titre comme blocs WC */
#order_review:before {
    content: "Récapitulatif de la commande";
    display: block;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #111;
}

/* Modern look table */
.woocommerce-checkout-review-order-table {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 14px 12px;
}

/* Buttons modern style */
.woocommerce-checkout #place_order {
    width: 100%;
    background: #008060 !important;
    border-radius: 8px;
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
}

/* Remove "informations supplémentaires" section */
#order_comments_field,
.woocommerce-additional-fields,
.woocommerce-additional-fields__field-wrapper {
    display: none !important;
}

/* Mobile 1 colonne */
@media(max-width: 900px){
    form.checkout.woocommerce-checkout {
        grid-template-columns: 1fr;
    }
}
