
/* QuCloud AI Chatbot */
#qucloud-chatbot-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    border: none;
    border-radius: 50px;
    padding: 15px 22px;
    background: #c9272c;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#qucloud-chatbot-button:hover {
    background: #a91e23;
}

#qucloud-chatbot-window {
    position: fixed;
    right: 24px;
    bottom: 90px;
    z-index: 99999;
    display: none;
    flex-direction: column;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 500px;
    max-height: calc(100vh - 120px);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.22);
    font-family: Arial, sans-serif;
}

#qucloud-chatbot-window.qc-chat-open {
    display: flex;
}

#qucloud-chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: #c9272c;
    color: #ffffff;
}

#qucloud-chatbot-header strong {
    display: block;
    font-size: 16px;
}

#qucloud-chatbot-header small {
    display: block;
    margin-top: 4px;
    color: #ffe8e8;
    font-size: 12px;
}

#qucloud-chatbot-close {
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 25px;
    cursor: pointer;
}

#qucloud-chatbot-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 16px;
    background: #f8f9fb;
}

.qc-chat-message {
    max-width: 85%;
    padding: 11px 13px;
    border-radius: 13px;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.qc-chat-message.qc-chat-bot {
    align-self: flex-start;
    background: #ffffff;
    color: #252525;
    border: 1px solid #e8e8e8;
    border-bottom-left-radius: 4px;
}

.qc-chat-message.qc-chat-user {
    align-self: flex-end;
    background: #c9272c;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

#qucloud-chatbot-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid #eeeeee;
}

#qucloud-chatbot-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

#qucloud-chatbot-input:focus {
    border-color: #c9272c;
}

#qucloud-chatbot-send {
    border: none;
    border-radius: 8px;
    padding: 0 15px;
    background: #c9272c;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

#qucloud-chatbot-send:disabled {
    opacity: 0.6;
    cursor: wait;
}

#qucloud-chatbot-submit-enquiry {
    display: none;
    margin: 0 12px 12px;
    padding: 11px;
    border: none;
    border-radius: 8px;
    background: #198754;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 480px) {
    #qucloud-chatbot-button {
        right: 16px;
        bottom: 16px;
    }

    #qucloud-chatbot-window {
        right: 8px;
        bottom: 78px;
        width: calc(100vw - 16px);
        height: min(500px, calc(100vh - 100px));
        max-height: calc(100vh - 100px);
    }
}
