body.nx-region-modal-open {
	overflow: hidden;
}

.nx-region-modal[hidden] {
	display: none !important;
}

.nx-region-modal {
	inset: 0;
	position: fixed;
	z-index: 999999;
}

.nx-region-modal__backdrop {
	background: rgba(8, 22, 54, 0.56);
	inset: 0;
	position: absolute;
}

.nx-region-modal__dialog {
	background: #ffffff;
	border: 1px solid #dce7fb;
	border-radius: 18px;
	box-shadow: 0 28px 70px rgba(17, 40, 84, 0.24);
	display: flex;
	flex-direction: column;
	gap: 14px;
	left: 50%;
	max-width: 560px;
	padding: 24px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 24px);
}

.nx-region-modal__eyebrow {
	color: #2f63df;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
}

.nx-region-modal__title {
	color: #1a2d51;
	font-size: clamp(24px, 2vw, 34px);
	font-weight: 700;
	line-height: 1.08;
	margin: 0;
}

.nx-region-modal__text,
.nx-region-modal__status {
	color: #5b6f92;
	font-size: 14px;
	line-height: 1.7;
	margin: 0;
}

.nx-region-modal__actions {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nx-region-modal__button {
	align-items: flex-start;
	background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
	border: 1px solid #d6e2fb;
	border-radius: 16px;
	box-shadow: 0 16px 30px rgba(19, 54, 118, 0.08);
	color: #173a7d;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
	text-align: left;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nx-region-modal__button:hover,
.nx-region-modal__button:focus-visible {
	border-color: #9fc0ff;
	box-shadow: 0 20px 36px rgba(19, 54, 118, 0.14);
	outline: none;
	transform: translateY(-3px);
}

.nx-region-modal.is-loading .nx-region-modal__button {
	opacity: 0.65;
}

.nx-region-modal__button-title {
	color: #16336d;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.1;
}

.nx-region-modal__button-note {
	color: #667c9f;
	font-size: 13px;
	line-height: 1.6;
}

.nx-region-modal__button.is-north {
	background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.nx-region-modal__button.is-south {
	background: linear-gradient(180deg, #ffffff 0%, #fff7f0 100%);
}

@media (max-width: 640px) {
	.nx-region-modal__dialog {
		border-radius: 14px;
		padding: 18px;
		width: calc(100% - 20px);
	}

	.nx-region-modal__actions {
		grid-template-columns: 1fr;
	}

	.nx-region-modal__button {
		min-height: 126px;
		padding: 16px;
	}

	.nx-region-modal__button-title {
		font-size: 20px;
	}
}
