.kayco-newsletter-modal[hidden] {
	display: none;
}

.kayco-newsletter-modal {
	align-items: center;
	bottom: 0;
	display: flex;
	justify-content: center;
	left: 0;
	padding: 22px;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 100000;
}

.kayco-newsletter-modal__backdrop {
	animation: kaycoNewsletterFadeIn 220ms ease forwards;
	background: rgba(7, 23, 29, 0.58);
	backdrop-filter: blur(7px);
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.kayco-newsletter-modal__dialog {
	animation: kaycoNewsletterCardIn 320ms cubic-bezier(.2, .8, .2, 1) forwards;
	background: #fff;
	border: 1px solid rgba(122, 20, 122, 0.14);
	border-radius: 12px;
	box-shadow: 0 28px 70px rgba(7, 23, 29, 0.24);
	max-height: min(620px, calc(100vh - 44px));
	max-width: 520px;
	overflow: hidden;
	position: relative;
	transform-origin: center;
	width: min(100%, 520px);
}

.kayco-newsletter-modal.is-closing .kayco-newsletter-modal__backdrop {
	animation: kaycoNewsletterFadeOut 180ms ease forwards;
}

.kayco-newsletter-modal.is-closing .kayco-newsletter-modal__dialog {
	animation: kaycoNewsletterCardOut 180ms ease forwards;
}

.kayco-newsletter-modal__close {
	align-items: center;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid #eaddea;
	border-radius: 999px;
	color: #07171d;
	cursor: pointer;
	display: inline-flex;
	height: 36px;
	justify-content: center;
	position: absolute;
	right: 14px;
	top: 14px;
	transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
	width: 36px;
	z-index: 3;
}

.kayco-newsletter-modal__close:hover,
.kayco-newsletter-modal__close:focus {
	border-color: #7a147a;
	color: #7a147a;
	outline: none;
	transform: scale(1.04);
}

.kayco-newsletter-modal__widget {
	background: #fff;
	margin: 0;
	min-height: 0;
}

.kayco-newsletter-modal__widget .newsletter-widget__background {
	display: none;
}

.kayco-newsletter-modal__widget .container {
	display: block;
	max-width: none;
	padding: 0;
}

.kayco-newsletter-modal__widget .newsletter-widget__card {
	background: #fff;
	border-radius: 0;
	box-shadow: none;
	height: auto;
	margin: 0;
	padding: 42px 30px 30px;
	text-align: center;
	width: auto;
}

.kayco-newsletter-modal__widget .newsletter-widget__card__title {
	color: #07171d;
	font-family: "Spectral", Georgia, serif;
	font-size: 34px;
	font-weight: 600;
	line-height: 1.14;
	margin: 0 auto 10px;
	max-width: 390px;
}

.kayco-newsletter-modal__widget .newsletter-widget__card__content {
	color: #706f70;
	font-size: 15px;
	line-height: 1.55;
	margin: 0 auto 18px;
	max-width: 370px;
}

.kayco-newsletter-modal__widget .newsletter-widget__card__content p {
	margin: 0;
}

.kayco-newsletter-modal__widget .newsletter-widget__card__form {
	background: #fff;
	border: 1px solid #e7dce7;
	border-radius: 999px;
	display: grid;
	gap: 8px;
	grid-template-columns: minmax(0, 1fr) auto;
	margin: 0 auto;
	max-width: 410px;
	padding: 5px;
}

.kayco-newsletter-modal__widget .newsletter-widget__card__form__input {
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: #07171d;
	font-size: 15px;
	min-height: 44px;
	padding: 0 14px;
	width: 100%;
}

.kayco-newsletter-modal__widget .newsletter-widget__card__form__input:focus {
	box-shadow: none;
	outline: none;
}

.kayco-newsletter-modal__widget .newsletter-widget__card__form:focus-within {
	border-color: #7a147a;
	box-shadow: 0 0 0 4px rgba(122, 20, 122, 0.12);
}

.kayco-newsletter-modal__widget .newsletter-widget__card__form__btn {
	background: #7a147a;
	border: 1px solid #7a147a;
	border-radius: 999px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	min-height: 44px;
	padding: 0 20px;
	transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.kayco-newsletter-modal__widget .newsletter-widget__card__form__btn:hover,
.kayco-newsletter-modal__widget .newsletter-widget__card__form__btn:focus {
	background: #5f0f5f;
	border-color: #5f0f5f;
	outline: none;
	transform: translateY(-1px);
}

.kayco-newsletter-modal__widget .newsletter-widget__card__notification {
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	margin: 0 auto 12px;
	max-width: 410px;
	padding: 8px 10px;
}

.kayco-newsletter-modal-is-open {
	overflow: hidden;
}

@keyframes kaycoNewsletterFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes kaycoNewsletterFadeOut {
	from { opacity: 1; }
	to { opacity: 0; }
}

@keyframes kaycoNewsletterCardIn {
	from {
		opacity: 0;
		transform: translateY(18px) scale(.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes kaycoNewsletterCardOut {
	from {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
	to {
		opacity: 0;
		transform: translateY(12px) scale(.97);
	}
}

@media (max-width: 640px) {
	.kayco-newsletter-modal {
		padding: 14px;
	}

	.kayco-newsletter-modal__dialog {
		max-height: calc(100vh - 28px);
	}

	.kayco-newsletter-modal__widget .newsletter-widget__card {
		padding: 38px 18px 22px;
	}

	.kayco-newsletter-modal__widget .newsletter-widget__card__title {
		font-size: 28px;
		margin-right: 34px;
	}

	.kayco-newsletter-modal__widget .newsletter-widget__card__form {
		border-radius: 14px;
		grid-template-columns: 1fr;
		padding: 8px;
	}

	.kayco-newsletter-modal__widget .newsletter-widget__card__form__btn {
		width: 100%;
	}
}
