.type-form-modal,
.type-form-modal * {
	box-sizing: border-box;
}

.type-form-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .75);
	transition: opacity .3s;
	z-index: 10001;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
	opacity: 0;
	pointer-events: none;
}

.type-form-modal-in {
	position: relative;
	min-width: 360px;
	min-height: 360px;
	width: calc(80% - 80px);
	height: calc(80% - 80px);
	transition: opacity .3s;
	opacity: 0;
	z-index: 1;
}

.type-form-modal-close {
	display: block;
	position: absolute;
	font-size: 32px;
	font-weight: normal;
	line-height: 24px;
	width: 24px;
	height: 24px;
	text-align: center;
	text-transform: none;
	cursor: pointer;
	text-decoration: none;
	color: white;
	font-weight: bold;
	top: -34px;
	right: 0;
	background: none;
	border: none;
	border-radius: 0;
}

.type-form-modal-spinner {
	border: 3px solid #aaa;
	font-size: 40px;
	width: 1em;
	height: 1em;
	border-radius: .5em;
	box-sizing: border-box;
	animation: TypeFormSpinner 1s linear infinite;
	border-top-color: #fff;
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -20px 0 0 -20px;
	z-index: 0;
}

.type-form-modal-iframe {
	border: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 8px;
}

body.show-type-form {
	overflow: hidden;
}

body.show-type-form .type-form-modal {
	opacity: 1;
	pointer-events: all;
}

body.showed-type-form .type-form-modal-in {
	opacity: 1;
}

@keyframes TypeFormSpinner {
	to {
		transform: rotate(360deg);
	}
}

@media(max-width: 480px) {
	
	.type-form-modal-in {
		min-width: 100%;
		min-height: 100%;
	}
	
	.type-form-modal-iframe {
		border-radius: 0;
	}
	
	.type-form-modal-close {
		color: black;
		top: 6px;
		right: 8px;
	}

}