.bc-compare-wrap {
	margin: 24px 0;
}

.bc-compare {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 14px;
	background: #eee;
	user-select: none;
	touch-action: pan-y;
	cursor: ew-resize;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.bc-compare__img {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

.bc-compare__img--after {
	width: 100%;
}

.bc-compare__before-wrap {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 50%;
	overflow: hidden;
}

.bc-compare__before-wrap .bc-compare__img--before {
	width: var(--bc-width, 100%);
}

.bc-compare__handle {
	position: absolute;
	top: 0;
	left: 50%;
	width: 3px;
	height: 100%;
	background: #fff;
	transform: translateX(-50%);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
	pointer-events: none;
}

.bc-compare__handle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 42px;
	height: 42px;
	background: #fff
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 5l-5 7 5 7M16 5l5 7-5 7'/></svg>")
		center / 20px no-repeat;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.bc-compare__label {
	position: absolute;
	bottom: 12px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	border-radius: 4px;
	letter-spacing: 0.02em;
	pointer-events: none;
	z-index: 2;
}

.bc-compare__label--before {
	left: 12px;
}

.bc-compare__label--after {
	right: 12px;
}

.bc-compare__disclaimer {
	margin-top: 8px;
	font-size: 12px;
	color: #888;
}
