body.nfprivacy-modal-open {
    overflow: hidden;
}

#nfprivacy-modal-dimm {
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba( 0, 0, 0, .5 );
    visibility:hidden;
    opacity: 0;
    z-index: 99998;

    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out; 
}

body.nfprivacy-modal-open #nfprivacy-modal-dimm {
    visibility:visible;
    opacity: 1;
}

#nfprivacy-modal {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    visibility:hidden;
    z-index: 99999;
    width: auto;
    background-color: white;
    margin-left: auto;
    margin-right: auto;
    overflow-y: scroll;
    opacity: 0;
    margin-top: -100%;

    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out; 
}

@media (max-width: 1024px) {
    #nfprivacy-modal {
        top: 0px;
        left: 0px;
        right: 0px;
        bottom: 0px;
        width: 100%;
        height: 100%;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        opacity: 0;
        padding-bottom: 50px!important;
    }

    #nfprivacy-modal.modal-body {
        padding-bottom: 50px!important;
    }
}

.nfprivacy-modal-scrollmessage {
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background-color: white;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #EEEEEE;
}

body.nfprivacy-modal-open #nfprivacy-modal {
    visibility:visible;
    opacity: 1;
    margin-top: 0;

    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out; 
}

@media (min-width: 1024px) { 
    #nfprivacy-modal {
        left: 0px;
        right: 0px;
        width: 50%;
    }

    .nfprivacy-modal-scrollmessage {
        left: 0px;
        right: 0px;
        width: 50%;
        bottom: 20px;
        margin-left: auto;
        margin-right: auto;
    }
}

.nfprivacy-modal-body-inner {
    padding: 20px;
    font-size: 15px;
    line-height: 20px;
    margin-bottom: 20px;

}

.nfprivacy-modal-close {
    cursor: pointer;
}

.nfprivacy-modal-close-top {

}

.nfprivacy-modal-close-top {
    text-align: right;
    padding: 20px;
    position: absolute;
    top: 0px;
    right: 0px;
    left: auto;
    padding: 20px;
    background-color: white;
}

@media (min-width: 1024px) {
    .nfprivacy-modal-close-top {
        position: absolute;
        top: 20px;
        right: 20px;
        left: auto;
        padding: 0;
    }
}

.nfprivacy-modal-close-bottom {
    text-align: center;
    padding: 20px;
}

.nfprivacy-modal-body-inner h1 {
    text-align: center;
    margin-bottom: 20px;
}

body.nfprivacy-modal-mustread .nfprivacy-modal-close-top {
}
