/* Responsive Chat Popup */
#chat-popup {
        position: fixed;
        right: 32px;
        bottom: 100px;
        width: 420px;
        max-width: 98vw;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.25);
        z-index: 10000;
        display: none;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid #e0e0e0;
        height: 600px;
        max-height: 95vh;
}

@media (max-width: 600px) {
    #chat-popup {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }
    #floating-chat-btn {
        right: 10px;
        bottom: 10px;
        width: 86px;
        height: 86px;
    }
    #floating-chat-btn .floating-ai-icon {
        width: 74px;
        height: 96px;
    }
    #chat-popup-messages {
        height: 55vh !important;
        min-height: 120px;
        max-height: 60vh;
        font-size: 15px;
    }
    #chat-popup-input input {
        font-size: 15px;
        padding: 8px;
    }
}
#floating-chat-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    background: transparent;
    color: inherit;
    border: none;
    border-radius: 0;
    width: 96px;
    height: 96px;
    box-shadow: none;
    font-size: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    animation: bot-float 3.2s ease-in-out infinite;
    padding: 0;
}
#floating-chat-btn:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: none !important;
    background: transparent !important;
    color: inherit !important;
}
#floating-chat-btn .floating-ai-icon {
    width: 74px !important;
    height: 96px !important;
    object-fit: contain !important;
    transition: transform 0.2s ease;
}
#floating-chat-btn:hover .floating-ai-icon {
    transform: scale(1.05);
}
@keyframes bot-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
#chat-popup-header {
    background: #0078d7;
    color: #fff;
    padding: 12px 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#chat-popup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
#chat-popup-messages {
    padding: 12px;
    flex: 1;
    min-height: 200px;
    max-height: none;
    height: 400px;
    overflow-y: auto;
    background: #f9f9f9;
    font-size: 15px;
    width: 100%;
}
#chat-popup-input {
    display: flex;
    border-top: 1px solid #eee;
    background: #fafbfc;
}
#chat-popup-input input {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 15px;
    border-radius: 0 0 0 16px;
    outline: none;
    background: transparent;
}
#chat-popup-input button {
    border: none;
    background: #0078d7;
    color: #fff;
    padding: 0 18px;
    font-size: 16px;
    border-radius: 0 0 16px 0;
    cursor: pointer;
    transition: background 0.2s;
}
#chat-popup-input button:hover {
    background: #005fa3;
}
.typing-indicator {
    display: none;
    margin: 4px 0 2px 0;
}
