/* Styles for Sales Notifications Plugin */

:root {
    --sn-bg: #ffffff;
    --sn-text-muted: #6b7280;
    --sn-text-dark: #1f2937;
    --sn-primary: #6200ea;
    --sn-success: #10b981;
    --sn-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 8px rgba(0, 0, 0, 0.02);
    --sn-border: 1px solid #f3f4f6;
    --sn-radius: 12px;
}

/* Base Popup Container */
.sales-notification-popup {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999999;
    display: flex;
    align-items: center;
    background: var(--sn-bg);
    border: var(--sn-border);
    box-shadow: var(--sn-shadow);
    border-radius: var(--sn-radius);
    padding: 16px 20px;
    width: 380px;
    max-width: calc(100vw - 48px);
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transform: translateY(150px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
}

/* Visibility classes */
.sales-notification-popup.sn-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.sales-notification-popup.sn-closing {
    transform: translateY(60px) scale(0.95);
    opacity: 0;
    pointer-events: none;
}

/* Image Wrapper */
.sn-image-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin-right: 16px;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sn-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content Details */
.sn-content {
    flex-grow: 1;
    padding-right: 12px;
}

.sn-buyer {
    font-size: 13px;
    font-weight: 500;
    color: var(--sn-text-muted);
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.sn-buyer span.sn-highlight {
    color: var(--sn-text-dark);
    font-weight: 600;
}

.sn-product-link {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--sn-text-dark);
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 4px;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.sn-product-link:hover {
    color: var(--sn-primary);
    text-decoration: underline;
}

.sn-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--sn-text-muted);
    margin: 0;
}

.sn-badge {
    display: inline-flex;
    align-items: center;
    color: var(--sn-success);
    font-weight: 600;
}

/* Close Button */
.sales-notification-popup .sn-close-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    color: #9ca3af !important;
    cursor: pointer !important;
    font-size: 16px !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.sales-notification-popup .sn-close-btn:hover {
    background-color: #f3f4f6 !important;
    color: #4b5563 !important;
}

/* Mobile Styling */
@media (max-width: 768px) {
    .sales-notification-popup {
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: calc(100vw - 32px);
    }
}
