/*---*\
BGA promo banner button + sitewide popup

KEY FEATURES:
- Orange Shop Now control for the global header banner
- Accessible modal promoting two BGA stations
- Mobile-first layout with flexbox

IMPLEMENTATION NOTES:
- Flat selectors only for WP Rocket CSS minify safety
- Brand colors match existing child theme (#2a6087 / #eb9100)
\*---*/

.fl-builder-content .fl-module-rich-text.desktop-text a.nni-banner-shop-now,
.fl-builder-content .fl-module-rich-text.mobile-text a.nni-banner-shop-now {
	display: inline-block;
	margin-left: 8px;
	padding: 6px 14px;
	background: #eb9100;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	border: 2px solid #eb9100;
	vertical-align: middle;
}

.fl-builder-content .fl-module-rich-text.desktop-text a.nni-banner-shop-now:hover,
.fl-builder-content .fl-module-rich-text.desktop-text a.nni-banner-shop-now:focus,
.fl-builder-content .fl-module-rich-text.mobile-text a.nni-banner-shop-now:hover,
.fl-builder-content .fl-module-rich-text.mobile-text a.nni-banner-shop-now:focus {
	background: #d48200;
	border-color: #d48200;
	color: #fff;
	text-decoration: none;
}

.fl-builder-content .fl-module-rich-text.desktop-text a.nni-banner-shop-now:focus-visible,
.fl-builder-content .fl-module-rich-text.mobile-text a.nni-banner-shop-now:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.fl-builder-content .fl-module-rich-text.mobile-text a.nni-banner-shop-now {
	margin-left: 0;
	margin-top: 4px;
}

html.nni-bga-promo-open,
body.nni-bga-promo-open {
	overflow: hidden;
}

.nni-bga-promo {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.nni-bga-promo[hidden] {
	display: none;
}

.nni-bga-promo__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 32, 48, 0.65);
	border: 0;
	padding: 0;
	cursor: pointer;
}

.nni-bga-promo__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 420px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.nni-bga-promo .nni-bga-promo__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #eb9100;
	color: #fff;
	cursor: pointer;
	line-height: 1;
}

.nni-bga-promo .nni-bga-promo__close:hover,
.nni-bga-promo .nni-bga-promo__close:focus {
	background: #d48200;
}

.nni-bga-promo .nni-bga-promo__close:focus-visible {
	outline: 2px solid #2a6087;
	outline-offset: 2px;
}

.nni-bga-promo__close-icon {
	font-size: 26px;
	font-weight: 700;
}

.nni-bga-promo__products {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 44px 20px 24px;
	background: #fff;
}

.nni-bga-promo__product {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
}

.nni-bga-promo__product:hover,
.nni-bga-promo__product:focus {
	text-decoration: none;
	color: inherit;
}

.nni-bga-promo__product:focus-visible {
	outline: 2px solid #2a6087;
	outline-offset: 4px;
}

.nni-bga-promo__image {
	display: block;
	width: 100%;
	max-width: 220px;
	height: auto;
	object-fit: contain;
}

.nni-bga-promo__product-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	padding: 10px 18px;
	border-radius: 999px;
	background: #eb9100;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

.nni-bga-promo__product:hover .nni-bga-promo__product-label,
.nni-bga-promo__product:focus .nni-bga-promo__product-label {
	background: #d48200;
}

.nni-bga-promo__footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 24px 20px 28px;
	background: #2a6087;
	text-align: center;
}

.nni-bga-promo__title {
	margin: 0;
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
}

.nni-bga-promo__desc {
	margin: 0;
	color: #fff;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	max-width: 32em;
}

.nni-bga-promo__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 8px;
	padding: 12px 18px;
	border: 2px solid #eb9100;
	background: #fff;
	color: #eb9100;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.nni-bga-promo__cta:hover,
.nni-bga-promo__cta:focus {
	background: #eb9100;
	color: #fff;
	text-decoration: none;
}

.nni-bga-promo__cta:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@media (min-width: 768px) {
	.fl-builder-content .fl-module-rich-text.desktop-text a.nni-banner-shop-now,
	.fl-builder-content .fl-module-rich-text.mobile-text a.nni-banner-shop-now {
		margin-left: 12px;
		padding: 7px 16px;
		font-size: 14px;
	}

	.nni-bga-promo {
		padding: 24px;
	}

	.nni-bga-promo__dialog {
		max-width: 640px;
	}

	.nni-bga-promo__products {
		flex-direction: row;
		justify-content: center;
		align-items: flex-end;
		gap: 28px;
		padding: 48px 32px 28px;
	}

	.nni-bga-promo__product {
		flex: 1 1 0;
		max-width: 260px;
	}

	.nni-bga-promo__image {
		max-width: 240px;
	}

	.nni-bga-promo__footer {
		padding: 28px 32px 32px;
		gap: 14px;
	}

	.nni-bga-promo__title {
		font-size: 28px;
	}

	.nni-bga-promo__desc {
		font-size: 16px;
	}

	.nni-bga-promo__cta {
		font-size: 14px;
		padding: 14px 22px;
	}
}

@media (min-width: 1200px) {
	.nni-bga-promo__dialog {
		max-width: 720px;
	}

	.nni-bga-promo__products {
		gap: 40px;
		padding: 52px 40px 32px;
	}

	.nni-bga-promo__title {
		font-size: 32px;
	}

	.nni-bga-promo__desc {
		font-size: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fl-builder-content .fl-module-rich-text.desktop-text a.nni-banner-shop-now,
	.fl-builder-content .fl-module-rich-text.mobile-text a.nni-banner-shop-now,
	.nni-bga-promo .nni-bga-promo__close,
	.nni-bga-promo__product-label,
	.nni-bga-promo__cta {
		transition: none;
	}
}
