.speedquad-formats {
    padding: 18px;
    background: #f8faf9;
    border: 1px solid #dce8df;
    border-radius: 12px;
    margin-bottom: 20px;
}

.speedquad-formats h3 {
    color: #16803c;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.speedquad-formats-choix {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.speedquad-formats-choix button {
    padding: 9px 14px;
    background: #fff;
    border: 1px solid #cbd5d1;
    border-radius: 7px;
    cursor: pointer;
}

.speedquad-formats-choix button.actif {
    background: #16803c;
    color: #fff;
    border-color: #16803c;
}

.speedquad-format-apercu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    min-height: 155px;
}

#speedquad-format-visuel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 145px;
}

.speedquad-format-feuille {
    background: white;
    border: 2px solid #16803c;
    box-shadow: 3px 4px 8px rgba(0,0,0,.12);
    flex-shrink: 0;
}

#speedquad-format-dimensions {
    font-weight: 600;
    color: #334155;
}

@media (max-width: 480px) {
    .speedquad-format-apercu {
        gap: 12px;
    }
}

/* Speeddepliantquatre — harmonisation graphique avec Speedthese */
.speedquad-formats {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}

.speedquad-formats h3 {
    color: #00853f;
    font-weight: 700;
    text-align: left;
    font-size: 17px;
}

.speedquad-formats-choix button {
    background: #fff;
    color: #333;
    border: 2px solid #dedede;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 600;
    transition: background-color .15s, border-color .15s;
}

.speedquad-formats-choix button:hover {
    border-color: #16833a;
}

.speedquad-formats-choix button.actif {
    background: #16833a;
    color: #fff;
    border-color: #16833a;
}

.speedquad-impression {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e5e5e5;
}

.speedquad-format-feuille {
    border-color: #16833a;
}

/* Sélecteur illustré Noir et blanc / Couleur */
.speedquad-couleur {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e5e5e5;
}

.speedquad-couleur-choix {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.speedquad-couleur-choix button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #fff;
    color: #333;
    border: 2px solid #dedede;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.speedquad-couleur-choix button img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.speedquad-couleur-choix button:hover {
    border-color: #16833a;
}

.speedquad-couleur-choix button.actif {
    background: #16833a;
    color: #fff;
    border-color: #16833a;
}

/* Papiers réservés au noir et blanc */
.speedquad-grammage-choix button:disabled {
    opacity: .35;
    cursor: not-allowed;
    background: #f2f2f2;
    color: #777;
    border-color: #ddd;
}

/* Pelliculage illustré — présentation identique au Livre */
.speedquad-pelliculage-choix {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.speedquad-pelliculage-choix button {
    min-width: 0;
    padding: 10px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
}

.speedquad-pelliculage-choix button img {
    display: block;
    width: 100%;
    max-height: 110px;
    object-fit: contain;
    margin: 8px auto;
}

.speedquad-pelliculage-choix button strong {
    display: block;
    font-size: 13px;
}

.speedquad-pelliculage-choix button.actif {
    border-color: #16833a;
    background: #edf7f0;
}

.speedquad-pelliculage[hidden] {
    display: none !important;
}

/* Pelliculage désactivé hors 350 g */
.speedquad-pelliculage-inactif .speedquad-pelliculage-choix {
    opacity: .4;
}
.speedquad-pelliculage-inactif .speedquad-pelliculage-choix button {
    cursor: not-allowed;
}
.speedquad-pelliculage h3 small {
    font-size: 12px;
    font-weight: 400;
    color: #777;
}

/* Description dynamique du papier */
#speedquad-infos-papiers {
    margin-top: 14px;
    padding: 16px 18px;
    background: #edf7f0;
    border: 1px solid #c9e8d1;
    border-left: 4px solid #16833a;
    border-radius: 8px;
}
.speedquad-info-papier[hidden] { display: none !important; }
.speedquad-info-papier strong {
    display: block;
    color: #00853f;
    margin-bottom: 6px;
}
.speedquad-info-papier p {
    margin: 0;
    line-height: 1.55;
}

/* Tableau des quantités Dépliants — présentation du Livre */
#speedquad-tableau-quantites {
    margin-bottom: 24px;
}

#speedquad-tableau-quantites h3 {
    color: #11853b;
    font-size: 17px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 12px;
}

.speedquad-quantites-grille {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.speedquad-quantite-entete {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    font-weight: 700;
}

.speedquad-quantite-ligne {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    color: #333;
}

.speedquad-quantite-ligne:hover {
    border-color: #16833a;
}

.speedquad-quantite-ligne.actif {
    border: 2px solid #16833a;
    background: #edf7f0;
}

.speedquad-quantite-prix {
    color: #11853b;
    font-weight: 700;
}

.speedquad-quantite-personnalisee {
    margin-top: 15px;
    padding: 16px;
    background: #f7f9f8;
    border: 1px solid #d5e5da;
    border-radius: 10px;
}

.speedquad-quantite-personnalisee label {
    display: block;
    color: #11853b;
    font-weight: 700;
    margin-bottom: 10px;
}

#speedquad-quantite-saisie {
    width: 110px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#speedquad-prix-personnalise {
    color: #11853b;
    margin-left: 12px;
}

.speedquad-quantite-personnalisee small {
    display: block;
    margin-top: 10px;
}

/* Speeddepliantquatre — configurateur sur deux colonnes */
.speedquad-colonnes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.speedquad-options {
    min-width: 0;
}

.speedquad-colonne-prix {
    min-width: 0;
    position: sticky;
    top: 20px;
}

@media (max-width: 991px) {
    .speedquad-colonnes {
        grid-template-columns: 1fr;
    }

    .speedquad-colonne-prix {
        position: static;
    }
}

/* Produit 7 — masquer les éléments d'achat PrestaShop natifs */
body.product-id-13 .product-prices,
body.product-id-13 .product-add-to-cart,
body.product-id-13 .product-quantity,
body.product-id-13 .product-actions .add-to-cart,
body.product-id-13 .wishlist-button-add {
    display: none !important;
}

/* Dépliants — structure identique au Livre */
.speedquad-colonnes {
    display: grid;
    grid-template-columns: minmax(420px, 2fr) minmax(320px, 1fr);
    gap: 30px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.speedquad-options,
.speedquad-colonne-prix {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 25px;
    box-sizing: border-box;
    min-width: 0;
}

.speedquad-colonne-prix {
    position: sticky;
    top: 20px;
    height: fit-content;
}

@media (max-width: 850px) {
    .speedquad-colonnes {
        grid-template-columns: minmax(0, 1fr);
    }

    .speedquad-colonne-prix {
        position: static;
    }
}

/* Produit 7 — remplacer la fiche standard par Speeddepliantquatre */

body.product-id-13 .speedquad-configurateur {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Dépliants — zone de dépôt PDF */
.speedquad-pdf-section {
    margin-bottom: 24px;
}

.speedquad-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 180px;
    padding: 24px;
    border: 2px dashed #16833a;
    border-radius: 12px;
    background: #f2faf4;
    color: #333;
    text-align: center;
    cursor: pointer;
}

.speedquad-dropzone:hover,
.speedquad-dropzone.survol {
    background: #e4f4e8;
    border-color: #00853f;
}

.speedquad-drop-icon {
    font-size: 42px;
    color: #00853f;
}

#speedquad-pdf-nom {
    color: #00853f;
    font-weight: 700;
    overflow-wrap: anywhere;
}

#speedquad-pdf-apercu {
    margin-top: 20px;
}

#speedquad-pdf-frame {
    width: 100%;
    height: 450px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

#speedquad-pdf-apercu[hidden] {
    display: none !important;
}

/* Dépliants — conserver le visualiseur des formats */
.speedquad-format-apercu {
    display: flex;
    align-items: center;
    min-height: 155px;
}

#speedquad-format-visuel {
    display: block;
    position: relative;
    width: 120px;
    min-width: 120px;
    height: 145px;
    flex: 0 0 120px;
}

#speedquad-format-dimensions {
    flex: 1;
    min-width: 0;
}

/* Adaptation PDF : même style que les descriptions de papier */
#speedquad-adaptation:not([hidden]) {
  display: block;
  background: #edf8ee;
  border: 1px solid #b9dfbe;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  color: #245c30;
}

#speedquad-adaptation strong {
  display: block;
  font-weight: 700;
  margin-bottom: 9px;
}

#speedquad-adaptation p {
  margin: 0 0 12px;
  line-height: 1.5;
}

#speedquad-adaptation label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

#speedquad-adaptation input[type="checkbox"] {
  margin-top: 4px;
  accent-color: #27843c;
}

/* Formats non disponibles après analyse du PDF */
.speedquad-formats-choix button:disabled {
  background: #d5d5d5 !important;
  border: 2px solid #b7b7b7 !important;
  color: #858585 !important;
  opacity: 0.55 !important;
  filter: grayscale(100%) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

.speedquad-formats-choix button:disabled * {
  color: #858585 !important;
}


/* Explication affichée après tentative de sélection */
#speedquad-info-formats-bloques:not([hidden]) {
  display: block;
  background: #f1f1f1;
  border: 1px solid #d5d5d5;
  border-radius: 10px;
  padding: 12px 15px;
  margin: 12px 0;
  color: #555;
  font-size: 13px;
  line-height: 1.5;
}

/* Format incompatible : aspect désactivé, clic explicatif autorisé */
.speedquad-formats-choix button.speedquad-format-bloque {
  background: #d5d5d5 !important;
  border: 2px solid #b7b7b7 !important;
  color: #858585 !important;
  opacity: 0.55 !important;
  filter: grayscale(100%) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}
.speedquad-formats-choix button.speedquad-format-bloque * {
  color: #858585 !important;
}

/* Messages de format : présentation identique */
#speedquad-adaptation:not([hidden]),
#speedquad-info-formats-bloques:not([hidden]) {
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 15px;
  margin: 12px 0;
}

/* Aperçu PDF.js — Dépliants */
#speedquad-pdf-frame.speedquad-pages-pdf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 15px;
  background: #f3f4f5;
  border-radius: 10px;
}

.speedquad-page-pdf {
  position: relative;
  max-width: 100%;
  height: auto;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.speedquad-page-pdf canvas {
  display: block;
  max-width: 100%;
}

.speedquad-zone-jaune {
  position: absolute;
  border: 2px dashed #e6b800;
  background: rgba(255, 215, 0, .10);
  pointer-events: none;
  box-sizing: border-box;
}

#speedquad-zone-acceptation:not([hidden]) {
  display: block;
  margin-top: 15px;
  padding: 12px 15px;
  background: #edf8ee;
  border: 1px solid #b9dfbe;
  border-radius: 10px;
  font-size: 13px;
}

#speedquad-zone-acceptation label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

#speedquad-zone-acceptee {
  margin-top: 3px;
  accent-color: #27843c;
}


/* Correction aperçu PDF.js : hauteur automatique */
#speedquad-pdf-frame.speedquad-pages-pdf {
  height: auto !important;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.speedquad-page-pdf {
  flex-shrink: 0;
}

/* Zone de tranquillité : zone extérieure jaune hachurée */
.speedquad-page-pdf {
  overflow: hidden !important;
}

.speedquad-zone-jaune {
  background: transparent !important;
  border: 2px dashed #e6b800 !important;
  box-shadow: 0 0 0 100px rgba(255, 215, 0, .18) !important;
  clip-path: none !important;
}

.speedquad-zone-jaune::before {
  content: "";
  position: absolute;
  inset: -100px;
  padding: 100px;
  box-sizing: border-box;
  pointer-events: none;
  background: repeating-linear-gradient(
    135deg,
    rgba(90, 90, 90, .28) 0px,
    rgba(90, 90, 90, .28) 2px,
    transparent 2px,
    transparent 8px
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.speedquad-zone-jaune[hidden] {
  display: none !important;
}

/* SPEEDDEPTARIF — Zone PDF harmonisée avec Speedthese */
.speedquad-dropzone.speedquad-dropzone-pdf {
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:8px;
    width:100%;
    min-height:180px;
    padding:20px;
    border:2px dashed #b8b8b8;
    border-radius:12px;
    background:#fafafa;
    cursor:pointer;
    transition:all .25s ease;
    box-sizing:border-box;
    text-align:center;
}

.speedquad-dropzone.speedquad-dropzone-pdf:hover {
    border-color:#00853f;
    background:#f2fff6;
    transform:scale(1.01);
}

.speedquad-dropzone-pdf .speedquad-drop-icon-svg svg {
    fill:none;
    stroke:#00853f;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.speedquad-dropzone-pdf .speedquad-drop-title {
    font-size:24px;
    font-weight:bold;
    margin-bottom:2px;
}

.speedquad-dropzone-pdf .speedquad-drop-subtitle {
    font-size:16px;
    color:#666;
}

.speedquad-dropzone-pdf .speedquad-drop-link {
    color:#00853f;
    font-weight:bold;
    text-decoration:underline;
}

.speedquad-dropzone-pdf:hover .speedquad-drop-link {
    color:#00652e;
}

.speedquad-dropzone-pdf .speedquad-drop-filename {
    margin-top:10px;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:15px;
    font-weight:bold;
    color:#00853f;
}


/* SPEEDDEPTARIF — Bouton ajouter au panier */
.speedquad-panier {
    margin-top: 24px;
    text-align: center;
}

.speedquad-btn-panier {
    display: block;
    width: 100%;
    padding: 17px 24px;
    background: #00853f;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease;
}

.speedquad-btn-panier:hover:not(:disabled) {
    background: #006b32;
}

.speedquad-btn-panier:disabled {
    background: #a9b5ae;
    cursor: not-allowed;
    opacity: .7;
}

#speedquad-panier-message {
    margin-top: 10px;
    font-size: 14px;
}


/* Speeddepliantquatre — Choix du dépôt de fichier */
.speedquad-depot-choix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-bottom: 15px;
}

.speedquad-depot-choix > .speedquad-dropzone,
.speedquad-depot-choix > .speedquad-pdf-ulterieur {
  width: 100%;
  min-height: 160px;
  height: 100%;
  box-sizing: border-box;
}

.speedquad-pdf-ulterieur {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 20px;
  border: 2px dashed #b8ddc3;
  border-radius: 10px;
  background: #f8fcf9;
  cursor: pointer;
}

.speedquad-pdf-ulterieur:hover,
.speedquad-pdf-ulterieur:has(input:checked) {
  background: #edf7f0;
  border-color: #32854c;
}

.speedquad-pdf-ulterieur input {
  width: 20px;
  height: 20px;
  accent-color: #32854c;
}

.speedquad-ulterieur-titre {
  font-weight: 700;
  color: #245c38;
}

.speedquad-ulterieur-description {
  font-size: 12px;
  color: #555;
}

@media (max-width: 650px) {
  .speedquad-depot-choix {
    grid-template-columns: 1fr;
  }
}

/* Speeddepliantquatre : deux blocs de dépôt côte à côte */
.speedquad-pdf-section .speedquad-depot-choix {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: stretch !important;
    width: 100% !important;
}

.speedquad-pdf-section .speedquad-depot-choix > .speedquad-dropzone,
.speedquad-pdf-section .speedquad-depot-choix > .speedquad-pdf-ulterieur {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 175px !important;
    height: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.speedquad-pdf-ulterieur .speedquad-ulterieur-titre {
    font-size: 17px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

.speedquad-pdf-ulterieur .speedquad-ulterieur-description {
    font-size: 13px !important;
    line-height: 1.5 !important;
}

@media (max-width: 650px) {
    .speedquad-pdf-section .speedquad-depot-choix {
        grid-template-columns: 1fr !important;
    }
}


/* Speeddepliantquatre — visualiseur de formats A3 à A6 */
.speedquad-format-apercu {
    min-height: 190px;
    align-items: center;
}

#speedquad-format-visuel {
    width: 145px;
    min-width: 145px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 145px;
}

#speedquad-format-visuel .speedquad-format-feuille {
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
}
.speedquad-quantite-personnalisee label { text-align: left !important; justify-self: start !important; margin-left: 0 !important; }


/* Validation de la zone de tranquillité */
#speedquad-zone-acceptation:not([hidden]) {
  padding: 16px 18px;
  background: #f0f9f2;
  border: 1px solid #b8dec2;
  border-left: 4px solid #298747;
  border-radius: 10px;
}
#speedquad-zone-acceptation label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  margin: 0;
  text-align: left;
  cursor: pointer;
}
#speedquad-zone-acceptee {
  width: 21px;
  height: 21px;
  min-width: 21px;
  margin: 0;
  accent-color: #298747;
  cursor: pointer;
}
#speedquad-zone-acceptation .speedquad-zone-texte {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
#speedquad-zone-acceptation .speedquad-zone-texte strong {
  color: #23733b;
  font-size: 15px;
  font-weight: 700;
}
#speedquad-zone-acceptation .speedquad-zone-texte small {
  color: #485b4d;
  font-size: 13px;
  line-height: 1.5;
}



/* Centrage des dimensions sous le visualisateur — Produit 7 */
.speedquad-formats-droite .speedquad-format-apercu {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.speedquad-formats-droite #speedquad-format-dimensions {
    display: block;
    width: 100%;
    text-align: center !important;
    margin: 8px auto 0;
}

/* Ajustement horizontal des dimensions — Produit 7 */
#speedquad-format-dimensions {
    position: relative !important;
    left: -20px !important;
}


/* Trois choix de dépôt : PDF, première image, ou envoi ultérieur. */
.speedquad-pdf-section .speedquad-depot-choix.speedquad-depot-trois {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
.speedquad-depot-trois .speedquad-upload-card {
  padding: 20px 14px;
  gap: 10px;
  border: 2px dashed #c9d7ce;
  border-radius: 12px;
  background: #fafcfb;
  color: #245c38;
  justify-content: flex-start;
  transition: border-color .15s, background .15s;
}
.speedquad-depot-trois .speedquad-upload-card:hover,
.speedquad-depot-trois .speedquad-upload-card.survol,
.speedquad-depot-trois .speedquad-upload-card.speedquad-depot-selectionne {
  border-color: #00853f;
  background: #f0f9f3;
  transform: none;
}
.speedquad-upload-card:focus-visible,
.speedquad-dropzone-verso:focus-visible { outline: 3px solid #75b68c; outline-offset: 3px; }
.speedquad-upload-type {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 5px;
  background: #e5f1e9;
  color: #087443;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
}
.speedquad-depot-trois .speedquad-drop-title,
.speedquad-depot-trois .speedquad-ulterieur-titre {
  font-size: 17px !important;
  line-height: 1.35 !important;
  font-weight: 700;
  color: #245c38;
}
.speedquad-depot-trois .speedquad-drop-subtitle,
.speedquad-depot-trois .speedquad-upload-help,
.speedquad-depot-trois .speedquad-ulterieur-description {
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #5e6b63;
}
.speedquad-drop-link { color: #087443; text-decoration: underline; }
.speedquad-depot-trois .speedquad-drop-filename,
.speedquad-dropzone-verso .speedquad-drop-filename {
  max-width: 100%; overflow-wrap: anywhere; white-space: normal;
  font-size: 12px; font-weight: 600; color: #087443; margin-top: 2px;
}
.speedquad-depot-trois .speedquad-pdf-ulterieur input { margin: 0; flex-shrink: 0; }
.speedquad-upload-limits { margin: 8px 0 16px; color: #738078; font-size: 12px; line-height: 1.5; }
.speedquad-images-verso[hidden] { display: none !important; }
.speedquad-images-verso { margin: 18px 0; }
.speedquad-dropzone-verso { min-height: 120px; padding: 18px; gap: 8px; border-color: #b8ddc3; background: #f8fcf9; }
.speedquad-dropzone-verso .speedquad-drop-title { font-size: 18px; font-weight: 700; }
.speedquad-dropzone-verso .speedquad-drop-subtitle { font-size: 13px; }
#speedquad-retirer-verso { margin-top: 10px; }
@media (max-width: 650px) {
  .speedquad-pdf-section .speedquad-depot-choix.speedquad-depot-trois { grid-template-columns: 1fr !important; }
  .speedquad-pdf-section .speedquad-depot-trois > .speedquad-upload-card { min-height: 155px !important; }
}

/* Deux vues du format, même présentation que la brochure. */
.sd-format-pair{display:flex;justify-content:center;align-items:flex-start;gap:24px;width:100%;}
.sd-format-pair>div{display:flex;flex-direction:column;align-items:center;gap:8px;}
.sd-format-pair p{font-size:13px;line-height:1.4;text-align:center;white-space:normal;}
.speedquad-formats-droite .speedquad-format-apercu{width:100%;}
#speedquad-format-dimensions[hidden]{display:none!important;}
@media(max-width:450px){.sd-format-pair{gap:12px;}}

/* Dépliant : retirer la galerie native et élargir la fiche. */
body.product-id-13 .js-product-container > .col-md-6:first-child {
    display: none;
}
body.product-id-13 .js-product-container > .col-md-6:nth-child(2) {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    min-width: 0;
}
@media (max-width: 990px) {
    body.product-id-13 .speedquad-colonnes {
        grid-template-columns: minmax(0, 1fr);
    }
}

.speedquad-formats-droite .speedquad-format-apercu { min-height: 0; }
