/* ===============================
   SONELTECH Quick Order Popup
   =============================== */

/* --- Bouton "Achetez Maintenant" --- */
.qop-button {
  background-color: #0084ff;         /* bleu principal */
  color: #fff;                       /* texte blanc */
  border: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  height: 40px;                      /* même hauteur que Ajouter au panier */
  min-width: 168px;                  /* même largeur minimale */
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  transition: background-color 0.25s ease, transform 0.08s ease;
  margin-left: 10px;                 /* petit espace à gauche */
}

.qop-button:hover {
  background-color: #006cd1;         /* bleu plus foncé au survol */
  transform: translateY(-1px);
}

/* --- Overlay du popup --- */
.qop-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

/* --- Centrage du contenu --- */
.qop-modal.active {
  display: flex !important;
}

/* --- Contenu du popup --- */
.qop-modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  position: relative;
  animation: fadeIn 0.2s ease-in;
  text-align: left;
  margin: auto;
}

/* --- Bouton de fermeture (X) --- */
.qop-close {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 22px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  transition: color 0.2s ease;
}

.qop-close:hover {
  color: #000;
}

/* --- Champs de formulaire --- */
#qop-name, #qop-phone, #qop-address, #qop-qty {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  color: #222;
  box-sizing: border-box;
}

/* --- Bouton "Valider ma commande" --- */
.qop-submit {
  background-color: #2a9d48;
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  height: 40px;
  width: 100%;
  transition: background-color 0.25s ease, transform 0.08s ease;
}

.qop-submit:hover {
  background-color: #1f7a37;
  transform: translateY(-1px);
}

/* --- Animation du popup --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Titres et paragraphes --- */
.qop-modal-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
  color: #222;
  text-align: center;
}

.qop-modal-content p {
  margin-bottom: 8px;
  font-size: 14px;
  color: #444;
}

/* --- Alignement du bloc boutons (WooCommerce) --- */
.single-product .cart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
