/* JPME — Fichier PDF & Canva
   Tous les sélecteurs sont préfixés par .jpme-fc pour passer devant les styles du thème
   (labels en gras, boutons en nowrap…). */
.jpme-fc{--fc-accent:#ef9d2e;--fc-accent-dark:#c97a12;--fc-ink:#15212c;--fc-muted:#6b6259;--fc-line:#ecdccd;--fc-soft:#fff6ec;--fc-ok:#1f8a4c;--fc-err:#b3261e;
	box-sizing:border-box;width:100%;max-width:100%;margin:20px 0 4px;padding:20px;border:1px solid var(--fc-line);border-radius:16px;background:#fff;color:#2b2b2b;font-weight:400;line-height:1.45}
.jpme-fc *,.jpme-fc *::before,.jpme-fc *::after{box-sizing:border-box}
.jpme-fc.is-missing{border-color:#e7a7a1;box-shadow:0 0 0 4px rgba(179,38,30,.07)}
.jpme-fc.is-done{border-color:#cbe8d6;background:#f7fcf9}

.jpme-fc h3.jpme-fc-title{margin:0 0 2px!important;font-size:1.12rem!important;line-height:1.3!important;color:var(--fc-ink)}
.jpme-fc .jpme-fc-intro{margin:0 0 14px;font-size:.88rem;color:var(--fc-muted)}
.jpme-fc .jpme-fc-intro strong{color:var(--fc-ink);font-weight:600}

/* Choix PDF / Canva */
.jpme-fc .jpme-fc-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.jpme-fc .jpme-fc-choices.is-single{grid-template-columns:minmax(0,1fr)}
.jpme-fc .jpme-fc-choices[hidden]{display:none}
.jpme-fc button.jpme-fc-choice{position:relative;display:flex;align-items:center;gap:10px;width:100%;min-width:0;margin:0;padding:12px 14px!important;border:1.5px solid var(--fc-line)!important;border-radius:12px!important;background:#fff!important;color:var(--fc-ink)!important;box-shadow:none!important;text-align:left;white-space:normal!important;text-transform:none!important;letter-spacing:0!important;font:inherit;font-weight:400!important;line-height:1.3;cursor:pointer;transition:border-color .15s,background .15s}
.jpme-fc button.jpme-fc-choice:hover{border-color:#e8bf8a!important;background:#fffcf8!important}
.jpme-fc button.jpme-fc-choice:focus-visible{outline:3px solid rgba(239,157,46,.35);outline-offset:2px}
.jpme-fc button.jpme-fc-choice.is-active{border-color:var(--fc-accent)!important;background:var(--fc-soft)!important}
.jpme-fc button.jpme-fc-choice.is-active::after{content:"";position:absolute;top:10px;right:10px;width:8px;height:8px;border-radius:50%;background:var(--fc-accent)}
.jpme-fc .jpme-fc-choice>span:last-child{min-width:0}
.jpme-fc .jpme-fc-choice strong{display:block;font-size:.9rem;font-weight:600;color:var(--fc-ink)}
.jpme-fc .jpme-fc-choice small{display:block;margin-top:1px;font-size:.78rem;color:var(--fc-muted)!important;font-weight:400}
.jpme-fc .jpme-fc-ico{flex:0 0 34px;height:34px;border-radius:9px;background:var(--fc-soft);display:grid;place-items:center}
.jpme-fc .jpme-fc-ico svg{width:18px;height:18px;fill:none;stroke:var(--fc-accent-dark);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* Panneaux */
.jpme-fc .jpme-fc-panel{margin-top:14px}
.jpme-fc .jpme-fc-panel[hidden]{display:none}

.jpme-fc label.jpme-fc-drop{position:relative;display:flex!important;align-items:center;justify-content:center;gap:10px;min-height:84px;margin:0;padding:16px;border:1.5px dashed #e3c7ab;border-radius:12px;background:#fffcf8;font-weight:400!important;font-size:.9rem;color:var(--fc-ink);text-align:center;cursor:pointer;transition:border-color .15s,background .15s}
.jpme-fc label.jpme-fc-drop:hover,.jpme-fc label.jpme-fc-drop.is-over{border-color:var(--fc-accent);background:var(--fc-soft)}
.jpme-fc .jpme-fc-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.jpme-fc .jpme-fc-drop-text strong{color:var(--fc-accent-dark);font-weight:600}
.jpme-fc .jpme-fc-drop-text small{display:block;margin-top:2px;font-size:.76rem;color:var(--fc-muted);font-weight:400}

.jpme-fc label.jpme-fc-check{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:8px;margin:12px 0 0;font-size:.82rem!important;font-weight:400!important;line-height:1.4;color:var(--fc-muted);cursor:pointer}
.jpme-fc .jpme-fc-check input{flex:0 0 auto;width:16px;height:16px;margin:1px 0 0;accent-color:var(--fc-accent)}
.jpme-fc .jpme-fc-check b{color:var(--fc-ink);font-weight:600}

.jpme-fc .jpme-fc-specs{margin:8px 0 0;padding:0;list-style:none;font-size:.76rem;color:var(--fc-muted)}
.jpme-fc .jpme-fc-specs li{margin:0}
.jpme-fc .jpme-fc-specs strong{font-weight:600;color:var(--fc-ink)}

.jpme-fc .jpme-fc-progress{height:5px;margin-top:10px;border-radius:5px;background:var(--fc-line);overflow:hidden}
.jpme-fc .jpme-fc-progress[hidden]{display:none}
.jpme-fc .jpme-fc-progress span{display:block;height:100%;width:0;background:var(--fc-accent);transition:width .2s}

.jpme-fc .jpme-fc-canva-info{margin:0 0 12px;font-size:.86rem;color:var(--fc-muted)}
.jpme-fc .jpme-fc-canva-info strong{color:var(--fc-ink);font-weight:600}
.jpme-fc .jpme-fc-actions{display:flex;flex-wrap:wrap;gap:8px}
.jpme-fc .jpme-fc-btn,.jpme-fc-lettrage .jpme-fc-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 20px!important;border:0!important;border-radius:30px!important;background:var(--fc-accent,#ef9d2e)!important;color:#fff!important;font:inherit;font-size:.9rem;font-weight:600!important;text-decoration:none;white-space:normal!important;cursor:pointer;transition:background .15s}
.jpme-fc .jpme-fc-btn:hover,.jpme-fc-lettrage .jpme-fc-btn:hover{background:#d9861a!important}
.jpme-fc .jpme-fc-btn:disabled,.jpme-fc-lettrage .jpme-fc-btn:disabled{opacity:.5;cursor:not-allowed}
.jpme-fc .jpme-fc-btn.is-alt{background:var(--fc-ink)!important}
.jpme-fc .jpme-fc-btn.is-alt:hover{background:#0b141c!important}
.jpme-fc .jpme-fc-btn[hidden]{display:none}
.jpme-fc .jpme-fc-small,.jpme-fc-lettrage .jpme-fc-small{margin:8px 0 0;font-size:.76rem;color:#6b6259}

.jpme-fc .jpme-fc-status{margin-top:12px;font-size:.84rem;color:var(--fc-ink)}
.jpme-fc .jpme-fc-status:empty{display:none}
.jpme-fc .jpme-fc-status.is-error{color:var(--fc-err)}
.jpme-fc.is-done .jpme-fc-status{display:none}

/* Fichier prêt */
.jpme-fc .jpme-fc-ready{display:flex;gap:10px;align-items:flex-start}
.jpme-fc .jpme-fc-ready[hidden]{display:none}
.jpme-fc .jpme-fc-ok{flex:0 0 24px;height:24px;border-radius:50%;background:var(--fc-ok);color:#fff;display:grid;place-items:center;font-size:.8rem;font-weight:700}
.jpme-fc .jpme-fc-ready>div{flex:1;min-width:0;word-break:break-word;font-size:.88rem}
.jpme-fc .jpme-fc-ready-name{font-weight:600;color:var(--fc-ink)}
.jpme-fc .jpme-fc-notes{margin:2px 0 0;padding:0;list-style:none;font-size:.78rem;color:#4f5b52}
.jpme-fc button.jpme-fc-link{flex:0 0 auto;min-height:0;padding:2px 0!important;border:0!important;background:none!important;box-shadow:none!important;color:var(--fc-accent-dark)!important;font:inherit;font-size:.82rem;font-weight:600!important;text-decoration:underline;cursor:pointer}

/* Adhésifs imprimés : ancien éditeur masqué */
.jpme-fc-on .jpme-vitrine-personalize,.jpme-fc-on .jpme-vitrine-preview-text{display:none!important}
/* Aperçu « vitrine » supprimé : titre, simulation et mention */
.jpme-fc-on .jpme-vitrine-price>h3:first-child,.jpme-fc-on .jpme-vitrine-preview,.jpme-fc-on .jpme-vitrine-preview-note{display:none!important}

/* Lettrage */
.jpme-fc-lettrage .jpme-fc-l-opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.jpme-fc-lettrage .jpme-fc-l-opts label{display:flex;flex-direction:column;gap:4px;min-width:0}
.jpme-fc-l-preview{margin:16px 0 0;padding:18px;border-radius:12px;background:linear-gradient(135deg,#e6ecf1,#d3dce4);display:flex;justify-content:center}
.jpme-fc-l-box{--fc-ink:#20252b;position:relative;max-width:100%;max-height:200px;min-height:40px;border:2px dashed var(--fc-ink);border-radius:4px;background:rgba(255,255,255,.4);display:grid;place-items:center;overflow:hidden}
.jpme-fc-l-box span{font-size:.78rem;font-weight:600;color:#20252b;background:rgba(255,255,255,.85);padding:2px 8px;border-radius:20px}
.jpme-fc-l-box img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.jpme-fc-l-box img[hidden]{display:none}
.jpme-fc-l-box img:not([hidden])+span{display:none}
.jpme-fc-l-price{margin-top:16px;padding-top:14px;border-top:1px solid #ecdccd}
.jpme-fc-l-result{margin:0;font-size:1.05rem;color:#15212c}
.jpme-fc-l-add{margin-top:12px;width:100%}
.jpme-fc-l-cart{margin:8px 0 0;font-size:.86rem}
.jpme-fc-l-cart:empty{display:none}

@media (max-width:600px){
	.jpme-fc{padding:16px}
	.jpme-fc .jpme-fc-choices,.jpme-fc-lettrage .jpme-fc-l-opts{grid-template-columns:minmax(0,1fr)}
	.jpme-fc .jpme-fc-actions .jpme-fc-btn{width:100%}
}

/* Bloc prix + panier qui reste visible pendant qu'on remplit le configurateur (ordinateur) */
@media (min-width:900px){
	.elementor-widget:has(.jpme-vitrine-layout.jpme-fc-on){position:sticky;top:calc(var(--wp-admin--admin-bar--height,0px) + 24px);align-self:flex-start;z-index:2}
}
