body.rsfpmodal-opened
{
    overflow-y:hidden;
    margin-right: 17px;
}
.rsfpmodal-container {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display:none;
    z-index:999;
}
.rsfpmodal-container.rsfpopen {
    display:block;
}

.rsfpmodal-container.rsfpopen .rsfpmodal-overlay {
    pointer-events: all;
    opacity: 0.5;
    transition: opacity 0.2s ease-out;
}

.rsfpmodal-container .rsfpmodal {
    opacity:0;
    display:none;
}

.rsfpmodal-container.rsfpopen .rsfpmodal {
    background: #ffffff;
    border-radius: 0.5em;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    /*left: 50%;*/
    max-width: 90%;
    pointer-events: none;
    position: absolute;
    /*top: 50%;*/
    transform: translate(-50%, -50%);
    width: 70vw;
    height:80vh;
    text-align: left;
    max-height: 90vh;
    display: flex;
    opacity: 0;
    flex-direction: column;
    z-index: 999;
    text-rendering: geometricPrecision;
}
.rsfpmodal-container.rsfpopen.rsfpnodimensions .rsfpmodal {
    width: 0;
    height:0;
}

.rsfpmodal-container.rsfpopen .rsfpmodal .rsfpmodal-close {
    align-items: center;
    color: #111827;
    display: flex;
    height: 4.5em;
    justify-content: center;
    pointer-events: all;
    position: absolute;
   /* right: 0;*/
    top:0;
    width: 2em;
    cursor:pointer;
   /* margin-right: 0.5em;*/
}

.rsfpmodal-container.rsfpopen .rsfpmodal.rsfpmodal-ltr .rsfpmodal-close {
    right: 0;
    margin-right: 0.5em;
}

.rsfpmodal-container.rsfpopen .rsfpmodal.rsfpmodal-rtl .rsfpmodal-close {
    left: 0;
    margin-left: 0.5em;
}

.rsfpmodal-container.rsfpopen .rsfpmodal .rsfpmodal-btn-close {
    box-sizing: content-box;
    width: 2em;
    height: 100%;
    padding: 0.25em 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
}
.rsfpmodal-container.rsfpopen .rsfpmodal .rsfpmodal-title {
    color: #111827;
    padding: 1.5em 1em;
    pointer-events: all;
    position: relative;
    width: calc(100% - 4.5em);
}

.rsfpmodal-container.rsfpopen .rsfpmodal.rsfpmodal-rtl .rsfpmodal-title {
    text-align: right;
}

.rsfpmodal-container.rsfpopen .rsfpmodal .rsfpmodal-title h1 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: normal;
}
.rsfpmodal-container.rsfpopen .rsfpmodal .rsfpmodal-content {
    border-top: 1px solid #e0e0e0;
    padding: 0;
    pointer-events: all;
    overflow: hidden;
    height:100%;
    border-radius:0 0 0.5em 0.5em;
    background:url('../images/loader.gif') center center no-repeat;
}

.rsfpmodal-container.rsfpopen .rsfpmodal .rsfpmodal-content iframe{
    width:100%;
    height:100%;
}

.rsfpmodal-overlay {
    transition: opacity 0.2s ease-out;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.8);
    position: fixed;
    opacity: 0;
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    z-index: 998;
}

/* ANIMATIONS */

/* FADE */
.rsfpmodal-container.rsfpopen.rsfpopened-fade .rsfpmodal{
    top: 50%;
    left: 50%;
    opacity:1;
}
.rsfpmodal-container.rsfpopen.rsfpclosed-fade .rsfpmodal{
    top: 50%;
    left: 50%;
    opacity:0;
}

/* SLIDE UP to DOWN */
.rsfpmodal-container.rsfpopen.rsfpopened-updown .rsfpmodal{
    opacity:1;
    left: 50%;
    top:-100%;
    transform: translate(-50%, 140%)

}
.rsfpmodal-container.rsfpopen.rsfpclosed-updown .rsfpmodal{
    top:-100%;
    left: 50%;
    transform: translate(-50%, -100%)
}

/* SLIDE DOWN to UP */
.rsfpmodal-container.rsfpopen.rsfpopened-downup .rsfpmodal{
    opacity:1;
    left: 50%;
    bottom:-100%;
    transform: translate(-50%,-140%);

}
.rsfpmodal-container.rsfpopen.rsfpclosed-downup .rsfpmodal{
    bottom:-100%;
    left: 50%;
    transform: translate(-50%, 0%);
}

/* SLIDE LEFT to RIGHT */
.rsfpmodal-container.rsfpopen.rsfpopened-leftright .rsfpmodal{
    opacity:1;
    top:50%;
    left: -100%;
    transform: translate(165%, -50%)

}
.rsfpmodal-container.rsfpopen.rsfpclosed-leftright .rsfpmodal{
    top:50%;
    left: -100%;
    transform: translate(-100%, -50%)
}

/* SLIDE RIGHT to LEFT */
.rsfpmodal-container.rsfpopen.rsfpopened-rightleft .rsfpmodal{
     opacity:1;
     top:50%;
     right: -100%;
     transform: translate(-165%, -50%)

 }
.rsfpmodal-container.rsfpopen.rsfpclosed-rightleft .rsfpmodal{
    top:50%;
    right: -100%;
    transform: translate(0%, -50%)
}

/* SIDE MODAL RIGHT */
.rsfpmodal-container.rsfpopen.rsfpopened-sideright .rsfpmodal{
    opacity: 1;
    top: 50%;
    right: -100vw;
    transform: translate(-100vw, -50%);
    width: 20vw;
    height:96vh;
    max-height:98vh;
    min-width: 300px;
    border-radius:0.5em 0 0 0.5em;

}
.rsfpmodal-container.rsfpopen.rsfpclosed-sideright .rsfpmodal{
    opacity: 1;
    top: 50%;
    right: -100vw;
    transform: translate(100vw, -50%);
    width: 20vw;
    height:96vh;
    max-height:98vh;
    min-width: 300px;
    border-radius:0.5em 0 0 0.5em;
}

/* SIDE MODAL RIGHT WITH FULL HEIGHT*/
.rsfpmodal-container.rsfpopen.rsfpopened-sideright.rsfpfullheight .rsfpmodal,
.rsfpmodal-container.rsfpopen.rsfpclosed-sideright.rsfpfullheight .rsfpmodal {
    height:100vh;
    max-height:100vh;
    border-radius:0;
}

/* SIDE MODAL RIGHT */
.rsfpmodal-container.rsfpopen.rsfpopened-sideleft .rsfpmodal{
    opacity: 1;
    top: 50%;
    left: -100vw;
    transform: translate(100vw, -50%);
    width: 20vw;
    height:96vh;
    max-height:98vh;
    min-width: 300px;
    border-radius:0 0.5em 0.5em 0;

}
.rsfpmodal-container.rsfpopen.rsfpclosed-sideleft .rsfpmodal{
    opacity: 1;
    top: 50%;
    left: -100vw;
    transform: translate(-100vw, -50%);
    width: 20vw;
    height:96vh;
    max-height:98vh;
    min-width: 300px;
    border-radius:0 0.5em 0.5em 0;
}

/* SIDE MODAL RIGHT WITH FULL HEIGHT*/
.rsfpmodal-container.rsfpopen.rsfpopened-sideleft.rsfpfullheight .rsfpmodal,
.rsfpmodal-container.rsfpopen.rsfpclosed-sideleft.rsfpfullheight .rsfpmodal {
    height:100vh;
    max-height:100vh;
    border-radius:0;
}

/* DROP MODAL UP */
.rsfpmodal-container.rsfpopen.rsfpopened-dropup .rsfpmodal{
    opacity: 1;
    top: -100vh;
    left: 50%;
    transform: translate(-50%, 100vh);
    width: 96vw;
    height: 50vh;
    min-width: 300px;
    min-height: 300px;
    max-width: 100vw;
    border-radius: 0 0 0.5em 0.5em;

}
.rsfpmodal-container.rsfpopen.rsfpclosed-dropup .rsfpmodal{
    opacity: 1;
    top: -100vh;
    left: 50%;
    transform: translate(-50%, -100vh);
    width: 96vw;
    height: 50vh;
    min-width: 300px;
    min-height: 300px;
    max-width: 100vw;
    border-radius: 0 0 0.5em 0.5em;
}

/* SIDE MODAL RIGHT WITH FULL HEIGHT*/
.rsfpmodal-container.rsfpopen.rsfpopened-dropup.rsfpfullwidth .rsfpmodal,
.rsfpmodal-container.rsfpopen.rsfpclosed-dropup.rsfpfullwidth .rsfpmodal {
    width:100vw;
    border-radius:0;
}

/* DROP MODAL DOWN */
.rsfpmodal-container.rsfpopen.rsfpopened-dropdown .rsfpmodal{
    opacity: 1;
    bottom: -100vh;
    left: 50%;
    transform: translate(-50%, -100vh);
    width: 96vw;
    height: 50vh;
    min-width: 300px;
    min-height: 300px;
    max-width: 100vw;
    border-radius: 0.5em 0.5em 0 0;

}
.rsfpmodal-container.rsfpopen.rsfpclosed-dropdown .rsfpmodal{
    opacity: 1;
    bottom: -100vh;
    left: 50%;
    transform: translate(-50%, 100vh);
    width: 96vw;
    height: 50vh;
    min-width: 300px;
    min-height: 300px;
    max-width: 100vw;
    border-radius: 0.5em 0.5em 0 0;
}

/* SIDE MODAL RIGHT WITH FULL HEIGHT*/
.rsfpmodal-container.rsfpopen.rsfpopened-dropdown.rsfpfullwidth .rsfpmodal,
.rsfpmodal-container.rsfpopen.rsfpclosed-dropdown.rsfpfullwidth .rsfpmodal {
    width:100vw;
    border-radius:0;
}

/* ZOOM */
.rsfpmodal-container.rsfpopen.rsfpopened-zoom .rsfpmodal {
    top: 50%;
    left: 50%;
    opacity:1;
    width: 70vw;
    height:80vh;
}
.rsfpmodal-container.rsfpopen.rsfpclosed-zoom .rsfpmodal {
    top: 50%;
    left: 50%;
    opacity:0;
    width: 0;
    height:0;
}

.rsfpmodal-container.rsfpopen.rsfpclosed-zoom .rsfpmodal .rsfpmodal-close,
.rsfpmodal-container.rsfpopen.rsfpclosed-zoom .rsfpmodal .rsfpmodal-title {
    opacity:0;
}



