/**
 * Loya Payment Gateway - Checkout Styles
 * Professional styling for payment option and cashback display
 */

/* Payment Method Label */
.wc_payment_method.payment_method_loya label {
    display: flex;
    align-items: center;
    font-weight: 500;
}

/* Loya Icon */
.loya-payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 8px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    color: white;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Payment Method Description */
.payment_box.payment_method_loya {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px;
}

.payment_box.payment_method_loya p {
    margin: 0 0 12px 0;
    color: #555;
    line-height: 1.6;
}

/* Cashback Highlight Box */
.loya-cashback-highlight {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    border-left: 4px solid #4CAF50;
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 12px;
}

.loya-cashback-highlight strong {
    color: #2e7d32;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.loya-cashback-highlight .cashback-amount {
    color: #4CAF50;
    font-weight: 700;
    font-size: 18px;
}

.loya-cashback-highlight small {
    color: #666;
    display: block;
    margin-top: 4px;
    font-size: 13px;
}

/* Dynamic Cashback Banner (shows after selection) */
.loya-cashback-banner {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    border: 1px solid #a5d6a7;
    padding: 14px 16px;
    margin: 12px 0;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.1);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loya-cashback-banner strong {
    color: #2e7d32;
    font-size: 16px;
}

.loya-cashback-banner .cashback-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    margin-right: 6px;
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .loya-cashback-highlight {
        padding: 10px 12px;
    }

    .loya-cashback-banner {
        padding: 12px;
    }

    .loya-payment-icon {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
}

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

/* Success checkmark animation */
.loya-checkmark {
    display: inline-block;
    animation: checkmark 0.5s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

