/* ============================================
   SOCIAL PROOF POPUP
   Bottom-left floating notification
   ============================================ */

.sp-widget {
    position: fixed;
    left: 20px;
    bottom: 90px; /* Above TrustedForm badge (which is ~60px tall) */
    z-index: 9000;
    
    width: 340px;
    max-width: calc(100vw - 40px);
    
    background: #ffffff;
    border: 1px solid var(--be-border, #dde2eb);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(13, 31, 60, 0.15);
    
    padding: 16px 40px 16px 18px;
    
    /* Hidden by default */
    opacity: 0;
    transform: translateX(-110%);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a2332;
}

/* Visible state */
.sp-widget.sp-visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Close button */
.sp-widget .sp-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #6b7a99;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    padding: 0;
    font-family: inherit;
}

.sp-widget .sp-close:hover {
    background: #f5f7fa;
    color: #1a2332;
}

/* Content */
.sp-widget .sp-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sp-widget .sp-title {
    font-size: 14px;
    font-weight: 700;
    color: #0d1f3c;
    line-height: 1.3;
    padding-right: 4px;
}

.sp-widget .sp-line {
    font-size: 13px;
    font-weight: 500;
    color: #1a2332;
    line-height: 1.3;
}

.sp-widget .sp-time {
    font-size: 11px;
    color: #6b7a99;
    margin-top: 2px;
    font-weight: 500;
}

/* ============================================
   📱 MOBILE
   ============================================ */
@media (max-width: 480px) {
    .sp-widget {
        left: 12px;
        right: 12px;
        bottom: 75px;
        width: auto;
        max-width: none;
        padding: 12px 36px 12px 14px;
        border-radius: 10px;
    }

    .sp-widget .sp-title {
        font-size: 13px;
    }

    .sp-widget .sp-line {
        font-size: 12px;
    }

    .sp-widget .sp-time {
        font-size: 10px;
    }

    .sp-widget .sp-close {
        width: 22px;
        height: 22px;
        font-size: 18px;
        top: 6px;
        right: 6px;
    }
}

/* ============================================
   💡 SMALL DESKTOP
   ============================================ */
@media (max-width: 768px) and (min-width: 481px) {
    .sp-widget {
        width: 300px;
        bottom: 80px;
    }
}

/* ============================================
   ♿ REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .sp-widget {
        transition: opacity 0.15s ease;
        transform: none;
    }
    .sp-widget.sp-visible {
        transform: none;
    }
}