/* ===================================
   Custom dual-handle price slider
   =================================== */

.rmf-price-slider {
	background: #fff;
	border-radius: 12px;
}

.rmf-dual-slider {
	position: relative;
	margin: 10px 0 20px;
}

.rmf-slider-surface {
	position: relative;
	height: 28px;
	cursor: pointer;
	touch-action: none;
	user-select: none;
}

.rmf-slider-track,
.rmf-slider-range {
	position: absolute;
	top: 50%;
	height: 6px;
	border-radius: 999px;
	transform: translateY(-50%);
}

.rmf-slider-track {
	left: 0;
	right: 0;
	background: #e5e7eb;
}

.rmf-slider-range {
	background: #5ba1d4;
}

.rmf-slider-handle {
	position: absolute;
	top: 50%;
	width: 18px;
	height: 18px;
	margin: 0;
	padding: 0;
	border: 3px solid #5ba1d4;
	border-radius: 50%;
	background: #fff;
	transform: translate(-50%, -50%);
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
	cursor: grab;
	touch-action: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.rmf-price-slider.is-dragging .rmf-slider-handle {
	cursor: grabbing;
}

.rmf-slider-handle.is-active {
	border-color: #347fb5;
	box-shadow: 0 0 0 4px rgba(91, 161, 212, 0.18), 0 3px 12px rgba(37, 99, 235, 0.28);
}

.rmf-slider-handle:hover {
	transform: translate(-50%, -50%) scale(1.06);
}

.rmf-price-slider.is-dragging .rmf-slider-handle.is-active {
	transform: translate(-50%, -50%) scale(1.08);
}

.rmf-slider-handle:focus-visible {
	outline: 2px solid #5ba1d4;
	outline-offset: 2px;
}

.rmf-slider-labels {
	display: flex;
	justify-content: space-between;
	margin-top: 5px;
	font-size: 11px;
	color: #6b7280;
}

.rmf-value-display {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f3f4f6;
	border-radius: 2px;
	font-weight: 500;
	color: #374151;
}

.rmf-value-label {
	font-size: 11px;
	color: #6b7280;
	letter-spacing: 0.5px;
}

.rmf-value-number {
	font-size: 11px;
	color: #1f2937;
	font-weight: 600;
}

.rmf-actions {
	margin-top: 16px;
	text-align: right;
}

.rmf-clear-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: transparent;
	border: none;
	color: #ef4444;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.2s ease;
	text-decoration: none;
}

.rmf-clear-btn:hover {
	background: #fee2e2;
	color: #dc2626;
}

@media (max-width: 640px) {
	.rmf-slider-labels {
		font-size: 13px;
		flex-wrap: wrap;
		gap: 8px;
	}

	.rmf-value-display {
		padding: 6px 10px;
	}

	.rmf-value-number {
		font-size: 14px;
	}
}
