/* ===== Zigzag Devis : bouton + pop-up "Intéressé par le produit" ===== */
.zzdevis { font-family: 'Poppins', sans-serif; }

/* Bouton d'ouverture : plus fin, vert au survol */
.zzdevis-open {
  display: block; width: 100%;
  padding: 11px 22px; border: 0; border-radius: 30px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: .2px; color: #fff;
  background: #aa3435; box-shadow: 0 4px 12px rgba(170,52,53,.18);
  transition: background .2s, box-shadow .2s, transform .2s;
}
.zzdevis-open:hover, .zzdevis-open:focus-visible {
  background: #a2c745; box-shadow: 0 6px 16px rgba(162,199,69,.3); transform: translateY(-1px);
}

/* Rapproche le bouton du prix (marges vides du thème quand le panier est masqué) */
.product-information > .productButtons { margin-top: 0 !important; }
.product-information > .productButtons.product-additional-info { margin-top: 6px !important; }
.zzdevis { margin: 0 0 6px !important; }
.zz-price-bottom { margin-bottom: 10px !important; }
/* Fond + fenêtre */
.zzdevis-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 99999;
  -webkit-overflow-scrolling: touch;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(45,42,39,.6);
}
.zzdevis-overlay[hidden] { display: none; }
.zzdevis-modal {
  position: relative; width: 100%; max-width: 960px; max-height: 94vh; overflow-y: auto;
  background: #faf8f4; border-radius: 18px; padding: 36px 44px;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
}
.zzdevis-close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  font-family: Arial, sans-serif; font-size: 22px; line-height: 1; color: #fff; background: #2d2a27;
  transition: background .2s;
}
.zzdevis-close:hover, .zzdevis-close:focus-visible { background: #a2c745; }
body.zzdevis-lock { overflow: hidden; }

/* Formulaire */
.zzdevis-title { margin: 0 0 4px; font-size: 22px; font-weight: 700; color: #2d2a27; }
.zzdevis-sub { margin: 0 0 20px; font-size: 14px; color: #6d6862; }
.zzdevis-form label { display: block; margin: 0 0 14px; font-size: 14px; font-weight: 600; color: #2d2a27; }
.zzdevis-form label span, .zzdevis-note span { color: #aa3435; }
.zzdevis-form label small { font-weight: 400; color: #6d6862; }
.zzdevis-form input[type=text], .zzdevis-form input[type=email], .zzdevis-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  font-family: inherit; font-size: 14px; color: #2d2a27;
  background: #fff; border: 1px solid #e0dbd2; border-radius: 10px; box-sizing: border-box;
}
.zzdevis-form input:focus, .zzdevis-form textarea:focus {
  outline: none; border-color: #a2c745; box-shadow: 0 0 0 4px rgba(162,199,69,.18);
}
.zzdevis-form input[type=file] {
  display: block; width: 100%; margin-top: 6px; padding: 10px; box-sizing: border-box;
  background: #fff; border: 1px dashed #d6d0c5; border-radius: 10px; font-size: 13px;
}
.zzdevis-hp { position: absolute !important; left: -9999px !important; }

/* Téléphone : indicatif + numéro sur une ligne */
.zzdevis-form .zzdevis-phone { display: flex; gap: 8px; margin-top: 6px; color: inherit; }
.zzdevis-form .zzdevis-phone select {
  flex: 0 0 auto; padding: 12px 10px;
  font-family: inherit; font-size: 14px; color: #2d2a27;
  background: #fff; border: 1px solid #e0dbd2; border-radius: 10px;
}
.zzdevis-form .zzdevis-phone input[type=tel] {
  flex: 1; min-width: 0; padding: 12px 14px;
  font-family: inherit; font-size: 14px; color: #2d2a27;
  background: #fff; border: 1px solid #e0dbd2; border-radius: 10px; box-sizing: border-box;
}
.zzdevis-form .zzdevis-phone select:focus, .zzdevis-form .zzdevis-phone input:focus {
  outline: none; border-color: #a2c745; box-shadow: 0 0 0 4px rgba(162,199,69,.18);
}

/* Haut : champs à gauche, produit à droite */
.zzdevis-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.zzdevis-product { text-align: center; }
.zzdevis-product img { display: block; width: 100%; border-radius: 12px; }
.zzdevis-product p { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: #2d2a27; }

/* Zones de marquage */
.zzdevis-marking {
  margin: 4px 0 18px; padding: 16px 16px 12px;
  background: #fff; border: 1px solid #efebe4; border-radius: 14px;
}
.zzdevis-marking-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #2d2a27; }
.zzdevis-marking-title small { margin-left: 8px; font-size: 12px; font-weight: 500; color: #6d6862; }
.zzdevis-marking-head,
.zzdevis-row { display: grid; grid-template-columns: 26px 1.1fr 1.4fr 1fr 28px; gap: 10px; align-items: center; }
.zzdevis-marking-head { padding: 0 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #9a948c; }
.zzdevis-marking-head span:first-child { grid-column: 2; }
.zzdevis-row {
  margin-bottom: 8px; padding: 10px 12px;
  background: rgba(170,52,53,.05); border: 1px solid rgba(170,52,53,.35); border-radius: 12px;
}
.zzdevis-num {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #aa3435; background: rgba(170,52,53,.12);
}
.zzdevis-row select {
  width: 100%; padding: 10px 12px; box-sizing: border-box;
  font-family: inherit; font-size: 14px; color: #2d2a27;
  background: #fff; border: 1px solid #e0dbd2; border-radius: 10px;
}
.zzdevis-row .zzdevis-zone { font-weight: 600; }
.zzdevis-unlimited { font-style: normal; font-size: 13px; color: #9a948c; }
.zzdevis-remove {
  display: flex !important; align-items: center; justify-content: center; justify-self: center;
  width: 26px !important; height: 26px !important; min-width: 0; padding: 0 !important; margin: 0;
  border: 1px solid #e0dbd2; border-radius: 50%; cursor: pointer; box-sizing: border-box;
  font-family: Arial, sans-serif; font-size: 16px; line-height: 1; color: #6d6862; background: #fff;
  transition: background .2s, color .2s, border-color .2s;
}
.zzdevis-remove:hover, .zzdevis-remove:focus-visible { color: #fff; background: #a2c745; border-color: #a2c745; }
.zzdevis-add-zone {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 4px; padding: 13px;
  font-family: inherit; font-size: 14px; font-weight: 600; color: #aa3435; cursor: pointer;
  background: transparent; border: 1.5px dashed rgba(170,52,53,.5); border-radius: 12px;
}
.zzdevis-add-zone[hidden] { display: none; }
.zzdevis-add-zone:hover { background: rgba(170,52,53,.04); }
.zzdevis-plus {
  width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #aa3435;
  display: grid; place-items: center; font-size: 16px; line-height: 1;
}
.zzdevis-marking-help { margin: 10px 0 0; font-size: 12px; color: #9a948c; }

/* Tailles + date côte à côte */
.zzdevis-two { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
.zzdevis-form input[type=date] {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px;
  font-family: inherit; font-size: 14px; color: #2d2a27;
  background: #fff; border: 1px solid #e0dbd2; border-radius: 10px; box-sizing: border-box;
}
@media (max-width: 767px) { .zzdevis-two { grid-template-columns: minmax(0,1fr); gap: 0; } }

/* Case RGPD */
.zzdevis-form .zzdevis-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: #6d6862; }
.zzdevis-form .zzdevis-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #a2c745; }
.zzdevis-form .zzdevis-consent-text { color: #6d6862; }
.zzdevis-form .zzdevis-consent a { color: #aa3435; text-decoration: underline; }
.zzdevis-form input[type=number] {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  font-family: inherit; font-size: 14px; color: #2d2a27;
  background: #fff; border: 1px solid #e0dbd2; border-radius: 10px; box-sizing: border-box;
}

.zzdevis-submit {
  display: inline-block; margin-top: 4px; padding: 13px 34px;
  border: 0; border-radius: 40px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: #fff; background: #a2c745; transition: background .2s;
}
.zzdevis-submit:hover, .zzdevis-submit:focus-visible { background: #aa3435; }
.zzdevis-submit[disabled] { opacity: .6; cursor: wait; }
.zzdevis-note { margin: 10px 0 0; font-size: 12px; color: #6d6862; }

.zzdevis-msg { margin: 6px 0 14px; padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.zzdevis-msg.is-ok { color: #4f6a12; background: rgba(162,199,69,.18); }
.zzdevis-msg.is-error { color: #aa3435; background: rgba(170,52,53,.08); }

/* Version page Devis : formulaire directement dans la page */
.zzdevis--page .zzdevis-top { display: block; }
.zzdevis--page .zzdevis-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 14px; }
.zzdevis--page .zzdevis-marking { background: #faf8f4; }
.zzdevis--page .zzdevis-msg { margin-top: 14px; }

/* Modèle : Homme / Femme / Enfant / Unisexe (cases en pastilles) */
.zzdevis-gender { margin: 0 0 18px; }
.zzdevis-gender-title { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #2d2a27; }
.zzdevis-gender-title small { font-weight: 400; color: #6d6862; }
.zzdevis-gender-list { display: flex; flex-wrap: wrap; gap: 8px; }
.zzdevis-form .zzdevis-chip { position: relative; margin: 0; font-weight: 500; cursor: pointer; }
.zzdevis-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.zzdevis-chip span {
  display: inline-block; padding: 9px 18px; border: 1px solid #e0dbd2; border-radius: 30px;
  font-size: 14px; color: #2d2a27 !important; background: #fff; transition: background .2s, border-color .2s, color .2s;
}
.zzdevis-chip:hover span { border-color: #a2c745; }
.zzdevis-chip input:checked + span { color: #fff !important; background: #a2c745; border-color: #a2c745; }
.zzdevis-chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(162,199,69,.25); }

@media (max-width: 767px) {
  .zzdevis--page .zzdevis-fields { grid-template-columns: minmax(0,1fr); }
  .zzdevis-modal { padding: 24px 18px; border-radius: 14px; }
  .zzdevis-top { grid-template-columns: 1fr; }
  .zzdevis-product { order: -1; max-width: 180px; margin: 0 auto; }
  .zzdevis-submit { width: 100%; }
  /* zones de marquage : zone sur une ligne, technique + couleurs dessous */
  .zzdevis-marking { padding: 12px 10px 10px; }
  .zzdevis-marking-head { display: none; }
  .zzdevis-row { grid-template-columns: 24px 1fr 1fr 26px; grid-template-areas: "num zone zone del" ". tech colors ."; }
  .zzdevis-row .zzdevis-num { grid-area: num; }
  .zzdevis-row .zzdevis-zone { grid-area: zone; }
  .zzdevis-row .zzdevis-tech { grid-area: tech; }
  .zzdevis-row .zzdevis-colors-cell { grid-area: colors; }
  .zzdevis-row .zzdevis-remove { grid-area: del; }
}

/* Très petits écrans : rien ne doit dépasser */
.zzdevis-form, .zzdevis-form label, .zzdevis-form input, .zzdevis-form select, .zzdevis-form textarea { min-width: 0; max-width: 100%; }
.zzdevis-form .zzdevis-phone select { max-width: 45%; }
