        :root {
            --primary-color: #2563eb;
            --primary-hover: #1d4ed8;
            --chat-bg: #ffffff;
            --text-main: #1f2937;
            --text-muted: #6b7280;
            --msg-inbound: #f3f4f6;
            --msg-outbound: #2563eb;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: #f0f2f5;
            margin: 0;
            padding: 40px;
        }
        /* --- CHAT CONTAINER --- */
        #custom-chat-widget {
            position: fixed;
            bottom: 24px;
            right: 24px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
        }
        .chat-bubble {
            width: 56px;
            height: 56px;
            background-color: var(--primary-color);
            border-radius: 50%;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s;
        }
        .chat-bubble:hover { transform: scale(1.05); }
        .chat-bubble svg { width: 24px; height: 24px; fill: none; stroke: #ffffff; stroke-width: 2; }
/* --- THE CLEAN CHAT WINDOW CSS CONFIGURATION --- */
.chat-window {
    position: fixed;
    bottom: 90px; /* Sits cleanly above your floating toggle bubble icon */
    right: 20px;
    width: 360px;
    height: 480px;
    background-color: #ffffff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    z-index: 99999; /* Higher layer index to sit cleanly on top when active */
    
    /* 🧼 THE VISIBILITY PATCH: Smooth fading transitions */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    
    /* ⚠️ THE CRITICAL LAYER FIX: Tells the browser to let clicks pass completely 
       THROUGH this invisible box to hit your accordions underneath when closed! */
    pointer-events: none; 
	display: none; 
}

/* --- WHEN ACTIVE/OPENED (.open class injected via your click event) --- */
#custom-chat-widget.open .chat-window {
    opacity: 1;
    transform: translateY(0);
    
    /* 🔒 RE-ACTIVATE CLICKS: Allows the user to type and click buttons inside 
       the window normally now that it is visible on screen! */
    pointer-events: auto; 
	display: flex; 
}

        #custom-chat-widget.open .chat-window {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }
        .chat-header { background-color: var(--primary-color); color: white; padding: 16px; display: flex; align-items: center; gap: 12px; }
        .chat-messages { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; background-color: #f8fafc; }
        .message { max-width: 75%; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
        .message.inbound { background-color: var(--msg-inbound); color: var(--text-main); align-self: flex-start; border-bottom-left-radius: 4px; }
        .message.outbound { background-color: var(--msg-outbound); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
        .chat-input-area { padding: 12px; border-top: 1px solid #e2e8f0; display: flex; gap: 8px; }
        .chat-input-area input { flex: 1; border: 1px solid #cbd5e1; border-radius: 24px; padding: 10px 16px; outline: none; }
        .chat-input-area button { background-color: var(--primary-color); border: none; color: white; padding: 0 16px; border-radius: 24px; cursor: pointer; }