/* Fake Sales Notifications Styles */

.fsn-notification-container {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.fsn-notification-container.bottom-left {
    bottom: 20px;
    left: 20px;
}

.fsn-notification-container.bottom-right {
    bottom: 20px;
    right: 20px;
}

.fsn-notification-container.top-left {
    top: 20px;
    left: 20px;
}

.fsn-notification-container.top-right {
    top: 20px;
    right: 20px;
}

.fsn-notification {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    margin-bottom: 10px;
    min-width: 320px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideIn 0.4s ease-out;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid #4CAF50;
}

.fsn-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.fsn-notification.closing {
    animation: slideOut 0.4s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

.fsn-notification-container.bottom-right .fsn-notification,
.fsn-notification-container.top-right .fsn-notification {
    animation: slideInRight 0.4s ease-out;
}

.fsn-notification-container.bottom-right .fsn-notification.closing,
.fsn-notification-container.top-right .fsn-notification.closing {
    animation: slideOutRight 0.4s ease-out forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.fsn-product-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.fsn-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.fsn-customer-info {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fsn-customer-info::before {
    content: "✓";
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    flex-shrink: 0;
}

.fsn-product-name {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fsn-product-name strong {
    color: #333;
    font-weight: 600;
}

.fsn-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #888;
}

.fsn-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fsn-location::before {
    content: "📍";
    font-size: 10px;
}

.fsn-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fsn-time::before {
    content: "🕐";
    font-size: 10px;
}

.fsn-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.fsn-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .fsn-notification-container {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
    }
    
    .fsn-notification {
        min-width: auto;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .fsn-notification {
        padding: 12px;
        gap: 12px;
    }
    
    .fsn-product-image {
        width: 50px;
        height: 50px;
    }
    
    .fsn-customer-info {
        font-size: 13px;
    }
    
    .fsn-product-name {
        font-size: 12px;
    }
    
    .fsn-meta {
        font-size: 11px;
        gap: 8px;
    }
}

/* Hide on very small screens if option disabled */
.fsn-hide-mobile .fsn-notification-container {
    display: none !important;
}

@media (min-width: 769px) {
    .fsn-hide-mobile .fsn-notification-container {
        display: block !important;
    }
}
