.eic-compare {
	--eic-position: 50%;
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 24px;
	background: #e5e7eb;
	isolation: isolate;
	touch-action: pan-y;
}

.eic-compare__image {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	pointer-events: none;
	user-select: none;
}

.eic-compare__image--before {
	position: relative;
	z-index: 1;
}

.eic-compare__image--after {
	position: absolute;
	inset: 0;
	z-index: 2;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	clip-path: inset(0 calc(100% - var(--eic-position)) 0 0);
}

.eic-compare__line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--eic-position);
	z-index: 3;
	width: 3px;
	background: #fff;
	transform: translateX(-50%);
	pointer-events: none;
}

.eic-compare__handle {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 54px;
	height: 54px;
	border-radius: 999px;
	background: #fff;
	color: #111;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.24);
	transform: translate(-50%, -50%);
	font-size: 24px;
	line-height: 1;
}

.eic-compare__range {
	position: absolute;
	inset: 0;
	z-index: 5;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	cursor: ew-resize;
	opacity: 0;
}

.eic-compare:focus-within .eic-compare__handle {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}
