/**
 * Shortcode [reviews] — Google reviews sectie
 */

.tb-reviews {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}

.tb-reviews__inner {
	max-width: 80rem;
	margin-inline: auto;
}

@media (max-width: 767px) {
	.tb-reviews {
		padding-inline: 30px;
	}
}

.tb-reviews__header {
	margin-bottom: 3rem;
	text-align: center;
	color: var(--tb-foreground);
}

.tb-reviews__score-row {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.tb-reviews__score-stars {
	display: inline-flex;
	gap: 2px;
}

.tb-reviews__star {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	fill: var(--tb-star);
	color: var(--tb-star);
}

.tb-reviews__star--lg {
	width: 1.5rem;
	height: 1.5rem;
}

.tb-reviews__score-value {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	color: var(--tb-foreground);
}

.tb-reviews__score-max {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	color: var(--tb-muted-foreground);
}

.tb-reviews__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.875rem, 4vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
}

.tb-reviews__subtitle {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--tb-foreground-muted);
}

.tb-reviews__subtitle strong {
	font-weight: 700;
	color: var(--tb-foreground);
}

.tb-reviews__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.tb-reviews__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: stretch;
	}
}

.tb-reviews__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.5rem;
	border: 1px solid var(--tb-border);
	border-radius: 1rem;
	background: var(--tb-background);
	box-shadow:
		0 10px 15px -3px rgb(0 0 0 / 0.1),
		0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.tb-reviews__card-stars {
	display: flex;
	gap: 2px;
	margin-bottom: 0.75rem;
}

.tb-reviews__card-text {
	flex: 1 1 auto;
	margin: 0;
	font-size: 1rem;
	line-height: 1.625;
	color: var(--tb-foreground-subtle);
}

.tb-reviews__card-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 1.5rem;
}

.tb-reviews__card-avatar,
.tb-reviews__card-avatar-img {
	width: 2.5rem;
	height: 2.5rem;
	flex-shrink: 0;
	border-radius: 9999px;
}

.tb-reviews__card-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--tb-primary-10);
	color: var(--tb-primary);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
}

.tb-reviews__card-avatar-img {
	display: block;
	object-fit: cover;
	background: var(--tb-muted);
}

.tb-reviews__card-meta {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
}

.tb-reviews__card-name {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--tb-foreground);
}

.tb-reviews__card-date {
	font-size: 0.75rem;
	line-height: 1.25;
	color: var(--tb-muted-foreground);
}

.tb-reviews__cta-wrap {
	margin: 2.5rem 0 0;
	text-align: center;
}

.tb-reviews__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 32px;
	font-weight: 500;
	color: var(--tb-primary);
	text-decoration: none;
	transition: color var(--tb-transition-fast);
}

.tb-reviews__cta:hover {
	color: var(--tb-primary-hover);
	text-decoration: underline;
}

/* Licht thema: witte koptekst en CTA; kaarten ongewijzigd */
.tb-reviews.tb-reviews--light .tb-reviews__header,
.tb-reviews--light .tb-reviews__header {
	color: #fff;
}

.tb-reviews.tb-reviews--light .tb-reviews__score-value,
.tb-reviews--light .tb-reviews__score-value {
	color: #fff;
}

.tb-reviews.tb-reviews--light .tb-reviews__score-max,
.tb-reviews--light .tb-reviews__score-max {
	color: rgb(255 255 255 / 0.7);
}

.tb-reviews.tb-reviews--light .tb-reviews__title,
.tb-reviews--light .tb-reviews__title {
	color: #fff;
}

.tb-reviews.tb-reviews--light .tb-reviews__subtitle,
.tb-reviews--light .tb-reviews__subtitle {
	color: rgb(255 255 255 / 0.8);
}

.tb-reviews.tb-reviews--light .tb-reviews__subtitle strong,
.tb-reviews--light .tb-reviews__subtitle strong {
	color: #fff;
}

.tb-reviews.tb-reviews--light .tb-reviews__cta,
.tb-reviews--light .tb-reviews__cta {
	color: #fff;
}

.tb-reviews.tb-reviews--light .tb-reviews__cta:hover,
.tb-reviews--light .tb-reviews__cta:hover {
	color: rgb(255 255 255 / 0.85);
}

/* Avada/Fusion: mobiele zijmarge en kolom-reset */
@media (max-width: 767px) {
	.fusion-flex-container .tb-reviews,
	.fusion-layout-column .tb-reviews,
	.fusion-column-wrapper .tb-reviews,
	.fusion-text .tb-reviews,
	.fusion-builder-column .tb-reviews {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		padding-inline: 30px;
	}
}

.fusion-flex-container .tb-reviews,
.fusion-layout-column .tb-reviews,
.fusion-column-wrapper .tb-reviews,
.fusion-text .tb-reviews,
.fusion-builder-column .tb-reviews {
	display: block;
	width: 100%;
	max-width: 100%;
}

.fusion-text .tb-reviews h2.tb-reviews__title,
.fusion-column-wrapper .tb-reviews h2.tb-reviews__title,
.fusion-builder-column .tb-reviews h2.tb-reviews__title {
	margin: 0 0 0.75rem;
	padding: 0;
	font-weight: 700;
	line-height: 1.2;
	color: var(--tb-foreground);
}

.fusion-text .tb-reviews p.tb-reviews__subtitle,
.fusion-column-wrapper .tb-reviews p.tb-reviews__subtitle,
.fusion-builder-column .tb-reviews p.tb-reviews__subtitle {
	margin: 0;
	color: var(--tb-foreground-muted);
}

.fusion-text .tb-reviews--light h2.tb-reviews__title,
.fusion-column-wrapper .tb-reviews--light h2.tb-reviews__title,
.fusion-builder-column .tb-reviews--light h2.tb-reviews__title,
.fusion-flex-container .tb-reviews--light h2.tb-reviews__title,
.fusion-layout-column .tb-reviews--light h2.tb-reviews__title,
.fusion-text .tb-reviews.tb-reviews--light h2.tb-reviews__title,
.fusion-column-wrapper .tb-reviews.tb-reviews--light h2.tb-reviews__title,
.fusion-builder-column .tb-reviews.tb-reviews--light h2.tb-reviews__title {
	color: #fff !important;
}

.fusion-text .tb-reviews--light p.tb-reviews__subtitle,
.fusion-column-wrapper .tb-reviews--light p.tb-reviews__subtitle,
.fusion-builder-column .tb-reviews--light p.tb-reviews__subtitle,
.fusion-flex-container .tb-reviews--light p.tb-reviews__subtitle,
.fusion-layout-column .tb-reviews--light p.tb-reviews__subtitle,
.fusion-text .tb-reviews.tb-reviews--light p.tb-reviews__subtitle,
.fusion-column-wrapper .tb-reviews.tb-reviews--light p.tb-reviews__subtitle,
.fusion-builder-column .tb-reviews.tb-reviews--light p.tb-reviews__subtitle {
	color: rgb(255 255 255 / 0.8) !important;
}

.fusion-text .tb-reviews--light p.tb-reviews__subtitle strong,
.fusion-column-wrapper .tb-reviews--light p.tb-reviews__subtitle strong,
.fusion-builder-column .tb-reviews--light p.tb-reviews__subtitle strong,
.fusion-flex-container .tb-reviews--light p.tb-reviews__subtitle strong,
.fusion-layout-column .tb-reviews--light p.tb-reviews__subtitle strong,
.fusion-text .tb-reviews.tb-reviews--light p.tb-reviews__subtitle strong,
.fusion-column-wrapper .tb-reviews.tb-reviews--light p.tb-reviews__subtitle strong,
.fusion-builder-column .tb-reviews.tb-reviews--light p.tb-reviews__subtitle strong {
	color: #fff !important;
}
