/* Unified Payment Plugin Styles */

/* Common Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

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

/* Amount Input Wrapper */
.amount-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
}

.currency-symbol {
    color: #666;
    font-weight: 600;
    padding: 0 8px;
    background-color: #f8f9fa;
    border-radius: 3px;
    font-size: 14px;
}

.amount-input-wrapper input {
    border: none !important;
    flex: 1;
    padding: 8px 12px !important;
    background: transparent;
}

/* Amount Display */
.amount-display {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

/* Message Styles */
.unified-payment-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: 600;
}

.unified-payment-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.unified-payment-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.unified-payment-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Modal Styles */
.unified-payment-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.unified-payment-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.unified-payment-close-container {
    text-align: right;
    margin-bottom: 20px;
}

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

.unified-payment-close:hover {
    color: #000;
}

/* Payment Choice Buttons */
.payment-choice-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.payment-choice-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.payment-choice-button:hover {
    border-color: #9A1515;
    background-color: #f8f9fa;
}

.payment-choice-button.active {
    border-color: #9A1515;
    background-color: #f7dddd8c;
}

.payment-choice-button-icon {
    margin-bottom: 10px;
}

.payment-choice-button span {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Form Container */
#unified-payment-form-container {
    min-height: 300px;
}

/* Individual Payment Form Containers */
.azampay-payment-form-container,
.pesapal-payment-form-container {
    margin-bottom: 20px;
}

/* Button Styles */
.azampay-buy-button,
.pesapal-buy-button,
.unified-payment-button,
.payment-button.payment-button {
    background-color: #9A1515;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.azampay-buy-button:hover,
.pesapal-buy-button:hover,
.unified-payment-button:hover, 
.payment-button.payment-button:hover{
    background-color: #790606;
}

/* PesaPal Iframe Container */
.pesapal-iframe-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .unified-payment-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .payment-choice-container {
        flex-direction: column;
    }
    
    .payment-choice-button {
        margin-bottom: 10px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error States */
.form-success {
    border-color: #28a745;
}

.form-error {
    border-color: #dc3545;
}

/* Animation for modal */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.unified-payment-modal.show {
    display: block;
}

.unified-payment-modal-content {
    animation: modalFadeIn 0.3s ease-out;
} 