#lc-chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: #4F46E5;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

#lc-chatbot-toggle:hover { transform: scale(1.08); }
#lc-chatbot-toggle svg { width: 28px; height: 28px; }
#lc-chatbot-toggle.lc-hidden { display: none; }

#lc-chatbot-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 550px;
    max-height: calc(100vh - 130px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 2147483646;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#lc-chatbot-widget.lc-chatbot-open {
    display: flex !important;
}
#lc-chatbot-widget.lc-chatbot-bottom-left { right: auto; left: 20px; }

#lc-chatbot-widget .lc-chatbot-header {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

#lc-chatbot-widget .lc-chatbot-status-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: lc-pulse 2s infinite;
}

@keyframes lc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

#lc-chatbot-widget .lc-chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

#lc-chatbot-widget .lc-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8FAFC;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#lc-chatbot-widget .lc-chatbot-message {
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 85%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
    animation: lc-fade-in 0.3s ease;
}

@keyframes lc-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

#lc-chatbot-widget .lc-chatbot-message.bot {
    background: #ffffff;
    color: #1F2937;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#lc-chatbot-widget .lc-chatbot-message.user {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

#lc-chatbot-widget .lc-chatbot-input-area {
    padding: 16px;
    border-top: 1px solid #E5E7EB;
    background: white;
    display: flex;
    gap: 10px;
}

#lc-chatbot-widget .lc-chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

#lc-chatbot-widget .lc-chatbot-input:focus { border-color: #4F46E5; }
#lc-chatbot-widget .lc-chatbot-input::placeholder { color: #9CA3AF; }

#lc-chatbot-widget .lc-chatbot-send {
    padding: 12px 20px;
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
}

#lc-chatbot-widget .lc-chatbot-options {
    width: 100%;
    padding: 0 16px 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
}

#lc-chatbot-widget .lc-chatbot-options.lc-visible { display: flex; }

#lc-chatbot-widget .lc-chatbot-option {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
    color: #374151;
}

#lc-chatbot-widget .lc-chatbot-option:hover {
    border-color: #4F46E5;
    background: #EEF2FF;
    transform: translateX(4px);
}

@media (max-width: 768px) {
    #lc-chatbot-widget {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        bottom: 0;
        right: 0;
        left: 0;
        top: 0;
        border-radius: 0;
    }
    #lc-chatbot-toggle { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
    #lc-chatbot-toggle { bottom: 16px; right: 16px; width: 56px; height: 56px; }
    #lc-chatbot-toggle svg { width: 24px; height: 24px; }
}
