/* --------------------------------
   Live Insights Widget Styles
-------------------------------- */

#live-insights-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 240px;
    font-family: system-ui, sans-serif;
    font-size: 14px;
    color: #222;
    opacity: 0.45;
    transition: opacity .25s ease;
    z-index: 9999;
}

#live-insights-widget:hover {
    opacity: 1;
}

#live-insights-widget .insights-collapsed {
    background: #ffffffd9;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    cursor: pointer;
}



#live-insights-widget h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
}

.insights-section {
    margin-bottom: 12px;
}

.insights-section strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

#insights-recommended li {
    margin-left: 16px;
    line-height: 1.4;
}

#live-insights-widget .insights-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #555;
}

/* --------------------------------
   Toast Notification (above widget)
-------------------------------- */

.insights-toast {
    position: fixed;
    bottom: 80px; /* above widget */
    left: 20px;
    background: #ffffffee;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s ease, transform .4s ease;
    font-size: 14px;
    z-index: 9999;
}

.insights-toast.visible {
    opacity: 1;
    transform: translateY(0);
}



#live-insights-widget .insights-expanded {
    display: none;
    position: relative; /* REQUIRED so the close button anchors correctly */
    background: #fff;
    margin-top: 8px;
    padding: 20px 12px 12px 12px; /* extra top padding for the close button */
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    z-index: 999999; /* ensure it's above everything */
}

#live-insights-widget:hover .insights-expanded {
    display: block;
}

#insights-close {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgb(0 0 0 / 0%);
    border: none;
    border-radius: 100%;
    width: 22px;
    height: 22px;
    font-size: 16px;
        text-align: center;
    cursor: pointer;
    color: #444;
    z-index: 9999999;
    transition: background .2s ease, color .2s ease;
}

#insights-close:hover {
    
    color: #ff66b4;
}
