/*
 * Modal
 */


/* Base class */
.modal {
    display: none;
    margin: 50px auto;
    width: 500px;
    color: #333;
    border: 1px solid #666;
    background-color: #fff;
    -webkit-box-shadow: 0 0 15px rgba(0,0,0,.5);
    -moz-box-shadow: 0 0 15px rgba(0,0,0,.5);
    box-shadow: 0 0 15px rgba(0,0,0,.5);
    overflow: hidden;
    z-index: 1000;
    position: relative;
}


/* Close button */
.modal .modal-close:before,
.modal .close:before { display: block;  content: "×"; }
.modal .modal-close,
.modal .close {
    position: absolute;
    top: 9px;
    right: 14px;
    font-weight: bold;
    font-size: 26px;
    line-height: 1em;
    color: #000;
    opacity: .3;
    filter: alpha(opacity=30);
}
.modal .modal-close:hover,
.modal .close:hover { opacity: .7; filter: alpha(opacity=70); }


/* Header */
.modal .modal-header    {
    background: #fafafa;
    border-bottom: 1px solid #f7f7f7;
    padding: 5px 20px;
    position: relative;
    min-height: 10px;
}
.modal .modal-header h3 { font-size: 20px; font-weight: bold; margin-right: 20px; }


/* Nav */
.modal > .nav { padding: 20px 20px 0; }


/* Content */
.modal .modal-content   { padding: 20px; }


/* Lock */
.modal .modal-lock {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: .2;
    filter: alpha(opacity=20);
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}


/* Footer */
.modal .modal-footer    { background: #fafafa; border-top: 1px solid #f7f7f7; padding: 15px 20px; }


/* Loader */
.modal-loader {
    display: none;
    width: 100px; height: 50px;
    margin: -25px 0 0 -50px;
    position: fixed;
    top: 50%; left: 50%;
    border-radius: 5px;
    background-color: #000;
    background: rgba(0,0,0,.8) url(../images/modal-loader.gif) 50% 50% no-repeat;
    z-index: 1001;
}
.modal-loader.modal-loader-text {
    background-image: none;
    color: #eee;
    text-align: center;
    font-size: 13px;
    line-height: 1.2em;
    padding: 15px;
    width: 300px;
    margin-left: -150px;
    height: auto;
}


/* Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA9JREFUeNpiYmBgaAAIMAAAjwCD5Hc2/AAAAABJRU5ErkJggg==);;
    background: rgba(0,0,0,.5);
    z-index: 999;
    overflow: auto;
}