/**
 * WPFOK Checkout Fraud Check Styles
 * Simple branded courier score badge.
 * Brand color: #8f00ff (violet)
 *
 * @package WPFOK
 */

/* ═══ Container ═══ */
.wpfok-checkout-fraud-wrap {
    margin: 8px 0 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.25s ease;
}

/* ═══ Checking State ═══ */
.wpfok-cf-badge-checking {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(143, 0, 255, 0.06);
    border: 1px solid rgba(143, 0, 255, 0.15);
    font-size: 13px;
    font-weight: 500;
    color: #8f00ff;
}

.wpfok-cf-badge-checking .wpfok-cf-spin {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(143, 0, 255, 0.2);
    border-top-color: #8f00ff;
    border-radius: 50%;
    animation: wpfok-cf-spin 0.6s linear infinite;
    flex-shrink: 0;
}

@keyframes wpfok-cf-spin {
    to { transform: rotate(360deg); }
}

/* ═══ Score Badge — Success (score >= threshold) ═══ */
.wpfok-cf-badge-success {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(143, 0, 255, 0.08), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(143, 0, 255, 0.2);
    font-size: 13px;
    font-weight: 600;
    color: #7c3aed;
}

.wpfok-cf-badge-success .wpfok-cf-check {
    width: 16px;
    height: 16px;
    background: #8f00ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
    color: #fff;
    line-height: 1;
}

/* ═══ Score Badge — Warning (score < threshold but not blocked) ═══ */
.wpfok-cf-badge-warning {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    font-size: 13px;
    font-weight: 600;
    color: #d97706;
}

/* ═══ Score Badge — Blocked ═══ */
.wpfok-cf-badge-blocked {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
}

.wpfok-cf-badge-blocked .wpfok-cf-blocked-detail {
    font-size: 12px;
    font-weight: 400;
    color: #b91c1c;
}

/* ═══ No History Badge ═══ */
.wpfok-cf-badge-nohistory {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(143, 0, 255, 0.05);
    border: 1px solid rgba(143, 0, 255, 0.12);
    font-size: 13px;
    font-weight: 500;
    color: #7c3aed;
}

/* ═══ Invalid Phone ═══ */
.wpfok-cf-badge-invalid {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
    font-size: 13px;
    font-weight: 500;
    color: #b45309;
}

/* ═══ Advance Payment Required Badge (Fraud → Force Advance) ═══ */
.wpfok-cf-badge-advance-pay {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(143, 0, 255, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 13px;
    font-weight: 600;
    color: #6366f1;
    line-height: 1.4;
    animation: wpfok-cf-adv-fade-in 0.3s ease;
}

.wpfok-cf-badge-advance-pay .wpfok-cf-money-icon {
    font-size: 18px;
    flex-shrink: 0;
}

@keyframes wpfok-cf-adv-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
