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

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

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

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

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

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

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

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

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

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

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

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

.speedcartes-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;
}

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

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

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

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

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

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

.speedcartes-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.speedcartes-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Produit 7 — remplacer la fiche standard par Speedcartes */
body.product-id-8 .js-product-container {
    display: none !important;
}

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

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

.speedcartes-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Formats non disponibles après analyse du PDF */
.speedcartes-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;
}

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


/* Explication affichée après tentative de sélection */
#speedcartes-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é */
.speedcartes-formats-choix button.speedcartes-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;
}
.speedcartes-formats-choix button.speedcartes-format-bloque * {
  color: #858585 !important;
}

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

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

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

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

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

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

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

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


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

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

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

.speedcartes-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;
}

.speedcartes-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;
}

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

/* SPEEDIMPTARIF — Zone PDF harmonisée avec Speedthese */
.speedcartes-dropzone.speedcartes-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;
}

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

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

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

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

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

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

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


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

.speedcartes-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;
}

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

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

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


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

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

.speedcartes-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;
}

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

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

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

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

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

/* Speedcartes : deux blocs de dépôt côte à côte */
.speedcartes-pdf-section .speedcartes-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;
}

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

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

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

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


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

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

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


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



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

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

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


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

/* Page autonome de préparation des cartes de visite. */
.speedcartes-intro { max-width: 960px; color: #555; line-height: 1.65; margin-bottom: 28px; }
.speedcartes-summary { line-height: 1.6; }
.speedcartes-summary dl { margin: 20px 0; }
.speedcartes-summary dt { color: #6a756e; font-size: 12px; margin-top: 12px; }
.speedcartes-summary dd { color: #245c38; margin: 2px 0 0; font-weight: 600; }
.speedcartes-pending { background: #f1f6f3; border: 1px solid #dce8df; padding: 16px; border-radius: 8px; color: #466151; font-size: 14px; line-height: 1.6; }
.speedcartes-pending strong { display: block; color: #087443; }
.speedcartes-quantity { display: block; max-width: 150px; padding: 10px; border: 1px solid #cbd5d1; border-radius: 7px; margin-top: 8px; }
.speedcartes-format-section { display: grid; grid-template-columns: 1fr 160px; align-items: center; gap: 20px; margin: 25px 0; }
.speedcartes-format-apercu { flex-direction: column; justify-content: center; gap: 8px; margin: 0; }
.speedcartes-color-only { display: inline-block; border: 2px solid #087443; color: #087443; background: #f0f9f3; padding: 10px 18px; border-radius: 8px; font-weight: 600; }
.speedcartes-preview-note { color: #728078; font-size: 12px; line-height: 1.5; margin: 0 0 15px; }
@media (max-width: 550px) { .speedcartes-format-section { grid-template-columns: 1fr; } }

/* La page générique PrestaShop est étroite : élargissement limité au produit 8. */
body.product-id-8 #content.page-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.speedcartes-configurateur { width: 100%; }
.speedcartes-formats { padding: 0; border: 0; background: transparent; }
.speedcartes-colonnes { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 24px; }
.speedcartes-couleur,
.speedcartes-faces,
.speedcartes-grammage,
.speedcartes-pelliculage { margin-top: 26px; }
.speedcartes-faces-choix,
.speedcartes-grammage-choix,
.speedcartes-pelliculage-faces-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.speedcartes-faces-choix button,
.speedcartes-grammage-choix button,
.speedcartes-pelliculage-faces-choix button {
  padding: 10px 15px; border: 2px solid #dedede; border-radius: 8px;
  background: #fff; color: #33443a; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.speedcartes-faces-choix button.actif,
.speedcartes-grammage-choix button.actif,
.speedcartes-pelliculage-faces-choix button.actif { background: #087443; border-color: #087443; color: #fff; }
.speedcartes-faces-choix button:disabled:not(.actif),
.speedcartes-pelliculage-faces-choix button:disabled { opacity: .4; cursor: not-allowed; }
#speedcartes-papier-description { font-size: 14px; }
@media (max-width: 850px) {
  .speedcartes-colonnes { grid-template-columns: minmax(0, 1fr); }
  .speedcartes-colonne-prix { position: static; }
}

/* Conseils de format, coins et illustration de l’impression couleur. */
.speedcartes-format-conseil { margin: 14px 0 0; color: #5b6c61; font-size: 14px; line-height: 1.6; }
.speedcartes-coins { margin-top: 26px; }
.speedcartes-coins-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.speedcartes-coins-choix button {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 15px;
  border: 2px solid #dedede; border-radius: 8px; background: #fff;
  color: #33443a; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.speedcartes-coins-choix button.actif { background: #087443; border-color: #087443; color: #fff; }
.speedcartes-coin-icone { display: inline-block; width: 23px; height: 18px; border: 2px solid currentColor; }
.speedcartes-coin-arrondi { border-radius: 6px; }
.speedcartes-color-only {
  display: inline-flex; flex-direction: column; align-items: center; gap: 9px;
  min-width: 140px; padding: 14px 22px; cursor: default;
}
.speedcartes-color-only img { display: block; width: 112px; height: 62px; object-fit: contain; }
.speedcartes-grammage-choix button[hidden] { display: none !important; }

/* Conseil de dimension présenté comme l’aide au choix du papier. */
.speedcartes-format-conseil {
  margin-top: 14px; padding: 16px 18px; background: #edf7f0;
  border: 1px solid #c9e8d1; border-left: 4px solid #16833a;
  border-radius: 8px; color: #33443a; line-height: 1.55;
}
.speedcartes-quantite-ligne[hidden],
.speedcartes-quantite-personnalisee[hidden] { display: none !important; }
