.ow-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}
.ow-popup.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.ow-popup__overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,.72);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.ow-popup__dialog {
    position: relative; z-index: 2;
    width: min(100%, var(--ow-popup-width, 900px));
    max-height: calc(100vh - 48px); overflow: auto;
    border-radius: 12px; background: #fff;
    box-shadow: 0 24px 80px rgba(0,0,0,.28);
    transform: translateY(18px) scale(.985); opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
    -webkit-overflow-scrolling: touch;
}
.ow-popup.is-open .ow-popup__dialog { transform: translateY(0) scale(1); opacity: 1; }
.ow-popup__content { position: relative; min-height: 1px; }
.ow-popup__close {
    position: absolute; top: 12px; right: 12px; z-index: 999;
    width: 38px; height: 38px; border: 0; border-radius: 999px;
    background: rgba(0,0,0,.72); color: #fff; font-size: 28px;
    line-height: 34px; font-family: Arial,sans-serif; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.ow-popup__close:hover,.ow-popup__close:focus { background:#000;color:#fff;outline:none; }
body.ow-popup-open { overflow: hidden !important; }
.ow-popup-trigger { cursor: pointer; }
@media (max-width:767px){
    .ow-popup{padding:14px}
    .ow-popup__dialog{width:100%;max-height:calc(100vh - 28px);border-radius:10px}
    .ow-popup__close{top:8px;right:8px;width:34px;height:34px;font-size:25px}
}
