/*
 * HLM Affiliate Offer — frontend styles.
 *
 * Enqueued conditionally by HLM_AOM_Shortcode on posts that contain the
 * [affiliate_offer] shortcode or the hlm/affiliate-offer block. All
 * selectors are scoped under `.aom-offer` to avoid theme collisions.
 *
 * Phase 9 will polish these to match the iHD / iHC theme.
 */

.aom-offer {
	margin: 1.5em 0;
	padding: 1em 1.25em;
	text-align: center;
	/* border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #fafafa; */
	line-height: 1.5;
}

.aom-offer p:last-child {
	margin-bottom: 0;
}

.aom-offer__generic-link {
	display: inline-block;
	padding: 0.55em 1.1em;
	background: #2271b1;
	color: #fff !important;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
}

.aom-offer__generic-link:hover,
.aom-offer__generic-link:focus {
	background: #135e96;
	text-decoration: none;
}

.aom-offer__disclosure {
	margin-top: 1em;
	font-size: 0.85em;
	color: #666;
}

.aom-offer--fallback {
	/* background: #f5f5f5; */
}

/*
 * Layout variants — controlled by the per-offer `_aom_layout` meta:
 *  - layout-block  : own line (default; current behavior).
 *  - layout-inline : sits side-by-side with adjacent offers placed in
 *                    the same paragraph/container.
 */
.aom-offer--layout-block {
	display: block;
}

.aom-offer--layout-inline {
	display: inline-block;
	vertical-align: middle;
	margin: 0.5em 0.5em 0.5em 0;
}

