/* LDT Personnalisation – configurateur */
.ldt-customizer { margin: 0 0 24px; clear: both; }
.ldt-customizer *, .ldt-customizer *::before, .ldt-customizer *::after { box-sizing: border-box; }
/* L'attribut hidden doit toujours gagner sur les display: du plugin (placeholder du logo, swatches, etc.). */
.ldt-customizer [hidden], .ldt-preview-wrap [hidden], .ldt-preview [hidden] { display: none !important; }

/* Prévisualisation (calques) */
.ldt-preview-wrap { margin-bottom: 18px; }
.ldt-preview-gallery { margin-bottom: 0; }
.ldt-preview-gallery .ldt-preview { max-width: none; }
.ldt-preview {
	position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1;
	background: #fff; border: 1px solid #e6e6e6; border-radius: 10px; overflow: hidden; user-select: none;
}
.ldt-preview.is-loading::after {
	content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.45);
	backdrop-filter: blur(1px);
}
.ldt-layer { position: absolute; }
.ldt-layer-base { inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.ldt-layer-zone {
	transform: translate(-50%, -50%); border: 1px dashed rgba(0,0,0,.18); border-radius: 4px; pointer-events: none;
	transition: opacity .2s; opacity: 0;
}
.ldt-layer-zone.is-empty { opacity: 1; }
.ldt-layer-logo {
	transform: translate(-50%, -50%); cursor: grab; touch-action: none; line-height: 0;
}
.ldt-layer-logo.has-logo:hover { outline: 1px dashed rgba(0,0,0,.35); outline-offset: 3px; }
.ldt-layer-logo.is-dragging { cursor: grabbing; outline: 1px dashed rgba(0,0,0,.5); outline-offset: 3px; }
.ldt-layer-logo img { width: 100%; height: auto; display: block; pointer-events: none; }
.ldt-logo-placeholder {
	aspect-ratio: 1 / 1; width: 100%; display: flex; align-items: center; justify-content: center; text-align: center;
	border: 2px dashed rgba(0,0,0,.35); border-radius: 6px; background: rgba(255,255,255,.75);
	font-size: 10px; line-height: 1.2; color: #333; padding: 4px; overflow: hidden; word-break: break-word;
}
.ldt-preview-badge {
	position: absolute; left: 10px; top: 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
	background: rgba(0,0,0,.65); color: #fff; padding: 3px 8px; border-radius: 999px;
}
.ldt-hint { font-size: 12px; color: #777; margin: 8px 0 0; }

/* Étapes */
.ldt-step { margin-bottom: 20px; }
.ldt-step-title { font-weight: 600; font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ldt-step-num {
	display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: #111; color: #fff;
	font-size: 12px; align-items: center; justify-content: center; flex: none;
}
.ldt-step-value { font-weight: 400; color: #666; }

/* Couleurs */
.ldt-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.ldt-swatch[hidden] { display: none; }
.ldt-swatch {
	appearance: none; border: 1px solid #e3e3e3; background: #fff; border-radius: 999px; padding: 4px 10px 4px 4px;
	display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 12px; line-height: 1; color: #222;
	transition: border-color .15s, box-shadow .15s;
}
.ldt-swatch:hover { border-color: #999; }
.ldt-swatch.is-active { border-color: #111; box-shadow: 0 0 0 1px #111; }
.ldt-swatch-dot {
	width: 22px; height: 22px; border-radius: 50%; background: var(--ldt-c, #ccc);
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); flex: none;
}

/* Emplacements */
.ldt-positions { display: flex; flex-wrap: wrap; gap: 8px; }
.ldt-position {
	appearance: none; border: 1px solid #e3e3e3; background: #fff; border-radius: 8px; padding: 8px 12px;
	display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: #222;
	transition: border-color .15s, box-shadow .15s;
}
.ldt-position:hover { border-color: #999; }
.ldt-position.is-active { border-color: #111; box-shadow: 0 0 0 1px #111; }
.ldt-pos-icon { width: 22px; height: 26px; border: 1.5px solid #555; border-radius: 4px 4px 3px 3px; position: relative; flex: none; }
.ldt-pos-icon::after { content: ""; position: absolute; width: 5px; height: 5px; background: #111; border-radius: 1px; }
.ldt-pos-icon-coeur::after { right: 4px; top: 6px; }
.ldt-pos-icon-anticoeur::after { left: 4px; top: 6px; }
.ldt-pos-icon-dos::after { left: 50%; top: 8px; transform: translateX(-50%); width: 10px; height: 8px; }
.ldt-pos-icon-aucun::after { display: none; }

/* Upload */
.ldt-dropzone {
	border: 2px dashed #cfcfcf; border-radius: 10px; padding: 18px 16px; text-align: center; cursor: pointer;
	background: #fafafa; font-size: 13px; color: #444; transition: border-color .15s, background .15s;
}
.ldt-dropzone:hover, .ldt-dropzone:focus-visible, .ldt-dropzone.is-over { border-color: #111; background: #f3f3f3; outline: none; }
.ldt-dropzone.is-done { cursor: default; border-style: solid; border-color: #2e7d32; background: #f1f8f1; }
.ldt-dropzone small { color: #888; }
.ldt-dropzone-done { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ldt-file-ok { color: #2e7d32; font-weight: 700; }
.ldt-file-remove {
	appearance: none; border: 1px solid #bbb; background: #fff; border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: 12px;
}
.ldt-spinner {
	display: inline-block; width: 14px; height: 14px; border: 2px solid #ccc; border-top-color: #111; border-radius: 50%;
	animation: ldt-spin .8s linear infinite; vertical-align: -2px;
}
@keyframes ldt-spin { to { transform: rotate(360deg); } }

.ldt-logo-tools { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; flex-wrap: wrap; }
.ldt-logo-tools input[type=range] { flex: 1; min-width: 120px; accent-color: #111; }
.ldt-recenter { appearance: none; border: 1px solid #bbb; background: #fff; border-radius: 6px; padding: 5px 10px; cursor: pointer; font-size: 12px; }

.ldt-error { background: #fdecea; color: #b3261e; border-left: 4px solid #b3261e; padding: 10px 12px; border-radius: 4px; font-size: 13px; margin-top: 8px; }

/* Panier */
.ldt-cart-thumb { max-width: 100%; height: auto; }

@media (max-width: 480px) {
	.ldt-swatch-name { display: none; }
	.ldt-swatch { padding: 4px; }
}

/* Modèle (taille classique / Big Size) */
.ldt-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.ldt-size {
	appearance: none; border: 1px solid #e3e3e3; background: #fff; border-radius: 8px; padding: 8px 14px 8px 10px;
	display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: #222; text-align: left;
	transition: border-color .15s, box-shadow .15s; min-width: 150px;
}
.ldt-size:hover { border-color: #999; }
.ldt-size.is-active { border-color: #111; box-shadow: 0 0 0 1px #111; }
.ldt-size[disabled] { opacity: .45; cursor: not-allowed; }
.ldt-size-text { display: flex; flex-direction: column; line-height: 1.25; }
.ldt-size-text strong { font-size: 13px; font-weight: 600; }
.ldt-size-text small { font-size: 11px; color: #777; }
.ldt-preview-badge-size { left: auto; right: 10px; background: #fff; color: #111; border: 1px solid #ddd; }
.ldt-preview-badge-size[hidden] { display: none; }

/* Tailles masquées (swatches Woodmart hors modèle) */
.wd-swatch.ldt-hidden { display: none !important; }

/* Assistant pas à pas */
.ldt-steps-nav { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 6px; counter-reset: none; }
.ldt-nav-item { flex: 1 1 0; min-width: 0; }
.ldt-nav-btn {
	appearance: none; width: 100%; border: 0; border-top: 3px solid #e3e3e3; background: none; padding: 8px 2px 0; text-align: left;
	display: flex; align-items: flex-start; gap: 6px; cursor: default; color: #999; font: inherit;
}
.ldt-nav-num {
	display: inline-flex; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #ccc; color: #999;
	font-size: 11px; align-items: center; justify-content: center; flex: none; margin-top: 1px;
}
.ldt-nav-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ldt-nav-label { font-size: 12px; font-weight: 600; }
.ldt-nav-value { font-size: 11px; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ldt-nav-item.is-done .ldt-nav-btn { border-top-color: #111; color: #111; cursor: pointer; }
.ldt-nav-item.is-done .ldt-nav-num { background: #111; border-color: #111; color: #fff; }
.ldt-nav-item.is-current .ldt-nav-btn { border-top-color: #111; color: #111; }
.ldt-nav-item.is-current .ldt-nav-num { border-color: #111; color: #111; }
.ldt-nav-item.is-done .ldt-nav-btn:hover .ldt-nav-label { text-decoration: underline; }
.ldt-step[data-step] { display: none; }
.ldt-step.is-current { display: block; animation: ldt-fade .18s ease-out; }
@keyframes ldt-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ldt-step-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.ldt-btn-back, .ldt-btn-next {
	appearance: none; border-radius: 6px; padding: 8px 14px; cursor: pointer; font-size: 13px; font: inherit;
}
.ldt-btn-back { border: 1px solid #ccc; background: #fff; color: #444; }
.ldt-btn-back:hover { border-color: #111; color: #111; }
.ldt-btn-next { border: 1px solid #111; background: #111; color: #fff; margin-left: auto; }
.ldt-btn-next:hover { background: #333; }
.ldt-next-hint { font-size: 12px; color: #777; margin: 12px 0 0; }
.ldt-size { min-width: 0; }

/* Tant que l'assistant n'est pas à la dernière étape, le choix de taille et le bouton panier sont masqués. */
form.cart.ldt-wizard-pending .variations,
form.cart.ldt-wizard-pending .single_variation_wrap,
form.cart.ldt-wizard-pending .reset_variations,
form.cart.ldt-wizard-pending .wd-sticky-btn,
form.cart.ldt-wizard-pending > .quantity,
form.cart.ldt-wizard-pending > .single_add_to_cart_button { display: none !important; }

@media (max-width: 480px) {
	.ldt-nav-value { display: none; }
}

/* Mode devis */
.ldt-minqty-notice {
	display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 18px; padding: 10px 12px;
	background: #fff8e5; border-left: 4px solid #dba617; border-radius: 4px; font-size: 13px; line-height: 1.45; color: #333;
}
.ldt-minqty-icon {
	flex: none; width: 20px; height: 20px; border-radius: 50%; background: #dba617; color: #fff; font: 700 12px/20px Georgia, serif; text-align: center;
}
.ldt-quote-form { margin: 0; }
.ldt-minqty { font-size: 13px; color: #444; margin: 0 0 10px; }
.ldt-qty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.ldt-qty { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; cursor: text; }
.ldt-qty-label { font-size: 12px; font-weight: 600; text-align: center; color: #333; }
.ldt-qty input {
	width: 100%; text-align: center; border: 1px solid #ccc; border-radius: 6px; padding: 8px 4px; font-size: 14px; background: #fff;
	-moz-appearance: textfield;
}
.ldt-qty input::-webkit-outer-spin-button, .ldt-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ldt-qty input:focus { border-color: #111; outline: none; box-shadow: 0 0 0 1px #111; }
.ldt-qty-total { margin: 12px 0 18px; font-size: 14px; color: #222; }
.ldt-qty-total strong { font-size: 16px; }
.ldt-qty-hint { font-size: 12px; color: #777; margin-left: 4px; }
.ldt-qty-hint.is-ok { color: #2e7d32; }
.ldt-qty-hint.is-ko { color: #b3261e; font-weight: 600; }
.ldt-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.ldt-contact label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12px; color: #444; }
.ldt-contact label em { color: #b3261e; font-style: normal; }
.ldt-contact .ldt-full { grid-column: 1 / -1; }
.ldt-contact input, .ldt-contact textarea {
	width: 100%; border: 1px solid #ccc; border-radius: 6px; padding: 9px 10px; font-size: 14px; background: #fff; font-family: inherit;
}
.ldt-contact input:focus, .ldt-contact textarea:focus { border-color: #111; outline: none; box-shadow: 0 0 0 1px #111; }
.ldt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ldt-btn-quote {
	appearance: none; border: 1px solid #111; background: #111; color: #fff; border-radius: 6px; padding: 12px 22px; cursor: pointer;
	font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; margin-left: auto; min-width: 200px;
	transition: background .15s;
}
.ldt-btn-quote:hover { background: #333; }
.ldt-btn-quote[disabled] { opacity: .7; cursor: wait; }
.ldt-btn-quote .ldt-spinner { border-color: rgba(255,255,255,.4); border-top-color: #fff; }
.ldt-quote-success {
	text-align: center; padding: 28px 20px; border: 1px solid #c8e6c9; background: #f1f8f1; border-radius: 10px; margin-bottom: 24px;
}
.ldt-quote-success-icon {
	width: 44px; height: 44px; border-radius: 50%; background: #2e7d32; color: #fff; font-size: 22px; line-height: 44px; margin: 0 auto 10px;
}
.ldt-quote-success h3 { margin: 0 0 8px; font-size: 18px; }
.ldt-quote-success p { margin: 0; font-size: 14px; color: #333; }
@media (max-width: 480px) {
	.ldt-contact { grid-template-columns: 1fr; }
	.ldt-step-actions { flex-wrap: wrap; }
	.ldt-btn-quote { width: 100%; margin-left: 0; }
}
