/* Wrapper & Layout */
.angie-vss-container {
	width: 100%;
	display: flex;
	flex-direction: column;
	position: relative;
	box-sizing: border-box;
}

.angie-vss-slider-wrapper {
	width: 100%;
	position: relative;
	display: flex;
	align-items: center;
	/* Provide minimum height equal to thumb to avoid layout shift */
	min-height: 24px;
	
	/* Default variables if not overridden by Elementor */
	--track-color: #e2e8f0;
	--track-active-color: #3b82f6;
	--track-height: 8px;
}

/* Custom Visual Elements */
.angie-vss-slider-track {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: var(--track-height);
	margin-top: calc(-1 * (var(--track-height) / 2));
	background-color: var(--track-color);
	border-radius: 4px;
	pointer-events: none;
	z-index: 1;
}

.angie-vss-slider-progress {
	position: absolute;
	top: 50%;
	left: 0;
	width: 0%; /* JS will update this */
	height: var(--track-height);
	margin-top: calc(-1 * (var(--track-height) / 2));
	background-color: var(--track-active-color);
	border-radius: 4px 0 0 4px;
	pointer-events: none;
	z-index: 2;
}

.angie-vss-slider-thumb {
	position: absolute;
	top: 50%;
	left: 0%; /* JS will update this */
	width: 24px;
	height: 24px;
	margin-top: -12px;
	background: #ffffff;
	border: 2px solid var(--track-active-color);
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
	transform: translateX(-50%);
	pointer-events: none; /* Let input range handle interaction */
	z-index: 3;
	transition: background-color 0.2s, border-color 0.2s, transform 0.1s, width 0.2s, height 0.2s, margin-top 0.2s;
	box-sizing: border-box;
}

/* Invisible Native Input capturing all interactions */
.angie-vss-slider-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0; /* fully invisible but clickable */
	cursor: pointer;
	z-index: 10;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: none;
	outline: none;
	box-shadow: none;
}

/* Strip native browser styling just in case */
.angie-vss-slider-input:focus {
	outline: none;
}
.angie-vss-slider-input::-webkit-slider-runnable-track,
.angie-vss-slider-input::-webkit-slider-thumb,
.angie-vss-slider-input::-moz-range-track,
.angie-vss-slider-input::-moz-range-thumb {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: none;
	box-shadow: none;
}

/* Optional hover scale effect passed through to visual thumb */
.angie-vss-slider-input:active ~ .angie-vss-slider-thumb {
	transform: translateX(-50%) scale(1.1);
}

/* Labels */
.angie-vss-labels {
	position: relative;
	width: 100%;
	margin-top: 15px;
	/* Add min-height to ensure spacing even if labels are absolutely positioned */
	min-height: 24px; 
}

.angie-vss-label {
	position: absolute;
	top: 0;
	color: #64748b;
	font-size: 14px;
	transition: all 0.3s ease;
	user-select: none;
	white-space: nowrap; /* Prevent breaking if narrow */
}

.angie-vss-label.is-active {
	color: #0f172a;
	font-weight: bold;
}

.angie-vss-label.is-clickable {
	cursor: pointer;
	z-index: 15; /* Above range input if it overlaps */
}

.angie-vss-label.is-clickable:hover {
	color: var(--track-active-color);
}