﻿.custom-model-main::before {
	display: inline-block;
	width: 0;
	border-right: 10px solid transparent;
	border-bottom: 10px solid var(--white);
	border-left: 10px solid transparent;
	position: absolute;
	content: '';
	left: 72%;
	top: 73px;
	height: auto !important;
	z-index: 12;
	margin-left: -10px;
}

.header road-button.registrate a {
	margin: 6px 0;
	background: #bb1e10;
	color: #fff;
	display: inline-block;
	opacity: 1;
	padding: 5px 12px;
}

.pop-up-content-wrap {
	text-align: center;
	font-size: 16px;
	line-height: 20px;
	color: var(--text);
	font-weight: 400;
}

.custom-model-main {
	text-align: center;
	overflow: hidden;
	position: absolute;
	top: calc(100% - 5px);
	left: auto;
	bottom: auto;
	right: 60px;
	-webkit-overflow-scrolling: touch;
	outline: 0;
	opacity: 0;
	-webkit-transition: opacity 0.15s linear, z-index 0.15;
	-o-transition: opacity 0.15s linear, z-index 0.15;
	transition: opacity 0.15s linear, z-index 0.15;
	z-index: -1;
	overflow-x: hidden;
	overflow-y: auto;
}

.model-open {
	z-index: 12;
	opacity: 1;
	overflow: hidden;
}

.custom-model-inner {
	-webkit-transform: translate(0, -25%);
	-ms-transform: translate(0, -25%);
	transform: translate(0, -25%);
	-webkit-transition: -webkit-transform 0.3s ease-out;
	-o-transition: -o-transform 0.3s ease-out;
	transition: -webkit-transform 0.3s ease-out;
	-o-transition: transform 0.3s ease-out;
	transition: transform 0.3s ease-out;
	transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
	display: inline-block;
	vertical-align: middle;
	width: 300px;
	margin: 0px auto;
	max-width: 97%;
}

.custom-model-wrap {
	display: block;
	width: 100%;
	position: relative;
	background-color: #fff;
	border: 1px solid #999;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 6px;
	-webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
	box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
	background-clip: padding-box;
	outline: 0;
	text-align: left;
	padding: 20px 20px 6px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	max-height: calc(100vh - 70px);
	overflow-y: auto;
}

.model-open .custom-model-inner {
	-webkit-transform: translate(0, 0);
	-ms-transform: translate(0, 0);
	transform: translate(0, 0);
	position: relative;
	z-index: 999;
}

.close-btn {
	position: absolute;
	right: 10px;
	top: 0px;
	cursor: pointer;
	z-index: 99;
	font-size: 22px;
	color: var(--primary);
}

@media screen and (min-width:800px) {
	.custom-model-main:before {
		content: "";
		display: inline-block;
		height: auto;
		vertical-align: middle;
		margin-right: -0px;
		height: 100%;
	}
}

@media screen and (max-width:640px) {

	.custom-model-main {
		right: 10px;
	}

		.custom-model-main::before {
			left: 50%;
		}
}
