/* ================================================================
   Rétractation WooCommerce – Styles front
   Conforme L221-21 / décret n°2026-3
   ================================================================ */

.rw-retractation-wrap {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Intro */
.rw-intro {
    background: #f0f6ff;
    border-left: 4px solid #1a3a5c;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 0 6px 6px 0;
    font-size: 15px;
    line-height: 1.6;
}

/* Mentions légales */
.rw-legal-mentions {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 28px;
    font-size: 14px;
}
.rw-legal-mentions h3 {
    margin-top: 0;
    font-size: 15px;
    color: #1a3a5c;
}
.rw-legal-ref {
    font-size: 12px;
    color: #888;
    margin-bottom: 0;
}

/* Formulaire container */
.rw-form-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 28px;
}

/* Steps */
.rw-step {
    padding: 24px 28px;
    border-bottom: 1px solid #f0f0f0;
}
.rw-step:last-child {
    border-bottom: none;
}
.rw-step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.rw-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #1a3a5c;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 15px;
    flex-shrink: 0;
}
.rw-step-header h3 {
    margin: 0;
    font-size: 17px;
    color: #1a3a5c;
}
.rw-step-success .rw-step-icon {
    font-size: 28px;
}

/* Champs */
.rw-field {
    margin-bottom: 16px;
}
.rw-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}
.rw-field input[type="text"],
.rw-field input[type="email"],
.rw-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .15s;
}
.rw-field input:focus,
.rw-field textarea:focus {
    border-color: #1a3a5c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26,58,92,.15);
}
.rw-field textarea[readonly] {
    background: #f5f5f5;
    color: #555;
}
.rw-field small {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}
.rw-req { color: #c00; }

/* Boutons */
.rw-btn-primary {
    background: #1a3a5c;
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.rw-btn-primary:hover { background: #0e253f; }
.rw-btn-primary:disabled { background: #999; cursor: not-allowed; }
.rw-btn-confirm {
    background: #1a7a3a;
    font-size: 16px;
    padding: 13px 26px;
}
.rw-btn-confirm:hover { background: #125c2b; }
.rw-btn-secondary {
    background: #fff;
    color: #1a3a5c;
    border: 2px solid #1a3a5c;
    padding: 9px 18px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all .15s;
}
.rw-btn-secondary:hover { background: #f0f6ff; }
.rw-btn-secondary:disabled { opacity: .6; cursor: not-allowed; }
.rw-btn-link {
    background: none;
    border: none;
    color: #1a3a5c;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 0;
    text-decoration: underline;
    margin-left: 12px;
}

/* Erreurs */
.rw-error {
    background: #fdf0f0;
    border: 1px solid #e0a0a0;
    color: #c00;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 14px;
}

/* Récapitulatif étape 3 */
.rw-recap {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}
.rw-recap-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rw-recap-table td { padding: 6px 10px; border-bottom: 1px solid #eee; vertical-align: top; }
.rw-recap-table td:first-child { color: #666; width: 35%; }

.rw-confirm-notice {
    background: #fffbe6;
    border: 1px solid #f0d060;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 20px;
}

/* Étape 4 succès */
#rw-step-4 .rw-step-header { color: #1a7a3a; }
#rw-success-message {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 14px;
    color: #1a7a3a;
    font-weight: 600;
}
.rw-step4-ref {
    background: #eefaf1;
    border: 1px solid #9de0b5;
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 14px;
}
.rw-step4-email {
    font-size: 13px;
    color: #555;
}

/* Formulaire type papier */
.rw-formulaire-type {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0;
    margin-bottom: 20px;
    font-size: 14px;
}
.rw-formulaire-type summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 600;
    color: #1a3a5c;
    list-style: none;
}
.rw-formulaire-type summary::-webkit-details-marker { display: none; }
.rw-formulaire-type-content {
    padding: 16px 20px;
    border-top: 1px solid #eee;
}
.rw-formulaire-type-text {
    background: #f9f9f9;
    border: 1px dashed #ccc;
    padding: 14px 18px;
    border-radius: 4px;
    font-family: Georgia, serif;
    font-size: 13px;
    line-height: 1.7;
}

/* Dans Mon compte */
.rw-order-action {
    margin-top: 20px;
    padding: 18px 20px;
    background: #f0f6ff;
    border: 1px solid #c0d8f0;
    border-radius: 6px;
}
.rw-info-text { margin-bottom: 12px; font-size: 14px; }
.rw-btn-retractation {
    background: #1a3a5c !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600;
    text-decoration: none;
}
.rw-btn-retractation:hover { background: #0e253f !important; color: #fff !important; }

.rw-expired, .rw-excluded {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}
.rw-expired { background: #f9f9f9; color: #888; border: 1px solid #ddd; }
.rw-excluded { background: #fffbe6; color: #7a6000; border: 1px solid #e0c830; }

/* Utilitaire */
.rw-hidden { display: none !important; }
