#chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #2563eb;
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    z-index: 9999;
}

/* Khung chat */
#chat-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 360px;
    max-height: 600px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: Arial, sans-serif;
    z-index: 9999;
}

.chat-header {
    background: #2563eb;
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.chat-header .close-btn {
    background: transparent;
    color: white;
    font-size: 20px;
    border: none;
    cursor: pointer;
}

.chat-messages {
    padding: 12px;
    height: 400px;
    overflow-y: auto;
    background: white;
}

.message {
    margin-bottom: 10px;
    /*padding: 10px;*/
    border-radius: 10px;
    font-size: 14px;
}

.message.you {
    background: #d0e8ff;
    margin-left: auto;
    text-align: right;
}

.message.other {
    background: #eeeeee;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ccc;
    align-items: center;
    gap: 6px;
    background: #fff;
}

.chat-input input[type="text"] {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.emoji-btn, .image-btn, .send-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 0px
}

.send-btn {
    color: #2563eb;
    font-weight: bold;
}

.hidden-input {
    display: none;
}

.message img {
    max-width: 100%;
    border-radius: 6px;
    margin-top: 5px;
}
.hidden {
    display: none;
}
