.eip-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
}

.eip-popup-overlay.eip-is-visible {
    display: flex;
}

.eip-popup-dialog {
    position: relative;
    max-width: min(92vw, 900px);
    max-height: 90vh;
}

.eip-popup-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.eip-popup-close {
    position: absolute;
    top: -14px;
    right: -14px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #000 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.eip-popup-close:hover,
.eip-popup-close:focus,
.eip-popup-close:active {
    background: #fff !important;
    color: #000 !important;
    border: 0 !important;
    outline: none;
}

.eip-popup-close:focus-visible {
    outline: 2px solid #000 !important;
    outline-offset: 2px;
}

body.eip-popup-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .eip-popup-overlay {
        padding: 18px;
    }

    .eip-popup-close {
        top: -10px;
        right: -8px;
    }
}
