/* Espacement et layout de nos écrans (couleurs des notices : classes WC natives). */
.welko-retractation-container { max-width: 700px; margin: 0 auto; padding: 20px; }

/* Reset minimal : espacement uniforme des notices en complément des styles thème WC. */
.welko-retractation-notice { margin: 15px 0; }

/* Placeholder mode restricted : gris neutre. */
.welko-retractation-placeholder { padding: 30px; background: #f9f9f9; text-align: center; color: #666; }

/* Formulaire : layout des champs. */
.welko-retractation-form label { display: block; margin: 10px 0 5px; font-weight: 600; }
.welko-retractation-form input[type="text"],
.welko-retractation-form input[type="email"],
.welko-retractation-form textarea { width: 100%; padding-block: 8px; padding-inline: 16px; }

/* Produit exclu ou entièrement remboursé : grisé et non-cliquable. */
.welko-retractation-product-excluded { opacity: 0.5; pointer-events: none; }
.welko-retractation-product-excluded input[type="checkbox"] { display: none; }
.welko-retractation-tooltip { font-size: 12px; color: #666; font-style: italic; }

/* Fallback minimal si le thème ne stylise pas les notices WC (rare). */
/* Padding-left généreux pour laisser la place au check/icône ::before WC. */
.welko-retractation-scope .woocommerce-info,
.welko-retractation-scope .woocommerce-message,
.welko-retractation-scope .woocommerce-error {
    padding: 15px 20px 15px 55px;
    border-radius: 4px;
    margin: 15px 0;
}

/* Titre inclus dans une notice WC : taille réduite pour rester cohérent avec le message. */
.welko-retractation-notice h2 {
    font-size: 1.3em;
    margin-top: 0;
}

/* Bouton "Se rétracter" dans la liste des commandes My Account : outline neutre + espacement. */
.woocommerce-orders-table__cell-order-actions .woocommerce-button.welko_retractation {
    margin-left: 8px;
    background: transparent;
    border: 1px solid var(--wp--preset--color--primary, currentColor);
    color: var(--wp--preset--color--primary, currentColor);
}

/* Lien "Retour" placé au-dessus du h2 avec chevron gauche. */
.welko-retractation-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    margin-bottom: 12px;
}
.welko-retractation-back__chevron {
    font-size: 1.4em;
    line-height: 1;
    display: inline-block;
    transform: translateY(-1px);
}

/* Récapitulatif étape 2 : respirations autour des titres (en plus des marges héritées). */
.welko-retractation-recap h3 { padding-top: 32px; }
.welko-retractation-recap h4 { margin-top: 28px; }

/* Tableau des produits de la commande : traits horizontaux + gap visuel entre colonnes. */
.welko-retractation-items-table { border-collapse: collapse; }
.welko-retractation-items-table th,
.welko-retractation-items-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: top;
}
.welko-retractation-items-table thead th { text-align: left; }
.welko-retractation-items-table input[type="number"] { margin: 0; }

/* Fieldset "Vos coordonnées" : espacement vertical (mobile-first). */
.welko-retractation-fieldset { margin-block: 24px; }

/* Nom + Prénom empilés en mobile (comportement par défaut du <div>). */
.welko-retractation-row > p { margin: 0 0 10px; }

/* Desktop : espacements accrus + Nom/Prénom côte à côte. */
@media (min-width: 768px) {
    .welko-retractation-fieldset { margin-block: 32px; }
    .welko-retractation-row {
        display: flex;
        justify-content: space-between;
        gap: 24px;
    }
    .welko-retractation-row > p { flex: 1; margin: 0; }
}
