/* Zenith Global Pay Styles */
.zenith-globalpay-checkout {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.zenith-payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.zenith-customer-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.zenith-form-group {
    display: flex;
    flex-direction: column;
}

.zenith-form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.zenith-form-group input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.zenith-course-info {
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.zenith-course-info h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.zenith-payment-actions {
    text-align: center;
}

/* Button Styles */
.zenith-pay-button {
    background: #007cba;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.zenith-pay-button:hover {
    background: #005a87;
}

.zenith-pay-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.zenith-pay-button-course {
    background: #28a745;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin: 10px 5px;
}

.zenith-pay-button-course:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* LearnDash Integration */
.btn-zenith-globalpay {
    background: #28a745 !important;
    border-color: #28a745 !important;
}

.btn-zenith-globalpay:hover {
    background: #218838 !important;
    border-color: #1e7e34 !important;
}

/* Modal Styles */
.zenith-payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

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

.zenith-modal-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.zenith-modal-header h3 {
    margin: 0;
    flex: 1;
}

.zenith-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.zenith-modal-body {
    padding: 20px;
}

.zenith-status-message {
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.zenith-error {
    background: #ffeaea;
    color: #d63638;
    border: 1px solid #d63638;
}

.zenith-success {
    background: #ecf7ed;
    color: #00a32a;
    border: 1px solid #00a32a;
}

.zenith-info {
    background: #e1f5fe;
    color: #0073aa;
    border: 1px solid #0073aa;
}

/* Responsive design */
@media (max-width: 768px) {
    .zenith-customer-details {
        grid-template-columns: 1fr;
    }
    
    .zenith-globalpay-checkout {
        margin: 10px;
        padding: 15px;
    }
    
    .zenith-modal-content {
        width: 95%;
        margin: 20px auto;
    }
}

/* LearnDash course button alignment */
.ld-course-buttons .zenith-payment-button-wrapper {
    display: inline-block;
    margin: 0 10px;
}