/*
 * Stable mobile testimonial component.
 * Copies the existing Elementor review content and replaces only its mobile rendering.
 */

.autorental-mobile-testimonials {
	display: none;
}

@media (max-width: 767px) {
	body.home.autorental-mobile-testimonials-ready .stm-testimonials-carousel-wrapper.style_2.autorental-original-testimonials {
		display: none !important;
	}

	body.home .autorental-mobile-testimonials {
		position: relative;
		display: block;
		box-sizing: border-box;
		width: 100%;
		min-height: 520px;
		margin: 0;
		padding: 38px 52px 72px;
		overflow: hidden;
		background-color: #f2f2f0;
		background-image:
			linear-gradient(135deg, rgba(255,255,255,.38) 25%, transparent 25%),
			linear-gradient(45deg, rgba(8,0,100,.025) 25%, transparent 25%),
			linear-gradient(225deg, rgba(255,255,255,.35) 25%, transparent 25%),
			linear-gradient(315deg, rgba(8,0,100,.02) 25%, transparent 25%);
		background-position: 0 0, 64px 0, 64px -64px, 0 64px;
		background-size: 128px 128px;
	}

	body.home .autorental-mobile-testimonials__viewport {
		width: 100%;
		max-width: 360px;
		margin: 0 auto;
	}

	body.home .autorental-mobile-testimonials__card {
		position: absolute;
		top: 0;
		left: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		box-sizing: border-box;
		width: 100%;
		margin: 0 auto;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateX(12px);
		transition: opacity .45s ease, transform .45s ease, visibility .45s ease;
		text-align: center;
	}

	body.home .autorental-mobile-testimonials__card.is-active {
		position: relative;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateX(0);
	}

	body.home .autorental-mobile-testimonials__image {
		box-sizing: border-box;
		width: 96px;
		height: 96px;
		margin: 0 auto 28px;
		padding: 5px;
		overflow: hidden;
		border: 6px solid rgba(255,255,255,.78);
		border-radius: 50%;
		background: #fff;
	}

	body.home .autorental-mobile-testimonials__image img {
		display: block;
		width: 100%;
		height: 100%;
		margin: 0;
		border-radius: 50%;
		object-fit: cover;
	}

	body.home .autorental-mobile-testimonials__title {
		width: 100%;
		margin: 0 0 12px;
		color: #080064;
		font-family: Lato, sans-serif;
		font-size: 15px;
		font-weight: 700;
		line-height: 1.35;
		text-align: center;
	}

	body.home .autorental-mobile-testimonials__content {
		width: 100%;
		margin: 0;
		padding: 0;
		color: #42474c;
		font-family: Lato, sans-serif;
		font-size: 14px;
		line-height: 1.5;
		text-align: center;
	}

	body.home .autorental-mobile-testimonials__content p {
		margin: 0 0 4px;
		color: inherit;
		font: inherit;
		text-align: center;
	}

	body.home .autorental-mobile-testimonials__author {
		width: 100%;
		margin: 22px 0 4px;
		color: #080064;
		font-family: Lato, sans-serif;
		font-size: 14px;
		font-weight: 500;
		line-height: 1.35;
		text-align: center;
	}

	body.home .autorental-mobile-testimonials__position {
		width: 100%;
		margin: 0;
		color: #8a8d91;
		font-family: Lato, sans-serif;
		font-size: 13px;
		font-weight: 400;
		line-height: 1.45;
		text-align: center;
	}

	body.home .autorental-mobile-testimonials__nav {
		position: absolute;
		z-index: 2;
		top: 50%;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 54px;
		margin: 0;
		padding: 0;
		border: 1px solid rgba(8, 0, 100, .18);
		border-radius: 50%;
		background: rgba(223, 244, 255, .94);
		box-shadow: 0 5px 16px rgba(8, 0, 100, .14);
		color: #080064;
		font-size: 42px;
		font-weight: 400;
		line-height: 1;
		transform: translateY(-50%);
		cursor: pointer;
	}

	body.home .autorental-mobile-testimonials__nav:hover,
	body.home .autorental-mobile-testimonials__nav:focus {
		border-color: #080064;
		background: #080064;
		box-shadow: 0 7px 18px rgba(8, 0, 100, .24);
		color: #fff;
		outline: 2px solid transparent;
	}

	body.home .autorental-mobile-testimonials__nav--previous {
		left: 8px;
	}

	body.home .autorental-mobile-testimonials__nav--next {
		right: 8px;
	}

	body.home .autorental-mobile-testimonials__nav span {
		display: block;
		color: inherit !important;
		transform: translateY(-2px);
	}

	@media (max-width: 380px) {
		body.home .autorental-mobile-testimonials {
			padding-right: 44px;
			padding-left: 44px;
		}

		body.home .autorental-mobile-testimonials__title {
			font-size: 14px;
		}

		body.home .autorental-mobile-testimonials__content {
			font-size: 13px;
		}
	}
}
