.nwd-popup-lock{overflow:hidden !important;}
.nwd-popup-overlay{
    position:fixed;
    inset:0;
    z-index:999999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:15px;
    background:rgba(0,0,0,.62);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .2s ease,visibility .2s ease;
}
.nwd-popup-overlay.nwd-popup-visible{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}
.nwd-popup-box{
    position:relative;
    max-height:calc(100vh - 30px);
    overflow:auto;
    background:#fff;
    border-radius:5px;
    box-shadow:0 15px 50px rgba(0,0,0,.30);
    transform:translateY(12px) scale(.98);
    transition:transform .2s ease;
}
.nwd-popup-visible .nwd-popup-box{transform:translateY(0) scale(1);}
.nwd-popup-inner{padding:24px;}
.nwd-popup-close{
    position:absolute;
    top:7px;
    right:9px;
    z-index:5;
    width:34px;
    height:34px;
    padding:0;
    border:0;
    border-radius:50%;
    background:#111;
    color:#fff;
    font-size:25px;
    line-height:32px;
    text-align:center;
    cursor:pointer;
}
.nwd-popup-close:hover{background:#333;}
.nwd-popup-content-image{
    display:block;
    max-width:100%;
    height:auto;
    margin:0 auto 18px;
}
.nwd-popup-content img{max-width:100%;height:auto;}
.nwd-popup-content iframe{max-width:100%;}
.nwd-popup-content form{max-width:100%;}
.nwd-popup-button{cursor:pointer;}
.nwd-popup-trigger-image{display:block;max-width:100%;height:auto;}
@media (max-width:600px){
    .nwd-popup-overlay{padding:10px;}
    .nwd-popup-inner{padding:18px;}
    .nwd-popup-close{top:5px;right:5px;}
}
