:root {
    --bd-spp-gradient-1: #CA258C;
    --bd-spp-gradient-2: #A81FBA;
    --bd-spp-gradient-3: #310BA3;
    --bd-spp-gradient-4: #303BB9;
    --bd-spp-gradient-5: #40C69E;
    --bd-spp-gradient-6: #5AC21F;
    --bd-spp-gradient-7: #FAFE14;
    --bd-spp-text: #ffffff;
    --bd-spp-text-muted: #e0e0e0;
}

@keyframes bdSppGradientAnim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#bd-spp-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999999;
    width: 400px;
    max-width: calc(100% - 40px);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    
    /* Match exact color from screenshot (Static Muted Indigo to Deep Blue-Purple) */
    background: linear-gradient(135deg, rgba(87, 93, 141, 0.96), rgba(49, 60, 161, 0.96));
    
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(-150%);
    opacity: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: none; /* Initially hidden */
}

/* Visibility classes */
#bd-spp-container.bd-spp-show {
    transform: translateX(0);
    opacity: 1;
}

#bd-spp-container.bd-spp-hide-anim {
    transform: translateX(-150%);
    opacity: 0;
}

.bd-spp-content {
    position: relative;
    display: flex;
    align-items: center;
}

.bd-spp-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: var(--bd-spp-text) !important;
    gap: 15px;
    width: 100%;
    outline: none;
}

.bd-spp-link:hover, .bd-spp-link:focus {
    color: var(--bd-spp-text) !important;
    box-shadow: none;
}

.bd-spp-image-wrap {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.bd-spp-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bd-spp-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bd-spp-user-info {
    font-size: 14px;
    font-weight: 500;
    color: #f8f9fa;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

#bd-spp-name {
    font-weight: 700;
    color: #ffffff;
}

.bd-spp-product-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.bd-spp-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--bd-spp-text-muted);
}

.bd-spp-time {
    display: flex;
    align-items: center;
}

.bd-spp-verified {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffffff;
    font-weight: 600;
    background: rgba(90, 194, 31, 1); /* Green background to make it pop */
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.bd-spp-close {
    position: absolute;
    top: -12px;
    right: -10px;
    font-size: 22px;
    line-height: 1;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: 0.2s ease;
    padding: 5px;
}

.bd-spp-close:hover {
    color: #ffffff;
    transform: scale(1.1);
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    #bd-spp-container {
        left: 50%;
        bottom: 15px;
        transform: translate(-50%, 150%);
        width: calc(100% - 30px); /* Fill most of the screen nicely */
        padding: 10px;
        border-radius: 12px;
    }

    #bd-spp-container.bd-spp-show {
        transform: translate(-50%, 0);
    }

    #bd-spp-container.bd-spp-hide-anim {
        transform: translate(-50%, 150%);
    }
    
    .bd-spp-link {
        gap: 10px;
    }

    .bd-spp-image-wrap {
        width: 55px;
        height: 55px;
        border-radius: 8px;
    }

    .bd-spp-details {
        gap: 3px;
    }

    .bd-spp-user-info {
        font-size: 11px;
    }

    .bd-spp-product-name {
        font-size: 12.5px;
        line-height: 1.3;
        -webkit-line-clamp: 2;
    }

    .bd-spp-meta {
        font-size: 10px;
        gap: 8px;
    }
    
    .bd-spp-verified {
        padding: 2px 6px;
        font-size: 10px;
    }

    .bd-spp-close {
        top: -5px;
        right: -3px;
        font-size: 20px;
    }
}
