/**
 * Review Site Badges — front-end styles.
 * Module 2.6 (BulkViews SEO Fixer)
 */

.bvseo-review-badge {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	color: #1d2327;
	margin: 24px auto;
	max-width: 1280px;
	padding: 0 24px;
	box-sizing: border-box;
}

/* ----------------------------------------------------------
 *  Compact (pill) variant
 * ---------------------------------------------------------- */

.bvseo-review-badge--compact {
	text-align: center;
}

.bvseo-review-badge__pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	background: #fff;
	border: 1px solid #e6e8eb;
	border-radius: 999px;
	color: #1d2327;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba( 0, 0, 0, 0.06 );
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.bvseo-review-badge__pill:hover {
	box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.12 );
	transform: translateY( -1px );
	color: #1d2327;
}

.bvseo-review-badge__pill-text {
	font-size: 13px;
}

.bvseo-review-badge__pill-text strong {
	font-size: 16px;
	color: #d97706;
	margin-right: 1px;
}

/* ----------------------------------------------------------
 *  Card variant
 * ---------------------------------------------------------- */

.bvseo-review-badge--card .bvseo-review-badge__inner {
	background: #fff;
	border: 1px solid #e6e8eb;
	border-radius: 12px;
	padding: 24px 28px;
	max-width: 380px;
	margin: 0 auto;
	text-align: center;
	box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.08 );
}

.bvseo-review-badge--card .bvseo-review-badge__stars {
	font-size: 28px;
	letter-spacing: 2px;
}

.bvseo-review-badge--card .bvseo-review-badge__rating-line {
	margin-top: 6px;
	font-size: 18px;
}

.bvseo-review-badge--card .bvseo-review-badge__rating {
	font-size: 32px;
	color: #1d2327;
	font-weight: 700;
}

.bvseo-review-badge--card .bvseo-review-badge__rating-of {
	color: #646970;
	font-size: 14px;
	margin-left: 4px;
}

.bvseo-review-badge--card .bvseo-review-badge__count {
	color: #50575e;
	font-size: 13px;
	margin-top: 6px;
}

.bvseo-review-badge--card .bvseo-review-badge__link {
	display: inline-block;
	margin-top: 14px;
	padding: 8px 18px;
	background: #1a3a5c;
	color: #fff !important;
	text-decoration: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	transition: background 0.15s ease;
}

.bvseo-review-badge--card .bvseo-review-badge__link:hover {
	background: #0a1929;
}

/* ----------------------------------------------------------
 *  Stars
 * ---------------------------------------------------------- */

.bvseo-star {
	display: inline-block;
	font-size: 16px;
	line-height: 1;
}

.bvseo-star--full,
.bvseo-star--half {
	color: #f59e0b;
}

.bvseo-star--empty {
	color: #d1d5db;
}

.bvseo-star--half {
	position: relative;
	display: inline-block;
}

/* Optional: half-star approximation using clip — use the half-star unicode
 * is fine for now, browsers render it consistently. */

/* ----------------------------------------------------------
 *  Mobile
 * ---------------------------------------------------------- */

@media (max-width: 640px) {
	.bvseo-review-badge {
		padding: 0 12px;
		margin: 16px auto;
	}
	.bvseo-review-badge__pill {
		padding: 8px 14px;
		gap: 8px;
		font-size: 12px;
	}
	.bvseo-review-badge__pill-text {
		font-size: 12px;
	}
	.bvseo-review-badge__pill-text strong {
		font-size: 14px;
	}
	.bvseo-review-badge--card .bvseo-review-badge__inner {
		padding: 18px 20px;
	}
	.bvseo-review-badge--card .bvseo-review-badge__stars {
		font-size: 22px;
	}
	.bvseo-review-badge--card .bvseo-review-badge__rating {
		font-size: 28px;
	}
}

/* When the trust strip is also active, lift the badges so they're not hidden behind it. */
body.has-bvseo-trust-strip .bvseo-review-badge {
	margin-bottom: 80px;
}
