/* ===== MP Quote: masquage prix + panier (sans masquer le conteneur qui contient notre bouton) ===== */

/* Prix (Classic + Warehouse + variations) */
html.mpq-enabled .product-prices,
html.mpq-enabled .product-price,
html.mpq-enabled .current-price,
html.mpq-enabled .product-price-and-shipping,
html.mpq-enabled .our_price_display,
html.mpq-enabled .price,
html.mpq-enabled .regular-price,
html.mpq-enabled .discount-percentage,
html.mpq-enabled .tax-shipping-delivery-label { display:none !important; }

/* Panier (on masque les éléments d'ajout, pas le wrapper global) */
html.mpq-enabled .product-add-to-cart form#add-to-cart-or-refresh,
html.mpq-enabled .product-add-to-cart .product-quantity,
html.mpq-enabled .product-add-to-cart .add,
html.mpq-enabled .product-add-to-cart .qty,
html.mpq-enabled .product-add-to-cart .bootstrap-touchspin,
html.mpq-enabled .product-add-to-cart .add-to-cart,
html.mpq-enabled .product-add-to-cart .ajax_add_to_cart_button,
html.mpq-enabled .product-add-to-cart a.add-to-cart,
html.mpq-enabled .product-add-to-cart button.add-to-cart { display:none !important; }

/* Notre bouton doit rester visible */
html.mpq-enabled .mpq-wrap { display:block !important; margin-top:10px; }

/* ===== MP Quote: modal ===== */
.mpq-modal { display:none; position:fixed; inset:0; z-index:9999; }
.mpq-modal.is-open { display:block; }
.mpq-modal__backdrop { position:absolute; inset:0; background:rgba(0,0,0,.55); }
.mpq-modal__dialog { position:relative; background:#fff; width:min(560px, calc(100% - 30px)); margin:6vh auto 0; padding:22px; border-radius:8px; box-shadow:0 10px 30px rgba(0,0,0,.25); }
.mpq-modal__close { position:absolute; top:10px; right:12px; border:0; background:transparent; font-size:26px; line-height:1; cursor:pointer; }
.mpq-form .form-group { margin-bottom:12px; }
.mpq-form label { display:block; margin-bottom:4px; font-weight:600; }
.mpq-form input[type="text"],
.mpq-form input[type="email"],
.mpq-form input[type="tel"],
.mpq-form textarea { width:100%; padding:10px; border:1px solid #ddd; border-radius:6px; }
.mpq-form textarea { min-height:110px; }
.mpq-actions { display:flex; gap:10px; align-items:center; margin-top:14px; }
.mpq-alert{
  margin-top: 12px;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-weight: 500;
}

/* Succès (style proche BO PrestaShop) */
.mpq-alert--success,
.mpq-alert.is-success{
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
  color: #3c763d;
}
.mpq-alert--success::before,
.mpq-alert.is-success::before{
  content: "✔ ";
  font-weight: 700;
}

/* Erreur (style proche BO PrestaShop) */
.mpq-alert--error,
.mpq-alert.is-error{
  background-color: #f2dede;
  border: 1px solid #ebccd1;
  color: #a94442;
}
.mpq-alert--error::before,
.mpq-alert.is-error::before{
  content: "⚠ ";
  font-weight: 700;
}


/* Safety: keep submit button clickable even if theme adds pointer-events rules */
#mpqSubmit{ pointer-events:auto !important; cursor:pointer; }
#mpqSubmit:disabled{ cursor:not-allowed; }
