/**
 * TruniPay Frontend Styles
 */

/* Payment Form */
#trunipay_payment_form {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

#trunipay_payment_form .button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#trunipay_payment_form .button:hover {
    background: #005a87;
}

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

/* Loading States */
.trunipay-loading {
    position: relative;
    overflow: hidden;
}

.trunipay-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Payment Method Description */
.payment_method_trunipay .payment_box {
    background: #f0f8ff;
    border: 1px solid #c3d9ed;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

.payment_method_trunipay .payment_box p {
    margin: 0 0 10px 0;
    color: #333;
}

/* Security Badge */
.trunipay-security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    padding: 10px;
    background: #f0f8ff;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

.trunipay-security-icon {
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTggMUwxNCA0VjEwQzE0IDEyLjIwOTEgMTIuMjA5MSAxNCA4IDE0UzIgMTIuMjA5MSAyIDEwVjRMOCAxWiIgc3Ryb2tlPSIjNGY5NDZlIiBzdHJva2Utd2lkdGg9IjEuNSIgZmlsbD0ibm9uZSIvPgo8L3N2Zz4K') no-repeat center;
}

/* Error Messages */
.trunipay-error {
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    color: #d32f2f;
}

/* Success Messages */
.trunipay-success {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    color: #2e7d32;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #trunipay_payment_form {
        padding: 15px;
        margin: 15px 0;
    }
    
    #trunipay_payment_form .button {
        width: 100%;
        padding: 15px;
        font-size: 18px;
    }
    
    .trunipay-security-info {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}