/**
 * Newsletter promo lightbox
 * Artwork recommended: 800×600 (design) / 1600×1200 (@2x export)
 */

.tm-npp {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.tm-npp[hidden] {
	display: none !important;
}

.tm-npp__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	cursor: pointer;
}

.tm-npp__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 800px;
	max-height: calc(100vh - 2rem);
	margin: 0;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
	overflow: auto;
	outline: none;
}

.tm-npp__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.92);
	color: #1a1a1a;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.tm-npp__close:hover,
.tm-npp__close:focus {
	background: #fff;
	outline: 2px solid #2d7abe;
	outline-offset: 2px;
}

.tm-npp__link {
	display: block;
	line-height: 0;
}

.tm-npp__link:focus {
	outline: 3px solid #2d7abe;
	outline-offset: 2px;
}

.tm-npp__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: calc(100vh - 2rem);
	object-fit: contain;
}

.tm-npp__dialog--text {
	max-width: 420px;
}

.tm-npp__content {
	padding: 2.5rem 2rem 2rem;
	text-align: center;
}

.tm-npp__heading {
	margin: 0 0 1.25rem;
	font-size: 1.35rem;
	line-height: 1.35;
	color: #0b3d66;
}

.tm-npp__cta {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background: #2d7abe;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	border-radius: 2px;
}

.tm-npp__cta:hover,
.tm-npp__cta:focus {
	background: #0b3d66;
	color: #fff;
	outline: 2px solid #2d7abe;
	outline-offset: 2px;
}

body.tm-npp-open {
	overflow: hidden;
}

@media (max-width: 480px) {
	.tm-npp {
		padding: 0.5rem;
		align-items: flex-start;
		padding-top: 10vh;
	}

	.tm-npp__dialog {
		max-height: calc(100vh - 12vh);
	}
}
