#popup {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(30, 30, 30, 0.85);
    color: #fff;
    padding: 18px 22px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    max-width: 360px;
    line-height: 1.5;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px) scale(0.95);
    z-index: 9999;
}

#popup.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

#popup .popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

#popup .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4caf50;
    font-size: 24px;
    flex-shrink: 0;
}

#popup .content {
    flex: 1;
}

#popup .product {
    color: #ffc107;
    font-weight: 600;
}

#popup .time {
    font-size: 12px;
    color: #ccc;
    margin-top: 4px;
}

/* Progress bar */
#popup .progress {
    height: 4px;
    background: #4caf50;
    width: 100%;
    margin-top: 10px;
    border-radius: 2px;
    animation: progressBar 4s linear forwards;
}

@keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

@media (max-width: 768px) {
  #popup {
    display: none !important;
    visibility: hidden !important;
  }
}