.gwalia-newsletter-modal {
	position: fixed;
	inset: 0;
	z-index: 10000000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.gwalia-newsletter-modal.is-open {
	display: flex;
}

.gwalia-newsletter-modal__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgb(0 0 0 / 72%);
	cursor: default;
	pointer-events: none;
}

.gwalia-newsletter-modal__panel {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: min(100%, 36rem);
	max-height: calc(100vh - 3rem);
	margin: 0;
	padding: 2.5rem 2.25rem 2.25rem;
	overflow: auto;
	background: #fff;
	border-radius: 0 !important;
	box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 35%);
	text-align: center;
	font-family: BebasKai, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.gwalia-newsletter-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgb(0 0 0 / 6%);
	color: #333;
	cursor: pointer;
}

.gwalia-newsletter-modal__close:hover,
.gwalia-newsletter-modal__close:focus {
	background: rgb(0 0 0 / 12%);
	color: #000;
}

.gwalia-newsletter-modal__logo {
	display: flex;
	justify-content: center;
}

.gwalia-newsletter-modal__logo-img {
	display: block;
	width: auto;
	max-width: 8rem;
	max-height: 8rem;
	height: auto;
}

.gwalia-newsletter-modal__description {
	margin: 0 0 1.5rem;
	font-size: 2rem;
	line-height: 1.5;
	color: #444;
}

.gwalia-newsletter-modal__form {
	text-align: left;
}

.gwalia-newsletter-modal__field {
	margin-bottom: 2rem;
}

.gwalia-newsletter-modal__field label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 1.75rem;
	font-weight: 400;
	line-height: 1.4;
	color: #222;
}

.gwalia-newsletter-modal__logo {
	margin-bottom: 1rem;
}

.gwalia-newsletter-modal__field .required {
	color: #c00;
}

.gwalia-newsletter-modal__field input[type="text"],
.gwalia-newsletter-modal__field input[type="email"] {
	box-sizing: border-box;
	width: 100%;
	padding: 1rem 1.125rem;
	border: 1px solid #ccc;
	border-radius: 0.25rem;
	font-size: 1.75rem;
	line-height: 1.4;
	background: #fff;
}

.gwalia-newsletter-modal__field--checkbox {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

/* Theme uses input[type="checkbox"] + span::before/::after for custom checkboxes */
.gwalia-newsletter-modal__field--checkbox input[type="checkbox"] + span::before,
.gwalia-newsletter-modal__field--checkbox input[type="checkbox"] + span::after {
	content: none;
	display: none;
}

.gwalia-newsletter-modal__field--checkbox input[type="checkbox"] {
	position: relative;
	left: auto;
	top: auto;
	width: 1.75rem;
	height: 1.75rem;
	min-width: 1.75rem;
	margin: 0;
	padding: 0;
	opacity: 1;
	filter: none;
	cursor: pointer;
	flex-shrink: 0;
	-webkit-appearance: checkbox;
	-moz-appearance: checkbox;
	appearance: auto;
	accent-color: var(--green);
}

.gwalia-newsletter-modal__field--checkbox .gwalia-newsletter-modal__checkbox-text {
	display: block;
	margin: 0;
	flex: 1;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.5;
	cursor: default;
	pointer-events: none;
	user-select: none;
}

.gwalia-newsletter-modal__error {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	color: #b00020;
}

.gwalia-newsletter-modal__error--success {
	color: #1b5e20;
	font-size: 1.5rem;
}

button.gwalia-newsletter-modal__submit.wp-block-button__link {
	border-radius: 0 !important;
}

.gwalia-newsletter-modal__submit {
	display: inline-block;
	width: 100%;
	margin-top: 0.5rem;
	padding: 1rem 1.125rem;
	font-family: inherit;
	font-size: 1.45rem;
	cursor: pointer;
}

.gwalia-newsletter-modal__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

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