/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Thème enfant pour Astra
Author: Anas Ait khali
Author URI: https://kasbahbloom.com
Template: astra
Version: 1.0.0
*/

/* Styles pour la barre de progression de livraison gratuite */
.free-shipping-progress-bar {
    background-color: #f9f9f9;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

.free-shipping-progress-bar p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #333;
}

.free-shipping-progress-bar .progress {
    background-color: #e9ecef;
    border-radius: 5px;
    height: 10px;
    overflow: hidden;
}

.free-shipping-progress-bar .progress-bar {
    background-color: #28a745;
    height: 10px;
    transition: width 0.4s ease;
}

/* Style du bouton retour au panier */
.return-to-cart-button {
    background-color: #c4d600;
    color: #ffffff;
    padding: 10px 20px;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

/* Ajuster la section de paiement */
.woocommerce-checkout-payment {
    clear: both;
    padding: 10px;
}

/* Styles pour rendre la page de validation de commande responsive */
@media only screen and (max-width: 768px) {
    /* Formulaire de facturation */
    .woocommerce-checkout .col2-set {
        display: block;
        width: 100%;
        margin: 0;
    }

    .woocommerce-checkout .col2-set .col-1,
    .woocommerce-checkout .col2-set .col-2 {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Ajuster les zones de texte et d'input */
    .woocommerce-checkout input[type="text"],
    .woocommerce-checkout input[type="email"],
    .woocommerce-checkout textarea {
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }

    /* Section récapitulatif de la commande */
    .woocommerce-checkout .woocommerce-checkout-review-order {
        width: 100%;
        margin-top: 20px;
    }

    .woocommerce-checkout-review-order table.shop_table {
        width: 100%;
        font-size: 16px;
    }

    .woocommerce-checkout-review-order table.shop_table td {
        padding: 10px;
    }

    /* Bouton de retour au panier */
    .woocommerce-checkout .return-to-cart-button {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    /* Ajout de padding et ajustement du bouton 'Commander' */
    .woocommerce-checkout #place_order {
        width: 100%;
        padding: 15px;
        font-size: 18px;
    }
}