/*
 * Internal HVG Badges. Style through the CSS variables (or the Elementor
 * widget's Style tab):
 *   --ihb-bg / --ihb-fg      default text badge colours (kit accent / text)
 *   --ihb-padding, --ihb-radius, --ihb-gap, --ihb-image-width
 * A badge's own colours (preset or custom) set --ihb-badge-bg / --ihb-badge-fg.
 */
.internal-hvg-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--ihb-gap, 6px);
}

.internal-hvg-badges__badge--text {
	display: inline-block;
	padding: var(--ihb-padding, 7px 10px);
	border-radius: var(--ihb-radius, 5px);
	background: var(--ihb-badge-bg, var(--ihb-bg, var(--e-global-color-accent, #00caa4)));
	color: var(--ihb-badge-fg, var(--ihb-fg, var(--e-global-color-text, #023b4f)));
	line-height: 1.2;
	white-space: nowrap;
}

.internal-hvg-badges__badge--style-accent {
	--ihb-badge-bg: var(--e-global-color-accent, #00caa4);
	--ihb-badge-fg: var(--e-global-color-text, #023b4f);
}

.internal-hvg-badges__badge--style-primary {
	--ihb-badge-bg: var(--e-global-color-primary, #023b4f);
	--ihb-badge-fg: #fff;
}

.internal-hvg-badges__badge--style-secondary {
	--ihb-badge-bg: var(--e-global-color-secondary, #54595f);
	--ihb-badge-fg: #fff;
}

.internal-hvg-badges__badge--style-text {
	--ihb-badge-bg: var(--e-global-color-text, #023b4f);
	--ihb-badge-fg: #fff;
}

.internal-hvg-badges__badge--image {
	display: inline-block;
	width: var(--ihb-badge-width, var(--ihb-image-width, 72px));
	max-width: 100%;
	line-height: 0;
}

.internal-hvg-badges__image {
	display: block;
	width: 100%;
	height: auto;
}

.internal-hvg-badges--placeholder .internal-hvg-badges__badge--image {
	height: 40px;
	border: 1px dashed currentColor;
	opacity: .5;
}
