/* Style personnalisé pour la page de validation de commande WooCommerce */

form.woocommerce-checkout {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 !important;
}

/* En-tête de la page */
.woocommerce-checkout h3 {
    font-size: 1.5em;
    color: #00664a;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Formulaire principal */
#customer_details {
    margin-bottom: 2rem;
}

/* Style des champs */
.woocommerce-checkout .form-row {
    margin-bottom: 1.5rem;
    padding: 0;
}

.woocommerce-checkout label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.woocommerce form .form-row label,
.woocommerce-page form .form-row label {
    width: 100%;
}

.woocommerce form .woocommerce-input-wrapper {
    display: inline-block;
    width: 100%;
}

.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select {
    width: 100% !important;
    padding: 0.8rem !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    font-size: 1em !important;
    line-height: 1.5 !important;
    min-height: 45px;
}

.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus {
    border-color: #00664a !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 102, 74, 0.1);
}

/* Notes de commande */
.woocommerce-checkout .woocommerce-additional-fields {
    margin-top: 2rem;
}

.woocommerce-checkout textarea {
    min-height: 120px !important;
    padding: 1rem !important;
}

/* Récapitulatif de commande */
#order_review_heading {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.woocommerce-checkout-review-order {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 2rem;
    border: none !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 1rem !important;
    border-bottom: 1px solid #eee !important;
    background: transparent !important;
}

.woocommerce-checkout-review-order-table thead th {
    background: #f1f2f3 !important;
    text-transform: uppercase;
    font-size: 0.9em;
    font-weight: 600;
    color: #00664a;
}

.woocommerce-checkout-review-order-table .product-total {
    text-align: right;
}

.woocommerce-checkout-review-order-table .cart-subtotal td,
.woocommerce-checkout-review-order-table .order-total td {
    text-align: right;
}

.woocommerce-checkout-review-order-table .order-total {
    font-size: 1.2em;
    font-weight: 600;
    color: #00664a;
}

/* Paiement */
#payment {
    margin-top: 2rem;
    background: transparent !important;
    border-radius: 4px !important;
}

.wc_payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 2rem !important;
    border: 1px solid #eee !important;
    border-radius: 4px !important;
    background: #fff !important;
}

.wc_payment_method {
    padding: 1rem !important;
    border-bottom: 1px solid #eee !important;
    margin: 0 !important;
}

.wc_payment_method:last-child {
    border-bottom: none !important;
}

.wc_payment_method label {
    font-weight: 600;
    margin-left: 0.5rem;
    color: #00664a;
}

.payment_box {
    margin-top: 1rem !important;
    padding: 1rem !important;
    background: #f8f9fa !important;
    border-radius: 4px !important;
    font-size: 0.9em !important;
    color: #666 !important;
}

.payment_box::before {
    display: none !important;
}

/* Bouton de commande */
#place_order {
    width: 100% !important;
    padding: 1rem !important;
    background: #00664a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 1.1em !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    line-height: 1.5 !important;
    min-height: 50px !important;
}

#place_order:hover {
    background: #004d38 !important;
}

/* Messages d'erreur et notifications */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    padding: 1rem 1.5rem !important;
    margin-bottom: 2rem !important;
    border-radius: 4px !important;
    list-style: none !important;
    border-top: none !important;
    background: #fff !important;
    font-size: 1em !important;
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
    left: 0;
}

.woocommerce-error {
    border-left: 4px solid #e74c3c !important;
    color: #e74c3c !important;
}

.woocommerce-message {
    border-left: 4px solid #00664a !important;
    color: #00664a !important;
}

.woocommerce-info {
    border: none !important;
    color: #2c3e50 !important;
}

.woocommerce-info::before {
    color: #2c3e50 !important;
}

.woocommerce-form-coupon-toggle {
    margin-left: 1rem;
}

/* Largeur des sections de champs */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    width: 100% !important;
}

/* Cacher les champs d'attribution de commande */
wc-order-attribution-inputs {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {

    .woocommerce-checkout-review-order {
        padding: 1rem;
    }

    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td {
        padding: 0.8rem !important;
    }
}