.qcth-chatbot-nut {
    position: fixed;
    left: 16px;
    bottom: 110px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .16), 0 2px 32px rgba(0, 0, 0, .16);
    cursor: pointer;
    z-index: 999;
}

.qcth-chatbot-khung {
    position: fixed;
    left: 16px;
    bottom: 176px;
    width: 340px;
    max-width: calc(100vw - 40px);
    height: 460px;
    max-height: calc(100vh - 160px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 24px rgba(0, 0, 0, .2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

.qcth-chatbot-header {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.qcth-chatbot-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.qcth-chatbot-dong {
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.qcth-chatbot-icon-nho {
    font-size: 15px;
}

.qcth-chatbot-noi-dung {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background: #f5f6f8;
}

.qcth-chatbot-bong {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-line;
}

.qcth-chatbot-bong-user {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.qcth-chatbot-bong-assistant {
    background: #fff;
    color: #212529;
    margin-right: auto;
    border-bottom-left-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.qcth-chatbot-bong-assistant a {
    color: var(--bs-primary, #0d6efd);
    word-break: break-all;
}

.qcth-chatbot-dang-tra-loi {
    opacity: .6;
    font-style: italic;
}

.qcth-chatbot-nhap {
    border-top: 1px solid #e9ecef;
    padding: 8px;
}

.qcth-chatbot-nhap form {
    display: flex;
    gap: 8px;
}

.qcth-chatbot-nhap input {
    flex: 1;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 14px;
    outline: none;
}

.qcth-chatbot-btn-gui {
    border: none;
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}

.qcth-chatbot-btn-dang-nhap {
    display: block;
    width: 100%;
    border: none;
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    border-radius: 20px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 480px) {
    .qcth-chatbot-khung {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 170px;
    }

    .qcth-chatbot-nut {
        left: 12px;
    }
}
