/* Overlay pour assombrir l’arrière-plan */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Style de la modale */
#zipcode-popup, #zipcode-unavailable {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  border-radius: 0px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  width: 90%;
  max-width: 400px;
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
}

/* Animation d’apparition */
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* Titres */
#zipcode-popup h2, #zipcode-unavailable h2 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #333;
}

/* Paragraphe */
#zipcode-unavailable p {
  font-size: 1em;
  color: #666;
  margin-bottom: 20px;
}

/* Champ de saisie */
#zipcode-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 0px;
  font-size: 1em;
  box-sizing: border-box;
}

/* Boutons */
#zipcode-submit, #zipcode-change {
  background: #007bff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 0px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

#zipcode-submit:hover, #zipcode-change:hover {
  background: #0056b3;
}

/* Responsive */
@media (max-width: 480px) {
  #zipcode-popup, #zipcode-unavailable {
      width: 95%;
      padding: 15px;
  }

  #zipcode-popup h2, #zipcode-unavailable h2 {
      font-size: 1.2em;
  }

  #zipcode-input {
      font-size: 0.9em;
  }

  #zipcode-submit, #zipcode-change {
      padding: 8px 15px;
      font-size: 0.9em;
  }
}


/* Style pour le message de succès */
.zipcode-popup-content p {
  font-size: 1em;
  color: #333;
  margin-bottom: 20px;
}

#zipcode-close {
  background: #28a745;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 0px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

#zipcode-close:hover {
  background: #218838;
}


/* Style pour la croix de fermeture */
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #333;
}

/* Ajustement pour éviter que le contenu ne chevauche la croix */
.zipcode-popup-content {
  position: relative;
  padding-top: 30px; /* Espace pour la croix */
}

.zipcode-unavailable-content p {
  font-size: 0.9em;
  line-height: 1.4;
}
