.elementor-widget-basc_slider,
.elementor-widget-basc_slider .elementor-widget-container {
	width: 100%;
}

.basc-widget {
	position: relative;
	width: 100%;
	max-width: 100%;
	flex: 1 1 100%;
	align-self: stretch;
	padding-top: 44px;
	box-sizing: border-box;
}

.basc-widget * {
	box-sizing: border-box;
}

/* Nav arrows top-right */
.basc-nav-arrows {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	gap: 10px;
	z-index: 3;
}

.basc-nav-btn {
	all: unset !important;
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	min-height: 34px !important;
	border-radius: 50% !important;
	border: 1px solid currentColor !important;
	background: transparent !important;
	background-image: none !important;
	color: #1f4b43;
	cursor: pointer !important;
	line-height: 1 !important;
	margin: 0 !important;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.basc-nav-btn:active:not(.is-disabled) {
	transform: scale(0.92);
}

.basc-nav-btn svg {
	pointer-events: none;
	stroke: currentColor;
	transition: stroke 0.2s ease;
}

.basc-nav-btn:hover {
	background-color: currentColor;
}

.basc-nav-btn:hover svg {
	stroke: #fff;
}

.basc-nav-btn.is-disabled {
	opacity: 0.35;
	cursor: default;
}

/* Viewport / track */
.basc-viewport {
	overflow: hidden !important;
	width: 100%;
	position: relative;
}

.basc-track {
	display: flex;
	align-items: stretch;
	will-change: transform;
	transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.basc-slide {
	flex: 0 0 auto;
	min-width: 0;
}

.basc-slide-inner {
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	height: 100%;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
}

/* Before/after compare area */
.basc-compare {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	user-select: none;
	touch-action: none;
	cursor: ew-resize;
	background: #eee;
}

.basc-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.basc-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	max-width: none;
}

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

.basc-image-before {
	z-index: 2;
	/* clip-path is set inline/via JS to reveal only the left portion up to the divider */
}

.basc-divider {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 0;
	z-index: 3;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.basc-divider-line {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2px;
	background: #ffffff;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
}

.basc-handle {
	position: relative;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	cursor: ew-resize;
	pointer-events: auto;
}

/* Labels under image */
.basc-labels {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 16px 4px;
	font-size: 13px;
}

.basc-labels span {
	color: #8a8a8a;
	cursor: pointer;
}

.basc-labels .basc-sep {
	color: #cfcfcf;
	cursor: default;
}

.basc-labels span.is-active {
	color: #1f4b43;
	font-weight: 600;
}

.basc-title {
	padding: 4px 16px 18px;
	font-size: 18px;
	font-weight: 700;
	color: #1f4b43;
}

/* Dots */
.basc-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	margin-top: 24px;
}

.basc-dot {
	all: unset !important;
	box-sizing: content-box !important;
	display: block !important;
	width: 9px !important;
	height: 9px !important;
	min-width: 9px !important;
	min-height: 9px !important;
	padding: 7px !important;
	margin: 0 !important;
	background-color: #d9c9a3 !important;
	background-image: none !important;
	background-clip: content-box !important;
	border-radius: 50% !important;
	border: none !important;
	cursor: pointer !important;
	opacity: 0.6;
	transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.15s ease;
}

.basc-dot:hover {
	opacity: 0.85 !important;
}

.basc-dot.is-active {
	background-color: #1f4b43 !important;
	opacity: 1 !important;
	transform: scale(1.15);
}

.basc-dot:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(31, 75, 67, 0.3);
}

.basc-nav-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(31, 75, 67, 0.25);
}

/* Responsive */
@media (max-width: 1024px) {
	.basc-title {
		font-size: 16px;
	}
}

@media (max-width: 767px) {
	.basc-widget {
		padding-top: 40px;
	}
	.basc-nav-btn {
		width: 30px;
		height: 30px;
	}
}
