#idp-saved-modal,
#idp-login-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#idp-saved-modal .idp-overlay,
#idp-login-modal .idp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

#idp-saved-modal .idp-modal,
#idp-login-modal .idp-modal {
  position: relative;
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  z-index: 100000;
  font-family: inherit;
  animation: fadeInUp .25s ease-out;
}

#idp-saved-modal h2,
#idp-login-modal h2 {
  margin-top: 0;
  color: #222;
}

#idp-saved-modal p,
#idp-login-modal p {
  margin: 15px 0;
  color: #444;
}

#idp-saved-modal .idp-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* ✅ Bouton principal toujours bleu */
.idp-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #2271b1;   /* Bleu permanent */
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: none;      /* Supprime l’effet hover */
}

.idp-btn:hover,
.idp-btn:focus {
  background: #2271b1;
  color: #fff !important;
}

/* Bouton Fermer (gris) */
.idp-close {
  padding: 10px 18px;
  background: #f2f2f2;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  color: #444;
  transition: background .2s;
}

.idp-close:hover {
  background: #ddd;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.idp-btn-primary {
  display: inline-block;
  padding: 12px 20px;
  background: #2271b1;       /* bleu WP */
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: background 0.2s ease;
}

.idp-btn-primary:hover {
  background: #195c8c;       /* bleu foncé au hover */
  color: #fff !important;
  text-decoration: none;
}

#idp-saved-modal .idp-actions {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 15px;
}
/* Forcer le bouton OK, même si Elementor surchage */
#idp-modal-ok {
  background-color: #5aa7da !important; /* bleu pastel */
  color: #fff !important;               /* texte blanc */
  border: none !important;
  border-radius: 6px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: background 0.2s ease;
}

#idp-modal-ok:hover {
  background-color: #3f92c9 !important; /* bleu pastel foncé */
  color: #fff !important;
}
