/* Custom Range Slider Styling */
.range-slider {
	position: relative;
	height: 4px;
	background: #ecf0ed;
	border-radius: 2px;
	margin: 20px 0;
	z-index: 1; /* Keep track behind thumbs */
}
.range-selected {
	height: 100%;
	left: 0%;
	right: 0%;
	position: absolute;
	border-radius: 5px;
	background: var(--primary-color);
}
.range-input {
	position: relative;
}
.range-input input {
	position: absolute;
	width: 100%;
	height: 4px;
	top: -22px; /* Align with track */
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	z-index: 2; /* Keep thumbs above track */
}
.range-input input::-webkit-slider-thumb {
	height: 20px;
	width: 20px;
	border-radius: 50%;
	border: 2px solid var(--primary-color);
	background-color: #fff;
	pointer-events: auto;
	-webkit-appearance: none;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.range-input input::-moz-range-thumb {
	height: 20px;
	width: 20px;
	border: 2px solid var(--primary-color);
	border-radius: 50%;
	background-color: #fff;
	pointer-events: auto;
	-moz-appearance: none;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Toggle Switch Styling */
.toggle-checkbox:checked {
	right: 0;
	border-color: var(--primary-color);
}
.toggle-checkbox:checked + .toggle-label {
	background-color: var(--primary-color);
}
.toggle-checkbox:checked + .toggle-label:before {
	transform: translateX(100%);
}

.toggle-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
}
.toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}
.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: white;
	border: 1px solid #f2f4f3;
	transition: .4s;
	border-radius: 34px;
}
.slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: #f2f4f3;
	transition: .4s;
	border-radius: 50%;
}
input:checked + .slider {
	background-color: var(--primary-color-faded, #fff2ea); /* Fallback or define faded var */
	border:none;
}
input:checked + .slider:before{
	background-color: var(--primary-color);
}

input:checked + .slider:before {
	transform: translateX(20px);
}

/* Accordion Styling */
details > summary {
	list-style: none;
}
details > summary::-webkit-details-marker {
	display: none;
}
details > summary::after {
	content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23a0a5a2' class='w-5 h-5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
	float: right;
	width: 20px;
	height: 20px;
	transition: transform 0.2s;
}
details[open] > summary::after {
	transform: rotate(180deg);
}
