.eba-slider-wrapper,
.eba-slider-wrapper * {
	box-sizing: border-box;
}

.eba-slider-wrapper {
	display: block;
	width: 100%;
	max-width: 100%;
}

.eba-slider {
	--eba-position: 50%;
	--eba-line-color: #ffffff;
	--eba-line-width: 3px;
	--eba-line-style: solid;
	--eba-line-opacity: 1;
	--eba-line-height: 100%;
	--eba-handle-size: 56px;
	--eba-handle-width: var(--eba-handle-size);
	--eba-handle-height: var(--eba-handle-size);
	--eba-handle-bg: rgba(255, 255, 255, 0.95);
	--eba-handle-bg-hover: #ffffff;
	--eba-handle-radius: 999px;
	--eba-handle-icon-color: #111827;
	--eba-handle-icon-size: 16px;
	--eba-handle-icon-gap: 10px;
	--eba-handle-cursor: ew-resize;
	--eba-label-color: #ffffff;
	--eba-label-bg: rgba(17, 24, 39, 0.72);
	--eba-label-x: 24px;
	--eba-label-y: 24px;
	--eba-click-transition: 180ms;
	--eba-cursor: ew-resize;
	position: relative;
	display: block;
	width: 100%;
	height: 500px;
	min-height: 1px;
	overflow: hidden;
	background-color: #e5e7eb;
	cursor: var(--eba-cursor);
	isolation: isolate;
	user-select: none;
	-webkit-user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.eba-slider:focus-within {
	outline: none;
}

.eba-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
	pointer-events: none;
}

.eba-image img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
}

.eba-image-after {
	z-index: 1;
}

.eba-image-before {
	z-index: 2;
	clip-path: inset(0 calc(100% - var(--eba-position)) 0 0);
	will-change: clip-path;
}

.eba-slider-line {
	position: absolute;
	top: 50%;
	left: var(--eba-position);
	z-index: 5;
	display: block;
	width: 0;
	height: var(--eba-line-height);
	border-left: var(--eba-line-width) var(--eba-line-style) var(--eba-line-color);
	opacity: var(--eba-line-opacity);
	pointer-events: none;
	transform: translate(-50%, -50%);
	will-change: left;
}

.eba-handle {
	position: absolute;
	top: 50%;
	left: var(--eba-position);
	z-index: 7;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--eba-handle-width);
	height: var(--eba-handle-height);
	min-width: 0;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: var(--eba-handle-radius);
	background: var(--eba-handle-bg);
	color: var(--eba-handle-icon-color);
	cursor: var(--eba-handle-cursor);
	touch-action: none;
	appearance: none;
	transform: translate(-50%, -50%);
	transition:
		background-color 160ms ease,
		transform 160ms ease,
		box-shadow 160ms ease,
		border-color 160ms ease;
	will-change: left, transform;
}

.eba-handle:hover,
.eba-handle:focus-visible {
	background: var(--eba-handle-bg-hover);
}

.eba-handle:focus-visible {
	outline: 3px solid rgba(59, 130, 246, 0.7);
	outline-offset: 3px;
}

.eba-handle-hover-scale .eba-handle:hover,
.eba-handle-hover-scale .eba-handle:focus-visible,
.eba-handle-hover-scale.is-dragging .eba-handle {
	transform: translate(-50%, -50%) scale(1.06);
}

.eba-handle-hover-none .eba-handle:hover,
.eba-handle-hover-none .eba-handle:focus-visible,
.eba-handle-hover-none.is-dragging .eba-handle {
	transform: translate(-50%, -50%);
}

.eba-hide-handle .eba-handle {
	display: none;
}

.eba-handle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--eba-handle-icon-gap);
	color: var(--eba-handle-icon-color);
	font-family: Arial, Helvetica, sans-serif;
	font-size: var(--eba-handle-icon-size);
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

.eba-handle-icon::before,
.eba-handle-icon::after {
	color: currentColor;
	line-height: 1;
}

.eba-icon-arrows .eba-handle-icon::before {
	content: "<";
}

.eba-icon-arrows .eba-handle-icon::after {
	content: ">";
}

.eba-icon-chevrons .eba-handle-icon::before {
	content: "<<";
}

.eba-icon-chevrons .eba-handle-icon::after {
	content: ">>";
}

.eba-icon-none .eba-handle-icon {
	display: none;
}

.eba-label {
	position: absolute;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: calc(100% - (var(--eba-label-x) * 2));
	padding: 8px 12px;
	border-radius: 4px;
	background: var(--eba-label-bg);
	color: var(--eba-label-color);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: auto;
	transition:
		background-color 160ms ease,
		color 160ms ease,
		opacity 160ms ease,
		border-color 160ms ease,
		box-shadow 160ms ease;
}

.eba-labels-bottom .eba-label {
	bottom: var(--eba-label-y);
}

.eba-labels-top .eba-label {
	top: var(--eba-label-y);
}

.eba-before-label-left .eba-label-before,
.eba-after-label-left .eba-label-after {
	left: var(--eba-label-x);
	right: auto;
}

.eba-before-label-right .eba-label-before,
.eba-after-label-right .eba-label-after {
	right: var(--eba-label-x);
	left: auto;
}

.eba-is-transitioning .eba-image-before,
.eba-is-transitioning .eba-slider-line,
.eba-is-transitioning .eba-handle {
	transition:
		clip-path var(--eba-click-transition) ease,
		left var(--eba-click-transition) ease,
		transform 160ms ease,
		background-color 160ms ease,
		box-shadow 160ms ease,
		border-color 160ms ease;
}

.eba-slider.is-dragging,
.eba-slider.is-dragging * {
	cursor: grabbing;
	user-select: none;
	-webkit-user-select: none;
}

.eba-slider.is-dragging .eba-handle {
	cursor: grabbing;
}

.eba-slider.eba-has-load-animation .eba-image-before,
.eba-slider.eba-has-load-animation .eba-slider-line,
.eba-slider.eba-has-load-animation .eba-handle {
	transition:
		clip-path 650ms cubic-bezier(0.2, 0.8, 0.2, 1),
		left 650ms cubic-bezier(0.2, 0.8, 0.2, 1),
		transform 160ms ease,
		background-color 160ms ease,
		box-shadow 160ms ease,
		border-color 160ms ease;
}

@media (max-width: 1024px) {
	.eba-slider {
		height: 400px;
	}
}

@media (max-width: 767px) {
	.eba-slider {
		--eba-handle-size: 44px;
		--eba-handle-icon-size: 14px;
		--eba-label-x: 14px;
		--eba-label-y: 14px;
		height: 300px;
	}

	.eba-label {
		max-width: calc(50% - var(--eba-label-x));
		padding: 7px 10px;
		font-size: 11px;
	}
}
