/**
 * Bouton « Continuer avec Google »
 * @author Ladina Sedera
 *
 * Couleur de survol = couleur du bouton « Commander » du panier (#e59b48).
 * Ajustez --gglog-hover-bg ci-dessous si la teinte du panier évolue.
 */
:root {
  --gglog-hover-bg: #e59b48;
  --gglog-hover-text: #ffffff;
}

.gglog-wrapper {
  margin: 10px 0;
}

/* !important : nécessaire pour primer sur les styles de liens du thème
   (le menu header cible les <a> via un sélecteur à ID, très spécifique). */
.gglog-wrapper a.gglog-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin: 0 !important;
  padding: 10px 16px !important;
  border: 1px solid #dadce0 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  color: #3c4043 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.gglog-wrapper a.gglog-btn:hover,
.gglog-wrapper a.gglog-btn:focus {
  background: var(--gglog-hover-bg) !important;
  border-color: var(--gglog-hover-bg) !important;
  color: var(--gglog-hover-text) !important;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15) !important;
}

.gglog-icon {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border-radius: 2px;
  padding: 2px;
  line-height: 0;
}

.gglog-label {
  white-space: nowrap;
}

/* Bouton Google dans le menu déroulant « Mon compte » : pleine largeur,
   rectangulaire pour s'aligner sur les boutons noirs de la maquette. */
.gglog-wrapper.gglog-header a.gglog-btn {
  max-width: 100% !important;
  padding: 11px 16px !important;
  font-size: 14px !important;
  border-radius: 0 !important;
}

/* === Menu déroulant « Mon compte » (desktop + mobile) : mise en page maquette ===
   Sélecteurs par classe .user-info (commune aux deux conteneurs) + !important,
   pour primer sur les styles de liens du thème quel que soit le conteneur. */
.user-info {
  min-width: 281px !important;
  max-width: calc(100vw - 24px);
}
.user-info li.gglog-section-title,
.user-info li.gglog-cta,
.user-info li.gglog-forgot,
.user-info li.gglog-header-btn {
  list-style: none !important;
}
.user-info .gglog-section-title {
  margin: 2px 0 8px !important;
  padding: 0 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  color: #111111 !important;
}
.user-info .gglog-section-title strong {
  font-weight: 700;
}
.user-info .gglog-section-new {
  margin-top: 18px !important;
}

/* Boutons noirs pleins « Se Connecter » / « Créer mon compte » */
.user-info a.gglog-btn-dark {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 11px 16px !important;
  background: #111111 !important;
  border: 1px solid #111111 !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.user-info a.gglog-btn-dark:hover,
.user-info a.gglog-btn-dark:focus {
  background: var(--gglog-hover-bg) !important;
  border-color: var(--gglog-hover-bg) !important;
  color: var(--gglog-hover-text) !important;
}

/* Lien « Mot de passe oublié ? » */
.user-info .gglog-forgot {
  margin: 8px 0 0 !important;
}
.user-info .gglog-forgot a {
  color: #111111 !important;
  font-size: 13px !important;
  text-decoration: underline !important;
}

/* Espacement du bouton Google dans le popup */
.user-info .gglog-header-btn {
  margin: 0 !important;
}
.user-info .gglog-wrapper.gglog-header {
  margin: 8px 0 0 !important;
}
