#ae-exit-notifier-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    overflow: hidden;
    font-family:'Merriweather', serif;;
}

.ae-exit-notifier-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.ae-exit-notifier-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 750px;
    max-width: 90%;
    max-height: 70vh; 
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 
    display: flex;
    flex-direction: column;
}

.ae-exit-notifier-header {
    padding: 10px 20px;
    background: #ccc;
    position: sticky; 
    top: 0;
    z-index: 1;
}

.ae-exit-notifier-header h2 {
    margin: 0;
    padding: 0;
    font-size: 1.2rem; 
}

.ae-exit-notifier-message {
    padding: 20px;
    overflow-y: auto;
}

.ae-exit-notifier-actions {
    padding: 10px 20px;
    text-align: center;
    position: sticky; 
    bottom: 0;
    background: #fff;
    z-index: 1;
}

#ae-exit-notifier-modal .ae-exit-notifier-message {
    white-space: pre-line;
}

.ae-exit-notifier-content button,
.ae-exit-notifier-content a {
    margin: 10px;
    color: #fff;
    padding: 10px 47px;
    border: none;
    border-radius: 35px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem; 
    min-width: 100px; 
}

@media (max-width: 480px) {
    .ae-exit-notifier-content button,
    .ae-exit-notifier-content a {
        display: block;
        width: calc(100% - 40px);
        margin: 10px auto;
    }
    
    .ae-exit-notifier-header h2 {
        font-size: 1.1rem;
    }
    
    .ae-exit-notifier-message {
        padding: 15px 15px 0;
    }
}

#ae-exit-notifier-cancel {
    padding: 10px 47px;
}

#ae-exit-notifier-proceed {

}