/**
 * Custom cursor: a ring that trails the mouse and a dot on the pointer.
 *
 * Same behaviour as the cursor on olab.b86dev.be. assets/js/cursor.js creates the
 * ring and dot and sets the class colab-cursor on <html>, only on mouse devices
 * without "reduce motion". Without that class (touch, reduced motion, no
 * JavaScript, Elementor preview) the native cursor stays.
 *
 * Colours only through the Elementor Global Colors (primary, wit, accent), with
 * hex fallbacks.
 * is-actief: over links, buttons, selects, [role=button], FAQ questions and
 *            form options (bigger hollow ring with an accent border)
 * is-donker: in dark sections (o-donker, colab-op-donker), the Elementor
 *            lightbox and the admin bar (ring and dot turn white)
 *
 * Loaded by inc/cursor.php.
 *
 * @author  Buro 86 webdesign <https://buro86.be/>
 * @link    https://buro86.be/
 * @package HelloElementorChild
 */
.colab-cursor-ring,
.colab-cursor-dot {
	position: fixed;
	left: 0;
	top: 0;
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	will-change: transform;
}

/* Top of the stack: above the lightbox (9999), the admin bar (99999) and a cookie banner. */
.colab-cursor-ring {
	z-index: 2147483646;
	box-sizing: border-box;
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border: 1px solid var(--e-global-color-primary, #26292B);
	background: transparent;
	transition: border-color .15s ease, border-width .15s ease, opacity .15s ease, width .15s ease, height .15s ease, margin .15s ease;
}

.colab-cursor-dot {
	z-index: 2147483647;
	width: 6px;
	height: 6px;
	margin: -3px 0 0 -3px;
	background: var(--e-global-color-primary, #26292B);
	transition: opacity .15s ease, background-color .15s ease;
}

.colab-cursor-ring.is-zichtbaar,
.colab-cursor-dot.is-zichtbaar {
	opacity: 1;
}

.colab-cursor-ring.is-donker {
	border-color: var(--e-global-color-wit, #FFFFFF);
}

.colab-cursor-dot.is-donker {
	background: var(--e-global-color-wit, #FFFFFF);
}

/*
 * Over a clickable item the ring grows and stays hollow: only the border turns
 * accent and 3px, so the item underneath stays visible. The dot keeps its colour
 * (primary, white in dark sections). Declared after is-donker, so the accent
 * border also wins in dark sections.
 */
.colab-cursor-ring.is-actief {
	width: 48px;
	height: 48px;
	margin: -24px 0 0 -24px;
	border-width: 3px;
	border-color: var(--e-global-color-accent, #FDC7D1);
	background: transparent;
}

/*
 * Hide the native cursor everywhere, also where Elementor or Swiper set their own
 * (accordion titles, submit buttons, labels, sliders, the lightbox): otherwise the
 * hand cursor shows next to the ring. Text inputs and textareas keep the text cursor.
 */
html.colab-cursor,
html.colab-cursor *,
html.colab-cursor *::before,
html.colab-cursor *::after {
	cursor: none !important;
}

html.colab-cursor textarea,
html.colab-cursor [contenteditable="true"],
html.colab-cursor input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="image"]):not([type="hidden"]) {
	cursor: text !important;
}

@media (prefers-reduced-motion: reduce) {
	.colab-cursor-ring,
	.colab-cursor-dot {
		display: none;
	}
}
