/* Nested Carousel Buttons – Styles */

/* Wrapper, den das Skript um den Ziel-Container + die Buttons legt.
   Er ist NICHT scrollbar und dient nur als Positionierungs-Rahmen,
   damit die Buttons beim horizontalen Scrollen fix stehen bleiben. */
.ncb-outer-wrap {
	position: relative;
	width: 100%;
}

/* Der eigentliche Widget-Wrapper von Elementor wird zum Overlay,
   das über dem Ziel-Container liegt, aber selbst nicht mitscrollt. */
.elementor-widget-nested-carousel-buttons {
	position: absolute !important;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	pointer-events: none;
	z-index: 20;
}

.elementor-widget-nested-carousel-buttons > .elementor-widget-container {
	width: 100%;
	height: 100%;
	position: relative;
}

.ncb-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* Buttons */
.ncb-btn {
	position: absolute;
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	outline: none;
	cursor: pointer;
	background-color: #ffffff;
	color: #111111;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: background-color .2s ease, transform .2s ease, opacity .2s ease;
	padding: 0;
	z-index: 5;
}

.ncb-btn:hover {
	background-color: #f5f5f5;
}

.ncb-btn svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.ncb-btn i {
	font-size: 18px;
	line-height: 1;
}

/* Standardposition: vertikal zentriert, an linkem/rechtem Rand */
.ncb-prev {
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.ncb-next {
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
}

/* Deaktivierter Zustand am Anfang/Ende des Scrollbereichs */
.ncb-btn.ncb-disabled {
	opacity: 0.35;
	pointer-events: none;
}

/* Wird per JS auf den Ziel-Container gesetzt */
.ncb-carousel-container {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	-webkit-overflow-scrolling: touch;
}

.ncb-carousel-container.ncb-hide-scrollbar {
	scrollbar-width: none;      /* Firefox */
	-ms-overflow-style: none;   /* IE / alte Edge */
}

.ncb-carousel-container.ncb-hide-scrollbar::-webkit-scrollbar {
	display: none;              /* Chrome, Safari, neues Edge */
	width: 0;
	height: 0;
}

.ncb-carousel-container > * {
	flex-shrink: 0;
}
