/* ============================================================
   Création de compte assistée — charte violette du site (#906DF2)
   Objectif : UN seul panneau (incitation + champ CIP + repli manuel)
   pour une présentation uniforme, plutôt que des cadres hétérogènes.
   ============================================================ */

.sfiregtext-before-form {
    margin-bottom: 1rem;
}

.sfiregtext-intro {
    margin-bottom: 1rem;
}

/* Panneau unique regroupant tout le parcours assisté (créé par front.js) */
.sfi-assisted-panel {
    padding: 1.5rem;
    background: linear-gradient(180deg, #f6f2ff 0%, #ffffff 65%);
    border: 1px solid #906DF2;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(145, 110, 242, .12);
    max-width: 1024px;
    margin: 2.5em auto;
}

section.register-form.sfi-form-shown {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

/* Incitation : titre d'introduction au préremplissage (dans le panneau) */
.sfi-assisted-lead {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 1rem;
    padding: 0;
    background: transparent;
    border: none;
    color: #5b3ec8;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
}

.sfi-assisted-lead .fa {
    color: #906DF2;
}

/* Repli manuel : élément secondaire à l'intérieur du panneau, séparé par
   un simple filet — pas un cadre concurrent. */
.sfi-manual-toggle {
    margin: 1.25rem 0 0;
    padding: 1.1rem 0 0;
    background: transparent;
    border: none;
    border-top: 1px solid #e7e0fb;
    border-radius: 0;
    transition: box-shadow .2s ease, background-color .2s ease;
}

.sfi-manual-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    justify-content: space-between;
}

.sfi-manual-toggle .sfi-manual-text {
    color: #4a4a63;
    font-weight: 600;
}

/* Bouton secondaire : contour violet (le bouton "Rechercher avec mon CIP"
   reste le bouton principal en dégradé violet plein). */
.sfi-manual-toggle .sfi-manual-btn {
    padding: .5rem 1.1rem;
    background: #fff;
    color: #6a48d7;
    border: 1px solid #906DF2;
    border-radius: 10px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}

.sfi-manual-toggle .sfi-manual-btn:hover,
.sfi-manual-toggle .sfi-manual-btn:focus {
    background: #906DF2;
    color: #fff;
}

/* Mise en avant quand le CIP échoue (aucune officine / CIP inconnu) */
.sfi-manual-toggle--attn {
    margin-top: 1.1rem;
    padding: 1.1rem;
    border-top: none;
    border-radius: 8px;
    background: #f1eaff;
    box-shadow: 0 0 0 2px #906DF2;
}

/* Message de contexte après révélation du formulaire */
.sfi-assisted-notice {
    margin-top: 1.25rem;
    margin-bottom: 0;
}

/* Champs préremplis par le CIP : lecture seule, non modifiables */
.sfi-locked,
input.sfi-locked {
    background-color: #f2f0f9;
    color: #6b7280;
    cursor: not-allowed;
    border-style: dashed;
}

.sfi-locked:focus {
    box-shadow: none;
    outline: none;
}

/* Switch « groupement » figé sur la valeur du CIP */
.onoffswitch.sfi-locked-switch {
    opacity: .6;
    pointer-events: none;
}

/* Masquage forcé (bat le display:block inline posé par le custom.js du thème)
   — utilisé pour cacher le champ texte du groupement en parcours manuel. */
.sfi-force-hidden {
    display: none !important;
}

/* ============================================================
   Uniformisation du formulaire natif PrestaShop avec le panneau CIP.
   Le cadre n'est appliqué qu'une fois le formulaire révélé (classe
   .sfi-form-shown posée par front.js) pour éviter un cadre vide.
   ============================================================ */
.register-form.sfi-form-shown {
    padding: 1.5rem;
    margin-top: 1.25rem;
    background: #fff;
    border: 1px solid #906DF2;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(145, 110, 242, .12);
}

.sfi-form-heading {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #efeafc;
    color: #5b3ec8;
    font-weight: 700;
    font-size: 1.1rem;
}

.sfi-form-heading .fa {
    color: #906DF2;
}

/* Aligne le libellé/point d'aide et le bouton d'envoi sur la charte */
.register-form.sfi-form-shown .form-footer {
    margin-top: 1rem;
    border-top: 1px solid #efeafc;
    padding-top: 1.25rem;
}

/* ============================================================
   Récapitulatif officine (résultat du CIP) + écran token
   ============================================================ */
.sfi-cip-summary-title,
.sfi-token-screen .sfi-cip-summary-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    color: #5b3ec8;
    font-weight: 700;
    font-size: 1.1rem;
}

.sfi-cip-summary-box {
    background: #fff;
    border: 1px solid #e7e0fb;
    border-radius: 8px;
    padding: .5rem 1rem;
    margin-bottom: 1rem;
}

.sfi-cip-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem 0;
    border-bottom: 1px solid #f0ecfb;
}

.sfi-cip-summary-row:last-child {
    border-bottom: none;
}

.sfi-cip-summary-row span {
    color: #6b7280;
}

.sfi-cip-summary-row strong {
    color: #333;
    text-align: right;
}

.sfi-cip-summary-text {
    color: #4a4a63;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.sfi-cip-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    justify-content: center;
}

/* Message « CIP déjà rattaché à un compte » (doublon) : texte + boutons. */
.sfi-dup-cip__msg {
    margin: 0;
}

.sfi-dup-cip__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.sfi-token-actions {
    text-align: center;
}

.sfi-cip-back-btn {
    padding: .6rem 1.2rem;
    background: #fff;
    color: #6a48d7;
    border: 1px solid #cfc6ee;
    border-radius: 10px;
    font-weight: 600;
}

.sfi-cip-back-btn:hover,
.sfi-cip-back-btn:focus {
    background: #f1eaff;
    color: #5b3ec8;
}

.sfi-cip-confirm-btn,
.sfi-token-submit {
    padding: .6rem 1.4rem;
    background: linear-gradient(135deg, #916EF2, #7C5CE8);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(145, 110, 242, .27);
}

.sfi-cip-confirm-btn:hover,
.sfi-cip-confirm-btn:focus,
.sfi-token-submit:not(:disabled):hover,
.sfi-token-submit:not(:disabled):focus {
    background: linear-gradient(135deg, #6432E4, #281078);
    color: #fff;
}

.sfi-token-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.sfi-token-help {
    color: #4a4a63;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.sfi-token-boxes {
    display: flex;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 1.5rem;
}

.sfi-token-box {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 1px solid #cfc6ee;
    border-radius: 8px;
    color: #333;
}

.sfi-token-box:focus {
    outline: none;
    border-color: #906DF2;
    box-shadow: 0 0 0 3px rgba(145, 110, 242, .2);
}

/* Les deux boutons secondaires (« Mon email a changé » + « Renvoyer le code »)
   sur une même ligne, centrés ; empilés sur mobile. */
.sfi-token-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
}

@media (max-width: 575px) {
    .sfi-token-links {
        flex-direction: column;
    }
    .sfi-token-links .sfi-token-resend,
    .sfi-token-links .sfi-token-emailchanged {
        width: 100%;
    }
}

/* Boutons secondaires de l'écran token (« Renvoyer un code » et « Mon e-mail a
   changé ») : présentation unifiée = même style « pilule fantôme » violette pour
   les deux. */
.sfi-token-resend,
.sfi-token-emailchanged {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    padding: .5rem 1.15rem;
    background: #fff;
    color: #5b3ec8;
    border: 1px solid #cfc6ee;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.sfi-token-resend:hover:not(:disabled),
.sfi-token-emailchanged:hover:not(:disabled) {
    background: #f1eaff;
    border-color: #906DF2;
    color: #5b3ec8;
    box-shadow: 0 0 0 3px rgba(145, 110, 242, .12);
}

.sfi-token-resend:disabled,
.sfi-token-emailchanged:disabled {
    opacity: .55;
    cursor: default;
}


/* ============================================================
   Guidage par étapes (stepper) du parcours assisté
   1) Identification  2) Vérification  3) Votre profil
   ============================================================ */
.sfi-assisted-heading {
    margin: 0 0 1rem;
    text-align: center;
    color: #000;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.3;
}

.sfi-assisted-heading__title {
    display: block;
}

/* Sous-titre affiché sous le titre pendant la saisie du CIP/CP. */
.sfi-assisted-heading__sub {
    display: block;
    margin-top: 6px;
    font-size: .9rem;
    font-weight: 500;
    color: #6b6486;
}

.sfi-stepper {
    display: flex;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.sfi-step {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .45rem;
    color: #9a93b3;
    font-weight: 600;
    font-size: .9rem;
    min-width: 0;
}

/* Ligne de liaison vers la pastille precedente */
.sfi-step::before {
    content: "";
    position: absolute;
    top: 17px;
    right: 50%;
    width: 100%;
    height: 3px;
    background: #e7e0fb;
    z-index: 0;
}

.sfi-step:first-child::before {
    display: none;
}

/* Ligne coloree des que l'etape (courante ou terminee) est atteinte */
.sfi-step.is-active::before,
.sfi-step.is-done::before {
    background: #906DF2;
}

.sfi-step__num {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e7e0fb;
    color: #9a93b3;
    font-weight: 700;
    line-height: 1;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.sfi-step__label {
    line-height: 1.2;
    max-width: 10rem;
}

/* Etape courante */
.sfi-step.is-active {
    color: #5b3ec8;
}
.sfi-step.is-active .sfi-step__num {
    background: #906DF2;
    border-color: #906DF2;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(145, 110, 242, .18);
}

/* Etapes terminees */
.sfi-step.is-done {
    color: #6a48d7;
}
.sfi-step.is-done .sfi-step__num {
    background: #6a48d7;
    border-color: #6a48d7;
    color: #fff;
}

@media (max-width: 480px) {
    .sfi-stepper {
        margin-bottom: 1.25rem;
    }
    .sfi-step {
        font-size: .78rem;
        gap: .35rem;
    }
    .sfi-step__num {
        width: 30px;
        height: 30px;
    }
    .sfi-step::before {
        top: 15px;
    }
}


/* ============================================================
   Parcours manuel : en-tete structure + reassurance
   (comble le vide en haut de panneau, ancre le champ CIP)
   ============================================================ */
.sfi-manual-head {
    margin-bottom: 1.35rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e7e0fb;
}

.sfi-manual-head__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #5b3ec8;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.25;
    margin-bottom: .6rem;
}

.sfi-manual-head__title .fa {
    color: #906DF2;
}

.sfi-manual-head__text {
    color: #4a4a63;
    line-height: 1.55;
    margin: 0 0 1.1rem;
}

.sfi-manual-reassure {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sfi-manual-reassure li {
    flex: 1 1 170px;
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    background: #fff;
    border: 1px solid #e7e0fb;
    border-radius: 8px;
    padding: .7rem .8rem;
    color: #4a4a63;
    font-size: .85rem;
    line-height: 1.4;
}

.sfi-manual-reassure li .fa {
    color: #6a48d7;
    font-size: 1rem;
    margin-top: .12rem;
    flex: 0 0 auto;
}

.sfi-manual-reassure strong {
    color: #3a3a52;
}

@media (max-width: 560px) {
    .sfi-manual-reassure li {
        flex-basis: 100%;
    }
    .sfi-manual-head__title {
        font-size: 1.08rem;
    }
}


/* Bouton « Renvoyer un code » pendant le compte à rebours (anti-abus) */
.sfi-token-resend--waiting,
.sfi-token-resend--waiting:hover {
    color: #9a93b3;
    background: #f7f5fc;
    border-color: #e7e0fb;
    text-decoration: none;
    box-shadow: none;
    cursor: default;
}


/* =========================================================================
   SFI — Consentement « Synchro Odoo » (g_customfields form 4)
   Transforme la case #checkbox_synchro_odoo_0 en INTERRUPTEUR (toggle) et met
   en forme le libellé + la note d'aide. 100 % CSS (pas de JS), scopé sur la
   classe .synchro_odoo. La vraie case reste presente et fonctionnelle (le
   mirror JS de front.js continue de lire son etat).
   NE PAS modifier le template g_customfields (4/1/1_form.tpl, regénéré au save
   BO) : tout est ici, dans le CSS du module sfiregistrationtext.
   ========================================================================= */

/* Espacements internes du bloc de la case. */
.checkbox_box:has(.synchro_odoo) .checkbox_item_wp,
.checkbox_box:has(.synchro_odoo) .checkbox_item_wp .row,
.checkbox_box:has(.synchro_odoo) .checkbox_item_wp p {
    margin: 0;
}

/* Case native masquee mais fonctionnelle (cliquable via le label, focus clavier). */
.synchro_odoo {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

/* Libelle = interrupteur (pseudo-elements) + texte du consentement. */
.synchro_odoo + label {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin: 0;
    padding-left: 66px;
    font-weight: 600;
    color: #3a2e6b;
    line-height: 1.35;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

/* Piste de l'interrupteur. */
.synchro_odoo + label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 30px;
    background: #c9c4d6;
    border-radius: 999px;
    transition: background .25s ease;
}

/* Bouton rond de l'interrupteur. */
.synchro_odoo + label::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: left .25s ease;
}

/* Etat coche : piste violette (couleur du cadre) + bouton a droite. */
.synchro_odoo:checked + label::before {
    background: #8f6ef2;
}
.synchro_odoo:checked + label::after {
    left: 27px;
}

/* Accessibilite clavier : anneau de focus autour de la piste. */
.synchro_odoo:focus + label::before,
.synchro_odoo:focus-visible + label::before {
    box-shadow: 0 0 0 3px rgba(143, 110, 242, .35);
}

/* Note d'aide sous la case, alignee sous le texte du libelle. */
.checkbox_box:has(.synchro_odoo) .help-block {
    margin: 10px 0 0;
    padding-left: 66px;
    font-size: 13px;
    font-style: italic;
    color: #6b6486;
    line-height: 1.4;
}

@media (max-width: 575px) {
    .checkbox_box:has(.synchro_odoo) .help-block {
        padding-left: 0;
    }
}


/* =========================================================================
   SFI — Badge « Recommandé » à cheval sur le bord supérieur du cadre du
   consentement « Synchro Odoo ». 100 % CSS (pseudo-élément), scopé sur le
   .formbuilder_group qui contient la case. Ne modifie pas le template
   g_customfields.
   ========================================================================= */
.formbuilder_group:has(input[name="synchro_odoo"]) {
    position: relative;
}
.formbuilder_group:has(input[name="synchro_odoo"])::before {
    content: "Recommandé";
    position: absolute;
    top: 0;
    left: 24px;
    transform: translateY(-50%);
    background: #8f6ef2;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(143, 110, 242, .35);
    white-space: nowrap;
    line-height: 1.2;
    z-index: 2;
}

@media (max-width: 575px) {
    .formbuilder_group:has(input[name="synchro_odoo"])::before {
        left: 16px;
        font-size: 11px;
        padding: 4px 11px;
    }
}


/* ============================================================
   SFI — Résultats de recherche par code postal (#sfi-cp-results)
   Cartes cliquables (<=5 officines) ou liste déroulante (>5), créées par
   front.js. Charte violette du site (#906DF2).
   ============================================================ */
.sfi-cp-results {
    margin-top: 12px;
}
.sfi-cp-results__note {
    margin: 0 0 8px;
    font-size: 13px;
    color: #6b6486;
}
.sfi-cp-card {
    display: block;
    width: 100%;
    text-align: left;
    margin: 0 0 8px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e7e0fb;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.sfi-cp-card:hover,
.sfi-cp-card:focus {
    border-color: #906DF2;
    box-shadow: 0 2px 10px rgba(145, 110, 242, .18);
    outline: none;
}
.sfi-cp-card__name {
    display: block;
    font-weight: 700;
    color: #3a2e6b;
}
.sfi-cp-card__addr {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: #6b6486;
}
/* Liste des officines : défilement au-delà de 5 résultats. */
.sfi-cp-list--scroll {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}


/* ============================================================
   SFI — Séparateur « OU » entre la recherche par CIP et par code postal
   (#g_customfields_28 : html_box « Ou » généré par g_customfields — stylé
   ici, le tpl du module n'est pas modifié). Trait horizontal de chaque côté
   du mot pour matérialiser les deux façons de rechercher.
   ============================================================ */
#g_customfields_28 .html_box p {
    display: flex;
    align-items: center;
    margin: 18px 0;
    color: #6b6486;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}
#g_customfields_28 .html_box p::before,
#g_customfields_28 .html_box p::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #e7e0fb;
}
#g_customfields_28 .html_box p::before {
    margin-right: 14px;
}
#g_customfields_28 .html_box p::after {
    margin-left: 14px;
}


/* ============================================================
   SFI — Consentement « synchro Odoo » verrouillé sur OUI à l'inscription :
   l'interrupteur reste visuellement ACTIVÉ (vert) mais non modifiable.
   Classe posée par front.js (sfi-synchro-locked).
   ============================================================ */
.onoffswitch.sfi-synchro-locked {
    cursor: not-allowed;
}
.onoffswitch.sfi-synchro-locked .onoffswitch-label {
    pointer-events: none;
}

/* ============================================================
   SFI — En-tête officine (nom + CIP) affiché au-dessus du message
   « officine sans e-mail » (parcours no-email). Charte violette (#906DF2).
   Posé par front.js : showOfficineHead().
   ============================================================ */
.sfi-officine-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 14px;
    margin: 0 0 14px;
    padding: 16px 18px;
    background: #f3eeff;
    border: 1px solid #d9c9ff;
    border-left: 5px solid #906DF2;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(144, 109, 242, .18);
}

.sfi-officine-head__main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sfi-officine-head__name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5b3ec8;
    font-weight: 700;
    font-size: 1.55rem;
    line-height: 1.3;
}

.sfi-officine-head__name .fa {
    color: #906DF2;
}

.sfi-officine-head__address {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #6b6486;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
}

.sfi-officine-head__address .fa {
    color: #906DF2;
}

/* Ligne « groupement » (icône fa-users). Classe dédiée : personnalisable
   indépendamment de l'adresse postale. */
.sfi-officine-head__groupement {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #000000;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
}

.sfi-officine-head__groupement .fa {
    color: #906DF2;
}

/* Badge parent (mot « CIP ») contenant un badge enfant (le numéro). */
.sfi-officine-head__cip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 0 0 10px;
    background: #e7ddff;
    border-radius: 999px;
    color: #906df2;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap;
    border: 1px solid #906df2;
}

.sfi-officine-head__cip strong {
    display: inline-block;
    padding: 3px 12px;
    background: #906DF2;
    color: #fff;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: none;
}

/* ============================================================
   SFI — Modale « Mon email a changé » (saisie nouvel e-mail + téléphone).
   Charte violette du site.
   ============================================================ */
.sfi-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(40, 25, 90, .45);
}

.sfi-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(40, 25, 90, .3);
}

.sfi-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: none;
    font-size: 26px;
    line-height: 1;
    color: #9a93b3;
    cursor: pointer;
}

.sfi-modal__close:hover {
    color: #5b3ec8;
}

.sfi-modal__title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5b3ec8;
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0 24px 10px 0;
}

.sfi-modal__title .fa {
    color: #906DF2;
}

.sfi-modal__text {
    color: #4a4a63;
    font-size: .92rem;
    line-height: 1.5;
    margin: 0 0 16px;
}

.sfi-modal__field {
    margin-bottom: 14px;
}

.sfi-modal__field label {
    display: block;
    font-weight: 600;
    font-size: .85rem;
    color: #4a3b7a;
    margin-bottom: 4px;
}

.sfi-modal__field .form-control {
    width: 100%;
}

.sfi-modal__error {
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c6c2;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: .85rem;
    margin-bottom: 12px;
}

.sfi-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.sfi-modal__cancel {
    background: #fff;
    color: #6a48d7;
    border: 1px solid #cfc6ee;
    border-radius: 10px;
    padding: .55rem 1.1rem;
    font-weight: 600;
}

.sfi-modal__cancel:hover {
    background: #f1eaff;
    color: #5b3ec8;
}

.sfi-modal__submit {
    border-radius: 10px;
    padding: .55rem 1.2rem;
    font-weight: 700;
}

/* ============================================================
   SFI — Alerte « CIP ambigu » (plusieurs officines pour ce CIP).
   Bloc alert-warning rendu par le custom.js du thème : le 1er
   paragraphe (message « Plusieurs officines… ») est mis en avant.
   ============================================================ */
.alert.alert-warning.sfi-ambiguous p:nth-child(1) {
    font-weight: 600;
}
