/* ─── Compare Slider Widget ──────────────────────────────────────────────── */

.hbc-cs-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 8px;
	cursor: col-resize;
	user-select: none;
	-webkit-user-select: none;
}

.hbc-cs-after-layer,
.hbc-cs-before-layer {
	width: 100%;
}

.hbc-cs-after-layer {
	position: relative;
	z-index: 1;
}

.hbc-cs-before-layer {
	position: absolute;
	inset: 0;
	z-index: 2;
}

.hbc-cs-after-layer img {
	display: block;
	width: 100%;
	height: auto;
}

.hbc-cs-before-layer img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Labels */
.hbc-cs-label {
	position: absolute;
	bottom: 16px;
	padding: 6px 14px;
	background: rgba(0, 0, 0, 0.6);
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	border-radius: 4px;
	pointer-events: none;
	z-index: 8;
}

.hbc-cs-label-left {
	left: 16px;
}

.hbc-cs-label-right {
	right: 16px;
}

/* Handle */
.hbc-cs-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 4px;
	margin-left: -2px;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hbc-cs-handle-line {
	flex: 1;
	width: 2px;
	background: #ffffff;
}

.hbc-cs-handle-knob {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #ffffff;
	color: #333333;
	font-size: 18px;
	font-weight: 700;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
	flex-shrink: 0;
}

/* Responsive */
@media (max-width: 767px) {
	.hbc-cs-handle-knob {
		width: 34px;
		height: 34px;
		font-size: 15px;
	}

	.hbc-cs-label {
		font-size: 11px;
		padding: 5px 10px;
		bottom: 12px;
	}

	.hbc-cs-label-left { left: 10px; }
	.hbc-cs-label-right { right: 10px; }
}
