/**
 * Abspedia Social Proof Styles
 * Premium Modern Marketplace UI Upgrade
 */

.absp-social-proof-wrap {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
}

/* Desktop position - Left Bottom */
@media (min-width: 769px) {
    .absp-social-proof-wrap {
        bottom: 30px;
        left: 30px;
        width: 360px;
    }
}

/* Mobile position - Above bottom nav */
@media (max-width: 768px) {
    .absp-social-proof-wrap {
        bottom: 110px;
        /* Precise gap above mobile bottom nav */
        left: 15px;
        right: 15px;
        width: auto;
    }
}

.absp-social-proof-popup {
    position: relative;
    display: flex;
    align-items: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    pointer-events: auto;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
    animation: absp-sp-slide-up 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    user-select: none;
    -webkit-user-drag: none;
}

.absp-social-proof-popup.hide {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s ease;
}

/* Thumbnail */
.absp-sp-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin-right: 14px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.absp-sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content */
.absp-social-proof-content {
    flex: 1;
    min-width: 0;
}

.absp-sp-buyer {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.absp-sp-product {
    display: block;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Verified Badge */
.absp-sp-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #10b981;
    /* Green */
    margin-top: 4px;
}

.absp-sp-time {
    font-size: 11px;
    color: var(--muted);
    margin-left: auto;
    opacity: 0.8;
}

/* Close Button */
.absp-social-proof-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: var(--text);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.absp-social-proof-popup:hover .absp-social-proof-close {
    opacity: 0.6;
}

.absp-social-proof-close:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.1);
}

/* Progress Bar */
.absp-social-proof-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--abspedia-blue), var(--abspedia-green));
    width: 0;
    transition: width linear;
}

/* Animations */
@keyframes absp-sp-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Fixes */
@media (max-width: 480px) {
    .absp-sp-thumb {
        width: 50px;
        height: 50px;
    }

    .absp-sp-buyer {
        font-size: 13px;
    }

    .absp-sp-product {
        font-size: 12px;
    }
}