.js-ua-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: var(--bg-modal, rgba(0, 0, 0, 0.5));
	z-index: 9999;
}

.js-ua-modal.open {
	display: flex;
}

.ua-modal-open {
	overflow: hidden;
}

.ua-modal-wrapper {
	display: flex;
	width: 820px;
	padding: 22px 32px 32px 32px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 24px;
	border-radius: 16px;
	border: 1px solid var(--border-color-defoult, #cbd5e1);
	background: var(--bg-content, #fff);
	box-shadow: 20px 20px 20px 0 rgba(0, 0, 0, 0.08);
	position: relative;
	max-height: 95vh;
}

.ua-modal-content {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	padding: 5px;
	overflow-y: scroll;
}

.ua-modal-header {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--border-color-divider, #e2e8f0);
}

.ua-modal-title {
	color: var(--text-primary, #000);
	font-family: "Kyiv*Type Sans";
	font-size: var(--text-h4, 20px);
	font-style: normal;
	font-weight: 500;
	line-height: 110%;
}

.ua-modal-close-btn {
	background: transparent;
	border: none;
	position: absolute;
	top: 8px;
	right: 8px;
}

.ua-modal-actions {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.ua-modal-btn {
	flex: 1 0 0;
}

.ua-modal-actions > button,
.ua-modal-actions > a {
	flex: 1 0 0;
}

@media screen and (max-width: 1279px) {
	.ua-modal-wrapper {
		margin: 0 24px;
	}
}

@media screen and (max-width: 599px) {
	.ua-modal-wrapper {
		margin: 0 14px;
	}
}
