/* Native variation swatches (replaces Woo Variation Swatches plugin). */

.variations select[data-shelly-swatched-out] {
	display: none !important;
}

.shelly-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 4px 0 0;
}

.shelly-swatch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 10px;
	background: #fff;
	border: 1px solid rgba(18, 18, 18, 0.2);
	border-radius: var(--shelly-radius-md, 4px);
	cursor: pointer;
	font: inherit;
	color: #121212;
	transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.shelly-swatch:hover:not(.is-disabled):not(:disabled) {
	border-color: #121212;
}

.shelly-swatch.is-selected,
.shelly-swatch.is-selected:hover {
	border-color: #121212;
	background: #121212;
	color: #fff;
}

.shelly-swatch.is-disabled,
.shelly-swatch:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.shelly-swatch__image {
	display: inline-flex;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	overflow: hidden;
	background: #f4f4f4;
	flex: 0 0 auto;
}

.shelly-swatch__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.shelly-swatch__label {
	font-size: 0.92em;
	line-height: 1;
}
