/* Popup */

body.modal-fullscreen {
    overflow: hidden !important;
}

#modal-overlay {
    position: fixed;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    cursor: pointer;
}

#modal-header {
    font-family: 'Open Sans', sans-serif;
    background-color: #FFFFFF;
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 50px;
    padding: 10px 50px 10px 20px;
    box-sizing: border-box;
    font-size: 19px;
    line-height: 30px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    color: #252525;
    text-shadow: none !important;
}

.is-rtl #modal-header {
    padding: 10px 20px 10px 50px;
    text-align: right;
}

#modal-close {
    border: none;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: #FFFFFF url(framebox/icon-cross.svg) no-repeat center center;
    background-size: 20px 20px;
    cursor: pointer;
}

.is-rtl #modal-close {
    right: auto;
    left: 0px;
}

#modal-close:hover {
    background-color: #EEEEEE;
}

#modal-window {
    box-shadow: 0px 0px 15px -3px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 50px;
    left: 50px;
    bottom: 50px;
    right: 50px;
    z-index: 1001;
}

#modal-workspace {
    background: #FFFFFF url(framebox/loading.gif) no-repeat center center;
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 50px;
    right: 0px;
}

body.modal-fullscreen #modal-window {
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
}

#modal-iframe, #modal-content {
    position: absolute;
    box-sizing: border-box;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    border: none;
}
