/**
 * Trustpilot Review Slider Styles
 *
 * @package Dove Agency
 * @since 1.0.0
 */

/* Main Container */
.dove-trustpilot-slider-wrapper {
	position: relative;
	width: 100%;
	padding: 20px 0;
	display: flex;
	gap: 20px;
	align-items: stretch;
}

/* Trustpilot Rating Box (Fixed) */
.dove-trustpilot-rating-box {
	flex-shrink: 0;
	width: 100%;
	/* Match width of one slide: total available width / slides */
	/* The slider container gets remaining space, so we calculate based on that */
	max-width: calc((100% - var(--gap-desktop)) / (var(--slides-desktop) + 1));
	display: flex;
	flex-direction: column;
}

.dove-trustpilot-rating-box .dove-review-card {
	height: 100%;
}

/* Reviews Slider Container */
.dove-reviews-slider-container {
	flex: 1;
	min-width: 0;
	position: relative;
}

.dove-trustpilot-swiper {
	position: relative;
	width: 100%;
	overflow: hidden;
}

	.dove-review-text {
		display: flex;
    flex-direction: column;
    justify-content: center;

	}

/* Review Cards */
.dove-review-card {
	background-color: #f5f5f5;
	padding: 30px 25px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	height: auto;
	min-height: 280px;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	aspect-ratio: 1/1;
}

.dove-review-card:hover {
	transform: translateY(-3px);
	box-shadow: 3px 8px 16px rgba(0, 0, 0, 0.15);
}

/* Trustpilot Rating Card (First Slide) */
.dove-trustpilot-card {
	justify-content: space-evenly;
	text-align: left;
}

.dove-trustpilot-heading {
	font-size: 1,4em;
	font-weight: 400;
	line-height: 1.4;
	margin: 0 0 25px 0;
	color: #000;
}

.dove-trustpilot-widget {
	margin: 20px 0;
	min-height: 44px;
}

.dove-trustpilot-rating {
	font-size: 18px;
	font-weight: 700;
	color: #000;
	margin-top: 10px;
}

.dove-trustpilot-logo{
	width:50%;
}

/* Star Rating */
.dove-star-rating {
	display: flex;
	gap: 4px;
	margin-bottom: 15px;
	font-size: 30px;
}

.dove-star {
	line-height: 1;
}

.dove-star.filled {
	color: #00b67a; /* Trustpilot green */
}

.dove-star.empty {
	color: #dcdce6;
}

/* Review Content */
.dove-review-text {
	/* font-size: 15px; */
	line-height: 1.6;
	color: #000;
	margin-bottom: 20px;
	flex-grow: 1;
}

.dove-see-more {
	color: #00b67a;
	text-decoration: none;
	font-weight: 600;
	margin-left: 5px;
	transition: color 0.3s ease;
}

.dove-see-more:hover {
	color: #008c5f;
	text-decoration: underline;
}

/* Reviewer Name */
.dove-reviewer-name {
	font-size: 16px;
	font-weight: 700;
	color: #000;
	margin-top: auto;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
	color: #333;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
	font-size: 20px;
	font-weight: 700;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
	background: rgba(255, 255, 255, 1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	transform: scale(1.1);
}

.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
	.dove-trustpilot-slider-wrapper {
		gap: 15px;
	}

	.dove-trustpilot-rating-box {
		/* Match width of one slide at tablet */
		max-width: calc((100% - var(--gap-tablet)) / (var(--slides-tablet) + 1));
	}
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.dove-trustpilot-slider-wrapper {
		flex-direction: column;
		gap: 20px;
	}

	.dove-trustpilot-rating-box {
		/* Match width of one slide at mobile */
		/*max-width: calc((100% - var(--gap-mobile)) / (var(--slides-mobile) + 1));*/
		max-width:100%;
	}

	.dove-review-card {
		padding: 25px 20px;
		min-height: 260px;
	}
	
	.dove-trustpilot-heading {
		font-size: 18px;
		margin-bottom: 20px;
	}
	
	.dove-star-rating {
		font-size: 40px;
		margin-bottom: 12px;
	}
	
	.dove-review-text {
		/* font-size: 14px; */
		margin-bottom: 15px;
	}
	
	.dove-reviewer-name {
		font-size: 15px;
	}
	
	.dove-trustpilot-rating {
		font-size: 16px;
	}
	
	.swiper-button-next,
	.swiper-button-prev {
		width: 36px;
		height: 36px;
	}
	
	.swiper-button-next:after,
	.swiper-button-prev:after {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.dove-review-card {
		padding: 20px 15px;
		min-height: 240px;
	}
	
	.dove-trustpilot-heading {
		font-size: 16px;
		margin-bottom: 15px;
	}
	
	.dove-star-rating {
		font-size: 40px;
	}
	
	.dove-reviewer-name {
		font-size: 14px;
	}
	
	/* Position arrows outside on very small screens */
	.swiper-button-next {
		right: -5px;
	}
	
	.swiper-button-prev {
		left: -5px;
	}
}

/* Swiper Container Adjustments */
.swiper {
	width: 100%;
	height: 100%;
}

.swiper-wrapper {
	display: flex;
	align-items: stretch;
}

.swiper-slide {
	height: auto;
	display: flex;
	flex-shrink: 0;
	width: 100%;
	position: relative;
	box-sizing: border-box;
}

.swiper-slide .dove-review-card {
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}

/* Loading State */
.dove-trustpilot-slider-wrapper.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* Ensure iframe is responsive */
.dove-trustpilot-widget iframe {
	max-width: 100%;
}

/* Mobile/Desktop visibility helpers */
.dove-desktop-only {
	display: block;
}

.dove-mobile-only {
	display: none;
}

@media (max-width: 767px) {
	.dove-desktop-only {
		display: none;
	}
	
	.dove-mobile-only {
		display: flex;
	}
	
	/* On mobile, make wrapper full width since rating box is in slider */
	.dove-trustpilot-slider-wrapper {
		flex-direction: column;
	}
	
	.dove-reviews-slider-container {
		width: 100%;
	}
}
