/* FineArtPrint – Before/After Image Slider */

.fapba-root,
.fapba-root *,
.fapba-root *::before,
.fapba-root *::after {
	box-sizing: border-box;
}

.fapba-root {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: #1a1a1a;
}

.fapba-title {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

.fapba-stage {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 6px;
	background: #e8e8e8;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
	cursor: ew-resize;
}

.fapba-stage.fapba-dragging {
	cursor: ew-resize;
}

.fapba-img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
	pointer-events: none;
}

.fapba-img--before {
	position: relative;
	z-index: 1;
}

.fapba-after-wrap {
	position: absolute;
	inset: 0;
	z-index: 2;
	overflow: hidden;
	pointer-events: none;
}

.fapba-img--after {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.fapba-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 3;
	width: 44px;
	margin-left: -22px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: ew-resize;
	touch-action: none;
	outline: none;
}

.fapba-handle:focus-visible .fapba-handle-grip {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 5px #2563eb;
}

.fapba-handle-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	margin-left: -1.5px;
	background: #fff;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

.fapba-handle-grip {
	position: relative;
	z-index: 1;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid rgba(0, 0, 0, 0.15);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	pointer-events: none;
}

.fapba-handle-grip::before,
.fapba-handle-grip::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 0;
	height: 0;
	margin-top: -5px;
	border-style: solid;
}

.fapba-handle-grip::before {
	left: 10px;
	border-width: 5px 6px 5px 0;
	border-color: transparent #555 transparent transparent;
}

.fapba-handle-grip::after {
	right: 10px;
	border-width: 5px 0 5px 6px;
	border-color: transparent transparent transparent #555;
}

.fapba-label {
	position: absolute;
	top: 12px;
	z-index: 4;
	padding: 0.35em 0.65em;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1;
	color: #1a1a1a;
	background: #e0e0e0;
	border-radius: 4px;
	pointer-events: none;
}

.fapba-label--before {
	left: 12px;
}

.fapba-label--after {
	right: 12px;
}

@media (max-width: 480px) {
	.fapba-handle {
		width: 36px;
		margin-left: -18px;
	}

	.fapba-handle-grip {
		width: 34px;
		height: 34px;
	}

	.fapba-label {
		font-size: 0.72rem;
		top: 8px;
	}

	.fapba-label--before {
		left: 8px;
	}

	.fapba-label--after {
		right: 8px;
	}
}
