/* App promo: store badges in the footer, the sthlmsauna/app-promo band and
   the booking sidebar card. Markup in includes/AppPromo/Renderer.php. */

.app-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.app-badges__link {
	display: inline-block;
	line-height: 0;
	border-radius: 8px;
	transition: opacity 0.15s ease;
}

.app-badges__link:hover,
.app-badges__link:focus-visible {
	opacity: 0.85;
}

.app-badges__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Apple and Google both ask for at least 40px on screen. Set the height and
   let each badge keep its own proportions. */
.app-badges__link img {
	display: block;
	height: 40px;
	width: auto;
	max-width: none;
}

/* Same footprint as a badge so the row does not jump when the App Store
   link replaces it. */
.app-badges__soon {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	height: 40px;
	padding: 0 0.875rem;
	border: 1px dashed currentColor;
	border-radius: 8px;
	font-size: 0.8125rem;
	line-height: 1.2;
	opacity: 0.75;
}

.app-promo-band .app-badges__soon {
	height: 48px;
}

.site-footer .app-badges__link:hover {
	text-decoration: none;
}

.app-badges--footer {
	flex-direction: column;
	align-items: flex-start;
}

@media only screen and (max-width: 768px) {
	.app-badges--footer {
		align-items: center;
	}
}

/* Band */

.app-promo-band {
	background: var(--wp--preset--color--surface-warm, #f3efe9);
	color: var(--wp--preset--color--ink, inherit);
	padding: clamp(3rem, 7vw, 5rem) 1rem;
}

.app-promo-band__inner {
	max-width: 36rem;
	margin: 0 auto;
	text-align: center;
}

.app-promo-band .app-badges {
	justify-content: center;
}

.app-promo-band__heading {
	margin: 0 0 0.75rem;
}

/* A text colour picked on the block reaches the heading too, which the theme
   otherwise colours on its own. */
.app-promo-band.has-text-color .app-promo-band__heading {
	color: inherit;
}

.app-promo-band__text {
	margin: 0 auto 1.5rem;
	font-size: 1.125rem;
	line-height: 1.55;
	max-width: 32rem;
}

.app-promo-band .app-badges__link img {
	height: 48px;
}

/* Booking sidebar card */

.app-promo-card p {
	margin: 0 0 1rem;
}
