/* Glowence Scroll Line: lies over its parent Container and takes no space. */

.elementor-widget-glowence-scroll-line {
	position: absolute !important;
	inset: 0;
	z-index: 0;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	pointer-events: none;
}

.glowence-scroll-line {
	--glw-line-x: 50%;
	--glw-line-top: 1rem;
	--glw-line-bottom: 1rem;
	--glw-line-width: 2px;
	--glw-line-style: dashed;
	--glw-line-track: var(--e-global-color-glw_light_gray, #e2dfde);
	--glw-line-fill: var(--e-global-color-secondary, #d2831a);

	position: absolute;
	top: var(--glw-line-top);
	bottom: var(--glw-line-bottom);
	left: var(--glw-line-x);
	width: 0;
	border-left: var(--glw-line-width) var(--glw-line-style) var(--glw-line-track);
	transform: translateX(-50%);
}

.glowence-scroll-line__fill {
	position: absolute;
	top: 0;
	left: calc(var(--glw-line-width) * -1);
	display: block;
	width: 0;
	height: var(--glw-line-start, 20%);
	border-left: var(--glw-line-width) var(--glw-line-style) var(--glw-line-fill);
}

/* The steps sit above the rail; markers with a solid fill hide it where they cross. */
.elementor-widget-glowence-scroll-line ~ .elementor-element {
	position: relative;
	z-index: 1;
}

/* Editor: give the rail a grab area so it can be selected on the canvas. */
.elementor-editor-active .glowence-scroll-line {
	pointer-events: auto;
}

.elementor-editor-active .glowence-scroll-line::before {
	position: absolute;
	inset: 0 -8px;
	content: "";
}

@media (prefers-reduced-motion: reduce) {
	.glowence-scroll-line__fill {
		height: 100%;
	}
}
