/*
 * Shortcode: testimonials.scss
 * -----------------------------------------------
*/
.tm-sc-testimonials {
	.tm-testimonial {
		margin-bottom: 20px;
		.testimonial-text-holder {
			.testimonial-title {
				font-size: 20px;
				color: #000;
				font-family: $heading-font;
			}
			.author-text {
				color: #999;
				font-size: 1.2rem;
				font-style: italic;
			}
			margin-bottom: 15px;
		}
		.testimonial-author-details {
			display: table;
			width: 100%;
			.testimonial-image-holder {
				width: 90px;
				display: table-cell;
				vertical-align: middle;
				margin: 0;
				padding-right: 15px;
				.author-thumb {
				}
			}
			.testimonial-author-info-holder {
				display: table-cell;
				vertical-align: middle;
				.name {
					color: #000;
					display: block;
				}
				.job-position, .company-url {
					color: #aaa;
					font-size: 0.9rem;
					font-weight: $font-weight-normal;
				}
				.job-position {
					font-family: $heading-font;
				}
				.company-url {
					font-style: italic;
				}
			}
		}
		@include star-rating-function();
		.star-rating {
			float: none;
			margin: 20px 0 0;
		}
	}

	&.testimonial-has-custom-quote-icon {
		.tm-testimonial {
			.author-text {
				&:before {
					content: "" !important;
				}
				.quote-icon {
					top: -20px;
					font-size: 48px;
					opacity: 0.15;
					line-height: 1;
					position: absolute;
					left: 0;
					right: 0;
					margin: 0 auto;
				}
			}
		}
		&.custom-quote-icon-center {
			.tm-testimonial {
				.author-text {
					.quote-icon {
						left: 0;
						right: 0;
						margin: 0 auto;
					}
				}
			}
		}
		&.custom-quote-icon-right {
			.tm-testimonial {
				.author-text {
					.quote-icon {
						left: auto;
						right: 0;
					}
				}
			}
		}
	}

	/* Style 1 - Simple */
	&.testimonial-style1-simple {
		.tm-testimonial {
		}
	}


	/* Style 2 - Everything Center Aligned */
	&.testimonial-style2-centered-aligned {
		.tm-testimonial {
			text-align: center;
			.testimonial-text-holder {
				.testimonial-title {
					font-size: 22px;
				}
				.author-text {
					font-size: 20px;
					color: #0c0c0c;
				}
			}
			.testimonial-author-details {
				display: block;
				.testimonial-image-holder {
					display: block;
					margin: 30px auto 10px;
					padding: 0;
					.author-thumb {
					}
				}
				.testimonial-author-info-holder {
					display: block;
					.name {
					}
					.job-position, .company-url {
					}
					.company-url {
					}
				}
			}
			.star-rating {
				margin: 20px auto 0;
			}
		}
	}


	/* Style 3 - Classic */
	&.testimonial-style3-classic {
		.tm-testimonial {
			.testimonial-inner {
				display: table;
				.testimonial-image-holder {
					display: table-cell;
					vertical-align: top;
					text-align: center;
					.author-thumb {
						margin-right: 20px;
						width: 90px;
					}
				}
				.testimonial-author-details {
					display: table-cell;
					vertical-align: top;
					width: 100%;
				}
			}
		}
	}


	/* Style 4 - Modern */
	&.testimonial-style4-modern {
		.tm-testimonial {
			.testimonial-text-holder {
				background-color: rgba(255, 255, 255, 0.7);
				padding: 30px;
				.testimonial-title {
				}
				.author-text {
					color: #777;
					font-size: 15px;
				}
			}
			.testimonial-author-details {
				.testimonial-image-holder {
					.author-thumb {
					}
				}
				.testimonial-author-info-holder {
					.name {
					}
					.job-position, .company-url {
					}
					.company-url {
					}
				}
			}
		}
	}


	/* Style 5 - Boxed */
	&.testimonial-style5-boxed {
		.tm-testimonial {
			.testimonial-image-holder {
			}
			.testimonial-author-details {
				padding: 30px;
				background-color: #fff;
				border-radius: 12px;
				.testimonial-title {
					margin-top: 0;
				}
				.testimonial-text-holder {
					margin-bottom: 10px;
					padding-bottom: 20px;
					border-bottom: 1px solid #eee;
					.author-text {
						font-size: 15px;
						font-style: normal;
					}
				}
			}
		}
	}

	/* Style 6 - Boxed Flat */
	&.testimonial-style6-boxed-flat {
		.tm-testimonial {
			.testimonial-image-holder {
			}
			.testimonial-author-details {
				.testimonial-text-holder {
					margin-bottom: 10px;
					padding-bottom: 10px;
					border-bottom: 1px solid #eee;
					.testimonial-title {
						margin-bottom: 0;
					}
					.author-text {
						margin-top: 10px;
						font-size: 16px;
					}
				}
			}
		}
	}


	/* Style 7 - Current Theme */
	&.testimonial-style7-current-theme {
		.tm-testimonial {
			.testimonial-image-holder {
				display: inline-block;
			}
			.testimonial-author-details {
				padding: 40px 30px;
				background-color: #fff;
				border-radius: 12px;
				.testimonial-image-holder {
					width: 120px;
					img {
						border: 7px solid rgba(220,220,220,0.35);
					}
				}
				.testimonial-title {
					margin-top: 0;
				}
				.testimonial-header {
					margin-bottom: 20px;
				}
				.testimonial-author-info-holder {
				}
				.testimonial-text-holder {
					margin-bottom: 0px;
					.author-text {
						font-size: 0.92rem;
						font-style: normal;
						margin-bottom: 0;
					}
					.star-rating {
						display: inline-block;
						margin-top: 10px;
						margin-bottom: 15px;
					}
				}
				&:after {
					content: "";
					background: url('../images/quote-icon.png') no-repeat;
					opacity: 0.05;
					position: absolute;

					right: 0;
					top: 145px;
					margin: 0 auto;
					left: 0;

					width: 110px;
					height: 100px;
				}

			}
			.testimonial-footer {
				.testimonial-footer-left {
					float: left;
				}
				.testimonial-footer-right {
					float: right;
				}
			}
		}
	}

	&.tm-sc-testimonials-thumb-carousel {
		text-align: center;
		.tm-testimonial {
			.author-text {
				&:before {
					left: 0;
					right: 0;
				}
			}
			.star-rating {
				margin-left: auto;
				margin-right: auto;
			}
		}
		.tm-owl-thumbs {
			.tm-owl-thumb-item {
				width: 90px;
				margin-left: 7px;
				margin-right: 7px;
				margin-top: 20px;
				opacity: 0.5;
				display: inline-block;
				cursor: pointer;
				&.active {
					opacity: 1;
				}
			}
		}
	}

	/* quote-icon */
	&.testimonial-has-quote-icon {
		.tm-testimonial {
			.author-text {
				position: relative;
				&:before {
					top: 0;
					content: "\f10e";
					font-family: fontawesome;
					font-size: 48px;
					opacity: 0.15;
					line-height: 1;
					position: absolute;
					left: 0;
				}
			}
		}
		&.testimonial-style2-centered-aligned {
			.tm-testimonial {
				.author-text {
					&:before {
						top: 0;
						left: 0;
						right: 0;
					}
				}
			}
		}
	}
}

.section-typo-light {
	.tm-sc-testimonials {
		.tm-testimonial {
			.testimonial-title,
			.author-text,
			.name {
				color: #fff !important;
			}
			.job-position, {
				color: #aaa !important;
			}
			.company-url {
				color: #808080 !important;
			}
		}
	}
}

body {
	&.tm-dark-layout {
		.tm-sc-testimonials {
			&.testimonial-style7-current-theme {
				.testimonial-author-details {
					background-color: $dark-layout-default-bg-color;
				}
			}
		}
	}
}