/* ============================================
   Delare SocialProof — Frontend Notifications
   ============================================ */

#dsp-popup-wrapper {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Position variants */
#dsp-popup-wrapper.dsp-bottom-left {
    bottom: 24px;
    left: 24px;
}

#dsp-popup-wrapper.dsp-bottom-right {
    bottom: 24px;
    right: 24px;
}

/* ---- Notification Card ---- */

.dsp-notification {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20%;          /* 20% rounded corners as requested */
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.10),
        0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 14px 18px;
    max-width: 380px;
    min-width: 300px;
    position: relative;
    cursor: default;

    /* Slide-in animation: vertical (from below) */
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.dsp-notification.dsp-visible {
    transform: translateY(0);
    opacity: 1;
}

.dsp-notification.dsp-hiding {
    transform: translateY(40px);
    opacity: 0;
}

/* ---- Product Image ---- */

.dsp-notification-img {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    background: #f5f5f5;
}

.dsp-notification-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder when no image */
.dsp-notification-img .dsp-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #bbb;
    font-size: 22px;
}

/* ---- Content ---- */

.dsp-notification-content {
    flex: 1;
    min-width: 0;
}

.dsp-notification-text {
    font-size: 13.5px;
    line-height: 1.45;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.dsp-notification-text .dsp-buyer-name {
    font-weight: 600;
    color: #111;
}

.dsp-notification-text .dsp-verb {
    color: #555;
}

.dsp-notification-text .dsp-product-link {
    font-weight: 600;
    color: #111;
    text-decoration: none;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s;
}

.dsp-notification-text .dsp-product-link:hover {
    border-bottom-color: #111;
}

.dsp-notification-text .dsp-price {
    font-weight: 600;
    color: #16a34a;
}

/* Meta line: location + time */
.dsp-notification-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #888;
    line-height: 1;
    flex-wrap: wrap;
}

.dsp-notification-meta .dsp-map-icon {
    display: inline-flex;
    align-items: center;
    color: #aaa;
}

.dsp-notification-meta .dsp-map-icon svg {
    width: 12px;
    height: 12px;
}

.dsp-notification-meta .dsp-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
}

/* ---- Close Button ---- */

.dsp-close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #bbb;
    transition: color 0.2s;
    line-height: 1;
    font-size: 16px;
}

.dsp-close-btn:hover {
    color: #555;
}

/* ---- Verified badge ---- */

.dsp-verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    color: #16a34a;
    font-weight: 500;
    margin-top: 2px;
}

.dsp-verified svg {
    width: 12px;
    height: 12px;
}

/* ---- Mobile Responsive ---- */

@media screen and (max-width: 480px) {
    #dsp-popup-wrapper.dsp-bottom-left,
    #dsp-popup-wrapper.dsp-bottom-right {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .dsp-notification {
        max-width: 100%;
        min-width: 0;
        padding: 12px 14px;
        gap: 12px;
        border-radius: 16px;
    }

    .dsp-notification-img {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .dsp-notification-text {
        font-size: 12.5px;
    }

    .dsp-notification-meta {
        font-size: 10.5px;
    }
}
