/* YabandPay Payment Polling Styles */

#yabandpay-status-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 9999;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: none;
}

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

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

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

/* Order status display updates */
.payment-paid .woocommerce-order-status,
.payment-paid .order-status {
    color: #28a745;
    font-weight: bold;
}

.payment-expired .woocommerce-order-status,
.payment-expired .order-status {
    color: #dc3545;
    font-weight: bold;
}

.payment-pending .woocommerce-order-status,
.payment-pending .order-status {
    color: #ffc107;
    font-weight: bold;
}

/* Polling indicator */
.yabandpay-polling-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0073aa;
    animation: pulse 1.5s infinite;
    margin-right: 8px;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hide polling indicator when polling stops */
.polling-stopped .yabandpay-polling-indicator {
    display: none;
}

/* Ensure jQuery compatibility */
.jquery-ready .yabandpay-polling {
    /* jQuery-specific styles if needed */
} 