.wait-wrap {
    visibility: hidden;
    position: fixed;
    left: 0px;
    top: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    z-index: 30000;
}
.wait-overlay {
    position: fixed;
    left: 0px;
    top: 0px;
    opacity: 0.7;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 30000;
}
.wait-modal {
    position: relative;
    width: 600px;
    height: 360px;
    background: red;
    z-index: 30001;
    text-align: left;
}
.wait-modal__close {
    position: absolute;
    right: -12px;
    top: -12px;
    width: 36px;
    height: 36px;
    background: #eee;
    border-radius: 50%;
    border: 2px solid #333;
	box-sizing: border-box;
}
.wait-modal__close-svg {
    width: 16px;
    height: 16px;
    position: absolute;
    top: 8px;
    left: 8px;
}

/* Plugin Style */

#wait-plugin .wait-plugin {
	font: normal 20px/1.4 "Trebuchet MS", sans-serif;
	min-height: 360px;
	height: auto !important;
	width: 600px;
	color: #fff;
	padding: 20px 30px;
	box-sizing: border-box;
	background-size: cover;
	border:4px solid #5A5757;
}

/*Стили для автогенерации купона*/
#wait-plugin .wait-autocoupon {
	font: normal 18px/1.4 "Trebuchet MS", sans-serif !important;
	padding: 10px;
}

#wait-plugin h3 {
	color:#fff;
	font-size: 28px;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
	margin: 0 0 20px 0;
	padding: 0;
	border: none;
	font-family: inherit;
}

#wait-plugin a {
	color: #c1dfff !important;
	text-decoration: underline;
}
#wait-plugin a:hover {
	color: #c1dfff !important;
	text-decoration: none;
}
#wait-plugin .wait-red a {
	color: red!important;
}
#wait-plugin .wait-red a:hover {
	color: red !important;
}

#wait-plugin .wait-description {
	max-width: 325px;
	color: #fff;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
	margin: 0 0 30px 0;
	font-family: inherit;
}

#wait-plugin .type {
	font-weight:bold;
	display: inline-block;
	padding: 10px 18px;
	margin: 0 13px 30px 0;
	float: left;
	font-size:20px;
	position:relative;
	background: #f5f2f4;
	border-radius: 2px;
    box-sizing: border-box;
	font-family: inherit;
}

#wait-plugin .type:after {
	content:'';
	width:30px;
	height:30px;
	position: absolute;
	top: -17px;
	left: 3px;
}

#wait-plugin .hours {
	font-size: 14px;
	padding-top: 16px;
	font-family: inherit;
}

#wait-plugin .hours + br {
	clear:both;
	float:none;
}

#wait-plugin .wait-success, #wait-plugin .wait-error {
	font-family: inherit;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

#wait-plugin .autocoupon, #wait-plugin input[type="button"], #wait-plugin input[type="submit"] {
	background: #2881e0;
	margin: 0 5px 15px 0;
	font-family: inherit;
	font-weight: normal;
	height: 45px;
	width: auto; 
	border: none;
	padding: 0 12px;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
	position:relative;
	color: #fff;
	white-space: nowrap;
	text-align: center;
	display: inline-block;
	box-sizing: border-box;
	box-shadow: 0 0 4px 0 rgba(0,0,0,0.1), 0 2px 2px 0 rgba(0,0,0,0.1);
	/*max-width: 158px;*/
	border-radius: 2px;
	vertical-align: top;
	font-size: 18px;
}

#wait-plugin .autocoupon:active, #wait-plugin input[type="button"]:active, #wait-plugin input[type="submit"]:active {top:1px;}

#wait-plugin .autocoupon-value, #wait-plugin input[type="text"], #wait-plugin input[type="email"] {
	min-width: 200px;
	max-width: 260px;
    border: none;
	height: 45px;
	padding: 0 12px;
	margin: 0;
	border-radius: 2px;
	display: inline-block;
	font-family: inherit;
	color: black;
    margin-right: 5px;
    margin-bottom: 5px;
}
#wait-plugin .autocoupon-value  {
	background: #ccc none repeat scroll 0 0;
	color: #222;
}

#wait-plugin .wait-autocoupon .coupon-value {
	margin: 0 5px 15px 0;
}

#wait-plugin small {
	font-size: 0.8em;
}
#wait-plugin .wait-red {
	color: red;
}
.wait-input-error { border:1px solid red !important;  }
input[placeholder].wait-input-error::-webkit-input-placeholder       { opacity: 0.6; transition: opacity 0.3s ease; color:red; }
input[placeholder].wait-input-error::-moz-placeholder                { opacity: 0.6; transition: opacity 0.3s ease; color:red; }
input[placeholder].wait-input-error:-moz-placeholder                 { opacity: 0.6; transition: opacity 0.3s ease; color:red; }
input[placeholder].wait-input-error:-ms-input-placeholder            { opacity: 0.6; transition: opacity 0.3s ease; color:red; }

/* Тема дизайна #1 */
#wait-plugin .wait-bg1 {
	border:4px solid #930202;
	background: #be282e url(../img/bg1.jpg) no-repeat 0 0;
}
#wait-plugin .wait-bg1 .type {
	color: #930202;
	border: 3px dashed #930202;
}
#wait-plugin .wait-bg1 .type:after {
	background: url(../img/cut-bg1.png) no-repeat;
}
#wait-plugin .wait-bg1 .autocoupon, #wait-plugin .wait-bg1 input[type="button"], #wait-plugin .wait-bg1 input[type="submit"] {
	background: #2881e0;
}
#wait-plugin .wait-bg1 .autocoupon:active, #wait-plugin .wait-bg1 input[type="button"]:active, #wait-plugin .wait-bg1 input[type="submit"]:active {
	background: #2368b1;
}




/* Тема дизайна #2 */
#wait-plugin .wait-bg2 {
	border:4px solid #5A5757;
	background: #644439 url(../img/bg2.jpg) no-repeat 0 0;
}
#wait-plugin .wait-bg2 .type {
	color: #07655a;
	border: 3px dashed #14ad9b;
}
#wait-plugin .wait-bg2 .type:after {
	background: url(../img/cut-bg2.png) no-repeat;
}
#wait-plugin .wait-bg2 .autocoupon, #wait-plugin .wait-bg2 input[type="button"], #wait-plugin .wait-bg2 input[type="submit"] {
	background: #01a896;
}
#wait-plugin .wait-bg2 .autocoupon:active, #wait-plugin .wait-bg2 input[type="button"]:active, #wait-plugin .wait-bg2 input[type="submit"]:active {
	background:#078f80;
}



/* Тема дизайна #3 */
#wait-plugin .wait-bg3 {
	border:4px solid #555;
	background: #000000 url(../img/bg3.jpg) no-repeat 0 0;
}
#wait-plugin .wait-bg3 .type {
	color: #930202;
	border: 3px dashed #930202;
}
#wait-plugin .wait-bg3 .type:after {
	background: url(../img/cut-bg1.png) no-repeat;
}
#wait-plugin .wait-bg3 .autocoupon, #wait-plugin .wait-bg3 input[type="button"], #wait-plugin .wait-bg3 input[type="submit"] {
	background: #c21916;
}
#wait-plugin .wait-bg3 .autocoupon:active, #wait-plugin .wait-bg3 input[type="button"]:active, #wait-plugin .wait-bg3 input[type="submit"]:active {
	background: #ab1714;
}



/* Тема дизайна #4 */
#wait-plugin .wait-bg4 {
	border:4px solid #5A5757;
	background: #323641 url(../img/bg4.jpg) no-repeat 0 0;
}
#wait-plugin .wait-bg4 .type {
	color: #07655a;
	border: 3px dashed #14ad9b;
}
#wait-plugin .wait-bg4 .type:after {
	background: url(../img/cut-bg2.png) no-repeat;
}
#wait-plugin .wait-bg4 .autocoupon, #wait-plugin .wait-bg4 input[type="button"], #wait-plugin .wait-bg4 input[type="submit"] {
	background: #01a896;
}
#wait-plugin .wait-bg4 .autocoupon:active, #wait-plugin .wait-bg4 input[type="button"]:active, #wait-plugin .wait-bg4 input[type="submit"]:active {
	background:#078f80;
}



/* Тема дизайна #5 */
#wait-plugin .wait-bg5 {
	border: 4px solid #b55c6c;
	background: #e8627b url(../img/bg5.jpg) no-repeat 0 0;
}
#wait-plugin .wait-bg5 .type {
	color: #64880e;
	border: 3px dashed #85bd00;
}
#wait-plugin .wait-bg5 .type:after {
	background: url(../img/cut-bg5.png) no-repeat;
}
#wait-plugin .wait-bg5 .autocoupon, #wait-plugin .wait-bg5 input[type="button"], #wait-plugin .wait-bg5 input[type="submit"] {
	background: #85bd00;
}
#wait-plugin .wait-bg5 .autocoupon:active, #wait-plugin .wait-bg5 input[type="button"]:active, #wait-plugin .wait-bg5 input[type="submit"]:active {
	background: #64880e;
}


/*Три поля инпутов*/
#wait-plugin .wait-plugin.count3 .autocoupon-value, #wait-plugin .wait-plugin.count3 input[type="text"], #wait-plugin .wait-plugin.count3 input[type="email"] {
	display: block;
}
.wait-plugin.count3 {
	background-size: cover;
}


/*Адаптив*/
@media (max-width: 630px) {
	.wait-modal {
		width: 100%;
		margin: 0 15px;
		min-width: 290px;
	}
	#wait-plugin .wait-plugin {
		width: 100%;
	}
}
@media (max-width: 480px) { 
	.wait-modal {
		height: auto;
	}
	#wait-plugin .wait-plugin {
		min-height: auto;
	}
	#wait-plugin .wait-bg1 {
		background: #be282e;
	}
	#wait-plugin .wait-bg2 {
		background: #644439;
	}
	#wait-plugin .wait-bg3 {
		background: #000000;
	}
	#wait-plugin .wait-bg4 {
		background: #323641;
	}
	#wait-plugin .wait-bg5 {
		background: #e8627b;
	}
	#wait-plugin .wait-plugin {
		text-align: center;
	}
	#wait-plugin .wait-description {
		max-width: 100%;
	}
	#wait-plugin .type {
		float: none;
		margin: 0;
	}
	#wait-plugin .hours {
		padding-top: 7px;
	}
	#wait-plugin .autocoupon, #wait-plugin input[type="button"] {
		margin: 0 0 5px 0;
	}
	#wait-plugin input[type="button"].adaptive-button {
		min-width: 200px;
		max-width: 237px;
		width: 100%;
	}
	#wait-plugin .wait-plugin.count3 .autocoupon-value, #wait-plugin .wait-plugin.count3 input[type="text"], #wait-plugin .wait-plugin.count3 input[type="email"] {
		display: inline;
	}
}
@media (max-width: 425px) { 
	#wait-plugin h3 {
		font-size: 22px;
	}
	#wait-plugin .wait-plugin {
		font: normal 16px/1.4 "Trebuchet MS", sans-serif;
	}
	#wait-plugin .autocoupon, #wait-plugin input[type="button"], #wait-plugin input[type="submit"],
	#wait-plugin .autocoupon-value, #wait-plugin input[type="text"], #wait-plugin input[type="email"] {
		font-size: 16px
	}
	#wait-plugin .wait-description {
		margin: 0 0 20px 0;
	}
	#wait-plugin input[type="button"].adaptive-button {
		max-width: 224px;
	}
	#wait-plugin .autocoupon-value, #wait-plugin input[type="text"], #wait-plugin input[type="email"] {
		margin-right: 0
	}
}