.bd-overlay, .bd-wrapper {
	position: fixed;
	visibility: hidden;
	opacity: 0;
	z-index: 9999;
}
	
.bd-overlay {
	top: 0;
	left: 0;
	background: #999;
	width: 100%;
	height: 100%;
}

.bd-wrapper {
	top: 50%;
	left: 50%;
    background: #fff url(images/bg2.png) center center no-repeat;
	width: 679px;
	height: 380px;
	margin-left: -340px;
	margin-top: -173px;
}

@media screen and (max-width: 690px) {
	.bd-wrapper {
		background: #fff url(images/bg_mobile1.jpg) center center no-repeat;
		width: 299px;
		height: 430px;
		margin-left: -150px;
		margin-top: -187px;
	}
}

.bd-open .bd-wrapper, .bd-open .bd-overlay,
.bd-close .bd-wrapper, .bd-close .bd-overlay {
	visibility: visible;
	opacity: 1;
}

.bd-open .bd-overlay {
	opacity: 0.7;
}



	a.popupclose-btn {
		position: absolute;
		top: 10px;
		right: 10px;
		
		background: transparent!important;
		text-align: right;
		display: block;
		width: 35px;
		height: 25px;
	}
	
	a.popupclose-btn:hover .qm-delete-icon {
		background-position: -150px -276px;
	}



	#i-want-discount-btn {
		position: absolute;
		top: 190px;
		left: 296px;
		width: 197px;
		height: 50px;
	}

	#i-want-discount-btn:hover {
		background: url(images/button_hover.png) center center no-repeat;
	}
	
	@media screen and (max-width: 690px) {
		#i-want-discount-btn {
			position: absolute;
			top: 199px;
			left: 44px;
			width: 197px;
			height: 50px;
		}
		
	}

	.desktop-footer-text-wrap, .mobile-footer-text-wrap {
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		text-align: center;
		color: #A6A6A6;
	}
	
	.desktop-footer-text-wrap {
		/*height: 46px;*/
		font: bold 14px Terminal;
		line-height: 19px;
		border:0px solid red;
	}
	
	
	.mobile-footer-text-wrap {
		/*height: 87px;*/
		font: 13px Terminal;
		line-height: 18px;
		display: none;
	}
	
	@media screen and (max-width: 690px) {
		.desktop-footer-text-wrap {display: none;}
		.mobile-footer-text-wrap {display: block;}
	}



.bd-close .bd-overlay {
	visibility: hidden;
	opacity: 0;
	transition: visibility 1s, opacity 0.5s linear;
}

.bd-open .bd-wrapper,
.bd-close .bd-wrapper {
	-webkit-animation-duration: 0.5s;
	animation-duration: 0.5s;
	-webkit-animation-fill-mode: forwards;
	animation-fill-mode: forwards;
	-webkit-animation-timing-function: ease-out;
	animation-timing-function: ease-out;
}

.bd-open .bd-wrapper {
	-webkit-animation-name: anim-open;
	animation-name: anim-open;
}

.bd-close .bd-wrapper {
	-webkit-animation-name: anim-close;
	animation-name: anim-close;
}

@-webkit-keyframes anim-open {
	0% { opacity: 0; -webkit-transform: translate3d(calc(-100vw - 50%), 0, 0); }
	50% { opacity: 1; -webkit-transform: translate3d(100px, 0, 0); }
	100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); }
}

@keyframes anim-open {
	0% { opacity: 0; -webkit-transform: translate3d(calc(-100vw - 50%), 0, 0); transform: translate3d(calc(-100vw - 50%), 0, 0); }
	50% { opacity: 1; -webkit-transform: translate3d(100px, 0, 0); transform: translate3d(100px, 0, 0); }
	100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}


@-webkit-keyframes anim-close {
	0% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); }
	50% { opacity: 1; -webkit-transform: translate3d(-100px, 0, 0) scale3d(1.1, 1.1, 1); }
	100% { opacity: 0; -webkit-transform: translate3d(calc(100vw + 50%), 0, 0); }
}

@keyframes anim-close {
	0% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
	50% { opacity: 1; -webkit-transform: translate3d(-100px, 0, 0) scale3d(1.1, 1.1, 1); transform: translate3d(-100px, 0, 0) scale3d(1.1, 1.1, 1); }
	100% { opacity: 0; -webkit-transform: translate3d(calc(100vw + 50%), 0, 0); transform: translate3d(calc(100vw + 50%), 0, 0); }
}



#buyer-discount_timer_wrapper {
	position: fixed;
	bottom: 10px;
	right: 10px;
	padding: 10px;
	background-color: #f55057;
	color: #fff;
	z-index: 999;
	border:1px solid #f55057;
	border-radius: 3px;
}

@media screen and (max-width: 690px) {
	#buyer-discount_timer_wrapper {
		left: 10px;
	}
}

#buyer-discount_timer_wrapper .timer_close {
	text-indent: -9999px;
	position: absolute;
	top: -11px;
	right: -11px;
	width: 23px;
	height: 23px;
	background-image: url(images/bd_timer_close1.png);
	background-position: 0 23px;
	z-index: 999;
}

#buyer-discount_timer_wrapper .timer_close:hover {
	background-position: 23px 23px;
}

div.buyer-discount_timer_digits {
	font: 21px Terminal;
}



#buyer-discount_minimized_timer_wrapper	{
	position: fixed;
	bottom: 10px;
	right: 10px;
	padding: 5px 10px;
	background-color: #f55057;
	color: #fff;
	z-index: 999;
	border: 1px solid #f55057;
	border-radius: 3px;
}



.bd-old-price-wrap span {
	text-decoration: line-through;
	color: #333!important;
}

.bd-cart-timer-wrap {
	padding: 3px 5px 5px;
	background-color: #f55057;
	color: #fff;
	margin-left: 10px;
	font-family: Georgia, Arial;
}

#buyer-discount_wrapper .desktop-footer-text-wrap, #buyer-discount_wrapper .mobile-footer-text-wrap {
	border:1px solid #f00;
	color:#000;
	padding:20px 10px;
	box-sizing: border-box;
	font-size:15px;
	line-height: 16px;
	background-color:#f7f7f7;
}
#buyer-discount_wrapper .desktop-footer-text-wrap b, #buyer-discount_wrapper .mobile-footer-text-wrap b {
	color:#f00
}