@-webkit-keyframes fadeIn {
    from { opacity: 0; }
      to { opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; }
      to { opacity: 1; }
}

.popup_content[data-align=center],.popup_footer {
	text-align: center
}

.popup_hide {
    -webkit-animation: fadeOut 1s;
    animation: fadeOut 1s;
	display: none!important
}

body,html {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%
}

.popup_show {
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;
	overflow: hidden!important
}

.popup {
	padding: 3em;
}

.popup_fixed {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-align: center;
	align-items: center;
	-ms-flex-pack: center;
	justify-content: center
}

.popup,.popup_fixed,.popup_full {
	z-index: 999;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,.8);
	box-sizing: border-box
}

.popup_close {
	z-index: 999;
	position: absolute;
	top: 30px;
	right: 15px;
	margin: .5rem .5rem 0 0;
	width: 24px;
	height: 24px;
	cursor: pointer
}

.popup_close:after,.popup_close:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 2px;
	background: maroon;
	width: 100%
}

.popup_close:before {
	transform: rotate(45deg) translate(calc(2px*2),calc(2px*2))
}

.popup_close:after {
	transform: rotate(-45deg) translate(calc(-2px*2),calc(2px*2))
}

.popup_container {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	overflow: auto;
	background: #eee
}

.popup_fixed .popup_container {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	-ms-flex-pack: justify;
	justify-content: space-between;
	width: auto;
	height: auto;
	min-width: 320px;
	min-height: 320px
}

.popup_content,.popup_footer,.popup_header {
	position: relative;
	box-sizing: border-box;
	padding: .5rem
}

.popup_content {
	-ms-flex-positive: 1;
	flex-grow: 1;
	overflow-y: scroll;
}

.popup_content::-webkit-scrollbar-button {
	display: none
}

.popup_content::-webkit-scrollbar {
	background-color: transparent;
	width: 8px
}

.popup_content::-webkit-scrollbar-track {
	background-color: transparent
}

.popup_content::-webkit-scrollbar-track:hover {
	background-color: transparent
}

.popup_content::-webkit-scrollbar-thumb {
	background-color: #babac0
}

.popup_content::-webkit-scrollbar-thumb:hover {
	background-color: #a0a0a5;
	border: 4px solid transparent
}

.popup_content[data-align=right] {
	-ms-flex-positive: right;
	flex-grow: right
}

.popup_footer[data-align=left] {
	text-align: left
}

.popup_footer[data-align=right] {
	text-align: right
}