/* Social Proof Popup Styles */
/* Critical styles - prevent WP Rocket optimization conflicts */

#spp-popup-container {
    position: fixed !important;
    z-index: 9 !important;
    pointer-events: none !important;
}

#spp-popup-container.bottom-left {
    bottom: 20px !important;
    left: 20px !important;
}

#spp-popup-container.bottom-right {
    bottom: 20px !important;
    right: 20px !important;
}

#spp-popup-container.top-left {
    top: 20px !important;
    left: 20px !important;
}

#spp-popup-container.top-right {
    top: 20px !important;
    right: 20px !important;
}

.spp-popup {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    max-width: 350px !important;
    min-width: 300px !important;
    pointer-events: auto !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    position: relative !important;
    animation: sppSlideIn 0.3s ease-out !important;
    margin-bottom: 10px !important;
}

.spp-popup.hiding {
    animation: sppSlideOut 0.3s ease-out forwards;
}

.spp-popup-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.spp-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spp-popup-content {
    flex: 1;
    min-width: 0;
}

.spp-popup-location {
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.spp-popup-action {
    font-size: 13px;
    color: #000000;
    margin: 0 0 4px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.spp-popup-time {
    font-size: 11px;
    color: #666666;
    margin: 0;
}

.spp-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    color: #999999;
    transition: color 0.2s;
}

.spp-popup-close:hover {
    color: #000000;
}

.spp-popup-close svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Animations */
@keyframes sppSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sppSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .spp-popup {
        max-width: 70vw !important;
        min-width: auto !important;
        padding: 10px 12px !important;
    }
    
    .spp-popup-image {
        width: 50px !important;
        height: 50px !important;
    }
    
    .spp-popup-location,
    .spp-popup-action {
        font-size: 12px !important;
    }
    
    .spp-popup-time {
        font-size: 10px !important;
    }
    
    #spp-popup-container.bottom-left,
    #spp-popup-container.bottom-right {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
    }
    
    #spp-popup-container.top-left,
    #spp-popup-container.top-right {
        left: 10px !important;
        right: 10px !important;
        top: 10px !important;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .spp-popup {
        max-width: 35vw !important;
        padding: 8px 10px !important;
        gap: 8px !important;
    }
    
    .spp-popup-image {
        width: 45px !important;
        height: 45px !important;
    }
}
