/* Main Container */
#sales-notification-popup {
    position: fixed;
    z-index: 99999;
    max-width: 380px;
    width: auto;
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    display: none;
    /* Hidden by default */
    align-items: center;
    gap: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: none;
    box-sizing: border-box;
}

/* Positions */
.sn-bottom_left {
    bottom: 25px;
    left: 25px;
}

.sn-bottom_right {
    bottom: 25px;
    right: 25px;
}

.sn-top_left {
    top: 25px;
    left: 25px;
}

.sn-top_right {
    top: 25px;
    right: 25px;
}

/* Image / Avatar */
.sn-image-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #F7FAFC;
    border: 1px solid #EDF2F7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #4A5568;
    text-transform: uppercase;
}

.sn-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content */
.sn-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
}

.sn-content-row-1 {
    font-size: 13px;
    color: #2D3748;
    margin-bottom: 3px;
}

.sn-content-row-1 strong {
    font-weight: 700;
    color: #1A202C;
}

.sn-content-row-2 {
    font-size: 13px;
    color: #718096;
}

.sn-content-row-2 a {
    color: #667EEA;
    /* Purple link */
    text-decoration: none;
    font-weight: 600;
}

.sn-content-row-2 a:hover {
    text-decoration: underline;
}

.sn-time {
    display: block;
    font-size: 11px;
    /* Tiny text like in image */
    color: #A0AEC0;
    margin-top: 4px;
    text-transform: uppercase;
    /* "15 MINS AGO" */
    font-weight: 600;
}

/* Close Button */
.sn-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 14px;
    color: #A0AEC0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.sn-close:hover {
    color: #E53E3E;
    transform: scale(1.1);
}

/* Animations */
@keyframes slideInUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(40px);
        opacity: 0;
    }
}

@keyframes slideOutUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-40px);
        opacity: 0;
    }
}

.sn-animate-in {
    animation-fill-mode: forwards;
    animation-duration: 0.6s;
}

.sn-animate-out {
    animation-fill-mode: forwards;
    animation-duration: 0.5s;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    #sales-notification-popup {
        bottom: 20px !important;
        /* Force bottom on mobile */
        top: auto !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
        width: 90%;
        max-width: 90%;
        border-radius: 16px;
    }

    /* Adjust animation for center transform */
    @keyframes slideInUpMobile {
        from {
            transform: translate(-50%, 50px);
            opacity: 0;
        }

        to {
            transform: translate(-50%, 0);
            opacity: 1;
        }
    }

    @keyframes slideOutDownMobile {
        from {
            transform: translate(-50%, 0);
            opacity: 1;
        }

        to {
            transform: translate(-50%, 50px);
            opacity: 0;
        }
    }

    .sn-mobile-slide-in {
        animation-name: slideInUpMobile !important;
    }

    .sn-mobile-slide-out {
        animation-name: slideOutDownMobile !important;
    }
}