/* AI Chatbot Widget Styles - Complete CSS Isolation */

.aiw-chatbot-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    text-align: left !important;
    line-height: 1.4 !important;
    font-size: 14px !important;
    color: inherit !important;
}

/* Ensure widget styles take precedence over page styles */
.aiw-chatbot-widget * {
    box-sizing: border-box !important;
}

/* Chat Button */
.aiw-chatbot-button {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: white !important;
    font-size: 24px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 999999 !important;
    font-family: inherit !important;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;
    text-decoration: none !important;
    font-weight: normal !important;
    box-sizing: border-box !important;
}

.aiw-chatbot-button:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6) !important;
    opacity: 1 !important;
}

.aiw-chatbot-button.aiw-hidden {
    display: none !important;
}

/* Chat Window - Collapsible but expanded by default */
.aiw-chatbot-window {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 350px !important;
    height: 500px !important;
    max-width: 350px !important;
    max-height: 500px !important;
    min-width: 350px !important;
    min-height: 500px !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid #e1e5e9 !important;
    animation: aiw-slideUp 0.3s ease-out !important;
    transform-origin: bottom right !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    color: #333 !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.aiw-chatbot-window.aiw-hidden {
    display: none !important;
}

@keyframes aiw-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Header */
.aiw-chatbot-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 16px 50px 16px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    height: auto !important;
    min-height: 60px !important;
    max-height: 60px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
}

.aiw-chatbot-header h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center !important;
    color: white !important;
    background: none !important;
    border: none !important;
    line-height: 1.4 !important;
    font-family: inherit !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    flex: none !important;
}

.aiw-chatbot-close {
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 18px !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-family: inherit !important;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-weight: normal !important;
}

.aiw-chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Chat Messages */
.aiw-chatbot-messages {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 20px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    background: white !important;
    border: none !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.aiw-chatbot-message {
    max-width: 85% !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    border-radius: 18px !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    font-family: inherit !important;
    font-size: 14px !important;
    display: block !important;
    position: relative !important;
    box-sizing: border-box !important;
    border: none !important;
    text-align: left !important;
}

.aiw-chatbot-message.aiw-user {
    align-self: flex-end !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-bottom-right-radius: 4px !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

.aiw-chatbot-message.aiw-bot {
    align-self: flex-start !important;
    background: #f1f3f5 !important;
    color: #333 !important;
    border-bottom-left-radius: 4px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.aiw-chatbot-message.aiw-typing {
    background: #f1f3f5 !important;
    color: #666 !important;
    font-style: italic !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Typing indicator */
.aiw-typing-indicator {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.aiw-typing-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background-color: #999 !important;
    animation: aiw-typing 1.4s infinite ease-in-out both !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: inline-block !important;
}

.aiw-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.aiw-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes aiw-typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chat Input */
.aiw-chatbot-input-container {
    padding: 16px 20px !important;
    margin: 0 !important;
    border-top: 1px solid #e1e5e9 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    background: #fafbfc !important;
    flex-shrink: 0 !important;
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 72px !important;
    max-height: 72px !important;
    box-sizing: border-box !important;
}

.aiw-chatbot-input-wrapper {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 40px !important;
    position: relative !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.aiw-chatbot-input {
    flex: 1 1 auto !important;
    width: 0 !important; /* Allows flex item to shrink below content size */
    min-width: 0 !important; /* Allows flex item to shrink below content size */
    max-width: none !important;
    border: 1px solid #e1e5e9 !important;
    border-radius: 20px !important;
    padding: 10px 16px !important;
    margin: 0 !important;
    font-size: 14px !important;
    resize: none !important;
    outline: none !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    font-family: inherit !important;
    background: white !important;
    transition: border-color 0.2s !important;
    line-height: 20px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    color: #333 !important;
    font-weight: normal !important;
    text-align: left !important;
    vertical-align: top !important;
    display: block !important;
}

.aiw-chatbot-input:focus {
    border-color: #667eea !important;
    box-shadow: none !important;
    outline: none !important;
}

.aiw-chatbot-send {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: white !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* transition removed - 100% static button */
    font-size: 16px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    position: relative !important;
    font-family: inherit !important;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-weight: normal !important;
    box-sizing: border-box !important;
}

/* All hover, active, disabled, and focus states removed for 100% static button */
.aiw-chatbot-send:hover,
.aiw-chatbot-send:active,
.aiw-chatbot-send:focus,
.aiw-chatbot-send:disabled {
    /* Override all states - keep button identical */
    transform: none !important;
    opacity: 1 !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Scrollbar styling */
.aiw-chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.aiw-chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.aiw-chatbot-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.aiw-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Tablet responsiveness - keeps desktop behavior but ensures high z-index */
@media (max-width: 768px) and (min-width: 481px) {
    .aiw-chatbot-widget {
        z-index: 999999 !important;
        position: fixed !important;
    }
}

@media (max-width: 480px) {
    /* Block page scroll and zoom when widget is open */
    body.aiw-widget-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }
    
    html.aiw-widget-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        touch-action: none !important;
    }
    
    .aiw-chatbot-widget {
        right: 16px !important;
        bottom: 16px !important;
        z-index: 999999 !important;
        position: fixed !important;
        /* Ensure visibility */
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Collapsed state: show only button */
    .aiw-chatbot-button {
        width: 56px !important;
        height: 56px !important;
        font-size: 20px !important;
        position: absolute !important;
        bottom: 0 !important;
        right: 0 !important;
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6) !important;
    }
    
            /* Expanded state: 40% height at top */
        .aiw-chatbot-window {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: auto !important;
            width: 100vw !important;
            height: 40vh !important;
            min-width: 100vw !important;
            min-height: 40vh !important;
            max-width: 100vw !important;
            max-height: 40vh !important;
            /* Ensure proper positioning */
            transform: none !important;
            translate: none !important;
            border-radius: 0 0 16px 16px !important;
            z-index: 999999 !important;
            background: white !important;
            border: none !important;
            border-bottom: 1px solid #e1e5e9 !important;
            margin: 0 !important;
            padding: 0 !important;
            padding-top: env(safe-area-inset-top) !important;
            display: flex !important;
            flex-direction: column !important;
            overflow: hidden !important;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
            /* Ensure visibility and proper positioning */
            opacity: 1 !important;
            visibility: visible !important;
        }
    
    .aiw-chatbot-header {
        padding: 16px 50px 16px 20px !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        flex-shrink: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        border: none !important;
        min-height: 60px !important;
        max-height: 60px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }
    
    .aiw-chatbot-messages {
        padding: 15px !important;
        margin: 0 !important;
        flex: 1 !important;
        overflow-y: auto !important;
        background: white !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        box-sizing: border-box !important;
        height: auto !important;
        min-height: 0 !important;
    }
    
            .aiw-chatbot-input-container {
            padding: 16px !important;
            margin: 0 !important;
            background: #fafbfc !important;
            border-top: 1px solid #e1e5e9 !important;
            border-left: none !important;
            border-right: none !important;
            border-bottom: none !important;
            flex-shrink: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 100% !important;
            min-height: 72px !important;
            max-height: 72px !important;
            display: flex !important;
            align-items: center !important;
            box-sizing: border-box !important;
            overflow: hidden !important;
            position: relative !important;
            z-index: 1000000 !important;
            /* iOS safe area for bottom */
            padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
        }
    
            .aiw-chatbot-input-wrapper {
            display: flex !important;
            gap: 8px !important;
            align-items: center !important;
            width: 100% !important;
            max-width: 100% !important;
            height: 40px !important;
            margin: 0 !important;
            padding: 0 !important;
            box-sizing: border-box !important;
            overflow: hidden !important;
        }
    
            .aiw-chatbot-input {
            flex: 1 1 auto !important;
            width: 0 !important; /* Allows flex item to shrink below content size */
            min-width: 0 !important; /* Allows flex item to shrink below content size */
            max-width: none !important;
            height: 40px !important;
            min-height: 40px !important;
            max-height: 40px !important;
            line-height: 20px !important;
            padding: 10px 16px !important;
            margin: 0 !important;
            border: 1px solid #e1e5e9 !important;
            border-radius: 20px !important;
            font-size: 16px !important; /* Prevents zoom on iOS */
            background: white !important;
            box-sizing: border-box !important;
            overflow: hidden !important;
            resize: none !important;
            outline: none !important;
            white-space: nowrap !important; /* Prevents line breaks that could expand */
            text-overflow: ellipsis !important;
        }
    
            .aiw-chatbot-send {
            width: 40px !important;
            height: 40px !important;
            min-width: 40px !important;
            min-height: 40px !important;
            max-width: 40px !important;
            max-height: 40px !important;
            border-radius: 50% !important;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
            border: none !important;
            margin: 0 !important;
            padding: 0 !important;
            color: white !important;
            font-size: 16px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            flex-shrink: 0 !important;
            flex-grow: 0 !important;
            cursor: pointer !important;
            position: relative !important;
            box-sizing: border-box !important;
            overflow: hidden !important;
            /* Mobile static button - no transitions or animations */
            transition: none !important;
            transform: none !important;
            animation: none !important;
        }
        
        /* Mobile send button - override all states to remain static */
        .aiw-chatbot-send:hover,
        .aiw-chatbot-send:active,
        .aiw-chatbot-send:focus,
        .aiw-chatbot-send:disabled,
        .aiw-chatbot-send:visited {
            width: 40px !important;
            height: 40px !important;
            min-width: 40px !important;
            min-height: 40px !important;
            max-width: 40px !important;
            max-height: 40px !important;
            border-radius: 50% !important;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
            border: none !important;
            margin: 0 !important;
            padding: 0 !important;
            color: white !important;
            font-size: 16px !important;
            cursor: pointer !important;
            transform: none !important;
            opacity: 1 !important;
            outline: none !important;
            box-shadow: none !important;
            transition: none !important;
            animation: none !important;
            scale: 1 !important;
            filter: none !important;
        }
    
    .aiw-chatbot-close {
        position: absolute !important;
        right: 14px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 32px !important;
        height: 32px !important;
        background: none !important;
        border: none !important;
        color: white !important;
        font-size: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        border-radius: 4px !important;
    }
}

/* Touch device layout - applies mobile layout to all touch devices regardless of screen size */
@media (pointer: coarse) {
    /* Block page scroll and zoom when widget is open */
    body.aiw-widget-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: none !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }
    
    html.aiw-widget-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        touch-action: none !important;
    }
    
    .aiw-chatbot-widget {
        right: 16px !important;
        bottom: 16px !important;
        z-index: 999999 !important;
        position: fixed !important;
        /* Ensure visibility */
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Collapsed state: show only button */
    .aiw-chatbot-button {
        width: 56px !important;
        height: 56px !important;
        font-size: 20px !important;
        position: absolute !important;
        bottom: 0 !important;
        right: 0 !important;
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6) !important;
    }
    
    /* Expanded state: 40% height at top */
    .aiw-chatbot-window {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        width: 100vw !important;
        height: 40vh !important;
        min-width: 100vw !important;
        min-height: 40vh !important;
        max-width: 100vw !important;
        max-height: 40vh !important;
        /* Ensure proper positioning */
        transform: none !important;
        translate: none !important;
        border-radius: 0 0 16px 16px !important;
        z-index: 999999 !important;
        background: white !important;
        border: none !important;
        border-bottom: 1px solid #e1e5e9 !important;
        margin: 0 !important;
        padding: 0 !important;
        padding-top: env(safe-area-inset-top) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
        /* Ensure visibility and proper positioning */
        opacity: 1 !important;
        visibility: visible !important;
    }

    .aiw-chatbot-header {
        padding: 16px 50px 16px 20px !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        flex-shrink: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        border: none !important;
        min-height: 60px !important;
        max-height: 60px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }
    
    .aiw-chatbot-messages {
        padding: 15px !important;
        margin: 0 !important;
        flex: 1 !important;
        overflow-y: auto !important;
        background: white !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        box-sizing: border-box !important;
        height: auto !important;
        min-height: 0 !important;
    }
    
    .aiw-chatbot-input-container {
        padding: 16px !important;
        margin: 0 !important;
        background: #fafbfc !important;
        border-top: 1px solid #e1e5e9 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        flex-shrink: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        min-height: 72px !important;
        max-height: 72px !important;
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        position: relative !important;
        z-index: 1000000 !important;
        /* iOS safe area for bottom */
        padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    }

    .aiw-chatbot-input-wrapper {
        display: flex !important;
        gap: 8px !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 40px !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .aiw-chatbot-input {
        flex: 1 1 auto !important;
        width: 0 !important; /* Allows flex item to shrink below content size */
        min-width: 0 !important; /* Allows flex item to shrink below content size */
        max-width: none !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        line-height: 20px !important;
        padding: 10px 16px !important;
        margin: 0 !important;
        border: 1px solid #e1e5e9 !important;
        border-radius: 20px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        background: white !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        resize: none !important;
        outline: none !important;
        white-space: nowrap !important; /* Prevents line breaks that could expand */
        text-overflow: ellipsis !important;
    }

    .aiw-chatbot-send {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        color: white !important;
        font-size: 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        cursor: pointer !important;
        position: relative !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        /* Touch device static button - no transitions or animations */
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
    
    /* Touch device send button - override all states to remain static */
    .aiw-chatbot-send:hover,
    .aiw-chatbot-send:active,
    .aiw-chatbot-send:focus,
    .aiw-chatbot-send:disabled,
    .aiw-chatbot-send:visited {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        color: white !important;
        font-size: 16px !important;
        cursor: pointer !important;
        transform: none !important;
        opacity: 1 !important;
        outline: none !important;
        box-shadow: none !important;
        transition: none !important;
        animation: none !important;
        scale: 1 !important;
        filter: none !important;
    }

    .aiw-chatbot-close {
        position: absolute !important;
        right: 14px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 32px !important;
        height: 32px !important;
        background: none !important;
        border: none !important;
        color: white !important;
        font-size: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        border-radius: 4px !important;
    }
}

/* Error message styling */
.aiw-chatbot-message.aiw-error {
    background: #fee !important;
    color: #c33 !important;
    border: 1px solid #fcc !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}
