/**
 * Pretpot Before & After Transformation Carousel
 * before-and-after-transformation-carousel.css
 */

/* ── WIDGET WRAPPER ── */
.pretpot-batc-widget {
	display: flex;
	align-items: center;
	width: 100%;
	overflow: hidden;
	position: relative;
	/* Entrance: hidden until JS triggers animation */
}

.pretpot-batc-widget.pretpot-batc-paused .pretpot-batc-track {
	animation-play-state: paused;
}

/* Entrance animation state — start invisible */
.pretpot-batc-widget.pretpot-batc-hidden {
	opacity: 0;
	transform: translateY(16px);
}
.pretpot-batc-widget.pretpot-batc-visible {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

/* ── CAROUSEL COLUMNS ── */
.pretpot-batc-col {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: var(--batc-row-gap, 12px);
	overflow: hidden;
	position: relative;
}

/* ── TRACK (single scrolling row) ── */
.pretpot-batc-track {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	white-space: nowrap;
	width: max-content;
	will-change: transform;
}

/* Direction variants */
.pretpot-batc-track[data-dir="left"] {
	animation: pretpot-batc-scroll-left var(--batc-speed, 12s) linear infinite;
}
.pretpot-batc-track[data-dir="right"] {
	animation: pretpot-batc-scroll-right var(--batc-speed, 12s) linear infinite;
}

@keyframes pretpot-batc-scroll-left {
	from { transform: translateX(0); }
	to   { transform: translateX(-33.333%); }
}

@keyframes pretpot-batc-scroll-right {
	from { transform: translateX(-33.333%); }
	to   { transform: translateX(0); }
}

/* ── PILL ITEMS ── */
.pretpot-batc-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1;
	border-style: solid;
	cursor: default;
	flex-shrink: 0;
	user-select: none;
	/* Defaults – overridden by Elementor selectors */
	padding: 8px 18px;
	border-radius: 100px;
	border-width: 1px;
}

/* Left pill defaults */
.pretpot-batc-pill--left {
	background-color: #ffffff;
	border-color: #d0ddd0;
	color: #1a2e1a;
}

/* Right pill defaults */
.pretpot-batc-pill--right {
	background-color: #1a2e1a;
	border-color: #3d6b3d;
	color: #e8f5e8;
}

.pretpot-batc-pill-img {
	width: 22px;
	height: 22px;
	border-radius: 4px;
	object-fit: cover;
	flex-shrink: 0;
}

.pretpot-batc-pill-icon {
	font-size: 14px;
	line-height: 1;
	flex-shrink: 0;
}

/* ── CENTER ── */
.pretpot-batc-center {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	position: relative;
	padding: 0 8px;
}

.pretpot-batc-center-inner {
	/* Size set via Elementor responsive control */
	width: 160px;
	height: 160px;
	background-color: #ffffff;
	border-radius: 20px;
	border: 1.5px solid #d0ddd0;
	box-shadow: 0 4px 24px rgba(0,0,0,0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.pretpot-batc-center-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1a2e1a;
}

.pretpot-batc-center-icon i,
.pretpot-batc-center-icon svg {
	font-size: 48px;
	width: 48px;
	height: 48px;
}

.pretpot-batc-center-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pretpot-batc-center-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── EDGE FADE ON CAROUSELS ── */
/*
 * Left column: fade its RIGHT edge (touching center).
 * Right column: fade its LEFT edge (touching center).
 * The .pretpot-batc-fade--inner element is placed with CSS
 * positioning for each side.
 */
.pretpot-batc-col--left {
	/* mask: the RIGHT side fades out */
	position: relative;
}
.pretpot-batc-col--right {
	/* mask: the LEFT side fades out */
	position: relative;
}

/* Use a pseudo-element overlay for the fade */
.pretpot-batc-col--left .pretpot-batc-fade--inner {
	position: absolute;
	top: 0; bottom: 0;
	right: 0;
	pointer-events: none;
	z-index: 3;
	background: linear-gradient(to left, var(--batc-fade-color, #fff) 0%, transparent 100%);
}

.pretpot-batc-col--right .pretpot-batc-fade--inner {
	position: absolute;
	top: 0; bottom: 0;
	left: 0;
	pointer-events: none;
	z-index: 3;
	background: linear-gradient(to right, var(--batc-fade-color, #fff) 0%, transparent 100%);
}

/* ── RESPONSIVE: keep same layout, just smaller ── */
@media (max-width: 1024px) {
	.pretpot-batc-center-inner {
		width: 130px;
		height: 130px;
	}
}

@media (max-width: 767px) {
	.pretpot-batc-center-inner {
		width: 100px;
		height: 100px;
	}
	.pretpot-batc-pill {
		font-size: 12px;
		padding: 7px 14px;
	}
}