:root {
	--bom-agm-teal: #078586;
	--bom-agm-deep-teal: #0f5a64;
	--bom-agm-gold: #ecd92e;
	--bom-agm-ink: #263037;
	--bom-agm-muted: #69727d;
	--bom-agm-line: #e7ebeb;
	--bom-agm-danger: #b32222;
}

body.bom-agm-popup-open {
	overflow: hidden;
}

.bom-agm-popup,
.bom-agm-popup * {
	box-sizing: border-box;
}

.bom-agm-popup[hidden] {
	display: none !important;
}

.bom-agm-popup {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: grid;
	place-items: center;
	padding: 16px;
	font-family: Heebo, Arial, sans-serif;
	color: var(--bom-agm-ink);
	isolation: isolate;
}

.bom-agm-popup__backdrop {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(19, 29, 32, 0.72);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

.bom-agm-popup__dialog {
	position: relative;
	width: min(100%, 760px);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	margin: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
	-webkit-overflow-scrolling: touch;
}

.bom-agm-popup__accent {
	height: 7px;
	background: linear-gradient(90deg, var(--bom-agm-teal) 0 73%, var(--bom-agm-gold) 73%);
}

.bom-agm-popup__close {
	position: absolute;
	top: 19px;
	right: 18px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0 0 2px;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 50%;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.12);
	font: 400 25px/1 Arial, sans-serif;
	cursor: pointer;
	appearance: none;
}

.bom-agm-popup__close:hover {
	background: rgba(255, 255, 255, 0.22);
}

.bom-agm-popup__close:focus-visible,
.bom-agm-popup__button:focus-visible {
	outline: 3px solid var(--bom-agm-gold);
	outline-offset: 3px;
}

.bom-agm-popup__header {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	padding: 24px 64px 22px 26px;
	color: #ffffff;
	background: var(--bom-agm-deep-teal);
}

.bom-agm-popup__logo {
	display: block;
	width: 76px;
	height: 76px;
	object-fit: contain;
}

.bom-agm-popup__eyebrow,
.bom-agm-popup__restricted,
.bom-agm-popup__intro,
.bom-agm-popup__section p,
.bom-agm-popup__signature {
	margin-top: 0;
}

.bom-agm-popup__eyebrow {
	margin-bottom: 5px;
	color: var(--bom-agm-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.bom-agm-popup__header h2 {
	margin: 0;
	color: #ffffff;
	font-family: "DM Sans", Heebo, Arial, sans-serif;
	font-size: 29px;
	font-weight: 500;
	line-height: 1.12;
	text-transform: none;
}

.bom-agm-popup__restricted {
	margin-bottom: 0;
	padding-top: 8px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 13px;
	line-height: 1.4;
}

.bom-agm-popup__content {
	padding: 24px 26px 20px;
	background: #ffffff;
}

.bom-agm-popup__intro {
	margin-bottom: 17px;
	font-size: 15px;
	line-height: 1.55;
}

.bom-agm-popup__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 18px;
}

.bom-agm-popup__fact {
	min-width: 0;
	padding: 13px 14px;
	border: 1px solid var(--bom-agm-line);
	border-radius: 10px;
	background: #f7f9f9;
}

.bom-agm-popup__fact span {
	display: block;
	margin-bottom: 4px;
	color: var(--bom-agm-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bom-agm-popup__fact strong {
	display: block;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.bom-agm-popup__columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.bom-agm-popup__section {
	padding-top: 14px;
	border-top: 1px solid var(--bom-agm-line);
}

.bom-agm-popup__section h3 {
	margin: 0 0 7px;
	color: var(--bom-agm-deep-teal);
	font-family: Heebo, Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	text-transform: none;
}

.bom-agm-popup__section p {
	margin-bottom: 10px;
	font-size: 12.5px;
	line-height: 1.5;
}

.bom-agm-popup__important {
	color: var(--bom-agm-danger);
	font-weight: 700;
}

.bom-agm-popup__footer {
	display: grid;
	gap: 14px;
	padding: 18px 26px 22px;
	border-top: 1px solid var(--bom-agm-line);
	background: #f7f9f9;
}

.bom-agm-popup__signature {
	display: grid;
	gap: 2px;
	margin-bottom: 0;
	color: var(--bom-agm-muted);
	font-size: 12px;
	line-height: 1.45;
}

.bom-agm-popup__signature strong {
	color: var(--bom-agm-ink);
	font-weight: 700;
}

.bom-agm-popup__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.bom-agm-popup__button,
.bom-agm-popup__button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--bom-agm-deep-teal);
	border-radius: 8px;
	font-family: Heebo, Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.bom-agm-popup__button--secondary,
.bom-agm-popup__button--secondary:visited {
	color: var(--bom-agm-deep-teal);
	background: #ffffff;
}

.bom-agm-popup__button--secondary:hover {
	color: var(--bom-agm-deep-teal);
	background: #eef7f7;
}

.bom-agm-popup__button--primary,
.bom-agm-popup__button--primary:visited {
	color: #ffffff;
	border-color: var(--bom-agm-teal);
	background: var(--bom-agm-teal);
}

.bom-agm-popup__button--primary:hover {
	color: #ffffff;
	border-color: var(--bom-agm-deep-teal);
	background: var(--bom-agm-deep-teal);
}

.bom-agm-popup.is-closing {
	pointer-events: none;
	opacity: 0;
	transition: opacity 160ms ease;
}

@media (max-width: 620px) {
	.bom-agm-popup {
		align-items: start;
		padding: 8px;
	}

	.bom-agm-popup__dialog {
		width: 100%;
		max-height: calc(100vh - 16px);
		max-height: calc(100dvh - 16px);
		border-radius: 14px;
	}

	.bom-agm-popup__close {
		top: 17px;
		right: 12px;
		width: 36px;
		height: 36px;
	}

	.bom-agm-popup__header {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 12px;
		padding: 18px 50px 18px 16px;
	}

	.bom-agm-popup__logo {
		width: 56px;
		height: 56px;
	}

	.bom-agm-popup__header h2 {
		font-size: 23px;
	}

	.bom-agm-popup__content {
		padding: 18px 16px;
	}

	.bom-agm-popup__facts,
	.bom-agm-popup__columns,
	.bom-agm-popup__actions {
		grid-template-columns: 1fr;
	}

	.bom-agm-popup__columns {
		gap: 6px;
	}

	.bom-agm-popup__footer {
		padding: 16px;
	}

	.bom-agm-popup__signature {
		text-align: center;
	}

	.bom-agm-popup__button {
		white-space: normal;
	}
}

@media (max-width: 380px) {
	.bom-agm-popup__header h2 {
		font-size: 21px;
	}

	.bom-agm-popup__restricted {
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bom-agm-popup.is-closing {
		transition: none;
	}
}

