/* loginpopup.css v1.0.0 — charte Infinie Santé (brun #826E63 / orange #FF6600) */

/* === Bouton "Se connecter" du header (a.login, déclencheur de la popup) ===
   Restylé en gros bouton pilule orange sans toucher au thème : le texte
   d'origine ("Connexion"/"Log in") est masqué visuellement (conservé pour
   les lecteurs d'écran) et remplacé par "Se connecter" via ::after.
   À vérifier après déploiement : le lien a.login peut contenir une icône ou
   d'autres enfants selon la version réelle du header — ajuster si besoin. */
a.login {
    display: inline-block !important;
    background-color: #FF6600 !important;
    background-image: linear-gradient(to bottom, #ff8533, #FF6600) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0 !important;
    line-height: 42px !important;
    height: 42px !important;
    padding: 0 24px !important;
    border-radius: 24px !important;
    text-decoration: none !important;
    text-shadow: none !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
a.login:after {
    content: 'Se connecter';
    font-size: 15px;
}
a.login:hover {
    background-color: #e65c00 !important;
    background-image: none !important;
    color: #fff !important;
}

/* === Remonte le bloc complet #header_user (décalage visuel pur) ===
   Vérifié en live : #header_user a un margin-top:38px fixe hérité du thème
   (calibré pour l'ancien petit lien texte), qui poussait notre bouton de 42px
   trop bas par rapport au panier. Piège rencontré : réduire directement ce
   margin-top rétrécissait la hauteur auto-calculée de #header (basée sur ses
   colonnes flottantes), ce qui faisait remonter le menu suivant par-dessus le
   logo. Solution : position:relative + top, qui déplace le rendu visuel SANS
   changer l'espace réservé dans le flux — la hauteur de #header ne bouge plus. */
#header_user {
    position: relative !important;
    top: -10px !important;
}

/* === Recentrage vertical de la zone #header_user_info (DOM confirmé en
   live : span "Bienvenue" + a.login + a#your_account "Mon compte") ===
   Le bouton pilule fait 42px de haut, ce qui décalait "Mon compte" avant
   ce correctif ; le texte "Bienvenue" est retiré (le bouton parle de lui-même). */
#header_user_info {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
}
#header_user_info > span:first-child {
    display: none !important;
}
#header_user_info #your_account {
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
}
#header_user_info #your_account span {
    font-weight: 700 !important;
    font-size: 13px !important;
}

.lp-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .55);
}
.lp-modal.lp-open { display: block; }

.lp-modal-box {
    position: absolute;
    top: 50%; left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 14px;
    padding: 34px 30px 26px;
    max-width: 400px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
    text-align: center;
}

.lp-close {
    position: absolute;
    top: 10px; right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
}
.lp-close:hover { color: #333; }

.lp-title {
    font-size: 21px;
    font-weight: 700;
    color: #4a3b34;
    margin: 4px 0 10px;
    line-height: 1.3;
}
.lp-brand-orange { color: #FF6600; }

.lp-subtitle {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 22px;
}

.lp-field { margin-bottom: 14px; text-align: left; }
.lp-field input[type="email"],
.lp-field input[type="password"],
.lp-field input[type="text"] {
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
}
.lp-field input:focus {
    border-color: #826E63;
    outline: none;
}

.lp-pass-wrap { position: relative; }
.lp-pass-wrap input { padding-right: 42px; }
.lp-toggle-pass {
    position: absolute;
    right: 8px; top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 16px;
    padding: 4px;
}

.lp-forgot {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #826E63;
    text-decoration: none;
    margin: -6px 0 16px;
}
.lp-forgot:hover { text-decoration: underline; }

.lp-error {
    display: none;
    color: #c0392b;
    font-size: 12.5px;
    margin: 0 0 12px;
    text-align: left;
}
.lp-error.lp-show { display: block; }

.lp-submit {
    display: block;
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background-color: #FF6600;
    background-image: linear-gradient(to bottom, #ff8533, #FF6600);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, .15);
}
.lp-submit:hover {
    background-color: #e65c00;
    background-image: none;
}
.lp-submit:disabled { opacity: .6; cursor: wait; }

.lp-divider {
    position: relative;
    text-align: center;
    color: #aaa;
    font-size: 12px;
    margin: 18px 0;
}
.lp-divider:before,
.lp-divider:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e2e2e2;
}
.lp-divider:before { left: 0; }
.lp-divider:after { right: 0; }

#lp-google-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 6px;
    min-height: 40px;
}

.lp-visit-row { text-align: center; margin-top: 18px; }
.lp-just-visit {
    background: none;
    border: none;
    color: #826E63;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    padding: 6px;
}
.lp-just-visit:hover { color: #4a3b34; }

.lp-cancel-link {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 14px;
    cursor: pointer;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .lp-modal-box { padding: 28px 20px 20px; }
    .lp-title { font-size: 19px; }
}
