/* ======== GOOGLE PREFERRED SOURCES ======== */

.nbam-preferred-source-banner,
.nbam-preferred-source-static {
	box-sizing: border-box;
	font-family: inherit;
}

.nbam-preferred-source-static {
	margin: 18px 0;
	color: #253247;
}

.nbam-preferred-source-banner[hidden] {
	display: none !important;
}

.nbam-preferred-source-thank-you[hidden] {
	display: none !important;
}

.nbam-preferred-source-banner {
	position: fixed;
	z-index: 99999;
	left: 50%;
	bottom: 12px;
	transform: translateX(-50%);
	width: min(760px, calc(100% - 24px));
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 52px 18px 20px;
	color: #fff;
	background: #102040;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
	animation: nbam-preferred-source-in 180ms ease-out;
}

.nbam-preferred-source-banner__copy {
	min-width: 0;
}

.nbam-preferred-source-banner h2,
.nbam-preferred-source-static__title {
	margin: 0 0 4px;
	color: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
}

.nbam-preferred-source-banner p,
.nbam-preferred-source-static p {
	margin: 0 0 4px;
	color: inherit;
	font-size: 14px;
	line-height: 1.4;
}

.nbam-preferred-source-banner .nbam-preferred-source-banner__steps {
	margin-top: 6px;
	margin-bottom: 0;
	font-size: 12px;
}

.nbam-preferred-source__help {
	display: inline-block;
	margin-top: 5px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #1a73e8;
	font-family: inherit;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: underline;
	cursor: pointer;
}

.nbam-preferred-source__help:hover,
.nbam-preferred-source__help:focus {
	background: transparent;
	color: #1558b0;
}

.nbam-preferred-source__button {
	box-sizing: border-box;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: 100%;
	min-height: 42px;
	padding: 9px 14px;
	border: 1px solid transparent;
	border-radius: 6px;
	background: #bd3532;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
}

.nbam-preferred-source__button:hover,
.nbam-preferred-source__button:focus {
	background: #a02a28;
	color: #fff !important;
}

.nbam-preferred-source__button:focus-visible,
.nbam-preferred-source-banner__close:focus-visible,
.nbam-preferred-source__help:focus-visible,
.nbam-preferred-source-guide__close:focus-visible {
	outline: 3px solid #ffa900;
	outline-offset: 3px;
}

.nbam-preferred-source-banner__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.nbam-preferred-source-banner .nbam-preferred-source__button {
	white-space: nowrap;
}

.nbam-preferred-source-static--headline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 12px 0 18px;
	padding: 10px 0;
	border-top: 1px solid #e2e6eb;
	border-bottom: 1px solid #e2e6eb;
}

.nbam-preferred-source-static--headline .nbam-preferred-source-static__copy {
	flex: 1;
}

.nbam-preferred-source-static--headline .nbam-preferred-source-static__title {
	margin: 0;
	color: #253247;
	font-size: 14px;
}

.nbam-preferred-source-static--headline .nbam-preferred-source__button {
	min-height: 38px;
	padding: 7px 12px;
	border-color: #cfd7e2;
	border-radius: 5px;
	background: transparent;
	color: #1a73e8 !important;
	font-size: 13px;
}

.nbam-preferred-source-static--headline .nbam-preferred-source__button:hover,
.nbam-preferred-source-static--headline .nbam-preferred-source__button:focus {
	border-color: #1a73e8;
	background: #eef5ff;
	color: #1558b0 !important;
}

.nbam-preferred-source-static--article_end {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px;
	border: 1px solid #f1d99e;
	border-left: 5px solid #ffa900;
	border-radius: 8px;
	background: #fff8e8;
	color: #253247;
}

.nbam-preferred-source-static--article_end .nbam-preferred-source-static__title,
.nbam-preferred-source-static--footer .nbam-preferred-source-static__title {
	margin-bottom: 5px;
	color: #102040;
}

.nbam-preferred-source-static--article_end .nbam-preferred-source__button {
	background: #102040;
}

.nbam-preferred-source-static--article_end .nbam-preferred-source__button:hover,
.nbam-preferred-source-static--article_end .nbam-preferred-source__button:focus {
	background: #1b3768;
}

.nbam-preferred-source-static--footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin: 0;
	padding: 14px 18px;
	border-top: 3px solid #bd3532;
	border-radius: 4px;
	background: #f1f3f5;
	color: #253247;
}

.nbam-preferred-source-static--footer .nbam-preferred-source__button {
	background: #bd3532;
}

.nbam-preferred-source-thank-you {
	position: fixed;
	z-index: 100000;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	width: min(480px, calc(100% - 24px));
	box-sizing: border-box;
	padding: 13px 16px;
	border-left: 4px solid #388e3c;
	border-radius: 6px;
	background: #fff;
	color: #253247;
	box-shadow: 0 5px 22px rgba(0, 0, 0, 0.2);
}

.nbam-preferred-source-thank-you p {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
}

.nbam-preferred-source-guide {
	position: fixed;
	width: min(440px, calc(100% - 32px));
	max-height: calc(100vh - 32px);
	box-sizing: border-box;
	padding: 26px;
	border: 0;
	border-radius: 12px;
	background: #fff;
	color: #253247;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.nbam-preferred-source-guide::backdrop {
	background: rgba(16, 32, 64, 0.5);
}

.nbam-preferred-source-guide h2 {
	margin: 0 28px 12px 0;
	color: #102040;
	font-size: 21px;
	line-height: 1.25;
}

.nbam-preferred-source-guide p,
.nbam-preferred-source-guide li {
	font-size: 15px;
	line-height: 1.5;
}

.nbam-preferred-source-guide ol {
	margin: 12px 0 16px 22px;
}

.nbam-preferred-source-guide .nbam-preferred-source__button {
	margin-top: 10px;
}

.nbam-preferred-source-guide__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #253247;
	font: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.nbam-preferred-source-guide__close:hover,
.nbam-preferred-source-guide__close:focus {
	background: #f1f3f5;
	color: #102040;
}

@keyframes nbam-preferred-source-in {
	from { opacity: 0; transform: translate(-50%, 10px); }
	to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 640px) {
	.nbam-preferred-source-static--headline,
	.nbam-preferred-source-static--article_end,
	.nbam-preferred-source-static--footer {
		align-items: stretch;
		flex-direction: column;
		gap: 12px;
	}

	.nbam-preferred-source-static__copy {
		width: 100%;
	}

	.nbam-preferred-source-static--headline .nbam-preferred-source-static__copy {
		flex: 0 1 auto;
	}

	.nbam-preferred-source-static--headline {
		margin: 12px 0 16px;
		padding: 14px 0;
	}

	.nbam-preferred-source-static--headline .nbam-preferred-source-static__title {
		font-size: 16px;
		line-height: 1.3;
	}

	.nbam-preferred-source-static .nbam-preferred-source__help {
		margin-top: 4px;
		font-size: 13px;
	}

	.nbam-preferred-source-static .nbam-preferred-source__button {
		width: 100%;
		max-width: none;
		min-height: 44px;
		padding: 10px 14px;
		font-size: 14px;
		white-space: normal;
	}

	.nbam-preferred-source-static--article_end {
		padding: 16px;
	}

	.nbam-preferred-source-static--footer {
		padding: 16px;
	}

	.nbam-preferred-source-banner {
		bottom: max(8px, env(safe-area-inset-bottom));
		width: calc(100% - 16px);
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 14px 42px 14px 14px;
	}

	.nbam-preferred-source-banner h2 {
		font-size: 16px;
	}

	.nbam-preferred-source-banner p {
		font-size: 13px;
	}

	.nbam-preferred-source-banner .nbam-preferred-source-banner__steps {
		font-size: 12px;
	}

	.nbam-preferred-source-banner .nbam-preferred-source__button {
		width: 100%;
		max-width: none;
		min-height: 44px;
		align-self: stretch;
		white-space: normal;
	}

	.nbam-preferred-source-banner__close {
		top: 2px;
		right: 2px;
		width: 40px;
		height: 40px;
	}

	.nbam-preferred-source-guide {
		width: calc(100% - 24px);
		max-height: calc(100vh - 24px);
		overflow-y: auto;
		padding: 20px;
	}

	.nbam-preferred-source-guide .nbam-preferred-source__button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nbam-preferred-source-banner {
		animation: none;
	}
}
