#tt-chatbot-button {
    position: fixed;
    right: 20px;
    bottom: 20px;

    width: 72px;
    height: 72px;

    border: none;
    border-radius: 50%;

    background: linear-gradient(135deg, #1677ff, #0b5ed7);

    color: white;

    font-size: 22px;
    font-weight: bold;

    cursor: pointer;

    box-shadow: 0 6px 18px rgba(0,0,0,0.25);

    z-index: 99999;
}

#tt-chatbot-window {
    position: fixed;
    right: 22px;
    bottom: 100px;

    width: 360px;
    max-width: calc(100% - 30px);

    height: 520px;

    background: #fff;

    border-radius: 18px;

    box-shadow: 0 10px 35px rgba(0,0,0,0.25);

    overflow: hidden;

    display: none;

    flex-direction: column;

    z-index: 99999;

    font-family: Arial, "Microsoft YaHei", sans-serif;
}

#tt-chatbot-header {
    background: linear-gradient(135deg, #1677ff, #0b5ed7);

    color: #fff;

    padding: 10px 16px;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.tt-chat-header-left {
    display: flex;

    align-items: center;

    gap: 10px;
}

.tt-chat-avatar {
    width: 44px;

    height: 44px;

    border-radius: 50%;

    object-fit: cover;

    background: #ffffff;

    padding: 2px;

    border: 2px solid rgba(255,255,255,0.9);

    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

#tt-chatbot-header-title {
    font-size: 18px;

    font-weight: bold;

    white-space: nowrap;
}

#tt-chatbot-close {
    background: transparent;

    border: none;

    color: #fff;

    font-size: 22px;

    cursor: pointer;
}

#tt-chatbot-messages {
    flex: 1;

    padding: 14px;

    overflow-y: auto;

    background: #f6f8fb;
}

.tt-message {
    margin-bottom: 12px;

    display: flex;
}

.tt-message-user {
    justify-content: flex-end;
}

.tt-message-bot {
    justify-content: flex-start;
}

.tt-bubble {
    max-width: 78%;

    padding: 11px 14px;

    border-radius: 14px;

    font-size: 15px;

    line-height: 1.5;

    white-space: pre-wrap;

    word-break: break-word;
}

.tt-message-user .tt-bubble {
    background: #1677ff;

    color: #fff;

    border-bottom-right-radius: 4px;
}

.tt-message-bot .tt-bubble {
    background: #fff;

    color: #222;

    border: 1px solid #e5e7eb;

    border-bottom-left-radius: 4px;
}

#tt-chatbot-input-area {
    display: flex;

    gap: 8px;

    padding: 12px;

    border-top: 1px solid #e5e7eb;

    background: #fff;
}

#tt-chatbot-input {
    flex: 1;

    border: 1px solid #d1d5db;

    border-radius: 12px;

    padding: 10px 12px;

    font-size: 14px;

    outline: none;
}

#tt-chatbot-send {
    background: #1677ff;

    color: #fff;

    border: none;

    border-radius: 12px;

    padding: 0 16px;

    cursor: pointer;

    font-size: 14px;
}

#tt-chatbot-send:disabled {
    background: #9ca3af;

    cursor: not-allowed;
}

/*
|--------------------------------------------------------------------------
| Contact Form
|--------------------------------------------------------------------------
*/

#tt-contact-form input,
#tt-contact-form textarea {
    border: 1px solid #d1d5db;

    border-radius: 10px;

    font-size: 14px;

    font-family: inherit;
}

#tt-contact-form textarea {
    resize: vertical;
}

#tt-contact-submit {
    font-size: 14px;

    font-weight: bold;

    transition: opacity 0.2s ease;
}

#tt-contact-submit:hover {
    opacity: 0.92;
}


#tt-chatbot-button,
#tt-chatbot-button *,
#tt-chatbot-window,
#tt-chatbot-window * {
    box-sizing: border-box;
}

#tt-chatbot-window {
    background: #ffffff !important;
}

#tt-chatbot-header,
#tt-chatbot-header * {
    background: transparent !important;
}

#tt-chatbot-header {
    background: linear-gradient(135deg, #1677ff, #0b5ed7) !important;
}

#tt-chatbot-messages {
    background: #f6f8fb !important;
}

#tt-chatbot-input-area,
#tt-contact-form {
    background: #ffffff !important;
}

.tt-message {
    background: transparent !important;
}

.tt-message-user {
    background: transparent !important;
}

.tt-message-bot {
    background: transparent !important;
}

.tt-message-user .tt-bubble {
    background: #1677ff !important;
    color: #ffffff !important;
}

.tt-message-bot .tt-bubble {
    background: #ffffff !important;
    color: #222222 !important;
}

#tt-chatbot-input {
    background: #ffffff !important;
}

#tt-chatbot-send {
    background: #1677ff !important;
}

#tt-human-btn {
    background: #10b981 !important;
}

#tt-contact-form input,
#tt-contact-form textarea {
    background: #ffffff !important;
}


.tt-bubble a,
.tt-bubble a:link,
.tt-bubble a:visited,
.tt-bubble a:hover,
.tt-bubble a:active {
    background: transparent !important;
    background-color: transparent !important;
    text-decoration: underline !important;
    word-break: break-word;
    pointer-events: auto !important;
    cursor: pointer;
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 480px) {

    #tt-chatbot-window {

        right: 10px;

        bottom: 110px;

        width: calc(100% - 20px);

        height: 78vh;

        max-height: 680px;

        border-radius: 18px;
    }

    #tt-chatbot-button {

        width: 82px;

        height: 82px;

        font-size: 24px;

        right: 18px;

        bottom: 18px;
    }

    #tt-chatbot-header {

        padding: 10px 14px;
    }

    #tt-chatbot-header-title {

        font-size: 16px;
    }

    .tt-chat-avatar {

        width: 40px;

        height: 40px;
    }

    .tt-bubble {

        max-width: 84%;

        font-size: 15px;
    }

    #tt-chatbot-input {

        font-size: 15px;
    }

    #tt-chatbot-send {

        font-size: 15px;
    }

}

html,
body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

#tt-chatbot-button {
    position: fixed !important;
    right: 18px !important;
    bottom: 28px !important;
    left: auto !important;
    transform: none !important;
    z-index: 2147483647 !important;
}

@media (max-width: 480px) {

    #tt-chatbot-button {
        width: 68px !important;
        height: 68px !important;
        right: 16px !important;
        bottom: 70px !important;
        font-size: 22px !important;
    }

    #tt-chatbot-window {
        right: 10px !important;
        bottom: 145px !important;
        width: calc(100% - 20px) !important;
        height: 72vh !important;
    }
}