.bfa-widget-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bfa-container-952908ae {
	position: relative;
	width: 100%;
	height: 400px;
	overflow: hidden;
	--pos: 50%;
	--bfa-handle-color: #ffffff;
	--bfa-handle-size: 40px;
    --bfa-transition-duration: 0ms; /* No transition while dragging */
	background: #f0f0f0;
    touch-action: pan-y;
}

.bfa-container-952908ae img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
	user-select: none;
}

.bfa-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.bfa-before {
	z-index: 2;
	overflow: hidden;
    width: var(--pos);
    height: 100%;
}

.bfa-before img {
	width: 100vw; /* Will be set via JS to container width */
	max-width: none;
}

.bfa-after {
	z-index: 1;
}

.bfa-label {
	position: absolute;
	z-index: 3;
	padding: 8px 16px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	pointer-events: none;
	opacity: 0.9;
	transition: opacity 0.3s ease;
}

.bfa-label-before { left: 20px; top: 20px; }
.bfa-label-after { right: 20px; top: 20px; }

.bfa-container-952908ae:hover .bfa-label {
	opacity: 0.5;
}

/* Fix divider position */
.bfa-divider-visual {
	position: absolute;
	z-index: 4;
	pointer-events: none;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 2px;
    background: var(--bfa-handle-color);
    transform: translateX(-50%);
}

.bfa-handle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: var(--bfa-handle-size);
	height: var(--bfa-handle-size);
	background: var(--bfa-handle-color);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 10px rgba(0,0,0,0.3);
	color: #333;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bfa-container-952908ae:hover .bfa-handle {
	transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.bfa-container-952908ae:active .bfa-handle {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Fix slider sizing and interactions */
.bfa-slider-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	z-index: 5;
	margin: 0;
	-webkit-appearance: none;
	background: transparent;
    cursor: ew-resize;
}

.bfa-slider-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
    width: var(--bfa-handle-size);
    height: 100vh;
    cursor: ew-resize;
}

.bfa-slider-input::-moz-range-thumb {
	border: none;
    width: var(--bfa-handle-size);
    height: 100vh;
    cursor: ew-resize;
}
