body.ppm-modal-open {
    overflow: hidden;
}

.ppm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ppm-modal-overlay.ppm-show {
    opacity: 1;
    visibility: visible;
}

.ppm-modal {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.ppm-modal-overlay.ppm-show .ppm-modal {
    transform: scale(1);
}

.ppm-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.ppm-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    text-align: center;
}

.ppm-modal-body {
    padding: 24px;
}

.ppm-modal-content {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 16px;
}

.ppm-modal-content p {
    margin: 0 0 12px 0;
}

.ppm-modal-content p:last-child {
    margin-bottom: 0;
}

.ppm-read-more {
    margin-top: 16px;
    text-align: center;
}

.ppm-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.ppm-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.ppm-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.ppm-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.ppm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ppm-btn:active {
    transform: translateY(0);
}

.ppm-btn-agree {
    background-color: #28a745;
    color: #ffffff;
}

.ppm-btn-agree:hover {
    background-color: #218838;
}

.ppm-btn-decline {
    background-color: #6c757d;
    color: #ffffff;
}

.ppm-btn-decline:hover {
    background-color: #5a6268;
}

@keyframes ppm-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.ppm-shake {
    animation: ppm-shake 0.5s ease-in-out;
}

@media screen and (max-width: 480px) {
    .ppm-modal {
        width: 95%;
        margin: 10px;
    }
    
    .ppm-modal-header {
        padding: 16px 20px;
    }
    
    .ppm-modal-title {
        font-size: 18px;
    }
    
    .ppm-modal-body {
        padding: 20px;
    }
    
    .ppm-modal-content {
        font-size: 14px;
    }
    
    .ppm-modal-footer {
        padding: 12px 20px 20px;
        flex-direction: column;
    }
    
    .ppm-btn {
        width: 100%;
        padding: 14px 24px;
    }
}

@media (prefers-color-scheme: dark) {
    .ppm-modal {
        background-color: #2d2d2d;
    }
    
    .ppm-modal-header {
        background-color: #3d3d3d;
        border-bottom-color: #4d4d4d;
    }
    
    .ppm-modal-title {
        color: #ffffff;
    }
    
    .ppm-modal-content {
        color: #cccccc;
    }
}
