/* Bloc marquage FluxGoodies — sous la ligne du panier, sur toute sa largeur (cf. cart.js). */
.fluxstudio-cart-line{
  clear:both;
  display:flex;
  flex-wrap:wrap;
  gap:.5rem .75rem;
  align-items:center;
  width:100%;
  margin-top:.75rem;
  padding:.6rem .75rem;
  border:1px solid #ebebeb;
  border-radius:4px;
  background:#f6f6f6;
}
.fluxstudio-cart-preview-link{flex:0 0 auto;line-height:0}
.fluxstudio-cart-preview{
  width:44px;height:44px;object-fit:contain;
  border-radius:4px;background:#fff;border:1px solid #ebebeb;
}
.fluxstudio-cart-meta{flex:1 1 12rem;display:flex;flex-direction:column;gap:2px;font-size:13px;line-height:1.35;min-width:0;overflow-wrap:anywhere}
.fluxstudio-cart-label{font-weight:600;color:#242424}
.fluxstudio-cart-price{color:#414141}
.fluxstudio-cart-price strong{color:#242424}
.fluxstudio-cart-edit{
  flex:0 0 auto;padding:.35rem .75rem;border:1px solid #f02640;border-radius:4px;background:#fff;
  font-size:13px;font-weight:600;color:#f02640;cursor:pointer;
}
.fluxstudio-cart-edit:hover{background:#f02640;color:#fff}
.fluxstudio-cart-edit:disabled{opacity:.6;cursor:progress}

/* Quantité : le thème a déjà ses flèches, on retire celles du navigateur. */
.js-cart-line-product-quantity{-moz-appearance:textfield;appearance:textfield}
.js-cart-line-product-quantity::-webkit-inner-spin-button,
.js-cart-line-product-quantity::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

/* Blocs commande front (confirmation + détail). */
.fluxstudio-order-block{margin:1.25rem 0;padding:1rem;border:1px solid #e6e8eb;border-radius:12px}
.fluxstudio-order-block h3{margin:0 0 .75rem;font-size:1rem}
.fluxstudio-order-row{display:flex;gap:.75rem;align-items:center;padding:.45rem 0;border-top:1px solid #f1f1f1}
.fluxstudio-order-row:first-of-type{border-top:0}
.fluxstudio-order-row img{width:64px;height:64px;object-fit:contain;border-radius:8px;background:#fafafa;border:1px solid #eee}
.fluxstudio-order-info{display:flex;flex-direction:column;font-size:.9rem}

/* v1.8 — B2 : modale d'édition du marquage dans le panier */
.fluxstudio-cart-edit-btn { background: none; border: 0; padding: 0; cursor: pointer; color: #2563eb; display: inline-flex; align-items: center; gap: 4px; font: inherit; }
.fluxstudio-cart-edit-btn:hover { text-decoration: underline; }
.fluxstudio-cart-modal { position: fixed; inset: 0; z-index: 99999; display: none; }
.fluxstudio-cart-modal.open { display: block; }
.fluxstudio-cart-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .6); }
/* Boîte CENTRÉE, hauteur AU CONTENU (plus de hauteur fixe 94vh qui laissait un grand
   vide blanc sous l'iframe). max-height + overflow auto si le studio est très haut.
   Accent couleur primaire (--flux-primary, posé en JS) pour rester cohérent avec la fiche. */
.fluxstudio-cart-modal-box {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(94vw, 1100px); height: auto; max-height: 94vh;
  background: #fff; border-radius: 12px; padding: 16px 16px 8px;
  overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.35);
  border-top: 4px solid var(--flux-primary, #16a34a);
}
.fluxstudio-cart-modal-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #475569; }
/* Le cadre épouse la hauteur de l'iframe (loader auto-resize) : pas de plancher haut
   qui créerait du blanc. L'iframe pilote la hauteur réelle. */
.fluxstudio-cart-frame { width: 100%; min-height: 0; }
.fluxstudio-cart-frame iframe { width: 100%; display: block; border: 0; }
body.fluxstudio-modal-open { overflow: hidden; }

/* Panier transformé en demande de devis (sous « Commander »). */
.fsc-cq{margin-top:.9rem;text-align:left}
.fsc-cq-or{display:flex;align-items:center;gap:.6rem;margin:0 0 .7rem;color:#6b6b6b;font-size:13px}
.fsc-cq-or::before,.fsc-cq-or::after{content:"";flex:1;height:1px;background:#ebebeb}
.fsc-cq-toggle{display:block;width:100%;min-height:44px;padding:.6rem 1rem;border:1px solid #f02640;border-radius:4px;background:#fff;color:#f02640;font-weight:600;font-size:14px;cursor:pointer}
.fsc-cq-toggle:hover,.fsc-cq.is-open .fsc-cq-toggle{background:#fff5f6}
.fsc-cq-toggle:focus-visible,.fsc-cq-form input:focus-visible,.fsc-cq-form textarea:focus-visible{outline:2px solid #f02640;outline-offset:1px}
.fsc-cq-form{margin-top:.8rem;display:flex;flex-direction:column;gap:.6rem}
.fsc-cq-form[hidden]{display:none}
.fsc-cq-intro,.fsc-cq-legal{margin:0;font-size:13px;line-height:1.4;color:#414141}
.fsc-cq-legal{color:#6b6b6b;font-size:12px}
.fsc-cq-row{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}
.fsc-cq-form label{display:flex;flex-direction:column;align-items:stretch;gap:.25rem;margin:0;text-align:left;font-size:13px;font-weight:600;color:#242424}
.fsc-cq-form abbr,.fsc-cq-form abbr[title]{color:#f02640;text-decoration:none;border:0;cursor:default}
.fsc-cq-form input,.fsc-cq-form textarea{width:100%;min-height:40px;padding:.45rem .6rem;border:1px solid #cfcfcf;border-radius:4px;font-size:16px;font-weight:400;color:#242424;background:#fff}
.fsc-cq-form textarea{min-height:76px;resize:vertical}
.fsc-cq-hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.fsc-cq-submit{width:100%;min-height:44px;border:0;border-radius:4px;background:#f02640;color:#fff;font-weight:700;text-transform:none}
.fsc-cq-submit:hover,.fsc-cq-submit:focus{background:#c81d33;color:#fff}
.fsc-cq-submit:disabled{opacity:.7;cursor:progress}
.fsc-cq-msg{margin:0;padding:.5rem .7rem;border-radius:4px;font-size:13px}
.fsc-cq-msg.is-error{background:#fdecee;color:#a3001b}
.fsc-cq-msg.is-ok{background:#eaf6ec;color:#1e6b2e}
.fsc-cq-done{display:flex;flex-direction:column;gap:.25rem;padding:.8rem .9rem;border-radius:4px;background:#eaf6ec;color:#1e6b2e;font-size:13px;line-height:1.4}
.fsc-cq-done strong{font-size:14px}
@media (max-width:420px){.fsc-cq-row{grid-template-columns:1fr}}
/* Le thème masque le bouton « Commander » du panier (règle d'avant la vente en ligne) : on le réaffiche. */
body#cart .cart-detailed-actions{display:block}
body#cart .cart-detailed-actions .btn-primary{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;border:0;border-radius:4px;background:#f02640;color:#fff;font-size:15px;font-weight:700;text-transform:none;box-shadow:none}
body#cart .cart-detailed-actions .btn-primary:hover,body#cart .cart-detailed-actions .btn-primary:focus{background:#c81d33;color:#fff}
body#cart .cart-detailed-actions .btn-primary:focus-visible{outline:2px solid #242424;outline-offset:2px}
/* Tunnel de commande : boutons d'action en rouge quand ils sont cliquables (le thème les laisse gris). */
body#checkout .btn-primary:not(:disabled):not(.disabled){background:#f02640;border-color:#f02640;color:#fff}
body#checkout .btn-primary:not(:disabled):not(.disabled):hover,body#checkout .btn-primary:not(:disabled):not(.disabled):focus{background:#c81d33;border-color:#c81d33;color:#fff}
body#checkout .btn-primary:disabled,body#checkout .btn-primary.disabled{background:#e6e6e6;border-color:#e6e6e6;color:#6b6b6b;cursor:not-allowed}
/* Tunnel de commande : le thème donne « min-height:100% » à tous les .container, y compris aux bandeaux
   vides de l'en-tête (header-bottom / header-after), ce qui creusait un grand blanc sous la bannière. */
body#checkout .header-top.container,body#checkout .header-bottom.container,body#checkout .header-after.container{min-height:0}
/* Total TTC (montant payé) ajouté sous la TVA : mis en évidence. */
.cart-total-ttc .label,.cart-total-ttc .value{font-weight:700;color:#242424}
