/**
 * FurryNestLab Real-Time Live Social Proof & Recent Purchases Toast Styles
 */

/* 1. Main Toast Container */
.fnl-social-proof-toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 340px;
    max-width: calc(100vw - 48px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    z-index: 99980;
    padding: 10px 14px;
    box-sizing: border-box;
    transform: translateX(-125%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    font-family: var(--font-body, 'DM Sans', -apple-system, sans-serif);
}

/* 2. Visible State */
.fnl-social-proof-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* 3. Automatic Concealment when Drawer Cart or Exit Modal is active */
body.fnl-drawer-open .fnl-social-proof-toast {
    display: none !important;
}

.fnl-exit-modal-overlay.is-active ~ .fnl-social-proof-toast {
    display: none !important;
}

/* 4. Link & Layout */
.fnl-sp-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.fnl-sp-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.fnl-sp-content {
    flex: 1;
    min-width: 0;
}

/* 5. Buyer Line */
.fnl-sp-buyer {
    font-size: 11.5px;
    font-weight: 700;
    color: #0d9488;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
}

.fnl-sp-check {
    background: #ccfbf1;
    color: #0f766e;
    font-size: 9.5px;
    font-weight: 900;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 6. Product Title */
.fnl-sp-product-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 2px 0 3px 0;
    line-height: 1.3;
}

.fnl-sp-link:hover .fnl-sp-product-title {
    color: #0d9488;
}

/* 7. Meta Line */
.fnl-sp-meta {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fnl-sp-dot {
    color: #cbd5e1;
    font-size: 8px;
}

.fnl-sp-badge {
    color: #059669;
    font-weight: 600;
}

/* 8. Close Button */
.fnl-sp-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    z-index: 5;
}

.fnl-sp-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

/* 9. Mobile Responsive Positioning (Elevated above Mobile Sticky Bar) */
@media (max-width: 640px) {
    .fnl-social-proof-toast {
        bottom: 76px;
        left: 16px;
        width: calc(100vw - 32px);
        max-width: 320px;
        padding: 9px 12px;
    }
    .fnl-sp-thumb {
        width: 46px;
        height: 46px;
    }
    .fnl-sp-buyer {
        font-size: 11px;
    }
    .fnl-sp-product-title {
        font-size: 12px;
    }
}
