/* Customer Reviews block in the site's look. Opt in by adding `gm-reviews` to
   the block's Container Classes (with container-fluid): a full-width deep-green
   band with the brand leaf pattern (set inline from Footer.php), white heading,
   white square cards with gold stars and a gold quote mark, gold slider dots.
   Spacing comes from the Container Classes. */

.customer-reviews.gm-reviews {
	background-color: var(--bs-secondary);
	color: #fff;
}

/* Header */
.customer-reviews.gm-reviews .reviews-header {
	margin-bottom: 2rem;
}

.customer-reviews.gm-reviews .reviews-heading {
	color: #fff;
}

.customer-reviews.gm-reviews .reviews-subheading {
	margin-top: .75rem;
	color: rgba(255, 255, 255, .75);
}

/* Links in the subheading ("More Reviews"): white, gold chevron, like the blog
   cards' Read More. !important beats the editor's text-accent utility. */
.customer-reviews.gm-reviews .reviews-subheading a {
	color: #fff !important;
}

.customer-reviews.gm-reviews .reviews-subheading a i {
	color: var(--bs-accent);
	transition: transform .15s ease;
}

.customer-reviews.gm-reviews .reviews-subheading a:hover,
.customer-reviews.gm-reviews .reviews-subheading a:focus-visible {
	text-decoration: underline !important;
	text-decoration-color: var(--bs-accent) !important;
	text-underline-offset: .2em;
}

.customer-reviews.gm-reviews .reviews-subheading a:hover i,
.customer-reviews.gm-reviews .reviews-subheading a:focus-visible i {
	transform: translateX(3px);
}

/* Cards. The Reviews page grid (.customer-reviews-grid: Customer Reviews with
   Toggle Slider off, markup in resources/views/page-builder/customer_reviews)
   shares them, so the grid and the Home slider cards match. */
.customer-reviews.gm-reviews .single-review,
.customer-reviews-grid .single-review {
	justify-content: flex-start;
	padding: 2rem;
	border: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: 0 1rem 2rem rgba(0, 0, 0, .18);
	color: var(--bs-secondary);
}

/* gold gradient rule along the bottom of each card, same as the blog and
   Shop your way photo cards */
.customer-reviews.gm-reviews .single-review::after,
.customer-reviews-grid .single-review::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 4px;
	background: linear-gradient(90deg,
		color-mix(in srgb, var(--bs-accent) 45%, #fff) 0%,
		var(--bs-accent) 50%,
		color-mix(in srgb, var(--bs-accent) 80%, #000) 100%);
	pointer-events: none;
}

.customer-reviews.gm-reviews .single-review .review-icon,
.customer-reviews-grid .single-review .review-icon {
	left: auto;
	right: 1.25rem;
	top: -1.75rem;
	font-size: 120px;
	color: var(--bs-accent);
	opacity: .18;
}

.customer-reviews.gm-reviews .single-review .review-stars,
.customer-reviews-grid .single-review .review-stars {
	margin-bottom: 1rem;
}

.customer-reviews.gm-reviews .single-review .review-stars i,
.customer-reviews-grid .single-review .review-stars i {
	color: var(--bs-accent);
}

.customer-reviews.gm-reviews .single-review .review-content,
.customer-reviews-grid .single-review .review-content {
	margin-bottom: 1.5rem;
}

.customer-reviews.gm-reviews .review-read-more,
.customer-reviews-grid .review-read-more {
	color: var(--bs-primary);
	text-decoration: underline !important;
	text-decoration-color: var(--bs-accent) !important;
	text-underline-offset: .2em;
}

/* Author: gold rule above the name */
.customer-reviews.gm-reviews .single-review .review-author,
.customer-reviews-grid .single-review .review-author {
	padding-top: 1rem;
	border-top: 2px solid var(--bs-accent);
	align-self: flex-start;
}

/* Slider dots */
.customer-reviews.gm-reviews .customer-reviews-slider .swiper-pagination {
	position: static;
}

.customer-reviews.gm-reviews .customer-reviews-slider .swiper-pagination .swiper-pagination-bullet {
	background: #fff;
	opacity: .4;
	transition: width .2s ease, opacity .2s ease;
}

.customer-reviews.gm-reviews .customer-reviews-slider .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
	width: 1.75rem;
	border-radius: 1rem;
	background: var(--gm-gold);
	opacity: 1;
}

/* Buttons on the green band */
.customer-reviews.gm-reviews .reviews-actions {
	margin-top: 2.5rem;
}

/* Buttons row: hidden when both buttons are switched off (d-none in the block's
   button class fields), e.g. when a "More Reviews" link sits in the subheading. */
.customer-reviews.gm-reviews .reviews-actions:not(:has(> a:not(.d-none))) {
	display: none;
}


/* Grid cards: the block's Content Classes add Bootstrap border/rounded
   utilities (!important), which the slider cards don't have. */
.customer-reviews-grid .single-review {
	border: 0 !important;
	border-radius: 0 !important;
}
