.sales-notification {
    position: fixed;
    bottom: 24px;
    left: 20px;
    z-index: 999;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.sales-notification.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.sales-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 22px;
    padding: 13px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-width: 350px;
    max-width: 350px;
    position: relative;
}

.sales-notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.sales-notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}

.sales-notification-text {
    flex: 1;
    min-width: 0;
}

.sales-notification-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sales-notification-action {
    font-size: 13px;
    color: #666666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.sales-notification-time {
    font-size: 12px;
    color: #999999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sales-notification-close {
    position: absolute;
    top: 6px;
    right: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #666666;
    transition: all 0.2s ease;
    opacity: 0;
}

.sales-notification.show .sales-notification-close {
    opacity: 1;
}

.sales-notification-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #333333;
}

.sales-notification-close svg {
    width: 18px;
    height: 18px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sales-notification {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }

    .sales-notification-content {
        min-width: unset;
        max-width: 100%;
        width: 100%;
        padding: 11px 14px;
    }

    .sales-notification-avatar {
        width: 44px;
        height: 44px;
    }

    .sales-notification-name {
        font-size: 13px;
    }

    .sales-notification-action {
        font-size: 12px;
    }

    .sales-notification-time {
        font-size: 11px;
    }

    .sales-notification-close {
        top: 4px;
        right: 4px;
        width: 28px;
        height: 28px;
        padding: 5px;
    }

    .sales-notification-close svg {
        width: 16px;
        height: 16px;
    }

    footer {
        padding-bottom: 140px;
    }
}

@media (max-width: 480px) {
    .sales-notification {
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        left: 8px;
        right: 8px;
        max-width: calc(100% - 16px);
    }

    .sales-notification-content {
        padding: 9px 12px;
        gap: 10px;
    }

    .sales-notification-avatar {
        width: 40px;
        height: 40px;
    }

    .sales-notification-name {
        font-size: 12px;
    }

    .sales-notification-action {
        font-size: 11px;
    }

    .sales-notification-time {
        font-size: 10px;
    }

    .sales-notification-close {
        top: 3px;
        right: 3px;
        width: 26px;
        height: 26px;
        padding: 4px;
    }

    .sales-notification-close svg {
        width: 15px;
        height: 15px;
    }

    footer {
        padding-bottom: 130px;
    }
}

/* Live count line (viewing / on checkout) */
.sales-notification-live {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 400;
    color: #2f6bff;
}
.sales-notification-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: sales-live-pulse 2s infinite;
}
@keyframes sales-live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70%  { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
