.logicbit-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
    z-index: 9999;
    font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
    transition: all 0.3s ease;
}

.logicbit-chat-widget.minimized .chat-body,
.logicbit-chat-widget.minimized .suggestion-chips {
    display: none;
}

.logicbit-chat-widget.minimized .chat-header {
    border-radius: 20px;
}

.chat-header {
    background: #f03250;
    color: white;
    padding: 14px 18px;
    border-radius: 20px 20px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 16px;
}

.chat-body {
    display: flex;
    flex-direction: column;
    height: 480px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f8f9fa;
}

.msg {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 20px;
    max-width: 85%;
    clear: both;
    line-height: 1.4;
    word-wrap: break-word;
}

.msg.bot {
    background: white;
    float: left;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    color: #333;
}

.msg.user {
    background: #f03250;
    color: white;
    float: right;
    border-bottom-right-radius: 4px;
}

.typing-indicator {
    padding: 10px 16px;
    font-style: italic;
    color: #666;
    background: #f8f9fa;
    font-size: 13px;
}

.typing-indicator span {
    animation: blink 1.4s infinite;
}

@keyframes blink {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    100% { opacity: 0.2; }
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    max-height: 120px;
    overflow-y: auto;
}

.suggestion-chips span {
    background: #f0f0f0;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
}

.suggestion-chips span:hover {
    background: #f03250;
    color: white;
}

.chat-input {
    display: flex;
    padding: 12px;
    background: white;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 30px;
    margin-right: 8px;
    font-size: 14px;
    outline: none;
}

.chat-input input:focus {
    border-color: #f03250;
}

.chat-input button {
    background: #f03250;
    border: none;
    border-radius: 30px;
    padding: 8px 18px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: background 0.2s;
}

.chat-input button:hover {
    background: #c02842;
}

@media (max-width: 500px) {
    .logicbit-chat-widget {
        width: 320px;
        right: 10px;
        bottom: 10px;
    }
}

.typing-indicator {
    padding: 10px 16px;
    font-style: italic;
    color: #666;
    background: #f8f9fa;
    font-size: 13px;
    border-radius: 20px;
    margin: 5px 0;
    display: inline-block;
    width: auto;
}

.typing-indicator.hidden {
    display: none;
}

.typing-indicator span {
    animation: blink 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    100% { opacity: 0.2; }
}