/* QADR newsletter popup (Brevo). Same look as the former Klaviyo popup styling. */
#qnp[hidden], #qnp-teaser[hidden], #qnp [hidden] { display: none !important; }

#qnp {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}
#qnp *, #qnp *::before, #qnp *::after { box-sizing: border-box; }
#qnp .qnp-overlay { position: absolute; inset: 0; background: rgba(17, 26, 46, .45); }

#qnp .qnp-dialog {
	position: relative;
	display: flex;
	width: 780px;
	max-width: calc(100vw - 48px);
	max-height: calc(100vh - 48px);
	background: #F8F6F1;
	border: 1px solid #DCD6CE;
	border-radius: 2px;
	box-shadow: 0 28px 70px rgba(17, 26, 46, .24);
	overflow: hidden;
	outline: none;
}

#qnp .qnp-photo { flex: 0 0 42%; position: relative; min-height: 480px; }
#qnp .qnp-photo picture, #qnp .qnp-photo img {
	position: absolute; inset: 0; width: 100%; height: 100%; display: block;
	object-fit: cover; object-position: center 35%; max-width: none; margin: 0;
}

#qnp .qnp-body {
	flex: 1 1 auto;
	padding: 46px 34px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	overflow-y: auto;
	font-family: Manrope, Arial, sans-serif;
}
#qnp .qnp-emblem { display: block; width: 54px; height: 54px; margin: 0 auto 6px; object-fit: contain; }

#qnp .qnp-title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 34px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -.5px;
	color: #111A2E;
	margin: 6px 0 12px;
	padding: 0;
	text-transform: none;
}
#qnp .qnp-lead { font-size: 15px; line-height: 1.75; color: #5F626D; margin: 0 0 16px; }
#qnp .qnp-lead strong { color: #111A2E; font-weight: 700; }
#qnp .qnp-text { font-size: 14px; line-height: 1.75; color: #5F626D; margin: 0 0 12px; }
#qnp .qnp-list { list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; line-height: 1.75; color: #5F626D; }
#qnp .qnp-list li { margin: 0; padding: 0; }
#qnp .qnp-list li::before { content: "• "; }

#qnp .qnp-form { margin: 0; }
#qnp input[type="email"] {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 14px;
	margin: 0 0 12px;
	background: #FFFFFF;
	border: 1px solid #DCD6CE;
	border-radius: 2px;
	font-family: Manrope, Arial, sans-serif;
	font-size: 14px;
	color: #252C3C;
	box-shadow: none;
}
#qnp input[type="email"]::placeholder { color: #8A8D96; opacity: 1; }
#qnp input[type="email"]:focus { border-color: #111A2E; outline: none; }
#qnp input[type="email"][aria-invalid="true"] { border-color: #B4472F; }
#qnp .qnp-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
#qnp .qnp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#qnp .qnp-error { margin: -4px 0 12px; font-size: 13px; line-height: 1.5; color: #B4472F; text-align: left; }

#qnp .qnp-btn {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 16px;
	background: #111A2E;
	border: 1px solid #111A2E;
	border-radius: 2px;
	color: #FFFFFF;
	font-family: Manrope, Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease;
}
#qnp .qnp-btn:hover, #qnp .qnp-btn:focus-visible { background: #233150; border-color: #233150; color: #FFFFFF; }
#qnp .qnp-btn[disabled] { opacity: .6; cursor: wait; }

#qnp .qnp-later {
	display: inline-block;
	margin: 14px 0 0;
	padding: 0;
	background: transparent;
	border: 0;
	color: #5F626D;
	font-family: Manrope, Arial, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}
#qnp .qnp-later:hover { color: #111A2E; background: transparent; }

#qnp .qnp-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	border: 1px solid #DCD6CE;
	display: grid;
	place-items: center;
	cursor: pointer;
}
#qnp .qnp-close svg { width: 12px; height: 12px; stroke: #111A2E; stroke-width: 1.6; fill: none; }

/* Teaser tab (bottom left) */
#qnp-teaser {
	position: fixed;
	left: 10px;
	bottom: 0;
	z-index: 99999;
	margin: 0;
	padding: 12px 22px;
	background: #111A2E;
	color: #F8F6F1;
	border: 0;
	border-radius: 2px 2px 0 0;
	box-shadow: 0 -8px 28px rgba(17, 26, 46, .18);
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 21px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .01em;
	text-transform: none;
	cursor: pointer;
}
#qnp-teaser:hover, #qnp-teaser:focus-visible { background: #233150; color: #F8F6F1; }

html.qnp-open, html.qnp-open body { overflow: hidden !important; }

/* Phones: stacked layout */
@media (max-width: 640px) {
	#qnp { padding: 16px; }
	#qnp .qnp-dialog {
		flex-direction: column;
		width: 100%;
		max-width: 420px;
		max-height: calc(100vh - 40px);
		overflow-y: auto;
	}
	#qnp .qnp-photo { flex: 0 0 auto; width: 100%; min-height: 0; height: 170px; }
	#qnp .qnp-photo img { object-position: center 46%; }
	#qnp .qnp-body { padding: 22px 16px 20px; overflow: visible; }
	#qnp .qnp-emblem { display: none; }
	#qnp .qnp-title { font-size: 28px; }
	#qnp .qnp-lead, #qnp .qnp-text, #qnp .qnp-list { font-size: 14px; }
	#qnp-teaser { font-size: 19px; padding: 10px 18px; }
}
