/* ========================================
   Latest Sales Notification Widget
   ======================================== */

.sebenza-ls-widget,
.sebenza-ls-widget *,
.sebenza-ls-widget *::before,
.sebenza-ls-widget *::after {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    box-sizing: border-box;
}

.sebenza-ls-widget {
    position: fixed;
    z-index: 99998;
    max-width: 340px;
    width: calc(100% - 32px);
    border-radius: 14px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.sebenza-ls-widget.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Positions */
.sebenza-ls-bottom-left {
    bottom: 24px;
    left: 16px;
}

.sebenza-ls-bottom-right {
    bottom: 24px;
    right: 16px;
}

/* Light theme */
.sebenza-ls-light {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.sebenza-ls-light .sebenza-ls-product {
    color: #374151;
}

.sebenza-ls-light .sebenza-ls-time {
    color: #9ca3af;
}

.sebenza-ls-light .sebenza-ls-close {
    color: #9ca3af;
    background: transparent;
}

.sebenza-ls-light .sebenza-ls-close:hover {
    color: #374151;
    background: #f3f4f6;
}

/* Dark theme */
.sebenza-ls-dark {
    background: #1f2937;
    border: 1px solid #374151;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sebenza-ls-dark .sebenza-ls-product {
    color: #d1d5db;
}

.sebenza-ls-dark .sebenza-ls-time {
    color: #6b7280;
}

.sebenza-ls-dark .sebenza-ls-close {
    color: #6b7280;
    background: transparent;
}

.sebenza-ls-dark .sebenza-ls-close:hover {
    color: #d1d5db;
    background: #374151;
}

/* Close button */
.sebenza-ls-close {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 10 !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: color 0.15s ease, background 0.15s ease;
}

/* Link wrapper */
.sebenza-ls-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    text-decoration: none !important;
    color: inherit !important;
    transition: background 0.15s ease;
}

.sebenza-ls-light .sebenza-ls-link:hover {
    background: #f9fafb;
}

.sebenza-ls-dark .sebenza-ls-link:hover {
    background: #283347;
}

/* Thumbnail */
.sebenza-ls-thumb-wrap {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.sebenza-ls-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info block */
.sebenza-ls-info {
    flex: 1;
    min-width: 0;
    padding-right: 16px;
}

.sebenza-ls-customer {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111827;
}

.sebenza-ls-product {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sebenza-ls-time {
    font-size: 11px;
    line-height: 1;
}

/* Progress bar */
.sebenza-ls-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    overflow: hidden;
}

.sebenza-ls-light .sebenza-ls-progress {
    background: #f3f4f6;
}

.sebenza-ls-dark .sebenza-ls-progress {
    background: #374151;
}

.sebenza-ls-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 0 3px 3px 0;
    background: #111827;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .sebenza-ls-widget {
        max-width: calc(100% - 32px);
    }

    .sebenza-ls-bottom-left,
    .sebenza-ls-bottom-right {
        left: 16px;
        right: 16px;
    }
}
