/* DCL Produs Media: swatch-urile (bază comună pentru card, formular și variante legate). */
.dcl-pm-sws,
.dcl-pm-csw {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
}
.dcl-pm-sw {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 40px;
	height: 40px;
	margin: 0;
	padding: 3px;
	border: 1px solid var(--c-line, #d0d0d0);
	border-radius: 999px;
	background: var(--c-bg, #fff);
	color: var(--c-ink, #111);
	font: inherit;
	font-size: .9rem;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.dcl-pm-sw:hover {
	border-color: var(--c-ink, #111);
}
.dcl-pm-sw.is-on,
.dcl-pm-sw:has(input:checked) {
	border-color: var(--c-ink, #111);
	box-shadow: 0 0 0 1px var(--c-ink, #111);
}
.dcl-pm-sw:focus-visible,
.dcl-pm-sw:has(input:focus-visible) {
	outline: 2px solid var(--c-accent, #1f5eff);
	outline-offset: 2px;
}
.dcl-pm-sw input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.dcl-pm-sw-c {
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--dcl-pm-sw, #ccc);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
}
.dcl-pm-sw-i {
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}
.dcl-pm-sw.t-eticheta {
	padding: 0 14px;
	border-radius: var(--c-radius, 6px);
}
.dcl-pm-sw-t {
	white-space: nowrap;
}
/* Valoare care nu formează o variantă de vânzare cu celelalte alegeri: tăiată, dar tot alegibilă. */
.dcl-pm-sw.is-off::after {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: inherit;
	background: linear-gradient(to top right, transparent calc(50% - 1px), var(--c-muted, #666) 50%, transparent calc(50% + 1px));
	pointer-events: none;
}
.dcl-pm-sw.is-off .dcl-pm-sw-t {
	text-decoration: line-through;
}

/* În card. Învelișul cardului din builder poate fi un rând flex (butoanele de liste): swatch-urile trec dedesubt. */
.dclb-pcard-w:has(> .dcl-pm-csw) {
	flex-wrap: wrap;
	align-content: flex-start;
}
.dclb-pcard-w > .dcl-pm-csw {
	flex: 0 0 100%;
}
.dclb-pcard-w:has(> .dcl-pm-csw) > .product-card {
	height: auto;
}
.dcl-pm-csw {
	gap: 6px;
	margin-top: 8px;
	align-items: center;
}
.dcl-pm-csw .dcl-pm-sw {
	min-width: 28px;
	height: 28px;
	padding: 2px;
}
.dcl-pm-csw .dcl-pm-sw-c,
.dcl-pm-csw .dcl-pm-sw-i {
	width: 22px;
	height: 22px;
}
.dcl-pm-csw .dcl-pm-sw.t-eticheta {
	padding: 0 8px;
	font-size: .8rem;
}
.dcl-pm-sw-mai {
	color: var(--c-text, #333);
	font-size: .85rem;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.dcl-pm-sw-mai:focus-visible {
	outline: 2px solid var(--c-accent, #1f5eff);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.dcl-pm-sw {
		transition: none;
	}
}
