
/*!Combinable CSS group = common!*/

.popup {
	position:absolute;
	top:0;
	left:0;
	z-index:999910000; /* this is better than try to calculate all elements */
	width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.popup .selectric-items {
	position:fixed;
	top:auto;
	left:auto;
}

.popup_content {
	flex-direction: column;
	padding: 1px;
	border-width:1px;
	border-style:solid;
	width:400px;
	min-height:200px;
	display:flex;
	align-self:center;
	border-radius:5px;
}

.popup.big .popup_content {
	min-width:400px;
	width:80vw;
}

.popup_content > .title,
.popup_content > .content,
.popup_content > .action {
	width:100%;
	padding:0.5rem 1rem;
	box-sizing:border-box;
}

.popup_content > .title {
	align-self:start;		
	min-height:2.2rem;
	font-weight:bold;
	font-size:1.2rem;
	border-top-right-radius:5px;
	border-top-left-radius:5px;
}

.popup.content .popup_content > .title {
	min-height:2rem;
}

.popup_content > .content {
	align-self:center;
	justify-content: center;
	flex-direction:column;
	text-align: center;
	display:flex;
	flex-grow:1;
	max-height:80vh;
	overflow:auto;
	position:relative;
}


.popup_content > .content p {
	margin:1rem 0;
}

.popup_content > .content .selectric-wrapper {
	text-align: left;
}

.popup_content > .action {
	align-self:end;
	border-width:1px 0 0 0;
	border-style:solid;
	display:flex;
	flex-direction:row-reverse;
}
.popup_content .action button {
	margin-right:1rem;
	padding-left:2.4rem;
}

.popup_content .action button:first-child { /* because row-reverse */
	margin-right:0;
}

.popup_content.delete .action button.confirm {
	font-weight:bold;
}

.popup_content > .title button {
	position:relative;
}

.popup_content > .title button.cancel {
	border:none;
	background:none;
	width:2rem;
	height:2rem;
	padding:0;
	position:absolute;
	right:0.7rem;
	top:0.7rem;
	cursor:pointer;
}

.popup_content > .title button.cancel:before,
.popup_content > .title button.cancel:after {
	content: '';
	position: absolute;
	width:2px;
	height:2.4rem;
	top:calc(50% - 1.2rem);
	left:1rem;
}

.popup_content > .title button.cancel:before {
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
}

.popup_content > .title button.cancel:after {
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);
}

.popup_content .loading_wrap {
	display:flex;
	flex-direction:column;
	justify-content:center;
	width:100%;
	height:100%;
	z-index:999;
	position:absolute;
	top:0;
	left:0;
	background-color:rgba(181, 184, 200, 0.5);
}

.popup_content .loading_wrap .loading {
	width:200px;
	height:3rem;
	margin:0 auto;
	text-align:center;
}

.popup_content .loading_wrap .loading:after {
	content: ' .';
	font-size:3rem;
	animation: dots 1s steps(5, end) infinite;
}

