/* === DE Social Proof Frontend Styles === */

/* Recent Sales Popup */
.desp-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99999;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    padding: 14px 40px 14px 14px;
    max-width: 340px;
    transform: translateX(-120%);
    transition: transform .5s cubic-bezier(.4,0,.2,1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.desp-popup.desp-show {
    transform: translateX(0);
}
.desp-popup-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
}
.desp-popup-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}
.desp-popup-img img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
}
.desp-popup-title {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #1a1a1a;
    line-height: 1.3;
}
.desp-popup-meta {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* Live Visitors */
.desp-live-visitors {
    display: inline-flex;
    align-items: center;
    background: #f0fdf4;
    color: #15803d;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}
.desp-visitor-count {
    transition: all .3s ease;
}

/* Sales Count Badge */
.desp-sales-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-top: 6px;
}

/* Stock Urgency */
.desp-urgency {
    margin: 14px 0;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}
.desp-urgency-text {
    font-size: 14px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 8px;
}
.desp-urgency-bar {
    height: 8px;
    background: #fee2e2;
    border-radius: 4px;
    overflow: hidden;
}
.desp-urgency-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    border-radius: 4px;
    transition: width 1s ease;
}

/* Trust Badges */
.desp-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}
.desp-trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #374151;
    font-weight: 500;
}
.desp-trust-icon svg {
    width: 18px;
    height: 18px;
    color: #2563eb;
}

/* Countdown Timer */
.desp-countdown {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    margin: 12px 0;
    text-align: center;
}
.desp-countdown-label {
    font-size: 13px;
    margin-bottom: 8px;
    opacity: .9;
}
.desp-countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.desp-cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.desp-cd-num {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    min-width: 48px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.desp-cd-lbl {
    font-size: 10px;
    text-transform: uppercase;
    opacity: .7;
    margin-top: 2px;
}
.desp-cd-sep {
    font-size: 24px;
    font-weight: 700;
    margin: 0 2px;
    opacity: .5;
}

/* Hero Banner */
#desp-hero-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    color: #fff;
    transform: translateY(100%);
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
#desp-hero-banner.desp-show {
    transform: translateY(0);
}
.desp-hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.desp-hero-text {
    font-size: 15px;
    font-weight: 700;
}
.desp-hero-btn {
    display: inline-block;
    background: #fff;
    color: #6366f1;
    padding: 8px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.desp-hero-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    color: #6366f1;
}
.desp-hero-close {
    background: none;
    border: none;
    color: rgba(255,255,255,.8);
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.desp-hero-close:hover {
    color: #fff;
}

/* Mobile */
@media (max-width: 600px) {
    .desp-popup {
        left: 10px;
        right: 10px;
        max-width: none;
        bottom: 10px;
    }
    .desp-trust-badges {
        gap: 10px;
    }
    .desp-trust-badge {
        font-size: 11px;
    }
    .desp-hero-text {
        font-size: 13px;
        text-align: center;
    }
    .desp-cd-num {
        font-size: 22px;
    }
    .desp-hero-inner {
        padding: 10px 14px;
    }
}
