.modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100vw;
	z-index: 100;
	display: none;
	overflow: hidden;
	outline: 0;
}
.modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1;
}
.modal-dialog {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: calc(100vh - 32px);
	width: auto;
	max-width: 640px;
	margin: 16px auto;
	pointer-events: none;
	z-index: 10;
}
.modal-small {
	max-width: 400px;
}
.modal-content {
	position: relative;
	width: 100%;
	max-height: 100%;
	padding: 24px;
	border-radius: 8px;
	background: var(--color-white);
	box-shadow: 0 4px 8px 0 rgba(59, 76, 14, 0.12), 0 0 4px 0 rgba(59, 76, 14, 0.08);
	pointer-events: auto;
	outline: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	overflow-x: hidden;
}
.modal-content::-webkit-scrollbar {
	display: none;
}
.modal-close {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 28px;
	height: 28px;
	background: url("data:image/svg+xml;charset=UTF-8,%3csvg width='28' height='28' viewBox='0 0 28 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M21 7L7 21M7 7L21 21' stroke='%238A8A8A' stroke-width='2.1875' stroke-linecap='round' stroke-linejoin='round' /%3e%3c/svg%3e") no-repeat center / contain;
	z-index: 1;
}
.modal-close:hover {
	opacity: 0.5;
	cursor: pointer;
}
.modal-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 24px;
}
.modal-top .modal-close {
	position: static;
}
.modal-title {
	margin: 0 0 32px;
	font-weight: 700;
	font-size: var(--font-size-h5);
	line-height: 1.375;
}
.modal-top .modal-title {
	margin-bottom: 0;
}
@media (max-width: 767px) {
	.modal-dialog {
		align-items: stretch;
		max-width: 100%;
		height: 100%;
		padding: 0 0 60px;
		margin: 0;
	}
	.modal-content {
		display: flex;
		flex-direction: column;
		width: 100%;
		padding: 30px 20px 20px;
		border-radius: 0;
		box-shadow: none;
	}
	.modal-close {
		top: 30px;
		right: 20px;
	}
	.modal-body {
		display: flex;
		flex-direction: column;
		flex: 1;
	}
	.modal-title {
		margin: 0 0 20px;
	}
	.modal-body .form_row  {
		margin-bottom: auto;
	}
}
