/**
 * OxygenServ - Checkout & Thank You Page Styles
 * Loaded only on checkout pages via wp_enqueue_style
 */

/* ============================================
   THANK YOU PAGE - Cacher éléments Flux
   ============================================ */

.flux-ty-box--subscriptions,
.flux-ty__back,
.flux-ty__continue,
.flux-ty-subscriptions,
.flux-ty-box:empty,
.flux-ty-box:not(:has(*:not(style):not(script))) {
    display: none !important;
}

.flux-ty-box:has(> :empty:only-child),
.flux-ty .flux-ty-box:nth-last-child(2):not(:has(.flux-review-customer)) {
    display: none !important;
}

.flux-ty p[class=""],
.flux-ty > p,
.flux-checkout p:has(a[href*="profil/subscriptions"]) {
    display: none !important;
}

/* Bouton footer thank you */
.flux-button--ty {
    background: #3146ff !important;
    color: #fff !important;
    border-radius: 10px !important;
}
.flux-button--ty:hover {
    background: #1e2eb8 !important;
}

/* Box Contact */
.flux-review-customer {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 1rem !important;
}

.flux-review-customer__label {
    color: #64748b !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.flux-review-customer__value {
    color: #1f2937 !important;
    font-weight: 500 !important;
}

/* ============================================
   THANK YOU PAGE - Container principal
   ============================================ */

.os-thankyou-container {
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 100%;
    margin: 0 auto;
    background: transparent;
}

.flux-ty-box:has(.os-thankyou-container) {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 1rem !important;
}

/* Spinner de création */
.os-thankyou-animation {
    margin-bottom: 1.5rem;
}

.os-spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border: 3px solid #e2e8f0;
    border-top-color: #3146ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.os-loading-text {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Succès */
.os-thankyou-success {
    margin-bottom: 1.5rem;
}

.os-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    color: #10b981;
    animation: checkmark 0.5s ease-out;
}

.os-success-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes checkmark {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Titre */
.os-thankyou-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
}

/* Bouton principal */
.os-thankyou-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #3146ff !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(49, 70, 255, 0.25);
}

.os-thankyou-button span,
.os-thankyou-button svg {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.os-thankyou-button:hover {
    background: #1e2eb8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 70, 255, 0.35);
    color: #fff !important;
}

.os-thankyou-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #fff !important;
}

.os-thankyou-button .os-arrow {
    transition: transform 0.2s ease;
}

.os-thankyou-button:hover .os-arrow {
    transform: translateX(3px);
}

/* Variante wallet du bouton (vert) */
.os-thankyou-button--wallet {
    background: #10b981 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25) !important;
}
.os-thankyou-button--wallet:hover {
    background: #059669 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
}

@media (max-width: 480px) {
    .os-thankyou-container {
        padding: 1rem 0.5rem 1.5rem;
    }

    .os-thankyou-button {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    .os-thankyou-title {
        font-size: 1.1rem;
    }
}

/* ============================================
   CHECKOUT - SECTION CHOIX DU JEU
   ============================================ */

.os-checkout-gamemode-section {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    margin-bottom: 1.5rem !important;
}

.os-checkout-gamemode-section .os-section-title {
    display: block !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 1rem !important;
}

.os-checkout-gamemode-section .form-row {
    margin-bottom: 0.75rem !important;
    padding: 0 !important;
}

.os-checkout-gamemode-section .form-row:last-child {
    margin-bottom: 0 !important;
}

.os-checkout-gamemode-section select {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    font-size: 0.95rem !important;
}

.os-checkout-gamemode-section select:focus {
    border-color: #3146ff !important;
    box-shadow: 0 0 0 3px rgba(49, 70, 255, 0.1) !important;
    outline: none !important;
}

.os-checkout-gamemode-section label {
    font-weight: 500 !important;
    color: #374151 !important;
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

/* ============================================
   CHECKOUT - SECTION MOYENS DE PAIEMENT
   ============================================ */

.os-checkout-payment-section {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    margin-top: 0 !important;
}

.os-checkout-payment-section > .os-section-title {
    display: block !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 1rem !important;
}

.os-checkout-payment-section .wc_payment_methods,
.os-checkout-payment-section ul.payment_methods {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* Masquer le label Stripe redondant */
.os-checkout-payment-section .wc_payment_methods > li > label[for="payment_method_stripe"],
.os-checkout-payment-section .wc_payment_methods > li > input[type="radio"],
.woocommerce-checkout .wc_payment_methods > li > label[for="payment_method_stripe"] {
    display: none !important;
}

/* Liste des cartes */
.woocommerce-checkout .wc_payment_method .payment_box,
.woocommerce-checkout .wc_payment_method ul {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.woocommerce-checkout .wc_payment_method ul li,
.woocommerce-checkout .wc-stripe-saved-methods li {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0.875rem 1rem !important;
    margin-bottom: 0.5rem !important;
    list-style: none !important;
    transition: border-color 0.2s !important;
}

.woocommerce-checkout .wc_payment_method ul li:hover {
    border-color: #3146ff !important;
}

.woocommerce-checkout .wc_payment_method ul li:last-child {
    margin-bottom: 0 !important;
}

.woocommerce-checkout .wc_payment_method ul li label {
    font-weight: 500 !important;
    color: #1f2937 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.woocommerce-checkout .wc_payment_method ul li input[type="radio"] {
    accent-color: #3146ff !important;
}

.woocommerce-checkout .wc_payment_methods > li > input[type="radio"] {
    display: none !important;
}

/* ============================================
   CHECKOUT - SECTION OXYCOINS
   ============================================ */

.os-oxycoins-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%) !important;
    border: 1px solid #c7d2fe !important;
    border-radius: 12px !important;
    padding: 1rem 1.25rem !important;
    margin-bottom: 1rem !important;
}

.os-oxycoins-header {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

.os-oxycoins-logo,
.os-oxycoins-logo-wrapper {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
}

.os-oxycoins-logo {
    object-fit: contain !important;
}

.os-oxycoins-logo-wrapper svg {
    width: 32px !important;
    height: 32px !important;
}

.os-oxycoins-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.125rem !important;
}

.os-oxycoins-title {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #3146ff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
}

.os-oxycoins-balance {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #10b981 !important;
}

.os-oxycoins-balance .woocommerce-Price-amount {
    color: #10b981 !important;
}

.os-oxycoins-explanation {
    font-size: 0.8rem !important;
    color: #64748b !important;
    margin: 0 0 0.75rem 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.os-oxycoins-toggle-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
}

.os-oxycoins-label {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
}

/* Toggle Switch */
.os-toggle-switch {
    position: relative !important;
    display: inline-block !important;
    width: 48px !important;
    height: 26px !important;
    cursor: pointer !important;
}

.os-toggle-slider {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #cbd5e1 !important;
    border-radius: 26px !important;
    transition: background-color 0.3s !important;
}

.os-toggle-slider::before {
    content: '' !important;
    position: absolute !important;
    height: 20px !important;
    width: 20px !important;
    left: 3px !important;
    bottom: 3px !important;
    background-color: #fff !important;
    border-radius: 50% !important;
    transition: transform 0.3s !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.os-toggle-switch.checked .os-toggle-slider {
    background-color: #3146ff !important;
}

.os-toggle-switch.checked .os-toggle-slider::before {
    transform: translateX(22px) !important;
}

/* Masquer la ligne wallet originale (partout) */
.os-oxycoins-row + tr[class*="wallet"],
tr.wc-wallet-partial-payment-row,
tr.wallet-pay-partial,
[class*="wallet-pay"],
.woocommerce-checkout-review-order-table tr:has([class*="wallet"]),
.flux-checkout tr:has(input[name*="wallet"]),
.flux-checkout [class*="pay-by-wallet"],
.flux-order-summary [class*="wallet"] {
    display: none !important;
}

/* ============================================
   CHECKOUT - BOUTON COMMANDER
   ============================================ */

.woocommerce-checkout #place_order,
.woocommerce-checkout button[type="submit"].flux-btn,
.flux-checkout #place_order,
button#place_order {
    background: #3146ff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.875rem 1.5rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    width: auto !important;
    min-width: 200px !important;
    max-width: 100% !important;
    margin-top: 1rem !important;
    transition: background 0.2s, transform 0.1s !important;
    cursor: pointer !important;
    display: inline-block !important;
    text-align: center !important;
    line-height: 1.4 !important;
    height: auto !important;
}

.woocommerce-checkout #place_order:hover,
button#place_order:hover {
    background: #1e2eb8 !important;
    transform: translateY(-1px) !important;
}

.woocommerce-checkout #place_order:active,
button#place_order:active {
    transform: translateY(0) !important;
}

/* Reset des styles Flux qui peuvent forcer une taille énorme */
.flux-checkout .flux-btn,
.flux-checkout button.flux-btn {
    font-size: 0.95rem !important;
    padding: 0.875rem 1.5rem !important;
    height: auto !important;
    line-height: 1.4 !important;
}

/* ============================================
   CHECKOUT - CHECKBOXES (CGV + RETRACTATION)
   ============================================ */

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
.woocommerce-checkout .withdrawal-checkbox,
.woocommerce-checkout .validate-required {
    margin-top: 1rem !important;
}

/* Container pour chaque checkbox */
.woocommerce-checkout .woocommerce-form__label-for-checkbox,
.woocommerce-checkout .withdrawal-checkbox label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 0.85rem !important;
    font-family: inherit !important;
    font-weight: 400 !important;
    color: #475569 !important;
    line-height: 1.5 !important;
}

/* Forcer la même taille sur tout le texte */
.woocommerce-checkout .woocommerce-form__label-for-checkbox *,
.woocommerce-checkout .withdrawal-checkbox label * {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

.woocommerce-checkout .woocommerce-form__label-for-checkbox:hover,
.woocommerce-checkout .withdrawal-checkbox label:hover {
    border-color: #3146ff !important;
    background: #f0f4ff !important;
}

/* Checkbox custom */
.woocommerce-checkout .woocommerce-form__input-checkbox,
.woocommerce-checkout .withdrawal-checkbox input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 5px !important;
    background: #fff !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.woocommerce-checkout .woocommerce-form__input-checkbox:hover,
.woocommerce-checkout .withdrawal-checkbox input[type="checkbox"]:hover {
    border-color: #3146ff !important;
}

.woocommerce-checkout .woocommerce-form__input-checkbox:checked,
.woocommerce-checkout .withdrawal-checkbox input[type="checkbox"]:checked {
    background: #3146ff !important;
    border-color: #3146ff !important;
}

.woocommerce-checkout .woocommerce-form__input-checkbox:checked::after,
.woocommerce-checkout .withdrawal-checkbox input[type="checkbox"]:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 45% !important;
    width: 5px !important;
    height: 10px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

/* Focus state */
.woocommerce-checkout .woocommerce-form__input-checkbox:focus,
.woocommerce-checkout .withdrawal-checkbox input[type="checkbox"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(49, 70, 255, 0.2) !important;
}

/* Texte du label */
.woocommerce-checkout .woocommerce-form__label-for-checkbox .woocommerce-terms-and-conditions-checkbox-text,
.woocommerce-checkout .withdrawal-checkbox label span {
    flex: 1 !important;
}

/* Liens dans les labels */
.woocommerce-checkout .woocommerce-form__label-for-checkbox a,
.woocommerce-checkout .withdrawal-checkbox label a {
    color: #3146ff !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
}

.woocommerce-checkout .woocommerce-form__label-for-checkbox a:hover,
.woocommerce-checkout .withdrawal-checkbox label a:hover {
    color: #1e2eb8 !important;
}

/* Astérisque requis */
.woocommerce-checkout .woocommerce-form__label-for-checkbox .required,
.woocommerce-checkout .withdrawal-checkbox .required {
    color: #ef4444 !important;
    font-weight: 600 !important;
}

/* État validé (checked) - bordure verte */
.woocommerce-checkout .woocommerce-form__label-for-checkbox:has(input:checked),
.woocommerce-checkout .withdrawal-checkbox label:has(input:checked) {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
}

/* ============================================
   CHECKOUT - BREADCRUMB FIX (texte visible)
   ============================================ */

/* Fix: S'assurer que le texte des étapes est toujours lisible */
.flux-breadcrumb__step,
.flux-steps__step,
[class*="flux-breadcrumb"] > *,
[class*="flux-steps"] > * {
    color: #64748b !important;
    background: transparent !important;
}

/* Étape active - bien visible avec fond bleu clair */
.flux-breadcrumb__step.is-active,
.flux-steps__step.is-active,
.flux-breadcrumb__step--active,
.flux-steps__step--active {
    color: #3146ff !important;
    background: #eef2ff !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
}

/* Étape complétée - vert */
.flux-breadcrumb__step.is-complete,
.flux-steps__step.is-complete {
    color: #10b981 !important;
}

/* ============================================
   CHECKOUT - STEPPER (Côte à côte, clean)
   ============================================ */

.flux-stepper {
    margin-bottom: 1.5rem !important;
}

.flux-stepper ul {
    display: flex !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.flux-stepper__step {
    flex: 1 !important;
}

/* Cacher le séparateur par défaut de Flux */
.flux-stepper__step::after,
.flux-stepper__step::before {
    display: none !important;
    content: none !important;
}

.flux-stepper__button {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    width: 100% !important;
    padding: 0.75rem 1.25rem !important;
    background: #f1f5f9 !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.flux-stepper__step.selected .flux-stepper__button {
    background: #eef2ff !important;
}

.flux-stepper__step.disabled .flux-stepper__button {
    background: #f8fafc !important;
    cursor: default !important;
}

/* Indicateur (numéro) */
.flux-stepper__indicator {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: #cbd5e1 !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

.flux-stepper__step.selected .flux-stepper__indicator {
    background: #3146ff !important;
    color: white !important;
}

.flux-stepper__step.disabled .flux-stepper__indicator {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
}

/* Titre */
.flux-stepper__title {
    font-size: 0.9rem !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.flux-stepper__step.selected .flux-stepper__title {
    color: #1e293b !important;
    font-weight: 600 !important;
}

.flux-stepper__step.disabled .flux-stepper__title {
    color: #94a3b8 !important;
}

/* Mobile */
@media (max-width: 480px) {
    .flux-stepper__button {
        padding: 0.6rem 1rem !important;
        gap: 0.5rem !important;
    }

    .flux-stepper__indicator {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.7rem !important;
    }

    .flux-stepper__title {
        font-size: 0.8rem !important;
    }
}

/* ============================================
   CHECKOUT - BOUTON CONTINUER (Fix grisé)
   ============================================ */

/* Bouton principal bleu */
.flux-button,
button.flux-button,
.flux-checkout .flux-button,
#place_order {
    background: #3146ff !important;
    background-color: #3146ff !important;
    color: #fff !important;
    opacity: 1 !important;
    cursor: pointer !important;
    border: none !important;
    filter: none !important;
    border-radius: 8px !important;
    padding: 0.875rem 1.5rem !important;
    font-weight: 600 !important;
    -webkit-text-fill-color: white !important;
}

.flux-button:hover,
button.flux-button:hover,
#place_order:hover {
    background: #1e2eb8 !important;
    background-color: #1e2eb8 !important;
}

/* Bouton Retour */
.flux-step__back,
a.flux-step__back {
    background: transparent !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
}

.flux-step__back:hover,
a.flux-step__back:hover {
    color: #3146ff !important;
    -webkit-text-fill-color: #3146ff !important;
}

/* ============================================
   CHECKOUT - BOUTON AVEC PRIX
   ============================================ */

.os-btn-price {
    opacity: 0.9 !important;
    font-weight: 500 !important;
    margin-left: 0.25rem !important;
}

#place_order,
button[type="submit"][name="woocommerce_checkout_place_order"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

/* ============================================
   CHECKOUT - ICÔNES CARTES BANCAIRES
   ============================================ */

.os-card-icons {
    display: flex !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
    flex-wrap: wrap !important;
}

.os-card-icon {
    width: 42px !important;
    height: 28px !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

/* ============================================
   CHECKOUT - BADGES DE CONFIANCE
   ============================================ */

.os-trust-badges {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 1.25rem !important;
    margin-top: 1.5rem !important;
    padding: 1rem !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
}

.os-trust-badge {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.8rem !important;
    color: #475569 !important;
    font-weight: 500 !important;
}

.os-trust-badge svg {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
}

.os-trust-badge--secure svg {
    color: #10b981 !important;
}

.os-trust-badge--refund svg {
    color: #3146ff !important;
}

.os-trust-badge--fast svg {
    color: #f59e0b !important;
}

@media (max-width: 640px) {
    .os-trust-badges {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    .os-trust-badge {
        width: 100% !important;
    }
}


/* ============================================
   CHECKOUT - SPECS PRODUIT
   ============================================ */

.os-product-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
}

.os-product-header {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    font-size: 1.2rem !important;
    font-weight: 500 !important;
}

.os-offer-badge {
    display: inline-block !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 0.4rem 0.85rem !important;
    border-radius: 5px !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
}

/* Eco - Vert */
.os-offer-eco {
    background-color: #dcfce7 !important;
    color: #166534 !important;
}

/* Standard - Bleu */
.os-offer-standard {
    background-color: #dbeafe !important;
    color: #1e40af !important;
}

/* Premium - Jaune */
.os-offer-premium {
    background-color: #fef9c3 !important;
    color: #854d0e !important;
}

/* Power - Rouge */
.os-offer-power {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
}

.os-product-specs-line {
    display: block !important;
    font-size: 1.1rem !important;
    color: #64748b !important;
    font-weight: 400 !important;
    margin-top: 0.3rem !important;
}

/* Cacher les attributs de variation WooCommerce par défaut dans le checkout */
.woocommerce-checkout .variation,
.woocommerce-checkout .variation dt,
.woocommerce-checkout .variation dd,
.woocommerce-checkout dl.variation,
.flux-checkout .variation,
.flux-checkout dl.variation {
    display: none !important;
}

/* ============================================
   CHECKOUT - WARNING DOUBLONS PANIER
   ============================================ */

.os-duplicate-warning {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.6rem 0.85rem !important;
    margin: 0.5rem 0 !important;
    background: #fef3c7 !important;
    border: 1px solid #fcd34d !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    color: #92400e !important;
}

.os-duplicate-warning svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    color: #d97706 !important;
}

.os-duplicate-warning span {
    line-height: 1.3 !important;
}

/* ============================================
   CHECKOUT - RECURRING INFO (sous le total)
   ============================================ */

/* Supprimer le padding du total quand recurring suit */
.order-total:has(+ .os-recurring-info) th,
.order-total:has(+ .os-recurring-info) td {
    padding-bottom: 0.5rem !important;
}

/* Cacher tout divider/séparateur avant le recurring */
.order-total + tr:not(.os-recurring-info),
.order-total ~ hr,
.order-total ~ .divider,
tfoot .order-total + *:not(.os-recurring-info) {
    display: none !important;
}

/* Style du recurring info */
.os-recurring-info td {
    border-top: none !important;
    padding-top: 0 !important;
}

/* ============================================
   CHECKOUT - SERVEUR-PRIVÉ OPTION
   ============================================ */

.os-serveur-prive-option {
    background: rgba(255, 45, 90, 0.08) !important;
    border: 1px solid rgba(255, 45, 90, 0.25) !important;
    border-radius: 12px !important;
    padding: 1rem 1.25rem !important;
    margin: 1rem 0 !important;
}

.os-sp-header {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-bottom: 0.5rem !important;
}

.os-sp-logo {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
}

.os-sp-title-row {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.os-sp-title {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #FF2D5A !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

.os-sp-title:hover {
    color: #e0264f !important;
    text-decoration: underline !important;
}

.os-sp-badge-free {
    display: inline-block !important;
    background: #10b981 !important;
    color: #fff !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 4px !important;
    line-height: 1 !important;
}

.os-sp-traffic {
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
}

.os-sp-bonus-badge {
    display: inline-block !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0.35rem 0.65rem !important;
    border-radius: 6px !important;
    margin-top: 0.75rem !important;
}

.os-sp-toggle-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
}

.os-sp-checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    color: #1f2937 !important;
}

.os-sp-checkbox-label input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    border: 2px solid #FF2D5A !important;
    border-radius: 5px !important;
    background: #fff !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.os-sp-checkbox-label input[type="checkbox"]:hover {
    border-color: #e0264f !important;
}

.os-sp-checkbox-label input[type="checkbox"]:checked {
    background: #FF2D5A !important;
    border-color: #FF2D5A !important;
}

.os-sp-checkbox-label input[type="checkbox"]:checked::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 45% !important;
    width: 5px !important;
    height: 10px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

/* Toggle Switch style Serveur-Privé */
.os-sp-toggle {
    position: relative !important;
    display: inline-block !important;
    width: 48px !important;
    height: 26px !important;
    cursor: pointer !important;
}

.os-sp-toggle input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
}

.os-sp-toggle-slider {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #cbd5e1 !important;
    border-radius: 26px !important;
    transition: background-color 0.3s !important;
}

.os-sp-toggle-slider::before {
    content: '' !important;
    position: absolute !important;
    height: 20px !important;
    width: 20px !important;
    left: 3px !important;
    bottom: 3px !important;
    background-color: #fff !important;
    border-radius: 50% !important;
    transition: transform 0.3s !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.os-sp-toggle input:checked + .os-sp-toggle-slider {
    background-color: #FF2D5A !important;
}

.os-sp-toggle input:checked + .os-sp-toggle-slider::before {
    transform: translateX(22px) !important;
}
