.gnome-kk {
	margin: 0 0 1.5em;
	max-width: 420px;
}

.gnome-kk__stage {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 288 / 600;
	background: #e9e7e4;
}

.gnome-kk__fallback,
.gnome-kk__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

/* Tot de canvas klaar is, zie je gewoon de foto. */
.gnome-kk__canvas { opacity: 0; transition: opacity .2s; }
.gnome-kk.is-ready .gnome-kk__canvas { opacity: 1; }

.gnome-kk__opties { border: 0; padding: 0; margin: 1em 0 0; }
.gnome-kk__opties legend { padding: 0; margin-bottom: .6em; font-size: 15px; }

.gnome-kk__swatches { display: flex; gap: 14px; flex-wrap: wrap; }

.gnome-kk__swatch {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 13px;
}
.gnome-kk__swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.gnome-kk__dot {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--kleur);
	box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .25), 0 0 0 2px #fff, 0 0 0 3px #ccc;
	transition: box-shadow .2s, transform .2s;
}
.gnome-kk__swatch:hover .gnome-kk__dot { transform: scale(1.06); }
.gnome-kk__swatch input:checked + .gnome-kk__dot {
	box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .25), 0 0 0 3px #fff, 0 0 0 5px #222;
}
.gnome-kk__swatch input:focus-visible + .gnome-kk__dot { outline: 2px solid #2271b1; outline-offset: 6px; }
