html.sip-popup-open,
body.sip-popup-open {
    overflow: hidden !important;
}

#sip-popup-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100dvh !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0,0,0,0.94) !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    z-index: 2147483647 !important;
}

#sip-popup-overlay.sip-visible {
    display: flex !important;
}

#sip-popup-image {
    display: block !important;
    max-width: calc(100vw - 40px) !important;
    max-height: calc(100vh - 40px) !important;
    max-height: calc(100dvh - 40px) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: auto !important;
}

#sip-popup-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
    font-size: 34px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 2147483647 !important;
    padding: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

@media (max-width: 767px) {
    #sip-popup-overlay {
        padding: 16px !important;
    }

    #sip-popup-image {
        max-width: calc(100vw - 32px) !important;
        max-height: calc(100vh - 32px) !important;
        max-height: calc(100dvh - 32px) !important;
    }

    #sip-popup-close {
        top: 12px !important;
        right: 12px !important;
    }
}