.wpem-modal {
    position: fixed !important;
    z-index: 2147483647 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    isolation: isolate;
}

.wpem-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    visibility: visible !important;
    opacity: 1 !important;
}

.wpem-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wpem-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.wpem-modal-close:hover {
    color: #000;
}

.wpem-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

@media screen and (max-width: 768px) {
    .wpem-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .wpem-modal-header {
        padding: 15px;
    }
    
    .wpem-modal-body {
        padding: 15px;
    }
}
