// Variables & Mixins
@import "../../../../themes/everse/assets/sass/base/_variables";
@import "../../../../themes/everse/assets/sass/base/_mixins.scss";

/*-------------------------------------------------------*/
/* Testimonials
/*-------------------------------------------------------*/
.testimonial {
	margin-bottom: 40px;
	padding-top: 24px;

	&__img-holder {
		overflow: hidden;
		flex-shrink: 0;

		& + .testimonial__cite {
			margin-left: 20px;

			.eversor-slider[dir="rtl"] & {
				margin-left: 0;
				margin-right: 20px;
			}
		}
	}

	&__text {
		font-style: italic;
		font-size: 1.75rem;
		margin-bottom: 40px;
	}

	&__info {
		display: flex;
		overflow: hidden;
	}

	&__cite {
		display: flex;
		justify-content: center;
		flex-direction: column;
		text-align: left;
		font-style: normal;
		line-height: 1.5;
		font-size: 1rem;

		.eversor-slider[dir="rtl"] & {
			text-align: right;
		}
	}

	&__author {
		display: block;
		font-weight: 700;
	}
}

// Boxed layout
.testimonials-layout--boxed {
	.testimonial {
		margin-top: 5px;
		padding: 40px;
		border-radius: 5px;
		background-color: #fff;
		box-shadow: 0px 5px 10px 0px rgba(#3d4154, 0.1);

		&__text {
			font-size: 1rem;
		}
	}
}

.eversor-testimonials {
	&-slider {
		.elementor-swiper-button-prev {
			left: 0;
		}

		.elementor-swiper-button-next {
			right: 0;
		}
	}

	&--align-center {
		.testimonial {
			text-align: center;
		}

		.testimonial__info {
			justify-content: center;
		}
	}

	&--align-right {
		.testimonial {
			text-align: right;
		}

		.testimonial__info {
			justify-content: flex-end;
		}
	}
}
