/**
 * Social Proof Metrics Badge – styles (front end + editor).
 */

.llms-spb-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px 8px 10px;
	border-radius: 9999px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 1px 3px rgba( 15, 23, 42, 0.08 ), 0 1px 2px rgba( 15, 23, 42, 0.06 );
	font-size: 15px;
	line-height: 1.2;
	color: #111827;
	max-width: 100%;
}

/* Center alignment support from the block toolbar. */
.aligncenter.llms-spb-badge,
.llms-spb-badge.aligncenter {
	display: inline-flex;
}

.llms-spb-avatars {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
}

.llms-spb-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 9999px;
	margin-left: -10px;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	border: 2px solid #ffffff;
	box-shadow: 0 1px 2px rgba( 15, 23, 42, 0.15 );
	box-sizing: border-box;
}

.llms-spb-avatar:first-child {
	margin-left: 0;
}

.llms-spb-text {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	white-space: nowrap;
}

.llms-spb-before,
.llms-spb-after {
	font-weight: 500;
	color: #4b5563;
}

.llms-spb-count {
	font-weight: 800;
	font-size: 1.05em;
	color: #111827;
	font-variant-numeric: tabular-nums;
}

/* Editor / empty-state helper message. */
.llms-spb-badge--empty {
	display: block;
	border-style: dashed;
	color: #6b7280;
	font-size: 14px;
	font-weight: 500;
	box-shadow: none;
	border-radius: 12px;
	padding: 14px 16px;
}

/* Basic dark-theme friendliness. */
@media ( prefers-color-scheme: dark ) {
	.llms-spb-badge {
		background: #1f2937;
		border-color: #374151;
		color: #f9fafb;
	}
	.llms-spb-count {
		color: #f9fafb;
	}
	.llms-spb-before,
	.llms-spb-after {
		color: #d1d5db;
	}
	.llms-spb-avatar {
		border-color: #1f2937;
	}
}
