.eglp-linked-anchor,
.eglp-linked-image {
    cursor: pointer;
}

html.eglp-popup-open {
    overflow: hidden;
}

.eglp-popup {
    align-items: center;
    background: rgba(8, 12, 18, 0.82);
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    padding: 24px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 999999;
}

.eglp-popup.is-open {
    display: flex;
}

.eglp-popup__panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    height: min(900px, 92vh);
    max-width: 1180px;
    overflow: hidden;
    position: relative;
    width: min(1180px, 94vw);
}

.eglp-popup__toolbar {
    align-items: center;
    background: #111827;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    min-height: 48px;
    padding: 8px 12px;
}

.eglp-popup__new-tab,
.eglp-popup__close {
    background: #fff;
    border: 0;
    border-radius: 6px;
    color: #111827;
    cursor: pointer;
    font: inherit;
    line-height: 1.2;
    padding: 9px 12px;
    text-decoration: none;
}

.eglp-popup__close {
    background: #e5e7eb;
}

.eglp-popup__frame {
    border: 0;
    flex: 1 1 auto;
    min-height: 360px;
    width: 100%;
}

.eglp-popup__fallback {
    bottom: 24px;
    display: none;
    left: 24px;
    position: absolute;
    right: 24px;
}

@media (max-width: 680px) {
    .eglp-popup {
        padding: 10px;
    }

    .eglp-popup__panel {
        height: 94vh;
        width: 96vw;
    }

    .eglp-popup__toolbar {
        justify-content: space-between;
    }

    .eglp-popup__new-tab,
    .eglp-popup__close {
        font-size: 14px;
        padding: 8px 10px;
    }
}
