/* Recent Purchases Pop-up Styles */
.recent-purchases-popup {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(100px);
    background: #166534;
    background: linear-gradient(135deg, #166534 0%, #15803d 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(22, 101, 52, 0.4);
    font-size: 14px;
    font-weight: 500;
    z-index: 99999 !important;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 90%;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    will-change: transform, opacity;
    /* Pastikan selalu terlihat meskipun scroll */
    transform-origin: center bottom;
}

.recent-purchases-popup.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.recent-purchases-popup.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(100px);
}

.recent-purchases-popup .purchase-text {
    display: inline-block;
    margin: 0;
}

.recent-purchases-popup .purchase-text .panggilan {
    font-weight: 700;
    color: #bbf7d0;
}

.recent-purchases-popup .purchase-text .nama {
    font-weight: 600;
}

.recent-purchases-popup .purchase-text .days {
    font-weight: 700;
    color: #bbf7d0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .recent-purchases-popup {
        bottom: 15px;
        font-size: 12px;
        padding: 10px 16px;
        max-width: 95%;
        white-space: normal;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .recent-purchases-popup {
        bottom: 10px;
        font-size: 11px;
        padding: 8px 14px;
        border-radius: 25px;
    }
}

/* Animation untuk icon */
.recent-purchases-popup::before {
    content: '🛒';
    display: inline-block;
    margin-right: 8px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

