.wd-swatches {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 10px;
	margin: 6px 0 14px;
	position: relative;
}

.wd-swatch {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: inherit;
	font: inherit;
	line-height: 1.2;
}

.wd-swatch:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.wd-swatch-face {
	display: block;
	box-sizing: border-box;
	border: 2px solid transparent;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.wd-swatch--color .wd-swatch-face {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: var(--wd-swatch-color, #ccc);
}

.wd-swatch--color.is-light .wd-swatch-face {
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.28);
}

.wd-swatch--image .wd-swatch-face {
	width: 44px;
	height: 44px;
	overflow: hidden;
	border-radius: 10px;
	background: #f4f4f5;
}

.wd-swatch--image .wd-swatch-face img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wd-swatch--button .wd-swatch-face {
	min-width: 44px;
	padding: 8px 14px;
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

.wd-swatch.is-selected .wd-swatch-face {
	border-color: currentColor;
	box-shadow: 0 0 0 1px currentColor;
	transform: scale(1.04);
}

.wd-swatch.is-disabled {
	cursor: not-allowed;
	opacity: 0.35;
}

.wd-swatch-name {
	max-width: 72px;
	overflow: hidden;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 11px;
	opacity: 0.85;
}

.wd-swatch-select-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
