.csg-wrapper {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.csg-image-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #f2f2f2;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 16px;
}

.csg-stage-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.csg-stage-image.is-active {
	opacity: 1;
	pointer-events: auto;
}

.csg-swatches {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.csg-swatch {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid #ddd;
	cursor: pointer;
	padding: 0;
	box-shadow: none;
	background-image: none;
	transition: transform 0.15s ease, border-color 0.15s ease;
}

/* Some themes apply "background: X !important" to all buttons.
   The inline !important on each swatch (set from the admin color)
   takes priority over this, but this resets any theme background-image
   or gradient that could otherwise sit on top of the color. */
.csg-swatches button.csg-swatch {
	background-image: none !important;
}

.csg-swatch:hover {
	transform: scale(1.1);
}

.csg-swatch.is-selected {
	border-color: #333;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333;
}

.csg-selected-label {
	font-size: 14px;
	color: #555;
	margin: 0;
	text-transform: capitalize;
}
