.newsletter-band__box {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0;
	padding: calc(36 * var(--wp--custom--zoom));
}

.newsletter-band__box > .newsletter-band__title {
	margin: 0;
	padding: 0 calc(32 * var(--wp--custom--zoom)) 0 0;
}

.newsletter-band__box > .newsletter-band__embed {
	flex: 0 1 auto;
	margin: 0;
	align-self: center;
}

@media (max-width: 767px) {
	.newsletter-band__box {
		flex-direction: column;
		align-items: stretch;
		padding: calc(16 * var(--wp--custom--zoom));
	}

	.newsletter-band__box > .newsletter-band__title {
		margin: 0 0 calc(24 * var(--wp--custom--zoom));
		padding: 0;
	}

	.newsletter-band__box > .newsletter-band__embed {
		width: 100%;
		align-self: stretch;
	}
}

.newsletter-form__row {
	display: flex;
	align-items: center;
}

.newsletter-form__field {
	position: relative;
	font-size: calc(16 * var(--wp--custom--zoom));
	padding-bottom: 1px;
	margin: 0 calc(24 * var(--wp--custom--zoom));
}

.newsletter-form__field input[type="email"] {
	box-sizing: border-box;
	font: inherit;
	line-height: normal;
	color: #000;
	background: transparent;
	width: calc(300 * var(--wp--custom--zoom));
	height: calc(48 * var(--wp--custom--zoom));
	margin: 0;
	padding: calc(14 * var(--wp--custom--zoom)) calc(24 * var(--wp--custom--zoom)) calc(15 * var(--wp--custom--zoom));
	border-radius: calc(38 * var(--wp--custom--zoom));
	border: calc(1 * var(--wp--custom--zoom)) solid #fff;
	position: relative;
	z-index: 0;
	outline: 0;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	box-shadow: 0 0 0 1px transparent;
}

.newsletter-form__field input[type="email"]:hover {
	box-shadow: 0 0 0 1px #d1d3d4;
}

.newsletter-form__field:not(.newsletter-form__field--check) label {
	position: absolute;
	left: calc(24 * var(--wp--custom--zoom));
	top: calc(10 * var(--wp--custom--zoom));
	font-size: calc(16 * var(--wp--custom--zoom));
	line-height: normal;
	padding-top: calc(4 * var(--wp--custom--zoom));
	padding-bottom: calc(6 * var(--wp--custom--zoom));
	z-index: 1;
	color: #000;
	transition: 0.3s ease-in-out;
	cursor: text;
	user-select: none;
	pointer-events: none;
}

.newsletter-form__field:not(.newsletter-form__field--check) label::after {
	content: "";
	position: absolute;
	background-color: var(--wp--preset--color--accent);
	height: 100%;
	width: 114%;
	top: 0;
	left: -7%;
	z-index: -1;
	transition: 0.5s;
	transform: scale(0);
	transform-origin: center;
}

.newsletter-form__field.is-focused input[type="email"],
.newsletter-form__field.is-filled input[type="email"] {
	box-shadow: 0 0 0 1px var(--wp--preset--color--accent);
}

.newsletter-form__field.is-focused:not(.newsletter-form__field--check) label,
.newsletter-form__field.is-filled:not(.newsletter-form__field--check) label {
	font-size: calc(12 * var(--wp--custom--zoom));
	top: calc(-11 * var(--wp--custom--zoom));
	color: #fff;
}

.newsletter-form__field.is-focused:not(.newsletter-form__field--check) label::after,
.newsletter-form__field.is-filled:not(.newsletter-form__field--check) label::after {
	transform: scale(1);
}

.newsletter-form__field.is-invalid input[type="email"] {
	border-color: #ff7b7b !important;
}

.newsletter-form__field.is-invalid input[type="email"]:hover,
.newsletter-form__field.is-invalid.is-focused input[type="email"],
.newsletter-form__field.is-invalid.is-filled input[type="email"] {
	box-shadow: 0 0 0 1px #ff7b7b !important;
}

.newsletter-form__field.is-invalid.is-focused:not(.newsletter-form__field--check) label,
.newsletter-form__field.is-invalid.is-filled:not(.newsletter-form__field--check) label {
	color: #ff7b7b;
}

.newsletter-form__message {
	position: absolute;
	width: 100%;
	left: calc(24 * var(--wp--custom--zoom));
	font-size: calc(12 * var(--wp--custom--zoom));
	color: #ff7b7b;
	bottom: calc(-16 * var(--wp--custom--zoom));
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

.newsletter-form__field.is-invalid .newsletter-form__message {
	opacity: 1;
}

.newsletter-form input:-webkit-autofill,
.newsletter-form input:-webkit-autofill:hover,
.newsletter-form input:-webkit-autofill:focus,
.newsletter-form input:-webkit-autofill:active {
	-webkit-box-shadow: 0 0 0 30px var(--wp--preset--color--accent) inset !important;
}

.newsletter-form__field--check {
	margin: 0;
	user-select: none;
}

.newsletter-form__field--check .newsletter-form__message {
	left: 0;
	bottom: calc(-16 * var(--wp--custom--zoom));
}

.newsletter-form__field--check input[type="checkbox"] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	opacity: 0;
	overflow: hidden;
	clip-path: inset(50%);
}

.newsletter-form__field--check label {
	font-size: calc(16 * var(--wp--custom--zoom));
	display: inline-block;
	cursor: pointer;
	position: relative;
	padding: 0 0 0 calc(36 * var(--wp--custom--zoom));
	color: #000;
}

.newsletter-form__field--check label::before,
.newsletter-form__field--check label::after {
	content: "";
	position: absolute;
	width: calc(24 * var(--wp--custom--zoom));
	height: calc(24 * var(--wp--custom--zoom));
	left: 0;
	top: calc(1 * var(--wp--custom--zoom));
	box-sizing: border-box;
}

.newsletter-form__field--check label::before {
	background-color: transparent;
	border: calc(1 * var(--wp--custom--zoom)) solid #d1d3d4;
	transition: background-color 0.15s ease;
}

.newsletter-form__field--check label::after {
	background: #000 url(../images/check-white.svg) no-repeat;
	background-size: calc(16 * var(--wp--custom--zoom)) calc(10 * var(--wp--custom--zoom));
	background-position: calc(5 * var(--wp--custom--zoom)) calc(7 * var(--wp--custom--zoom));
	transition: 0.3s ease-in-out;
	z-index: 2;
}

.newsletter-form__field--check input:not(:checked) + label::after {
	width: 0;
	opacity: 0;
}

.newsletter-form__field--check input:checked + label::before {
	border: calc(2 * var(--wp--custom--zoom)) solid #000;
	background-color: #000;
}

.newsletter-form__field--check input:hover + label::before,
.newsletter-form__field--check label:hover::before {
	box-shadow: 0 0 0 1px #d1d3d4;
}

.newsletter-form__field--check input:focus-visible + label::before {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.newsletter-form__field--check.is-invalid label::before {
	border: calc(1 * var(--wp--custom--zoom)) solid #ff7b7b;
}

.newsletter-form__field--check.is-invalid input:hover + label::before,
.newsletter-form__field--check.is-invalid label:hover::before {
	box-shadow: 0 0 0 1px #ff7b7b !important;
}

.newsletter-form__field--check label a {
	position: relative;
	padding-bottom: calc(2 * var(--wp--custom--zoom));
	color: inherit;
	text-decoration: none;
}

.newsletter-form__field--check label a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	height: calc(2 * var(--wp--custom--zoom));
	width: 100%;
	background-color: currentColor;
}

.newsletter-form__field--check label a:hover::after {
	animation: newsletter-link-underline 0.2s ease-in-out 1 alternate forwards;
}

@keyframes newsletter-link-underline {
	0% {
		width: 0;
	}

	to {
		width: 100%;
	}
}

.newsletter-form__submit {
	position: relative;
	z-index: 2;
}

.newsletter-form__submit .newsletter-form__button {
	position: relative;
	overflow: hidden;
	background-color: #fff;
	color: #000;
}

.newsletter-form__submit-wrap {
	position: relative;
}

.newsletter-form__button.is-loading,
.newsletter-form__button.show-success {
	pointer-events: none;
}

.newsletter-form__loader {
	position: absolute;
	top: calc(-4 * var(--wp--custom--zoom));
	left: calc(-4 * var(--wp--custom--zoom));
	z-index: -1;
	width: calc(100% + 8 * var(--wp--custom--zoom));
	height: calc(100% + 8 * var(--wp--custom--zoom));
	border-radius: calc(30 * var(--wp--custom--zoom));
	background-color: #000;
}

.newsletter-form__loader > span {
	position: absolute;
	background-color: var(--wp--preset--color--accent);
}

.newsletter-form__loader > span:nth-child(1) {
	top: calc(-1 * var(--wp--custom--zoom));
	right: calc(25 * var(--wp--custom--zoom));
	width: calc(100% - 50 * var(--wp--custom--zoom));
	height: calc(6 * var(--wp--custom--zoom));
}

.newsletter-form__loader > span:nth-child(2) {
	bottom: 0;
	right: calc(-1 * var(--wp--custom--zoom));
	width: calc(27 * var(--wp--custom--zoom));
	height: 100%;
}

.newsletter-form__loader > span:nth-child(3) {
	bottom: calc(-1 * var(--wp--custom--zoom));
	left: calc(25 * var(--wp--custom--zoom));
	width: calc(100% - 50 * var(--wp--custom--zoom));
	height: calc(6 * var(--wp--custom--zoom));
}

.newsletter-form__loader > span:nth-child(4) {
	top: 0;
	left: calc(-1 * var(--wp--custom--zoom));
	width: calc(27 * var(--wp--custom--zoom));
	height: 100%;
}

.newsletter-form__button.is-loading + .newsletter-form__loader > span:nth-child(1) {
	animation: newsletter-loader-horizontal 0.5s ease-in-out 0s 1 alternate forwards;
}

.newsletter-form__button.is-loading + .newsletter-form__loader > span:nth-child(2) {
	animation: newsletter-loader-vertical 0.5s ease-in-out 0.5s 1 alternate forwards;
}

.newsletter-form__button.is-loading + .newsletter-form__loader > span:nth-child(3) {
	animation: newsletter-loader-horizontal 0.5s ease-in-out 1s 1 alternate forwards;
}

.newsletter-form__button.is-loaded + .newsletter-form__loader > span:nth-child(4) {
	animation: newsletter-loader-vertical 0.5s ease-in-out 0s 1 alternate forwards;
}

@keyframes newsletter-loader-horizontal {
	0% {
		width: calc(100% - 50 * var(--wp--custom--zoom));
	}

	to {
		width: 0;
	}
}

@keyframes newsletter-loader-vertical {
	0% {
		height: 100%;
	}

	to {
		height: 0;
	}
}

.newsletter-form__success {
	position: absolute;
	top: 0;
	left: 0;
	display: none;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	background-color: #fff;
}

.newsletter-form__button.show-success .newsletter-form__success {
	display: flex;
}

.newsletter-form__success i {
	display: inline-block;
	width: calc(12 * var(--wp--custom--zoom));
	height: calc(8 * var(--wp--custom--zoom));
	margin-right: calc(8 * var(--wp--custom--zoom));
	background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13.416' height='10.1'%3E%3Cpath d='M.687 4.436l4.5 4.25 7.5-8' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") 50% / contain no-repeat;
}

.newsletter-form__trap {
	position: absolute;
	top: -50000px;
	left: -50000px;
}

@media (max-width: 767px) {
	.newsletter-form__row {
		flex-wrap: wrap;
	}

	.newsletter-form__field {
		order: 1;
		margin: 0;
		width: 100%;
	}

	.newsletter-form__field input[type="email"] {
		width: 100%;
	}

	.newsletter-form__field--check {
		order: 2;
		margin: calc(24 * var(--wp--custom--zoom)) 0;
	}

	.newsletter-form__submit {
		order: 3;
		margin: 0;
		width: 100%;
	}

	.newsletter-form__submit .newsletter-form__button {
		width: 100%;
		text-align: center;
	}
}
