.oln-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 160ms ease, visibility 160ms ease;
}

.oln-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.oln-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 19, 31, 0.68);
	backdrop-filter: blur(2px);
}

.oln-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 640px);
	padding: 42px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
	transform: translateY(8px) scale(.99);
	transition: transform 160ms ease;
}

.oln-modal.is-open .oln-modal__dialog {
	transform: translateY(0) scale(1);
}

.oln-modal__title {
	margin: 0 42px 14px 0;
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.15;
}

.oln-modal__message {
	margin: 0;
	font-size: 17px;
	line-height: 1.65;
}

.oln-modal__close {
	position: absolute;
	top: 16px;
	right: 18px;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	font: inherit;
	font-size: 40px;
	line-height: 34px;
	text-align: center;
	cursor: pointer;
	color:#00ADEF;
}


.oln-modal__close:hover {background:transparent !important; color:#164999;}

.oln-modal__actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 30px;
}

.oln-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 22px;
	border: 3px solid;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 120ms ease, opacity 120ms ease;
}



.oln-button--secondary {
	background: #eef1f5;
	color: #152033;
	border-color:transparent;
	transition: transform 120ms ease, opacity 120ms ease;
}

.oln-button--primary {
	background: #164999;
	border-color: #164999;
	color: #fff;
}

.oln-button--primary:hover,
.oln-button--primary:focus {
	color: #164999;
	background:transparent;
	border-color:#164999;
}

.oln-button--secondary:hover,
.oln-button--secondary:focus {
	color: #164999;
	border-color:transparent;
	background: #eef1f5;
}

.oln-modal__close:focus-visible,
.oln-button:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

html.oln-modal-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.oln-modal {
		padding: 16px;
	}

	.oln-modal__dialog {
		padding: 34px 24px 24px;
	}

	.oln-modal__actions {
		flex-direction: column-reverse;
	}

	.oln-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.oln-modal,
	.oln-modal__dialog,
	.oln-button {
		transition: none;
	}
}
