/**
 * Logos Carousel styles.
 *
 * Mirrors the scoped rules in themes/motta/sass/components/elementor/_images-carousel.scss
 * for our own widget class, plus logo-specific tweaks (vertical centering,
 * object-fit) so logos of varying heights align nicely.
 */

/* Flex layout for slides pre-Swiper-init (so the slider doesn't look broken
   while JS is still loading) and as a base for Swiper's transforms. */
.motta-logos-carousel--elementor .list-logos__inner {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
}

/* Each slide: center its logo horizontally + vertically. */
.motta-logos-carousel--elementor .motta-logos-carousel__item {
	display: flex;
	align-items: center;
	justify-content: center;
	height: auto;
}

.motta-logos-carousel--elementor .motta-logos-carousel__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.motta-logos-carousel--elementor .motta-logos-carousel__item img {
	display: block;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	transition: opacity 0.25s ease, filter 0.25s ease;
}

/* Arrow positioning — mirrors _images-carousel.scss so arrows sit centered
   vertically against the carousel, not drifting into the next section.
   Color/background/border are intentionally NOT set here — those come from
   the widget's Style → Arrows controls so the user can customize per-instance.
   The PHP widget class ships sensible defaults (white bg, grey chevron,
   grey hover fill) via `default` on each control. */
.motta-logos-carousel--elementor .motta-swiper-button {
	top: 50%;
	transform: translateY(-50%);
	border-radius: 50%;
	border: 1px solid transparent;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.motta-logos-carousel--elementor .motta-swiper-button:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/*rtl:raw:
.motta-logos-carousel--elementor .motta-swiper-button {
	transform: translateY(-50%) rotateY(180deg);
}
*/

.motta-logos-carousel--elementor .motta-swiper-button-prev {
	left: 0;
}

.motta-logos-carousel--elementor .motta-swiper-button-next {
	right: 0;
}

/* Swiper disables prev/next buttons when the carousel can't scroll in that
   direction (relevant when infinite loop is off). Match the theme's
   disabled look from _swiper.scss. */
.motta-logos-carousel--elementor .swiper-button-disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
