/**
 * Front-end styles for [gfr_testimonials] shortcode.
 */

.gfr-testimonials {
	display: grid;
	gap: 1.5rem;
	margin: 1.5rem 0;
}

.gfr-per-row-1 { grid-template-columns: 1fr; }
.gfr-per-row-2 { grid-template-columns: repeat(2, 1fr); }
.gfr-per-row-3 { grid-template-columns: repeat(3, 1fr); }
.gfr-per-row-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
	.gfr-per-row-2,
	.gfr-per-row-3,
	.gfr-per-row-4 {
		grid-template-columns: 1fr;
	}
}

.gfr-testimonial {
	height: 100%;
}

.gfr-testimonial-inner {
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 1.25rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.gfr-testimonial-rating {
	margin-bottom: 0.75rem;
	line-height: 1;
}

.gfr-star {
	color: #cbd5e1;
}

.gfr-star-filled {
	color: #eab308;
}

.gfr-testimonial-content {
	flex: 1;
	margin-bottom: 1rem;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.gfr-testimonial-content p:first-child {
	margin-top: 0;
}

.gfr-testimonial-content p:last-child {
	margin-bottom: 0;
}

.gfr-testimonial-footer {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid #f1f5f9;
}

.gfr-testimonial-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.gfr-testimonial-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
	font-size: 0.8125rem;
	color: #64748b;
}

.gfr-testimonial-author {
	font-weight: 600;
	color: #334155;
}

.gfr-testimonial-date::before {
	content: "·";
	margin-right: 0.5rem;
}

.gfr-testimonial-source::before {
	content: "·";
	margin-right: 0.5rem;
}

.gfr-testimonial-source .gfr-source-icon {
	display: inline-flex;
	vertical-align: middle;
	line-height: 1;
}
