.marketing-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / .75);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out
}

.marketing-popup-overlay.show {
    opacity: 1
}

.marketing-popup-modal {
    position: relative;
    background-color: #fff;
    max-width: 900px;
    width: 90%;
    max-height: 75vh;
    border-radius: 12px;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgb(0 0 0 / .3);
    transform: scale(.9);
    transition: transform 0.3s ease-in-out
}

.marketing-popup-overlay.show .marketing-popup-modal {
    transform: scale(1)
}

.marketing-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    background: #04606b;
    border-radius:50%;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.2s ease
}

.marketing-popup-close:hover {
    opacity: .7
}

.marketing-popup-close-icon {
    font-size: 30px;
    line-height: 1;
    color: white;
    font-weight: 700
}

.marketing-popup-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0
}

.marketing-popup-image {
    text-align: center;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 2/3;
    object-fit: cover
}

.marketing-popup-text {
    padding: var(--wp--preset--spacing--medium);
    flex: 1 0 47%
}

.marketing-popup-text p {
    margin-bottom: 15px
}

.marketing-popup-text p:last-child {
    margin-bottom: 0
}

.marketing-popup-button-wrapper {
    text-align: center;
}

.marketing-popup-button {
    display: inline-block;
    padding: var(--wp--preset--spacing--small) var(--wp--preset--spacing--medium);
    background-color: var(--wp--preset--color--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.2s ease
}

.marketing-popup-button:hover {
    background-color: #000;
    color: #fff;
    text-decoration: none
}

@media (max-width: 768px) {
    .marketing-popup-modal {
        width:95%;
        max-height: 80vh;
    }

    .marketing-popup-content {
        flex-direction: column;
    }

    .marketing-popup-image {
        flex: 1 0 auto;
        min-height: 300px;
        border-top: 2px solid black;
        order: 2;
    }

    .marketing-popup-text {
        flex: 1 0 auto;
    }

    .marketing-popup-close {
        top: 5px;
        right: 5px
    }
}
