/* ==============================
   Modal WhatsApp WooCommerce
   ============================== */

#wc-ww-modal {
  display: none;
}

/* Fondo oscuro */
#wc-ww-modal #wc-ww-modal-bg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
}

/* Caja principal */
#wc-ww-modal #wc-ww-modal-box {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  max-width: 520px;
  width: 92%;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  overflow-y: auto;
  max-height: 90vh; /* no se corta en móviles */
}

/* Títulos */
#wc-ww-modal h2 {
  margin-top: 0;
  font-size: 22px;
  margin-bottom: 12px;
  color: #333;
}

/* Inputs y textarea */
#wc-ww-modal input[type="text"],
#wc-ww-modal input[type="email"],
#wc-ww-modal input[type="tel"],
#wc-ww-modal input[type="date"],
#wc-ww-modal textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

/* Botones */
#wc-ww-modal .button {
  margin-right: 8px;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}

/* Mensajes de error */
#wc_ww_modal_msg {
  color: #c00;
  font-size: 13px;
  margin-bottom: 10px;
  display: none;
}

/* ==============================
   Responsivo
   ============================== */

@media (max-width: 768px) {
  #wc-ww-modal #wc-ww-modal-box {
    max-width: 95%;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  #wc-ww-modal #wc-ww-modal-box {
    width: 95%;
    padding: 14px;
    border-radius: 6px;
  }
  #wc-ww-modal h2 {
    font-size: 18px;
  }
  #wc-ww-modal input,
  #wc-ww-modal textarea {
    font-size: 13px;
    padding: 8px;
  }
  #wc-ww-modal .button {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
  }
}
