/* ================================================================
   QuickCompare – Frontend styles (loaded only when block is used)
   ================================================================ */

.qc-slider {
	position: relative;
	overflow: hidden;
	line-height: 0;
	cursor: col-resize;
	user-select: none;
	-webkit-user-select: none;
	touch-action: none;
	margin-left: auto;
	margin-right: auto;
}

.qc-slider--vertical {
	cursor: row-resize;
}

/* ── Images ─────────────────────────────────────────────────────── */
.qc-img {
	display: block;
	width: 100%;
	height: auto;
}

.qc-img--after {
	position: absolute;
	top: 0;
	left: 0;
}

/* ── Handle ─────────────────────────────────────────────────────── */
.qc-handle {
	position: absolute;
	z-index: 10;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.qc-handle::after {
	content: '';
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	border: 3px solid #111;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.45);
	font-size: 16px;
	font-weight: bold;
	color: #111;
	line-height: 1;
}

/* Horizontal */
.qc-slider--horizontal .qc-handle { top: 50%; }

.qc-slider--horizontal .qc-handle::before {
	content: '';
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: -100vh;
	width: 3px;
	height: 200vh;
	background: rgba(255, 255, 255, 0.85);
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

.qc-slider--horizontal .qc-handle::after {
	content: '\2194'; /* ↔ */
}

/* Vertical */
.qc-slider--vertical .qc-handle { left: 50%; }

.qc-slider--vertical .qc-handle::before {
	content: '';
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: -100vw;
	height: 3px;
	width: 200vw;
	background: rgba(255, 255, 255, 0.85);
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

.qc-slider--vertical .qc-handle::after {
	content: '\2195'; /* ↕ */
}
