/* PP Courses PayPing Plugin Styles */
.ppcp-wrap {
    margin: 20px 0;
}

.ppcp-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.ppcp-btn:hover {
    background: #005a87;
}

.ppcp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppcp-modal-inner {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    direction: rtl;
}

.ppcp-modal-inner label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.ppcp-modal-inner input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.ppcp-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.ppcp-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.ppcp-pay {
    background: #28a745;
    color: white;
}

.ppcp-pay:hover {
    background: #218838;
}

.ppcp-close {
    background: #6c757d;
    color: white;
}

.ppcp-close:hover {
    background: #5a6268;
}

.ppcp-msg {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.ppcp-msg.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ppcp-msg.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ppcp-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* RTL Support */
[dir="rtl"] .ppcp-modal-inner {
    text-align: right;
}

[dir="rtl"] .ppcp-actions {
    justify-content: flex-start;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .ppcp-modal-inner {
        padding: 20px;
        margin: 20px;
    }
    
    .ppcp-btn {
        width: 100%;
        padding: 15px;
    }
    
    .ppcp-actions {
        flex-direction: column;
    }
    
    .ppcp-actions button {
        width: 100%;
        margin-bottom: 10px;
    }
}
