.nan-badge {
	display: inline-flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 8px;
	max-width: 100%;
	text-decoration: none;
	color: inherit;
	font-family: Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	box-sizing: border-box;
}

.nan-badge:hover,
.nan-badge:focus,
.nan-badge:active {
	text-decoration: none;
	color: inherit;
}

.nan-badge *,
.nan-badge *::before,
.nan-badge *::after {
	box-sizing: border-box;
}

.nan-badge__rating-text,
.nan-badge__count-text {
	white-space: nowrap;
}

.nan-badge__stars {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	line-height: 1;
}

.nan-badge__star {
	color: #fbbc04;
	line-height: 1;
}

.nan-badge__star--empty {
	color: #dadce0;
}

/* Google speech-bubble icon (colors/size set via Elementor; vars for tail) */
.nan-badge__google-bubble {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border-style: solid;
	border-radius: 4px;
	position: relative;
	margin-left: 2px;
	--nan-badge-bubble-bg: #fff;
	--nan-badge-bubble-border: #dadce0;
}

.nan-badge__google-bubble::before {
	content: '';
	position: absolute;
	left: -6px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-right: 6px solid var(--nan-badge-bubble-border);
}

.nan-badge__google-bubble::after {
	content: '';
	position: absolute;
	left: -5px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-right: 5px solid var(--nan-badge-bubble-bg);
}

.nan-badge__google-svg {
	display: block;
	width: 60%;
	height: 60%;
}

/* Pill layout */
.nan-badge--pill {
	display: inline-flex;
	align-items: stretch;
	padding: 0;
	overflow: hidden;
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.nan-badge--pill .nan-badge__pill-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	background: #fff;
	padding: 8px;
	position: relative;
}

.nan-badge--pill .nan-badge__pill-logo::after {
	content: '';
	position: absolute;
	right: -8px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-left: 8px solid #fff;
	z-index: 1;
}

.nan-badge--pill .nan-badge__pill-logo .nan-badge__google-svg {
	width: 24px;
	height: 24px;
}

.nan-badge--pill .nan-badge__pill-count {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px 10px 12px;
	background: #1a73e8;
	color: #fff;
	font-weight: 500;
	white-space: nowrap;
}

/* Placeholder (editor) */
.nan-badge--placeholder {
	display: block;
	cursor: default;
	pointer-events: none;
}

.nan-badge__placeholder {
	margin: 0;
	padding: 12px 16px;
	color: #5f6368;
	font-size: 14px;
	background: #f8f9fa;
	border: 1px dashed #dadce0;
	border-radius: 4px;
}
