/*
 * App Store and Google Play badges with an optional heading (includes/class-app-store-badges.php).
 * Used by the App Store Badges widget.
 * Figma: B2B site 2025 – "Hent appen" in the H3 style, 16px above 40px high badges,
 * with 8px between rows and 16px between columns.
 *
 * Other widgets can change the sizes and gaps with the variables below.
 */

.ft-app-store-badges {
	--ft-app-store-badges-heading-gap: 16px;
	--ft-app-store-badges-height: 40px;
	--ft-app-store-badges-gap: 8px 16px;

	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--ft-app-store-badges-heading-gap);
	color: var(--text-primary);
}

/* Size and weight come from the global H3 style (.text-h3 on the element). */
.ft-app-store-badges .ft-app-store-badges__heading {
	margin: 0;
	color: inherit;
	overflow-wrap: break-word;
	text-box: trim-both cap alphabetic;
}

.ft-app-store-badges .ft-app-store-badges__list {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--ft-app-store-badges-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ft-app-store-badges .ft-app-store-badges__item {
	margin: 0;
	padding: 0;
}

.ft-app-store-badges .ft-app-store-badges__link {
	display: block;
	border-radius: 6px;
}

.ft-app-store-badges .ft-app-store-badges__link:focus-visible {
	outline: 2px solid var(--text-primary);
	outline-offset: 2px;
}

.ft-app-store-badges .ft-app-store-badges__badge {
	display: block;
	width: auto;
	height: var(--ft-app-store-badges-height);
	max-width: none;
}
