/* Bal Configurator */
.bc-preview {
	position: relative;
	background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, #f4f2ee 60%, #ebe8e1 100%);
	border-radius: 14px;
	overflow: hidden;
	margin: 0 0 1.5em;
}
.bc-preview .bc-canvas {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	height: auto;
	user-select: none;
	-webkit-user-select: none;
}
.bc-preview--gallery .bc-canvas { aspect-ratio: 1 / 1; }
.bc-preview--form { margin-bottom: 1.2em; }
.bc-gallery.images { position: relative; }
.bc-hint {
	position: absolute;
	left: 0; right: 0; bottom: 10px;
	margin: 0;
	text-align: center;
	font-size: 12px;
	color: rgba(0, 0, 0, .45);
	pointer-events: none;
}

/* Terugval zonder WebGL: twee halve bollen */
.bc-fallback { padding: 2em 1em; text-align: center; }
.bc-fallback-half {
	display: inline-block;
	width: 90px; height: 180px;
	border: 1px solid rgba(0, 0, 0, .15);
}
.bc-fallback-1 { border-radius: 90px 0 0 90px; }
.bc-fallback-2 { border-radius: 0 90px 90px 0; }
.bc-fallback p { font-size: 13px; opacity: .7; margin-top: 1em; }

/* Kleurkeuze */
.bc-configurator { margin: 0 0 1.5em; width: 100%; }
.bc-row { margin: 0 0 1.1em; }
.bc-label { margin: 0 0 .45em; font-size: .95em; }
.bc-label strong { font-weight: 600; }
.bc-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-swatch {
	position: relative;
	display: inline-flex;
	cursor: pointer;
	margin: 0;
}
.bc-swatch input {
	position: absolute;
	opacity: 0;
	width: 1px; height: 1px;
	margin: 0;
}
.bc-dot {
	display: block;
	width: 32px; height: 32px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .12);
	transition: transform .12s ease, box-shadow .12s ease;
}
.bc-swatch--light .bc-dot { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), 0 1px 2px rgba(0, 0, 0, .12); }
.bc-swatch:hover .bc-dot { transform: scale(1.08); }
.bc-swatch input:checked + .bc-dot {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #222;
}
.bc-swatch input:focus-visible + .bc-dot {
	outline: 2px solid #2271b1;
	outline-offset: 4px;
}
.bc-holder-toggle {
	display: flex;
	align-items: center;
	gap: .5em;
	cursor: pointer;
	margin-bottom: .6em;
}
.bc-holder-toggle input { margin: 0; width: 18px; height: 18px; }
.bc-included { margin: 0 0 .6em; font-weight: 600; }
.bc-holder-colors[hidden] { display: none; }
.bc-price { opacity: .8; }

/* In sommige thema's staat het formulier inline; configurator altijd volle breedte */
form.cart .bc-configurator { flex-basis: 100%; }

/* Mobiel: voorbeeld blijft bovenaan zichtbaar tijdens het kiezen */
@media (max-width: 768px) {
	.bc-preview--gallery,
	.bc-preview--form {
		position: sticky;
		top: 0;
		z-index: 20;
		box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
	}
	.bc-preview--gallery .bc-canvas,
	.bc-preview--form .bc-canvas { aspect-ratio: auto; height: 40vh; }
	.admin-bar .bc-preview--gallery,
	.admin-bar .bc-preview--form { top: 46px; }
	.bc-gallery.images { position: sticky; top: 0; z-index: 20; }
}
