        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            font-size: 11px;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        body.chat-launcher {
            background: #f5f5f5;
        }

        body.chat-launcher .chat-container,
        body.chat-launcher .image-modal {
            display: none;
        }

        body.chat-popup {
            background: #fff;
            padding: 4px;
        }

        body.chat-popup .chat-container {
            width: 100%;
            height: calc(100vh - 8px);
            max-width: none;
            max-height: none;
        }

        body.chat-popup .popup-launcher {
            display: none;
        }

        .popup-launcher {
            max-width: 420px;
            background: white;
            padding: 24px;
            border-radius: 16px;
            text-align: center;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
        }

        .popup-launcher p {
            font-size: 12px;
            color: #555;
            margin-bottom: 18px;
        }
        
        .chat-container {
            width: 100%;
            max-width: 600px;
            height: 90vh;
            max-height: 800px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        
        .chat-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            text-align: center;
            border-radius: 20px 20px 0 0;
        }
        
        .chat-header p {
            font-size: 12px;
            opacity: 0.9;
        }
        
        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            background: #f5f5f5;
        }

        #scrollSpacer {
            height: 0;
            pointer-events: none;
        }
        
        .message {
            margin-bottom: 15px;
            animation: slideIn 0.3s ease;
        }

        .message.loading-message {
            display: none;
        }
        
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .message.bot {
            text-align: left;
        }
        
        .message.user {
            text-align: right;
        }
        
        .message-content {
            display: inline-block;
            max-width: 80%;
            padding: 12px 16px;
            border-radius: 18px;
            word-wrap: break-word;
        }
        
        .message.bot .message-content {
            background: white;
            color: #333;
            border-bottom-left-radius: 4px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        
        .message.user .message-content {
            background: #667eea;
            color: white;
            border-bottom-right-radius: 4px;
        }
        
        .menu-buttons {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 10px;
            margin-top: 10px;
        }
        
        .menu-btn, .faq-btn, .action-btn {
            padding: 12px 16px;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-size: 10px;
            transition: all 0.3s ease;
            text-align: left;
        }
        
        .menu-btn {
            background: #667eea;
            color: white;
        }
        
        .menu-btn:hover {
            background: #5568d3;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
        }
        
        .faq-btn {
            background: white;
            color: #667eea;
            border: 2px solid #667eea;
        }
        
        .faq-btn:hover {
            background: #f0f3ff;
        }
        
        .action-btn {
            padding: 8px 12px;
            font-size: 9px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        
        .action-btn.positive {
            background: #10b981;
            color: white;
        }
        
        .action-btn.negative {
            background: #ef4444;
            color: white;
        }
        
        .action-btn.back {
            background: #6b7280;
            color: white;
        }
        
        .faq-content {
            background: white;
            padding: 15px;
            border-radius: 10px;
            margin-top: 10px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        
        .faq-content h3 {
            color: #667eea;
            margin-bottom: 10px;
            font-size: 14px;
        }
        
        .faq-content p {
            color: #555;
            line-height: 1.6;
            margin-bottom: 10px;
        }
        
        .faq-images {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 10px;
            margin-top: 10px;
            overflow: visible;
        }
        
        .faq-images img {
            width: 100%;
            border-radius: 8px;
            cursor: zoom-in;
            position: relative;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            transform-origin: center;
            will-change: transform;
            --zoom: 1;
            --shiftX: 0px;
        }
        
        .faq-images img:hover {
            transform: translateX(var(--shiftX)) scale(var(--zoom));
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
            z-index: 2;
        }
        
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .chat-footer {
            padding: 8px 12px;
            background: white;
            border-top: 1px solid #e5e5e5;
            font-size: 10px;
            color: #888;
            text-align: right;
        }
        
        .error-message {
            background: #fee;
            color: #c33;
            padding: 10px;
            border-radius: 8px;
            margin-top: 10px;
            font-size: 12px;
        }

        .image-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            z-index: 2000;
        }

        .image-modal.open {
            display: flex;
        }

        .image-modal img {
            max-width: 100%;
            max-height: 100%;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .image-modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: none;
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .image-modal-close:hover {
            background: rgba(255, 255, 255, 0.35);
        }
