.newsletter-popup {
	position: fixed;
	z-index: 11000;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
	padding: 30px 20px;
	background: rgba(0, 0, 0, 0.42);
}

.newsletter-popup.is-open {
	display: flex;
}

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

body.newsletter-popup-open {
	overflow: hidden;
}

.newsletter-popup__dialog {
	position: relative;
	width: 100%;
	max-width: 900px;
	margin: auto;
	padding: 64px 72px 58px;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
	color: #1d1d1d;
}

.newsletter-popup__close {
	position: absolute;
	top: 14px;
	right: 18px;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #222;
	font: 300 34px/34px Arial, sans-serif;
	cursor: pointer;
}

.newsletter-popup__close:hover,
.newsletter-popup__close:focus {
	color: #204a80;
	outline: none;
}

.newsletter-popup__title {
	margin: 0 0 34px;
	color: #204a80;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-transform: uppercase;
}

.newsletter-popup__choices {
	display: grid;
	grid-template-columns: minmax(220px, 0.8fr) minmax(420px, 1.5fr);
	gap: 46px;
	margin-bottom: 30px;
}

.newsletter-popup__fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.newsletter-popup__fieldset legend {
	display: block;
	width: 100%;
	margin: 0 0 17px;
	padding: 0;
	color: #171717;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.newsletter-popup__options {
	display: grid;
	gap: 13px 18px;
}

.newsletter-popup__options--directions {
	grid-template-columns: repeat(3, minmax(105px, 1fr));
}

.newsletter-popup__option {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	color: #242424;
	font-size: 12px;
	font-weight: 400;
	line-height: 18px;
	cursor: pointer;
}

.newsletter-popup__option input {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	margin: 1px 0 0;
	accent-color: #204a80;
}

.newsletter-popup__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
	margin-bottom: 28px;
}

.newsletter-popup__field {
	display: block;
	margin: 0;
	color: #646464;
	font-size: 12px;
	font-weight: 400;
}

.newsletter-popup__field > span {
	display: block;
	margin-bottom: 7px;
}

.newsletter-popup__field input {
	display: block;
	width: 100%;
	height: 42px;
	padding: 8px 12px;
	border: 1px solid #d4d8dd;
	border-radius: 1px;
	background: #fff;
	color: #1f1f1f;
	font-size: 14px;
	line-height: 24px;
	outline: none;
	box-shadow: none;
}

.newsletter-popup__field input:focus {
	border-color: #204a80;
	box-shadow: 0 0 0 2px rgba(32, 74, 128, 0.1);
}

.newsletter-popup__error {
	margin: -10px 0 18px;
	color: #c82828;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
}

.newsletter-popup__submit {
	display: block;
	width: 100%;
	max-width: 360px;
	height: 42px;
	margin: 0 auto;
	padding: 0 24px;
	border: 0;
	border-radius: 2px;
	background: #204a80;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 42px;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.newsletter-popup__submit:hover,
.newsletter-popup__submit:focus {
	background: #153761;
	color: #fff;
	outline: none;
}

.newsletter-popup__submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

.newsletter-popup__agreement {
	margin: 18px auto 0;
	color: #777;
	font-size: 9px;
	line-height: 1.45;
	text-align: center;
}

.newsletter-popup__agreement a {
	color: inherit;
	text-decoration: underline;
}

.newsletter-popup__success {
	display: flex;
	min-height: 300px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.newsletter-popup__success-icon {
	display: flex;
	width: 58px;
	height: 58px;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
	border-radius: 50%;
	background: #204a80;
	color: #fff;
	font-size: 30px;
}

.newsletter-popup__success h2 {
	margin: 0 0 12px;
	color: #204a80;
	font-size: 25px;
}

.newsletter-popup__success p {
	max-width: 520px;
	margin: 0 0 28px;
	color: #555;
	font-size: 14px;
	line-height: 1.5;
}

.newsletter-popup__honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@media (max-width: 900px) {
	.newsletter-popup {
		align-items: flex-start;
		padding: 20px 14px;
	}

	.newsletter-popup__dialog {
		padding: 54px 32px 40px;
	}

	.newsletter-popup__choices {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

@media (max-width: 620px) {
	.newsletter-popup__dialog {
		padding: 50px 20px 34px;
	}

	.newsletter-popup__title {
		margin-bottom: 28px;
		font-size: 21px;
	}

	.newsletter-popup__options--directions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.newsletter-popup__fields {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}

@media (max-width: 390px) {
	.newsletter-popup__options--directions {
		grid-template-columns: 1fr;
	}
}
