/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* PROMO MARQUEE - Bandeau noir sticky */
.promo-marquee-wrapper {
    background: #000000 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    overflow: hidden !important;
    padding: 14px 0 !important;
    width: 100% !important;
}

.promo-marquee {
    display: flex !important;
    flex-direction: row !important;
    width: max-content !important; /* ← AJOUT CRUCIAL */
    animation: promo-scroll 30s linear infinite !important;
}

@keyframes promo-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-12.5%); } /* ← 100% / 8 groupes = 12.5% */
}

/* Mobile - plus rapide */
@media (max-width: 768px) {
    .promo-marquee {
        animation-duration: 15s !important;
    }
}

.promo-marquee-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    gap: 40px !important;
}

.promo-icon-text {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    padding: 0 15px !important;
}

.promo-icon-text .promo-text {
    color: white !important;
    font-family: 'Roboto Condensed', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.promo-icon-text .promo-text.highlight {
    background: #FDC103 !important;
    color: #000 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-weight: 800 !important;
    font-size: 15px !important;
}

.promo-separator {
    color: rgba(255,255,255,0.5) !important;
    font-size: 8px !important;
    display: inline-block !important;
}

.promo-fire-icon {
    font-size: 16px !important;
    display: inline-block !important;
}

html, body {
    overflow-x: hidden;
}
html {
    overflow-y: scroll;
}
body {
    overflow-y: visible !important;
}
.tornex-price-wrapper.tornex-price-wrapper {
        position: relative;
        display: flex;
        align-items: baseline;
        gap: 20px;
        font-family: 'Oswald', sans-serif !important;
        flex-wrap: nowrap;
    }

    /* Prix principal */
    .tornex-price-wrapper .tornex-price-main {
        display: flex;
        align-items: baseline;
        gap: 4px;
        white-space: nowrap;
    }

    .tornex-price-wrapper .tornex-price-value {
        color: #FDC103 !important;
        font-size: 24px !important;
        font-family: 'Oswald', sans-serif !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .tornex-price-wrapper .tornex-price-ttc {
        color: #FDC103 !important;
        font-size: 15px !important;
        font-family: 'Roboto Condensed', sans-serif !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Prix barré */
    .tornex-price-wrapper .tornex-price-old {
        display: flex;
        align-items: baseline;
        gap: 3px;
        position: relative;
        white-space: nowrap;
    }

    .tornex-price-wrapper .tornex-price-old::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 1px;
        background-color: #606060;
    }

    .tornex-price-wrapper .tornex-price-old-value {
        color: #606060 !important;
        font-size: 13px !important;
        font-family: 'Oswald', sans-serif !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .tornex-price-wrapper .tornex-price-old-ttc {
        color: #606060 !important;
        font-size: 11px !important;
        font-family: 'Oswald', sans-serif !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Badge réduction */
    .tornex-price-wrapper .tornex-price-badge {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        padding: 3px 8px;
        background: #FDC103 !important;
        border-radius: 30px;
        height: 20px;
        white-space: nowrap;
    }

    .tornex-price-wrapper .tornex-price-badge span {
        color: #0E0E0E !important;
        font-size: 11px !important;
        font-family: 'Oswald', sans-serif !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    @media (max-width: 480px) {
        .tornex-price-wrapper.tornex-price-wrapper {
            gap: 12px;
        }
        
        .tornex-price-wrapper .tornex-price-value {
            font-size: 20px !important;
        }
        
        .tornex-price-wrapper .tornex-price-ttc {
            font-size: 13px !important;
        }
    }
/* Fix Stripe CVC field hidden on mobile (Safari iOS + Chrome) */
.payment_box.payment_method_stripe {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    -webkit-transform: none !important;
}
li.payment_method_stripe {
    overflow: visible !important;
}
li.payment_method_stripe .payment_box {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}
#wc-stripe-upe-form {
    overflow: visible !important;
    height: auto !important;
}
#wc-stripe-upe-form .wc-stripe-upe-element {
    overflow: visible !important;
    min-height: 830px !important;
}
#wc-stripe-upe-form .wc-stripe-upe-element .__PrivateStripeElement {
    overflow: visible !important;
}
#wc-stripe-upe-form .wc-stripe-upe-element .__PrivateStripeElement iframe {
    min-height: 830px !important;
}
.tornex-shipping-notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin: 12px 0;
    text-align: center;
}
.tornex-shipping-progress {
    background-color: #fff3cd;
    border: 1px solid #f0c040;
    color: #856404;
}
.tornex-shipping-ok {
    background-color: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}
.tornex-bar-wrap {
    background: #e9ecef;
    border-radius: 20px;
    height: 8px;
    margin: 8px auto 2px;
    max-width: 300px;
    overflow: hidden;
}
.tornex-bar-fill {
    background: #28a745;
    height: 100%;
    border-radius: 20px;
    transition: width 0.4s ease;
}
#tornex-shipping-notice { margin: 12px 0; }
.tornex-ok {
    padding: 10px 16px; border-radius: 6px; text-align: center;
    background: #d4edda; border: 1px solid #28a745; color: #155724;
}
.tornex-progress {
    padding: 10px 16px; border-radius: 6px; text-align: center;
    background: #fff3cd; border: 1px solid #f0c040; color: #856404;
}
.tornex-bar-wrap {
    background: #e9ecef; border-radius: 20px;
    height: 8px; margin: 8px auto 0; max-width: 280px; overflow: hidden;
}
.tornex-bar-fill {
    background: #28a745; height: 100%;
    border-radius: 20px; transition: width 0.4s ease;
}

/* Stripe — hauteur fixe sans Link */
.payment_box.payment_method_stripe .__PrivateStripeElement,
.payment_box.payment_method_stripe #wc-stripe-upe-form,
.payment_box.payment_method_stripe .wc-stripe-upe-element {
    height: 250px !important;
    overflow: hidden !important;
    min-height: unset !important;
}

@media (max-width: 768px) {
    .payment_box.payment_method_stripe .__PrivateStripeElement,
    .payment_box.payment_method_stripe #wc-stripe-upe-form,
    .payment_box.payment_method_stripe .wc-stripe-upe-element {
        height: 500px !important;
    }
}