/* ========================================
   LIVE DONATION NOTIFICATIONS
   ======================================== */

.hm-donation-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    z-index: 999998;
    transform: translateX(-450px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-donation-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.hm-donation-notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #F36F28, #E85A1A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.hm-donation-notification-icon i {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    10%,
    30% {
        transform: scale(1.1);
    }

    20%,
    40% {
        transform: scale(1);
    }
}

.hm-donation-notification-content {
    flex: 1;
    min-width: 0;
}

.hm-donation-notification-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    font-weight: 500;
}

.hm-donation-notification-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.hm-donation-notification-close:hover {
    color: #333;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hm-donation-notification {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        padding: 14px 16px;
        transform: translateY(150px);
    }

    .hm-donation-notification.show {
        transform: translateY(0);
    }

    .hm-donation-notification-content p {
        font-size: 13px;
    }

    .hm-donation-notification-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Stacking multiple notifications */
.hm-donation-notification:nth-child(n+2) {
    bottom: calc(20px + (80px * (var(--notification-index, 0))));
}

@media (max-width: 768px) {
    .hm-donation-notification:nth-child(n+2) {
        bottom: calc(10px + (70px * (var(--notification-index, 0))));
    }
}