
#modalframe{
    display: none;
    position: fixed;
    top:0;
    left:0;
    overflow: scroll;
    width:100%;
    height:100%;
    z-index: 10000;
}

#modalframe header{
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

#modalframe_close {
    position: absolute;
    right:28px;
    top:28px;
    overflow: hidden;
    text-indent: -9999px;
    background: url("jquery.modal-frame/close.png") no-repeat;
    width:30px;
    height:30px;
}

#modalframe_close:hover{
    opacity: 0.5;
}


#modalframe_wrapper{
    background:url("jquery.modal-frame/bg.png");
    min-height: 100%;
    box-sizing : border-box;
    position: relative;
    z-index:10002;
    padding:70px 0;
}

#modalframe_body{
    pointer-events:auto;
    position: relative;
    margin:0 auto;
    width:80%;
    max-width: 780px;
    padding:10px;
    background-color: #FFF;
    border-radius: 5px;
}

#modalframe_frame{
    border:none;
    width:100%;
    min-height: 100px;
}

#modalframe_div{
    padding:25px;
}

body.modalframe_opened {
    overflow: hidden;
}


@media screen and (max-width: 480px){
    #modalframe header{
        margin-bottom: 10px;
        text-align: center;
        font-weight: bold;
    }
    #modalframe_close {
        width:20px;
        height:20px;
        right:5px;
        top:5px;
        background-size: 100%;
    }
    #modalframe_body{
        padding:10px;
    }
    #modalframe_div{
        padding:0px;
    }
    #modalframe_div p:last-child{
        margin-bottom: 0;
    }
}
