/* HPN Ads — front end. Uses the HPN theme's colour tokens when available. */

.hpn-ad-slot {
	display: flex;
	justify-content: center;
	width: 100%;
}

.hpn-ad-stage {
	display: flex;
	justify-content: center;
	width: 100%;
}

.hpn-ad {
	display: flex;
	justify-content: center;
	max-width: 100%;
}

.hpn-ad__link {
	display: block;
}

/* Never exceed the slot's size, whatever the uploaded creative's dimensions. */
.hpn-ad__image {
	display: block;
	width: auto;
	max-width: min(100%, var(--hpn-ad-w, 100%));
	height: auto;
	max-height: var(--hpn-ad-h, none);
}

.hpn-ad-hcp {
	width: min(100%, var(--hpn-ad-w, 728px));
	padding: 1rem 1.25rem;
	border: 1px solid var(--hpn-line, #e3e6ea);
	border-left: 4px solid var(--hpn-accent, #d7282f);
	border-radius: var(--hpn-radius, 6px);
	background: var(--hpn-white, #fff);
	text-align: center;
}

.hpn-ad-hcp__title {
	margin: 0 0 0.25rem;
	font-weight: 700;
}

.hpn-ad-hcp__text {
	margin: 0 0 0.75rem;
	color: var(--hpn-muted, #5b6470);
	font-size: 0.875rem;
}

.hpn-ad-hcp__button {
	padding: 0.55em 1.1em;
	border: 0;
	border-radius: var(--hpn-radius, 6px);
	background: var(--hpn-brand-dark, #1f7a1a);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.hpn-ad-hcp__button:hover {
	background: var(--hpn-ink, #16191d);
}
