/* ClickTraces – Layer Cube (ct-layer-cube)
 * Every colour/size is a CSS variable on .ct-lc so Elementor controls can override it.
 * Only colours transition (no layout work); the loop is driven by JS and pauses off screen.
 * Sizes inside the stage scale with the widget width (--lc-u = 1 design px). */

.ct-lc {
	--lc-w: 523;
	--lc-u: 1px;
	--lc-top: #f9f9fb;
	--lc-left: #e4e4e9;
	--lc-right: #d2d2d9;
	--lc-bevel: #ffffff;
	--lc-a-top: #7b4cff;
	--lc-a-left: #6a33fc;
	--lc-a-right: #5827e8;
	--lc-a-bevel: #a57dff;
	--lc-ao: #2b2650;
	--lc-ao-o: 1;
	--lc-bw: 1.6;
	--lc-shade: 0.03;
	--lc-shadow: rgba(30, 26, 64, 0.26);
	--lc-speed: 0.55s;
	--lc-wave: 40ms;
	--lc-label: #0a0a0a;
	--lc-label-a: #5d32ff;
	--lc-fs: 20;
	--lc-fs-min: 11px;
	--lc-lgap: 8.5;
	--lc-line: #0a0a0a;
	--lc-line-a: #5d32ff;
	--lc-lw: 1px;
	--lc-dash: 4px;
	--lc-gap: 4px;
	--lc-dot: 5.5;
	position: relative;
	box-sizing: border-box;
	width: calc(var(--lc-w) * 1px);
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

/* Lets the widget shrink when placed directly in an Elementor row container. */
.elementor-widget-ct-layer-cube {
	min-width: 0;
}

@supports (width: 1cqw) {
	.ct-lc {
		--lc-u: calc(100cqw / var(--lc-w));
	}
}

.ct-lc .ct-lc__stage {
	position: relative;
	width: 100%;
	aspect-ratio: var(--lc-ar);
	container-type: inline-size;
	isolation: isolate;
}

.ct-lc .ct-lc__svg,
.ct-lc .ct-lc__fx,
.ct-lc .ct-lc__shadow {
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	overflow: visible;
}

/* Own GPU layers: the blurred shadow and the static groove shading are drawn once and are
   never repainted while the layer colours change. Multiply keeps purple grooves saturated. */
.ct-lc .ct-lc__shadow,
.ct-lc .ct-lc__fx {
	pointer-events: none;
	will-change: transform;
}

.ct-lc .ct-lc__fx {
	mix-blend-mode: multiply;
}

.ct-lc__sh {
	fill: var(--lc-shadow);
}

.ct-lc__shade {
	fill-opacity: var(--lc-shade);
}

.ct-lc__ao {
	fill: var(--lc-ao);
	opacity: var(--lc-ao-o);
}

/* ---------- Cube faces ---------- */

.ct-lc__t,
.ct-lc__l,
.ct-lc__r,
.ct-lc__b {
	transition: fill var(--lc-speed) ease, stroke var(--lc-speed) ease;
	transition-delay: calc(var(--d, 0) * var(--lc-wave));
}

/* A hairline stroke in the face colour hides anti-aliasing seams between faces. */
.ct-lc__t,
.ct-lc__l,
.ct-lc__r {
	stroke-width: 0.6px;
	stroke-linejoin: round;
}

.ct-lc__t {
	fill: var(--lc-top);
	stroke: var(--lc-top);
}

.ct-lc__l {
	fill: var(--lc-left);
	stroke: var(--lc-left);
}

.ct-lc__r {
	fill: var(--lc-right);
	stroke: var(--lc-right);
}

.ct-lc__b {
	fill: none;
	stroke: var(--lc-bevel);
	stroke-width: calc(var(--lc-bw) * 1px);
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ct-lc__layer.is-on .ct-lc__t {
	fill: var(--lc-a-top);
	stroke: var(--lc-a-top);
}

.ct-lc__layer.is-on .ct-lc__l {
	fill: var(--lc-a-left);
	stroke: var(--lc-a-left);
}

.ct-lc__layer.is-on .ct-lc__r {
	fill: var(--lc-a-right);
	stroke: var(--lc-a-right);
}

.ct-lc__layer.is-on .ct-lc__b {
	stroke: var(--lc-a-bevel);
}

/* ---------- Leader lines ---------- */

.ct-lc__ln {
	fill: none;
	stroke: var(--lc-line);
	stroke-width: var(--lc-lw);
	stroke-dasharray: var(--lc-dash) var(--lc-gap);
	vector-effect: non-scaling-stroke;
	pointer-events: none;
	transition: stroke var(--lc-speed) ease;
}

.ct-lc--solid .ct-lc__ln {
	stroke-dasharray: none;
}

.ct-lc--dotted .ct-lc__ln {
	stroke-dasharray: 0.01px var(--lc-gap);
	stroke-linecap: round;
}

.ct-lc__ln.is-on {
	stroke: var(--lc-line-a);
}

/* ---------- Dots & labels ---------- */

.ct-lc .ct-lc__ov {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
}

.ct-lc .ct-lc__dot {
	position: absolute;
	width: max(3px, calc(var(--lc-dot) * var(--lc-u)));
	height: max(3px, calc(var(--lc-dot) * var(--lc-u)));
	border-radius: 50%;
	background-color: var(--lc-dot-c, var(--lc-line));
	transform: translate(-50%, -50%);
	transition: background-color var(--lc-speed) ease;
}

.ct-lc .ct-lc__dot.is-on {
	background-color: var(--lc-dot-a, var(--lc-line-a));
}

/* The box spans from the widget edge to twice the dot distance, so auto margins center the
   label on the dot, and a label too wide for that space sticks to the edge instead. */
.ct-lc .ct-lc__lbox {
	position: absolute;
	display: flex;
	box-sizing: border-box;
	direction: ltr;
}

[dir="rtl"] .ct-lc .ct-lc__label {
	direction: rtl;
}

.ct-lc .ct-lc__lbox--l {
	left: 0;
}

.ct-lc .ct-lc__lbox--r {
	right: 0;
	flex-direction: row-reverse;
}

.ct-lc .ct-lc__lbox--t {
	align-items: flex-end;
	padding-bottom: calc((var(--lc-lgap) + var(--lc-dot) / 2) * var(--lc-u));
}

.ct-lc .ct-lc__lbox--b {
	align-items: flex-start;
	padding-top: calc((var(--lc-lgap) + var(--lc-dot) / 2) * var(--lc-u));
}

.ct-lc .ct-lc__label {
	display: block;
	flex: 0 0 auto;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 0;
	border: 0;
	background: none;
	font-size: max(var(--lc-fs-min), calc(var(--lc-fs) * var(--lc-u)));
	font-weight: 400;
	line-height: 1.2;
	color: var(--lc-label);
	text-align: center;
	text-decoration: none;
	pointer-events: auto;
	transition: color var(--lc-speed) ease;
}

.ct-lc .ct-lc__label.is-on,
.ct-lc a.ct-lc__label:focus-visible {
	color: var(--lc-label-a);
}

.ct-lc a.ct-lc__label:focus-visible {
	outline: 2px solid var(--lc-label-a);
	outline-offset: 3px;
	border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.ct-lc__t,
	.ct-lc__l,
	.ct-lc__r,
	.ct-lc__b {
		transition-duration: 0.15s;
		transition-delay: 0s;
	}
}
