.ad_popup_wrap {
	position: fixed;
	background-color: black;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 1000;
	overflow-y: auto;
	overflow-x: hidden;
}

.ad_popup_wrap .bg_close {
	width: 100vw;
	height: 100vh;
	position: absolute;
}


.ad_popup {
	background-color: white;
	--width: 500px;
	--height: 500px;
	width: var( --width );
	margin: calc( ( 100vh - var( --height ) ) / 2 ) calc( ( 100vw - var( --width ) ) / 2 );
	text-align: center;
	max-width: calc( 100% - 40px );
	background-size: contain;
	background-repeat: no-repeat;
	line-height: normal;
	border-radius: 3px;
	position: relative;
	z-index: 1;
}

.ad_popup.window_width_fit {
	width: 100%;
}

.ad_popup.window_height_fit {
	margin-top: 20px;
}

.ad_popup p {
	margin: 10px 0;
}

.ad_popup a {
	border: 0;
}

.ad_popup table {
	width: 100%;
}

.ad_popup table td {
	border: 0;
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
	padding: 30px 30px;
}

.ad_popup .btn {
	width: 300px;
	max-width: 100%;
	margin-top: 10px;
}

.ad_popup button.close {
	display: block;
	position: absolute;
	right: 10px;
	top: 10px;
	border: 0;
	cursor: pointer;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	font-size: 10px;
	padding: 0;
}


.ad_popup button.close:not( :hover ) svg {
	color: inherit!important;
}


.ad_popup .image_url {
	text-decoration: none;
	border: 0;
}

.ad_popup .row picture {
	display: block;
}

.ad_popup .row img {
	margin: auto;
	display: block;
}


.ad_popup_wrap[data-device="mobile"] {
	display: none;
}

.ad_popup .countdown {
	overflow: hidden;
	margin: 20px 0;
	text-align: center;
}

.ad_popup .countdown .number {
	display: inline-block;
	margin-right: 5px;
	padding: 5px;
	padding-bottom: 10px;
	border: 3px solid rgba( 0,0,0, 0.2 );
}

.ad_popup .countdown .number:last-child {
	margin-right: 0;
}


.ad_popup .countdown .int {
    font-size: 44px;
    font-weight: 500;
    font-family: sans-serif;
}

.ad_popup .countdown .label {
	font-size: 10px;
	opacity: 0.8;
}



@media( max-width: 800px ){
	.ad_popup .btn {
		width: auto;
	}
}

@media( max-width: 600px ){
	.ad_popup table,
	.ad_popup tbody,
	.ad_popup tr,
	.ad_popup td {
		display: block;
		width: 100%!important;
		box-sizing: border-box;
	}

	.ad_popup td + td {
		padding-top: 0;
	}

	.ad_popup_wrap[data-device="desktop"] {
		display: none;
	}

	.ad_popup_wrap[data-device="mobile"] {
		display: block;
	}
}


