/* Conmeo Variation Selector */
.conmeo-variations {
	width: 100%;
}

.conmeo-variations__attr + .conmeo-variations__attr {
	margin-top: 20px;
}

.conmeo-variations__label {
	margin-bottom: 8px;
	font-weight: 700;
}

.conmeo-variations__selected {
	font-weight: 400;
}

.conmeo-variations__selected:empty + .conmeo-variations__label-sep,
.conmeo-variations__label-sep:has(+ .conmeo-variations__selected:empty) {
	display: none;
}

.conmeo-variations__options {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 10px;
}

/* Shared swatch */
.conmeo-variations .conmeo-swatch {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: 0;
	border: 0 solid transparent;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1.2;
	text-transform: none;
	box-sizing: border-box;
	min-width: 0;
	cursor: pointer;
	transition: border-color 200ms, background-color 200ms, color 200ms, opacity 200ms;
}

.conmeo-variations .conmeo-swatch:focus-visible {
	outline: 2px solid var(--e-global-color-accent, #e09f1f);
	outline-offset: 2px;
}

.conmeo-variations .conmeo-swatch.is-disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.conmeo-variations .conmeo-swatch.is-hidden {
	display: none;
}

/* Image swatch */
.conmeo-variations .conmeo-swatch--image,
.conmeo-variations .conmeo-swatch--image:focus {
	/* :focus included: the theme kit styles button:focus with the accent
	   background, which would otherwise show as a false highlight that
	   follows the last clicked swatch. */
	background-color: transparent;
	padding: 2px;
	border-width: 2px;
	border-color: rgba(255, 255, 255, 0.15);
	border-radius: 12px;
}

.conmeo-variations .conmeo-swatch--image:hover,
.conmeo-variations .conmeo-swatch--image.is-active {
	border-color: var(--e-global-color-accent, #e09f1f);
}

.conmeo-variations .conmeo-swatch--image .conmeo-swatch__img {
	display: block;
	width: 70px;
	height: 70px;
	object-fit: cover;
	border-radius: 12px;
	opacity: 0.75;
	transition: opacity 200ms;
}

.conmeo-variations .conmeo-swatch--image:hover .conmeo-swatch__img,
.conmeo-variations .conmeo-swatch--image.is-active .conmeo-swatch__img {
	opacity: 1;
}

.conmeo-variations .conmeo-swatch__caption {
	display: block;
	margin-top: 6px;
	font-size: 0.8em;
	text-align: center;
}

/* Text swatch */
.conmeo-variations .conmeo-swatch--text,
.conmeo-variations .conmeo-swatch--text:focus {
	background-color: transparent;
	color: inherit;
	padding: 8px 16px;
	border-width: 1px;
	border-color: rgba(255, 255, 255, 0.3);
	border-radius: 50px;
}

.conmeo-variations .conmeo-swatch--text:hover {
	border-color: var(--e-global-color-accent, #e09f1f);
}

.conmeo-variations .conmeo-swatch--text.is-active {
	border-color: var(--e-global-color-accent, #e09f1f);
	background-color: var(--e-global-color-accent, #e09f1f);
	color: var(--e-global-color-primary, #1e2023);
}

/* Editor notice */
.conmeo-widget-notice {
	padding: 12px 16px;
	border: 1px dashed currentColor;
	border-radius: 8px;
	font-size: 14px;
	opacity: 0.7;
}
