#cpm-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9998;
}

#cpm-popup-overlay.active {
    display: block;
}

#cpm-popup-container {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
}

/* Custom scrollbar styling */
#cpm-popup-container::-webkit-scrollbar {
    width: 12px;
}

#cpm-popup-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

#cpm-popup-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

#cpm-popup-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.cpm-modal { 
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    width: 100%;
    background: transparent;
    pointer-events: none;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cpm-modal .cpm-modal-content { 
    background: #fff; 
    padding: 20px; 
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    position: relative;
    width: 100%;
    pointer-events: auto;
}

.cpm-modal .cpm-close { 
    position: absolute; 
    top: 10px; 
    right: 15px; 
    font-size: 24px; 
    cursor: pointer;
    font-weight: 700;
    color: #212529;
    line-height: 1;
    padding: 5px;
}