/* FluxGoodies studio — fiche produit */
.fluxstudio-wrapper {
  margin: 16px 0;
}
.fluxstudio-frame {
  width: 100%;
  min-height: 600px;
}
.fluxstudio-status {
  margin-top: 8px;
  font-size: 0.9em;
  color: #333;
}
.fluxstudio-status.error {
  color: #c0392b;
}
/* Masquage du formulaire de marquage europeansourcing quand le studio est actif */
.fluxstudio-active #markingFormContainer,
.fluxstudio-active #customizeProductBtn,
/* Zone de personnalisation NATIVE PrestaShop : le produit est rendu personnalisable
   (pour porter le design + le prix de marquage), mais c'est le studio qui gère la
   saisie → on masque le textarea natif redondant. */
.fluxstudio-active .product-customization {
  display: none !important;
}

/* ── Mode bouton + modal plein écran ── */
.fluxstudio-launch {
  margin: 16px 0;
}
.fluxstudio-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 1em;
  font-weight: 600;
  color: #fff;
  background: var(--flux-primary, #16a34a);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.fluxstudio-open-btn:hover {
  filter: brightness(0.95);
}

.fluxstudio-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
}
.fluxstudio-modal.open {
  display: block;
}
.fluxstudio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.fluxstudio-modal-box {
  position: absolute;
  inset: 2vh 2vw;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fluxstudio-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
/* En modal, le studio occupe toute la hauteur disponible (override de la hauteur
   inline posée par loader.js). */
.fluxstudio-modal .fluxstudio-wrapper {
  margin: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.fluxstudio-modal .fluxstudio-frame {
  flex: 1;
  min-height: 0;
}
.fluxstudio-modal .fluxstudio-frame iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}
body.fluxstudio-modal-open {
  overflow: hidden;
}
