.wp-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-popup[hidden] {
    display: none !important;
}

.wp-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    cursor: pointer;
}

.wp-popup__inner {
    position: relative;
    background: #fff;
    max-width: min(90vw, 720px);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 4px;
    z-index: 1;
    animation: wp-popup-in .2s ease;
}

.wp-popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    margin-right: 0!important;
    min-height: inherit!important;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    z-index: 2;
    color: inherit;
}

.wp-popup__close:focus-visible {
    outline: none;
}

.wp-popup__content {
    padding: 32px;
}

@keyframes wp-popup-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wp-popup__inner {
        animation: none;
    }
}
