.popup-open {
	overflow: hidden
}

.popup-back {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	background-color: rgba(0,0,0,.5);
}

.popup:before {
	content: "\200B";
	display: inline-block;
	height: 100%;
	vertical-align: middle
}

.popup {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	outline: 0;
	text-align: center;
	z-index: 1050;
	overflow: hidden;
	display: none;
}

.popup-dialog {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	border-radius: 5px;
	background: #fff;
	z-index: 2;
}

.left-dialog {
	width: 70%;
	position: absolute;
	height: 100%;
	bottom: 0;
	background-color: #fff;
	z-index: 2;
	right: 0;
	border-top-left-radius: 15px;
	border-bottom-left-radius: 15px;
}

.bottom-dialog {
	width: 100%;
	position: absolute;
	bottom: 0;
	background-color: #fff;
	height: 245px;
	z-index: 2;
}

.popup.fade .popup-dialog {
	-webkit-animation: bouOut .3s 0s ease both;
	-moz-animation: bouOut .3s 0s ease both;
}

.popup.in .popup-dialog {
	-webkit-animation: bouIn .3s 0s ease both;
	-moz-animation: bouIn .3s 0s ease both;
}

.popup.fade .left-dialog {
	-webkit-animation: bouOutLeft .3s 0s ease both;
	-moz-animation: bouOutLeft .3s 0s ease both;
}

.popup.in .left-dialog {
	-webkit-animation: bouInLeft .2s 0s ease both;
	-moz-animation: bouInLeft .2s 0s ease both;
}

.popup.fade .bottom-dialog {
	-webkit-animation: bouOutDown .3s 0s ease both;
	-moz-animation: bouOutDown .3s 0s ease both;
}

.popup.in  .bottom-dialog {
	-webkit-animation: bouInUp .2s 0s ease both;
	-moz-animation: bouInUp .2s 0s ease both;
}

@-webkit-keyframes bouInLeft {
	0% {
		opacity: 0;
		-webkit-transform: translateX(600px)
	}

	100% {
		-webkit-transform: translateX(0)
	}
}

@-moz-keyframes bouInLeft {
	0% {
		opacity: 0;
		-moz-transform: translateX(600px)
	}

	100% {
		-moz-transform: translateX(0)
	}
}

@-webkit-keyframes bouOutLeft {
	0% {
		-webkit-transform: translateX(0)
	}

	100% {
		opacity: 0;
		-webkit-transform: translateX(600px)
	}
}

@-moz-keyframes bouOutLeft {
	0% {
		-moz-transform: translateY(0)
	}

	100% {
		opacity: 0;
		-moz-transform: translateX(600px)
	}
}

@-webkit-keyframes bouIn {
	0% {
		opacity: 0;
		-webkit-transform: scale(.3)
	}

	100% {
		-webkit-transform: scale(1)
	}
}

@-moz-keyframes bouIn {
	0% {
		opacity: 0;
		-moz-transform: scale(.3)
	}

	100% {
		-moz-transform: scale(1)
	}
}

@-webkit-keyframes bouOut {
	0% {
		-webkit-transform: scale(1)
	}

	100% {
		opacity: 0;
		-webkit-transform: scale(.3)
	}
}

@-moz-keyframes bouOut {
	0% {
		-moz-transform: scale(1)
	}

	100% {
		opacity: 0;
		-moz-transform: scale(.3)
	}
}

@-webkit-keyframes bouInUp {
	0% {
		opacity: 0;
		-webkit-transform: translateY(600px)
	}

	100% {
		-webkit-transform: translateY(0)
	}
}

@-moz-keyframes bouInUp {
	0% {
		opacity: 0;
		-moz-transform: translateY(600px)
	}

	100% {
		-moz-transform: translateY(0)
	}
}

@-webkit-keyframes bouOutDown {
	0% {
		-webkit-transform: translateY(0)
	}

	100% {
		opacity: 0;
		-webkit-transform: translateY(600px)
	}
}

@-moz-keyframes bouOutDown {
	0% {
		-moz-transform: translateY(0)
	}

	100% {
		opacity: 0;
		-moz-transform: translateY(600px)
	}
}