/**
 * Funnel Overrides CSS
 * 
 * Cette feuille CSS est chargée en dernier pour surcharger les styles du thème
 * et garantir que les styles du tunnel de commande soient appliqués correctement.
 * 
 * Utilisation de sélecteurs avec une haute spécificité pour surcharger le thème.
 */

/* Copyright image - Preview CV */
.order-funnel-modal .copyright-img-min,
.order-funnel-page .copyright-img-min,
.order-funnel-modal-overlay .order-funnel-modal .copyright-img-min,
.order-funnel-page .order-funnel-page-container .copyright-img-min {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    display: block !important;
}

.order-funnel-modal .copyright-img-min .img-cv-payment,
.order-funnel-page .copyright-img-min .img-cv-payment,
.order-funnel-modal-overlay .order-funnel-modal .copyright-img-min .img-cv-payment,
.order-funnel-page .order-funnel-page-container .copyright-img-min .img-cv-payment {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #f9f9f9 !important;
    display: block !important;
    position: relative !important;
}

.order-funnel-modal .copyright-img-min .img-cv-payment img,
.order-funnel-page .copyright-img-min .img-cv-payment img,
.order-funnel-modal-overlay .order-funnel-modal .copyright-img-min .img-cv-payment img,
.order-funnel-page .order-funnel-page-container .copyright-img-min .img-cv-payment img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    object-fit: cover !important;
}

.order-funnel-modal .copyright-img-min .img-cv-payment .cv-preview-placeholder,
.order-funnel-page .copyright-img-min .img-cv-payment .cv-preview-placeholder,
.order-funnel-modal-overlay .order-funnel-modal .copyright-img-min .img-cv-payment .cv-preview-placeholder,
.order-funnel-page .order-funnel-page-container .copyright-img-min .img-cv-payment .cv-preview-placeholder {
    width: 100% !important;
    aspect-ratio: 210 / 297 !important; /* Format A4 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f0f0f0 !important;
    color: #999 !important;
    font-size: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Blocs de réassurance */
.order-funnel-modal .reassurance,
.order-funnel-page .reassurance,
.order-funnel-modal-overlay .order-funnel-modal .reassurance,
.order-funnel-page .order-funnel-page-container .reassurance {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    padding: 40px 20px !important;
    margin: 40px auto !important;
    align-items: start !important;
}

.order-funnel-modal .reassurance .bloc-reassurance,
.order-funnel-page .reassurance .bloc-reassurance,
.order-funnel-modal-overlay .order-funnel-modal .reassurance .bloc-reassurance,
.order-funnel-page .order-funnel-page-container .reassurance .bloc-reassurance {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
}

.order-funnel-modal .reassurance .bloc-reassurance .img-reassurance,
.order-funnel-page .reassurance .bloc-reassurance .img-reassurance,
.order-funnel-modal-overlay .order-funnel-modal .reassurance .bloc-reassurance .img-reassurance,
.order-funnel-page .order-funnel-page-container .reassurance .bloc-reassurance .img-reassurance {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
    margin-bottom: 15px !important;
}

.order-funnel-modal .reassurance .bloc-reassurance .content-reassurance .rea-ptop,
.order-funnel-page .reassurance .bloc-reassurance .content-reassurance .rea-ptop,
.order-funnel-modal-overlay .order-funnel-modal .reassurance .bloc-reassurance .content-reassurance .rea-ptop,
.order-funnel-page .order-funnel-page-container .reassurance .bloc-reassurance .content-reassurance .rea-ptop {
    font-size: 24px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin: 0 0 8px 0 !important;
}

.order-funnel-modal .reassurance .bloc-reassurance .content-reassurance .rea-pbot,
.order-funnel-page .reassurance .bloc-reassurance .content-reassurance .rea-pbot,
.order-funnel-modal-overlay .order-funnel-modal .reassurance .bloc-reassurance .content-reassurance .rea-pbot,
.order-funnel-page .order-funnel-page-container .reassurance .bloc-reassurance .content-reassurance .rea-pbot {
    font-size: 14px !important;
    color: #666 !important;
    margin: 0 !important;
}

/* Section buy-cv */
.order-funnel-modal .buy-cv .pad40-pc,
.order-funnel-modal .buy-cv-v2 .pad40-pc,
.order-funnel-page .buy-cv .pad40-pc,
.order-funnel-page .buy-cv-v2 .pad40-pc,
.order-funnel-modal-overlay .order-funnel-modal .buy-cv .pad40-pc,
.order-funnel-modal-overlay .order-funnel-modal .buy-cv-v2 .pad40-pc,
.order-funnel-page .order-funnel-page-container .buy-cv .pad40-pc,
.order-funnel-page .order-funnel-page-container .buy-cv-v2 .pad40-pc {
    display: flex !important;
    gap: 30px !important;
    align-items: flex-start !important;
    margin-top: 40px !important;
}

.order-funnel-modal .buy-cv .buy-form-v2,
.order-funnel-modal .buy-cv-v2 .buy-form-v2,
.order-funnel-page .buy-cv .buy-form-v2,
.order-funnel-page .buy-cv-v2 .buy-form-v2,
.order-funnel-modal-overlay .order-funnel-modal .buy-cv .buy-form-v2,
.order-funnel-modal-overlay .order-funnel-modal .buy-cv-v2 .buy-form-v2,
.order-funnel-page .order-funnel-page-container .buy-cv .buy-form-v2,
.order-funnel-page .order-funnel-page-container .buy-cv-v2 .buy-form-v2 {
    flex: 1 !important;
    width: 100% !important;
}

.order-funnel-modal .buy-cv .buy-form-v2 .price-form-v2,
.order-funnel-modal .buy-cv-v2 .buy-form-v2 .price-form-v2,
.order-funnel-page .buy-cv .buy-form-v2 .price-form-v2,
.order-funnel-page .buy-cv-v2 .buy-form-v2 .price-form-v2,
.order-funnel-modal-overlay .order-funnel-modal .buy-cv .buy-form-v2 .price-form-v2,
.order-funnel-modal-overlay .order-funnel-modal .buy-cv-v2 .buy-form-v2 .price-form-v2,
.order-funnel-page .order-funnel-page-container .buy-cv .buy-form-v2 .price-form-v2,
.order-funnel-page .order-funnel-page-container .buy-cv-v2 .buy-form-v2 .price-form-v2 {
    margin-bottom: 20px !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
}

.order-funnel-modal .buy-cv .buy-form-v2 .price-form-v2 .price-cv,
.order-funnel-modal .buy-cv-v2 .buy-form-v2 .price-form-v2 .price-cv,
.order-funnel-page .buy-cv .buy-form-v2 .price-form-v2 .price-cv,
.order-funnel-page .buy-cv-v2 .buy-form-v2 .price-form-v2 .price-cv,
.order-funnel-modal-overlay .order-funnel-modal .buy-cv .buy-form-v2 .price-form-v2 .price-cv,
.order-funnel-modal-overlay .order-funnel-modal .buy-cv-v2 .buy-form-v2 .price-form-v2 .price-cv,
.order-funnel-page .order-funnel-page-container .buy-cv .buy-form-v2 .price-form-v2 .price-cv,
.order-funnel-page .order-funnel-page-container .buy-cv-v2 .buy-form-v2 .price-form-v2 .price-cv {
    font-size: 28px !important;
    font-weight: bold !important;
    color: #333 !important;
}

/* Symbole monétaire dans son propre container inline (comme WooCommerce woocommerce-Price-currencySymbol) */
.order-funnel-modal .price-currency-symbol,
.order-funnel-page .price-currency-symbol,
.order-funnel-modal-overlay .price-currency-symbol {
    display: inline;
}

.order-funnel-modal .buy-cv .buy-form-v2 .price-form-v2 .price-time,
.order-funnel-modal .buy-cv-v2 .buy-form-v2 .price-form-v2 .price-time,
.order-funnel-page .buy-cv .buy-form-v2 .price-form-v2 .price-time,
.order-funnel-page .buy-cv-v2 .buy-form-v2 .price-form-v2 .price-time,
.order-funnel-modal-overlay .order-funnel-modal .buy-cv .buy-form-v2 .price-form-v2 .price-time,
.order-funnel-modal-overlay .order-funnel-modal .buy-cv-v2 .buy-form-v2 .price-form-v2 .price-time,
.order-funnel-page .order-funnel-page-container .buy-cv .buy-form-v2 .price-form-v2 .price-time,
.order-funnel-page .order-funnel-page-container .buy-cv-v2 .buy-form-v2 .price-form-v2 .price-time {
    font-size: 18px !important;
    color: #666 !important;
}

.order-funnel-modal .buy-cv .buy-form-v2 .price-form-v2 .price-time .price-days,
.order-funnel-modal .buy-cv-v2 .buy-form-v2 .price-form-v2 .price-time .price-days,
.order-funnel-page .buy-cv .buy-form-v2 .price-form-v2 .price-time .price-days,
.order-funnel-page .buy-cv-v2 .buy-form-v2 .price-form-v2 .price-time .price-days,
.order-funnel-modal-overlay .order-funnel-modal .buy-cv .buy-form-v2 .price-form-v2 .price-time .price-days,
.order-funnel-modal-overlay .order-funnel-modal .buy-cv-v2 .buy-form-v2 .price-form-v2 .price-time .price-days,
.order-funnel-page .order-funnel-page-container .buy-cv .buy-form-v2 .price-form-v2 .price-time .price-days,
.order-funnel-page .order-funnel-page-container .buy-cv-v2 .buy-form-v2 .price-form-v2 .price-time .price-days {
    font-weight: 600 !important;
}

.order-funnel-modal .buy-cv .buy-form-v2 .price-form-v2 .txt-resi,
.order-funnel-modal .buy-cv-v2 .buy-form-v2 .price-form-v2 .txt-resi,
.order-funnel-page .buy-cv .buy-form-v2 .price-form-v2 .txt-resi,
.order-funnel-page .buy-cv-v2 .buy-form-v2 .price-form-v2 .txt-resi,
.order-funnel-modal-overlay .order-funnel-modal .buy-cv .buy-form-v2 .price-form-v2 .txt-resi,
.order-funnel-modal-overlay .order-funnel-modal .buy-cv-v2 .buy-form-v2 .price-form-v2 .txt-resi,
.order-funnel-page .order-funnel-page-container .buy-cv .buy-form-v2 .price-form-v2 .txt-resi,
.order-funnel-page .order-funnel-page-container .buy-cv-v2 .buy-form-v2 .price-form-v2 .txt-resi {
    display: block !important;
    font-size: 14px !important;
    color: #999 !important;
    margin-top: 5px !important;
}

/* Top buy section */
.order-funnel-modal .top-buy,
.order-funnel-page .top-buy,
.order-funnel-modal-overlay .order-funnel-modal .top-buy,
.order-funnel-page .order-funnel-page-container .top-buy {
    margin-bottom: 30px !important;
}

.order-funnel-modal .top-buy .buy-p.buy-listing-service,
.order-funnel-page .top-buy .buy-p.buy-listing-service,
.order-funnel-modal-overlay .order-funnel-modal .top-buy .buy-p.buy-listing-service,
.order-funnel-page .order-funnel-page-container .top-buy .buy-p.buy-listing-service {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.order-funnel-modal .top-buy .buy-p.buy-listing-service .buy-bloc-service,
.order-funnel-page .top-buy .buy-p.buy-listing-service .buy-bloc-service,
.order-funnel-modal-overlay .order-funnel-modal .top-buy .buy-p.buy-listing-service .buy-bloc-service,
.order-funnel-page .order-funnel-page-container .top-buy .buy-p.buy-listing-service .buy-bloc-service {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 16px !important;
    color: #333 !important;
}

.order-funnel-modal .top-buy .buy-p.buy-listing-service .buy-bloc-service:first-child,
.order-funnel-page .top-buy .buy-p.buy-listing-service .buy-bloc-service:first-child,
.order-funnel-modal-overlay .order-funnel-modal .top-buy .buy-p.buy-listing-service .buy-bloc-service:first-child,
.order-funnel-page .order-funnel-page-container .top-buy .buy-p.buy-listing-service .buy-bloc-service:first-child {
    margin-bottom: 10px !important;
}

.order-funnel-modal .top-buy .buy-p.buy-listing-service .buy-bloc-service i,
.order-funnel-page .top-buy .buy-p.buy-listing-service .buy-bloc-service i,
.order-funnel-modal-overlay .order-funnel-modal .top-buy .buy-p.buy-listing-service .buy-bloc-service i,
.order-funnel-page .order-funnel-page-container .top-buy .buy-p.buy-listing-service .buy-bloc-service i {
    color: #28a745 !important;
    font-size: 18px !important;
}

.order-funnel-modal .top-buy .buy-p.buy-listing-service .buy-bloc-service strong,
.order-funnel-page .top-buy .buy-p.buy-listing-service .buy-bloc-service strong,
.order-funnel-modal-overlay .order-funnel-modal .top-buy .buy-p.buy-listing-service .buy-bloc-service strong,
.order-funnel-page .order-funnel-page-container .top-buy .buy-p.buy-listing-service .buy-bloc-service strong {
    font-weight: 600 !important;
}

/* Billing Form Overrides */
.order-funnel-modal .billing-form,
.order-funnel-page .billing-form,
.order-funnel-modal-overlay .order-funnel-modal .billing-form,
.order-funnel-page .order-funnel-page-container .billing-form {
    margin-bottom: 30px !important;
    padding: 25px !important;
    background: #f9f9f9 !important;
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
}

.order-funnel-modal .billing-form h3,
.order-funnel-page .billing-form h3,
.order-funnel-modal-overlay .order-funnel-modal .billing-form h3,
.order-funnel-page .order-funnel-page-container .billing-form h3 {
    margin: 0 0 10px 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.order-funnel-modal .billing-form .billing-form-description,
.order-funnel-page .billing-form .billing-form-description,
.order-funnel-modal-overlay .order-funnel-modal .billing-form .billing-form-description,
.order-funnel-page .order-funnel-page-container .billing-form .billing-form-description {
    margin: 0 0 20px 0 !important;
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.5 !important;
}

.order-funnel-modal .billing-form .billing-form-row,
.order-funnel-page .billing-form .billing-form-row,
.order-funnel-modal-overlay .order-funnel-modal .billing-form .billing-form-row,
.order-funnel-page .order-funnel-page-container .billing-form .billing-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
}

.order-funnel-modal .billing-form .billing-form-field label,
.order-funnel-page .billing-form .billing-form-field label,
.order-funnel-modal-overlay .order-funnel-modal .billing-form .billing-form-field label,
.order-funnel-page .order-funnel-page-container .billing-form .billing-form-field label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.order-funnel-modal .billing-form .billing-form-field input,
.order-funnel-page .billing-form .billing-form-field input,
.order-funnel-modal-overlay .order-funnel-modal .billing-form .billing-form-field input,
.order-funnel-page .order-funnel-page-container .billing-form .billing-form-field input {
    width: 100% !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 4px !important;
    background: white !important;
    color: #333 !important;
    transition: all 0.3s !important;
    box-sizing: border-box !important;
}

.order-funnel-modal .billing-form .billing-form-field input:focus,
.order-funnel-page .billing-form .billing-form-field input:focus,
.order-funnel-modal-overlay .order-funnel-modal .billing-form .billing-form-field input:focus,
.order-funnel-page .order-funnel-page-container .billing-form .billing-form-field input:focus {
    outline: none !important;
    border-color: #007cba !important;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1) !important;
}

/* Media queries pour mobile */
@media (max-width: 768px) {
    .order-funnel-modal .billing-form .billing-form-row,
    .order-funnel-page .billing-form .billing-form-row,
    .order-funnel-modal-overlay .order-funnel-modal .billing-form .billing-form-row,
    .order-funnel-page .order-funnel-page-container .billing-form .billing-form-row {
        grid-template-columns: 1fr !important;
    }
    
    .order-funnel-modal .copyright-img-min .img-cv-payment,
    .order-funnel-page .copyright-img-min .img-cv-payment,
    .order-funnel-modal-overlay .order-funnel-modal .copyright-img-min .img-cv-payment,
    .order-funnel-page .order-funnel-page-container .copyright-img-min .img-cv-payment {
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    .order-funnel-modal .buy-cv .pad40-pc,
    .order-funnel-modal .buy-cv-v2 .pad40-pc,
    .order-funnel-page .buy-cv .pad40-pc,
    .order-funnel-page .buy-cv-v2 .pad40-pc,
    .order-funnel-modal-overlay .order-funnel-modal .buy-cv .pad40-pc,
    .order-funnel-modal-overlay .order-funnel-modal .buy-cv-v2 .pad40-pc,
    .order-funnel-page .order-funnel-page-container .buy-cv .pad40-pc,
    .order-funnel-page .order-funnel-page-container .buy-cv-v2 .pad40-pc {
        flex-direction: column !important;
        gap: 20px !important;
        margin-top: 20px !important;
    }
    
    .order-funnel-modal .reassurance,
    .order-funnel-page .reassurance,
    .order-funnel-modal-overlay .order-funnel-modal .reassurance,
    .order-funnel-page .order-funnel-page-container .reassurance {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 30px 20px !important;
    }
}

