.lpv-linked-variations {
	margin: 0 0 20px;
	font-family: inherit;
	font-size: 1em;
}

.lpv-attribute-row {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 1.5em;
}

.lpv-attribute-label {
	display: block;
	margin-bottom: 0;
	font-weight: 500;
	color: var(--theme-text-color, inherit);
}

.lpv-swatches {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 8px;
}

.lpv-swatch {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--theme-border-color, #ccc);
	border-radius: var(--theme-border-radius, 4px);
	background: #fff;
	color: var(--theme-text-color, inherit);
	text-decoration: none;
	font-size: 0.875em;
	line-height: 1;
	transition: border-color 0.15s ease;
}

.lpv-swatch:hover {
	border-color: var(--theme-palette-color-1, #888);
}

.lpv-swatch.lpv-active {
	border-color: var(--theme-palette-color-1, #000);
	border-width: 2px;
}

.lpv-swatch.lpv-has-visual {
	flex-direction: column;
	justify-content: flex-start;
	height: auto;
	width: 80px;
	padding: 5px;
	gap: 5px;
}

.lpv-swatch.lpv-has-visual .lpv-swatch-visual {
	width: 70px;
	height: 70px;
}

.lpv-swatch.lpv-has-visual .lpv-swatch-text {
	position: static;
	opacity: 1;
	pointer-events: auto;
	background: none;
	color: var(--theme-text-color, inherit);
	padding: 0;
	white-space: normal;
	text-align: center;
	font-size: 0.75em;
	line-height: 1.3;
}

.lpv-swatch-visual {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: var(--theme-image-border-radius, var(--theme-border-radius, 3px));
	overflow: hidden;
}

.lpv-swatch-visual img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lpv-swatch.lpv-text-only {
	height: auto;
	min-height: 36px;
	padding: 6px 10px;
	text-align: center;
	line-height: 1.2;
}

.lpv-swatch.lpv-disabled {
	opacity: 0.4;
}

.lpv-swatch.lpv-disabled::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	border-top: 1px solid currentColor;
	transform: rotate(-10deg);
}

@media (max-width: 600px) {
	.lpv-swatches {
		gap: 6px;
	}

	.lpv-swatch {
		flex: 1 1 0;
		min-width: 0;
	}

	.lpv-swatch.lpv-has-visual {
		width: auto;
	}

	.lpv-swatch.lpv-has-visual .lpv-swatch-visual {
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
	}
}
