.ipe-popups {
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.ipe-popups.active {
    display: flex;
}
.ipe-popups-background {
    background: #00000088;
}


.ipe-popup {
    display: none;
    position: relative;
    background: black;
    color: white;
}
.ipe-popup.active {
    display: block;
}

.ipe-popup-close-button {
    position: relative;
    width:64px;
    height: 64px;
    cursor:pointer;
}

.ipe-popup-close-button-background {
    display: block;
    background: white;
    width:64px;
    height: 64px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}
.ipe-popup-close-button:hover .ipe-popup-close-button-background {
    transform: scale(1.0937);
}

.ipe-popup-close-button span {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    background: black;
    width:30px;
    height: 2px;
}

.ipe-popup-close-button span:nth-of-type(2) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.ipe-popup-close-button span:nth-of-type(1) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.ipe-popup.ipe-placement-top .ipe-popup-content {
    display: flex;
    padding: 50px 20px;
    max-width: 1350px;
}

.ipe-popup-cta-buttons {
    white-space: nowrap;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}

.wp-block-button:not(:first-of-type) {
    margin-top:10px;
}

/**/
.ipe-popup.ipe-placement-top {
    position: absolute;
    top:0;
    left:0;
    right:0;
    width:100%;
}

.ipe-popup.ipe-placement-top .ipe-popup-content .ipe-popup-heading {
    flex: 1 0 auto;
    padding-right: 8%;
}

.ipe-popup.ipe-placement-top .ipe-popup-content p {
    flex: auto;
    padding-right: 8%;
}

.ipe-popup.ipe-placement-top .ipe-popup-content {
    justify-content: space-between;
    align-items: center;
    margin: auto;
    width: 100%;
}

.ipe-popup.ipe-placement-top .ipe-popup-close-button {
    position: absolute;
    top:25px;
    right:45px;
}

@media screen AND (max-width:767px){
    .ipe-popup.ipe-placement-top .ipe-popup-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .ipe-popup-close-button {
        width:  50px;
        height: 50px;
    }
    .ipe-popup-close-button-background {
        width:  50px;
        height: 50px;
    }
    .ipe-popup-close-button span {
        width:  25px;
    }
    .ipe-popup.ipe-placement-top .ipe-popup-close-button {
        top:7px;
        right:22px;
    }
}