/**
 * Elementor Carousel Styles
 *
 * Isolated styles with unique class prefixes to prevent conflicts.
 *
 * @package ElementorCarousel
 */

/* Main Carousel Wrapper */
.ec-carousel-wrapper {
	position: relative;
	width: 100%;
}

.ec-carousel-wrapper .ec-carousel-swiper {
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
}

.ec-carousel-wrapper .swiper-wrapper {
	display: flex;
	width: 100%;
	height: 100%;
}

.ec-carousel-wrapper .swiper-slide {
	width: 100%;
	height: auto;
	flex-shrink: 0;
	display: flex;
	align-items: stretch;
}

.ec-carousel-wrapper .ec-carousel-slide {
	box-sizing: border-box;
}

/* Navigation Buttons */
.ec-carousel-nav-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background-color: #ffffff;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
	user-select: none;
}

.ec-carousel-nav-button:hover {
	background-color: #f0f0f0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	transform: translateY(-50%) scale(1.1);
}

.ec-carousel-nav-button:active {
	transform: translateY(-50%) scale(0.95);
}

.ec-carousel-nav-button svg {
	width: 24px;
	height: 24px;
	stroke: currentColor;
}

.ec-carousel-button-prev {
	left: 10px;
}

.ec-carousel-button-next {
	right: 10px;
}

/* Pagination */
.ec-carousel-pagination {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	width: auto;
}

.ec-carousel-wrapper .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background-color: rgba(255, 255, 255, 0.5);
	opacity: 1;
	margin: 0 4px;
	transition: all 0.3s ease;
}

.ec-carousel-wrapper .swiper-pagination-bullet-active {
	background-color: #333333;
	width: 24px;
	border-radius: 4px;
}

.ec-carousel-wrapper .swiper-pagination-fraction {
	color: #333333;
	font-size: 14px;
	font-weight: 500;
}

.ec-carousel-wrapper .swiper-pagination-progressbar {
	position: relative;
	width: 100%;
	height: 4px;
	background-color: rgba(0, 0, 0, 0.1);
	border-radius: 2px;
}

.ec-carousel-wrapper .swiper-pagination-progressbar-fill {
	background-color: #333333;
	height: 100%;
	border-radius: 2px;
}

/* Scrollbar */
.ec-carousel-scrollbar {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 6px;
	z-index: 10;
	background-color: rgba(0, 0, 0, 0.1);
	border-radius: 3px;
}

.ec-carousel-wrapper .swiper-scrollbar-drag {
	background-color: #333333;
	border-radius: 3px;
	cursor: grab;
}

.ec-carousel-wrapper .swiper-scrollbar-drag:active {
	cursor: grabbing;
}

/* Placeholder */
.ec-carousel-placeholder {
	padding: 40px 20px;
	text-align: center;
	color: #999;
	font-size: 14px;
	background-color: #f9f9f9;
	border: 2px dashed #ddd;
	border-radius: 4px;
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ec-carousel-placeholder p {
	margin: 0;
}

/* Inner Content */
.ec-carousel-inner-content {
	width: 100%;
}

/* Effect-specific styles */
.ec-carousel-wrapper .swiper-slide {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.ec-carousel-wrapper .swiper-slide-active,
.ec-carousel-wrapper .swiper-slide-duplicate-active {
	opacity: 1;
}

/* Fade effect */
.ec-carousel-wrapper.swiper-fade .swiper-slide {
	opacity: 0;
	transition-property: opacity;
}

.ec-carousel-wrapper.swiper-fade .swiper-slide-active,
.ec-carousel-wrapper.swiper-fade .swiper-slide-duplicate-active {
	opacity: 1;
}

/* Cube effect */
.ec-carousel-wrapper.swiper-cube {
	overflow: visible;
}

.ec-carousel-wrapper.swiper-cube .swiper-slide {
	pointer-events: none;
	transform-origin: 0 0;
	width: 100%;
	height: 100%;
}

.ec-carousel-wrapper.swiper-cube .swiper-slide-active,
.ec-carousel-wrapper.swiper-cube .swiper-slide-active .swiper-slide-duplicate-active {
	pointer-events: auto;
}

/* Coverflow effect */
.ec-carousel-wrapper.swiper-coverflow .swiper-slide {
	pointer-events: none;
	transform-origin: center center;
}

.ec-carousel-wrapper.swiper-coverflow .swiper-slide-active,
.ec-carousel-wrapper.swiper-coverflow .swiper-slide-active .swiper-slide-duplicate-active {
	pointer-events: auto;
}

/* Flip effect */
.ec-carousel-wrapper.swiper-flip {
	overflow: visible;
}

.ec-carousel-wrapper.swiper-flip .swiper-slide {
	pointer-events: none;
	backface-visibility: hidden;
}

.ec-carousel-wrapper.swiper-flip .swiper-slide-active,
.ec-carousel-wrapper.swiper-flip .swiper-slide-active .swiper-slide-duplicate-active {
	pointer-events: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.ec-carousel-nav-button {
		width: 36px;
		height: 36px;
	}

	.ec-carousel-nav-button svg {
		width: 20px;
		height: 20px;
	}

	.ec-carousel-button-prev {
		left: 5px;
	}

	.ec-carousel-button-next {
		right: 5px;
	}

	.ec-carousel-pagination {
		bottom: 5px;
	}
}

/* Prevent conflicts with other carousel plugins */
.ec-carousel-wrapper * {
	box-sizing: border-box;
}

/* Ensure Elementor widgets inside slides maintain their styling */
.ec-carousel-slide .elementor-element,
.ec-carousel-slide .elementor-widget {
	width: 100%;
}

/* Vertical direction support */
.ec-carousel-wrapper.swiper-vertical .swiper-wrapper {
	flex-direction: column;
}

.ec-carousel-wrapper.swiper-vertical .ec-carousel-button-prev {
	top: 10px;
	left: 50%;
	transform: translateX(-50%) rotate(90deg);
}

.ec-carousel-wrapper.swiper-vertical .ec-carousel-button-next {
	top: auto;
	bottom: 10px;
	left: 50%;
	right: auto;
	transform: translateX(-50%) rotate(90deg);
}

/* Auto height support */
.ec-carousel-wrapper.swiper-autoheight .swiper-wrapper {
	align-items: flex-start;
}

/* Free mode adjustments */
.ec-carousel-wrapper.swiper-free-mode .swiper-slide {
	transition-timing-function: ease-out;
}

/* Grab cursor */
.ec-carousel-wrapper.swiper-grab {
	cursor: grab;
}

.ec-carousel-wrapper.swiper-grab .swiper-slide {
	cursor: grab;
}

.ec-carousel-wrapper.swiper-grabbing {
	cursor: grabbing;
}

.ec-carousel-wrapper.swiper-grabbing .swiper-slide {
	cursor: grabbing;
}

