/**
 * Easy Return Module — SplineOnline
 * Feuille volontairement neutre : elle doit se fondre dans n'importe quel thème
 * (classic, enfant de classic, thème sur mesure). Aucune couleur de marque imposée,
 * tout est hérité ou en gris neutre.
 */

.erm-page {
    max-width: 780px;
    margin: 0 auto;
}

/* --- sélecteur de langue --- */
.erm-lang {
    text-align: right;
    font-size: .875rem;
    margin-bottom: 1rem;
}

.erm-lang-label {
    color: #777;
    margin-right: .25rem;
}

.erm-lang-link {
    display: inline-block;
    padding: .15rem .5rem;
    margin-left: .25rem;
    border: 1px solid #d6d6d6;
    border-radius: 3px;
    text-decoration: none;
}

.erm-lang-current {
    font-weight: 700;
    border-color: #999;
    background: #f6f6f6;
}

/* --- textes --- */
.erm-intro {
    margin-bottom: 1.25rem;
}

.erm-step-title {
    font-size: 1.15rem;
    margin: 1.5rem 0 .5rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid #e5e5e5;
}

.erm-required {
    font-size: .8125rem;
    color: #777;
    margin-bottom: 1rem;
}

/* --- alertes --- */
.erm-alert {
    padding: .75rem 1rem;
    border: 1px solid transparent;
    border-radius: 3px;
    margin-bottom: 1rem;
}

.erm-alert ul {
    margin: 0;
    padding-left: 1.2rem;
}

.erm-alert-danger {
    background: #fdf0ef;
    border-color: #e4a9a4;
    color: #8a2b22;
}

.erm-alert-warning {
    background: #fdf7e6;
    border-color: #e6cf8b;
    color: #7a5c11;
}

.erm-alert-success {
    background: #eef8ef;
    border-color: #a6cfa9;
    color: #2b6b31;
}

/* --- formulaire --- */
.erm-form {
    margin-bottom: 1.5rem;
}

.erm-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
}

.erm-grid > .erm-field {
    flex: 1 1 260px;
}

.erm-field {
    margin-bottom: 1rem;
}

.erm-field > label,
.erm-fieldset > legend {
    display: block;
    font-weight: 600;
    margin-bottom: .25rem;
    font-size: .9375rem;
}

.erm-field input[type="text"],
.erm-field input[type="email"],
.erm-field select,
.erm-field textarea {
    width: 100%;
    padding: .5rem .625rem;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
    background: #fff;
    font-size: .9375rem;
}

.erm-field small {
    display: block;
    margin-top: .25rem;
    color: #777;
    font-size: .8125rem;
}

.erm-fieldset {
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    padding: .75rem 1rem;
}

.erm-fieldset > legend {
    width: auto;
    padding: 0 .35rem;
    border: 0;
    margin-bottom: 0;
    font-size: .9375rem;
}

.erm-radio,
.erm-checkbox {
    display: block;
    font-weight: 400;
    margin: .35rem 0;
    cursor: pointer;
}

.erm-products {
    margin: .5rem 0 0 1.5rem;
    padding-left: .75rem;
    border-left: 2px solid #e5e5e5;
}

.erm-products-title {
    display: block;
    font-size: .8125rem;
    color: #777;
    margin-bottom: .25rem;
}

.erm-ref {
    color: #999;
}

/* piège à robots : masqué à l'écran ET aux lecteurs d'écran */
.erm-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- boutons --- */
.erm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 1.5rem 0;
}

.erm-btn {
    min-height: 44px;               /* cible tactile confortable sur mobile */
    padding: .625rem 1.25rem;
    cursor: pointer;
}

.erm-btn-confirm {
    font-weight: 700;
}

/* --- récapitulatif --- */
.erm-recap {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.erm-recap th,
.erm-recap td {
    border: 1px solid #e5e5e5;
    padding: .5rem .75rem;
    text-align: left;
    vertical-align: top;
    font-size: .9375rem;
}

.erm-recap th {
    background: #fafafa;
    width: 38%;
    font-weight: 600;
}

.erm-recap-products {
    margin: 0;
    padding-left: 1.1rem;
}

.erm-recap-help {
    font-size: .875rem;
    color: #555;
}

/* --- confirmation --- */
.erm-declaration {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    padding: 1rem;
    font-size: .8125rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
}

/* --- mentions --- */
.erm-legal {
    font-size: .8125rem;
    color: #666;
    border-top: 1px solid #e5e5e5;
    padding-top: 1rem;
}

.erm-model {
    margin-top: 1rem;
    font-size: .8125rem;
}

.erm-model summary {
    cursor: pointer;
    font-weight: 600;
}

.erm-model pre {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    padding: .75rem;
    white-space: pre-wrap;
    overflow-x: auto;
}

/* --- emplacements hors page dédiée --- */
.erm-footer-link {
    margin: .5rem 0;
    font-size: .875rem;
}

.erm-order-block {
    margin: 1rem 0;
}

@media (max-width: 575px) {
    .erm-recap th {
        width: 45%;
    }

    .erm-actions .erm-btn {
        flex: 1 1 100%;
        text-align: center;
    }
}

@media print {
    .erm-lang,
    .erm-actions,
    .erm-legal,
    .erm-model {
        display: none !important;
    }
}
