.document-store-download-popup__overlay {
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    inset: 0;
    position: absolute;
    z-index: 0;
}

.document-store-download-popup {
    inset: 0;
    position: fixed;
    z-index: 100;
}

.document-store-download-popup__wrapper {
    align-items: center;
    display: flex;
    height: 100%;
    inset: 0;
    justify-content: center;
    padding: 1.5rem;
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.document-store-download-popup__inner {
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: calc(100vh - 3rem);
    max-width: min(500px, calc(100vw - 3rem));
    overflow: hidden;
    position: relative;
    padding-top: calc(3rem - 30px);
    width: 100%;
    pointer-events: auto;

    iframe {
        border: 0;
        display: block;
        height: min(75vh, 720px);
        margin: 0 auto;
        max-width: 500px;
        width: 100%;
    }
}

.document-store-download-popup__close {
    align-items: center;
    appearance: none;
    background: rgba(17, 24, 39, 0.85);
    border: 0;
    border-radius: 9999px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.25rem;
    height: 2.25rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    width: 2.25rem;
    z-index: 2;

    &:hover {
        background: rgba(17, 24, 39, 0.95);
    }

    &:focus-visible {
        outline: 2px solid var(--wp--preset--color--custom-color-a, #544587);
        outline-offset: 2px;
    }
}
