/*////////////////////////////////////////*/
/*////////////// EPI-POPUP ///////////////*/
/*////////////////////////////////////////*/

/*body.epi-popup-active {position: fixed; overflow-x: hidden; overflow-y: scroll; top: 0; left: 0; width: 100%;}*/
.epi-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255,255,255,0.8);
    text-align: center;
    font-size: 0;
    z-index: 13000;
    -webkit-box-shadow: 0 0 0 200px rgba(0,0,0,0.7);
    box-shadow: 0 0 0 200px rgba(0,0,0,0.7);
    -webkit-transition: all 250ms ease-out;
    -moz-transition: all 250ms ease-out;
    -o-transition: all 250ms ease-out;
    transition: all 250ms ease-out;
    opacity: 0;
    pointer-events: none;
}

.epi-popup.active {opacity: 1; pointer-events: auto;}
.epi-popup::before {content: ""; display: inline-block; width: 0; height: 100%; vertical-align: middle;}
.epi-popup .epi-popup-hold {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 40px);
    max-width: 400px;
    background-color: #fff;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    height:  calc(100% - 40px);
    margin: 20px;
    max-height: 400px;
    -webkit-box-shadow: 0 0 20px 1px rgba(0,0,0,0.2);
    box-shadow: 0 0 20px 1px rgba(0,0,0,0.2);
    -webkit-transition: all 250ms ease-out;
    -moz-transition: all 250ms ease-out;
    -o-transition: all 250ms ease-out;
    transition: all 250ms ease-out;
    -moz-transform: scale(1.5);
    -webkit-transform: scale(1.5);
    -o-transform: scale(1.5);
    -ms-transform: scale(1.5);
    transform: scale(1.5);
    opacity: 0;
}

.epi-popup.active .epi-popup-hold {-webkit-transform: scale(1); -o-transform: scale(1); -ms-transform: scale(1); transform: scale(1); opacity: 1;}
.epi-popup.auto-height .epi-popup-hold {height: auto; max-height: calc(100vh - 40px); overflow-y: auto; overflow-x: hidden;}
.epi-popup.max-600 .epi-popup-hold {max-width: 600px;}
.epi-popup.max-500 .epi-popup-hold {max-width: 500px;}
.epi-popup.max-800 .epi-popup-hold {max-width: 800px;}
.epi-popup.full-screen .epi-popup-hold {max-height: 100vh; max-width: none; overflow: auto; font-size: 14px;}

.epi-popup .generic-pop-padding {padding: 40px 30px; position: relative;}
.epi-popup .generic-pop-close {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    width: 13px;
    height: 13px;
    padding: 5px;
    -webkit-border-radius: 15px 15px 15px 15px;
    border-radius: 15px 15px 15px 15px;
    background-color: rgba(0,0,0,0);
    -webkit-transition: background-color 250ms cubic-bezier(.25,.1,.25,1);
    -moz-transition: background-color 250ms cubic-bezier(.25,.1,.25,1);
    -o-transition: background-color 250ms cubic-bezier(.25,.1,.25,1);
    transition: background-color 250ms cubic-bezier(.25,.1,.25,1);
    z-index: 10;
}

.epi-popup .generic-pop-close:hover {background-color: rgba(0,0,0,0.05);}
.epi-popup .generic-pop-close > div {position: relative; width: 100%; height: 100%;}
.epi-popup .generic-pop-close > div::before, .epi-popup .generic-pop-close > div::after {
    content: "";
    width: 100%;
    height: 2px;
    position: absolute;
    top: 5px;
    left: 0;
    background-color: #515151;
}

.epi-popup .generic-pop-close > div::before {-moz-transform: rotate(45deg); -webkit-transform: rotate(45deg); -o-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg);}
.epi-popup .generic-pop-close > div::after {
    -moz-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}