.alera-afwc-modal:not([open]) {
	display: none !important;
}

.alera-afwc-modal {
	position: fixed;
	inset: 0;
	box-sizing: border-box;
	width: min(calc(100% - 2rem), 42rem);
	max-width: none;
	max-height: calc(100vh - 2rem);
	max-height: calc(100dvh - 2rem);
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: #1a1c1f;
	overflow: visible;
}

.alera-afwc-modal::backdrop {
	background: rgba(9, 15, 25, 0.72);
}

.alera-afwc-modal__dialog {
	box-sizing: border-box;
	width: 100%;
	max-height: calc(100vh - 2rem);
	max-height: calc(100dvh - 2rem);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: clamp(1.5rem, 4vw, 2.75rem);
	border: 1px solid rgba(151, 125, 237, 0.22);
	border-radius: clamp(1rem, 3vw, 1.5rem);
	background: #ffffff;
	color: #1a1c1f;
	box-shadow: 0 1.5rem 5rem rgba(4, 10, 20, 0.32);
	text-align: center;
	animation: alera-afwc-modal-enter 220ms ease-out both;
}

.alera-afwc-modal__icon {
	display: grid;
	place-items: center;
	width: 4rem;
	height: 4rem;
	margin: 0 auto 1.25rem;
	border-radius: 999px;
	background: #eeeaff;
	color: #765bd3;
}

.alera-afwc-modal__icon svg {
	display: block;
	width: 2rem;
	height: 2rem;
}

.alera-afwc-modal__title {
	margin: 0;
	color: #0d1521;
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
}

.alera-afwc-modal__title:focus-visible {
	outline: 3px solid rgba(151, 125, 237, 0.55);
	outline-offset: 0.3rem;
	border-radius: 0.2rem;
}

.alera-afwc-modal__message {
	margin-top: 1.25rem;
	color: #4f5665;
	font-size: clamp(0.95rem, 2.4vw, 1.05rem);
	line-height: 1.7;
	text-align: left;
}

.alera-afwc-modal__message p {
	margin: 0;
}

.alera-afwc-modal__message p + p {
	margin-top: 1rem;
}

.alera-afwc-modal__message a {
	color: #6749cc;
	font-weight: 650;
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
	overflow-wrap: anywhere;
}

.alera-afwc-modal__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 10rem;
	min-height: 3rem;
	margin-top: 1.75rem;
	padding: 0.75rem 2rem;
	border: 0;
	border-bottom: 3px solid #977ded;
	border-radius: 0.5rem;
	background: #1a1c1f;
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: transform 150ms ease, background-color 150ms ease, color 150ms ease;
}

.alera-afwc-modal__button:hover {
	background: #0d1521;
	color: #cfc5f6;
	transform: translateY(-1px);
}

.alera-afwc-modal__button:focus-visible,
.alera-afwc-modal__message a:focus-visible {
	outline: 3px solid rgba(151, 125, 237, 0.55);
	outline-offset: 3px;
}

body.alera-afwc-modal-open {
	overflow: hidden;
}

@keyframes alera-afwc-modal-enter {
	from {
		opacity: 0;
		transform: translateY(0.75rem) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 30rem) {
	.alera-afwc-modal {
		width: calc(100% - 1.5rem - env(safe-area-inset-left) - env(safe-area-inset-right));
		max-height: calc(100vh - 1.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
		max-height: calc(100dvh - 1.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
	}

	.alera-afwc-modal__dialog {
		max-height: calc(100vh - 1.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
		max-height: calc(100dvh - 1.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
		border-radius: 1.25rem;
	}

	.alera-afwc-modal__button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.alera-afwc-modal__dialog {
		animation: none;
	}

	.alera-afwc-modal__button {
		transition: none;
	}
}
