.nx-ba {
	--nx-ba-position: 50%;
	--nx-ba-label-offset: 1rem;
	display: block;
	width: 100%;
}

.nx-ba__stage {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-card, 1rem);
	background: var(--light-background, #f3f6f7);
	-webkit-user-select: none;
	user-select: none;
}

.nx-ba__layer {
	position: absolute;
	inset: 0;
	margin: 0;
}

.nx-ba__layer--before {
	z-index: 1;
	clip-path: inset(0 calc(100% - var(--nx-ba-position)) 0 0);
	will-change: clip-path;
}

.nx-ba__layer--after {
	z-index: 0;
}

.nx-ba__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.nx-ba__divider {
	position: absolute;
	z-index: 3;
	top: 0;
	bottom: 0;
	left: var(--nx-ba-position);
	width: 3px;
	transform: translateX(-50%);
	background-color: var(--surface, #fff);
	box-shadow: 0 0 0 1px rgb(10 34 51 / 12%);
	pointer-events: none;
}

.nx-ba__handle {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	width: 52px;
	height: 52px;
	min-width: 44px;
	min-height: 44px;
	place-items: center;
	transform: translate(-50%, -50%);
	border: 2px solid var(--surface, #fff);
	border-radius: 999px;
	color: var(--primary-dark, #0a2233);
	background-color: var(--surface, #fff);
	box-shadow: 0 8px 24px rgb(10 34 51 / 24%);
}

.nx-ba__handle-icon {
	display: block;
	width: 58%;
	height: 58%;
}

.nx-ba__label {
	position: absolute;
	z-index: 2;
	top: var(--nx-ba-label-offset);
	padding: 0.55rem 0.8rem;
	border-radius: 999px;
	color: var(--surface, #fff);
	background-color: rgb(10 34 51 / 88%);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	box-shadow: 0 4px 14px rgb(10 34 51 / 14%);
	pointer-events: none;
}

.nx-ba__label--before {
	left: var(--nx-ba-label-offset);
}

.nx-ba__label--after {
	right: var(--nx-ba-label-offset);
}

.nx-ba__range {
	position: absolute;
	z-index: 4;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0.001;
	cursor: ew-resize;
	touch-action: pan-y;
	-webkit-appearance: none;
	appearance: none;
}

.nx-ba__range::-webkit-slider-runnable-track {
	width: 100%;
	height: 100%;
	background: transparent;
}

.nx-ba__range::-webkit-slider-thumb {
	width: 52px;
	height: 52px;
	border: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
}

.nx-ba__range::-moz-range-track {
	width: 100%;
	height: 100%;
	border: 0;
	background: transparent;
}

.nx-ba__range::-moz-range-thumb {
	width: 52px;
	height: 52px;
	border: 0;
	background: transparent;
}

.nx-ba__stage:has(.nx-ba__range:focus-visible) {
	outline: 3px solid var(--accent, #d89a2b);
	outline-offset: 4px;
}

@supports not selector(:has(*)) {
	.nx-ba__range:focus-visible {
		outline: 3px solid var(--accent, #d89a2b);
		outline-offset: -6px;
	}
}

@media (max-width: 767px) {
	.nx-ba {
		--nx-ba-label-offset: 0.75rem;
	}

	.nx-ba__label {
		font-size: 0.65rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nx-ba__layer--before {
		will-change: auto;
	}
}




