/* Floating Button */

#chat-button {

    position: fixed;

    right: 30px;

    bottom: 90px;

    width: 45px;

    height: 45px;

    border-radius: 50%;

    background: #0d6efd;

    color: white;

    display: flex;

    justify-content: center;

    align-items: center;

    cursor: pointer;

    font-size: 28px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);

    z-index: 9999;

    transition: .3s;

}

#chat-button:hover {

    transform: scale(1.08);

}

/* Badge */

.badge-chat {

    position: absolute;

    top: 2px;

    right: 2px;

    width: 22px;

    height: 22px;

    border-radius: 50%;

    background: red;

    color: white;

    text-align: center;

    line-height: 22px;

    font-size: 11px;

}

/* Chat */

#chat-box {

    position: fixed;

    right: 30px;

    bottom: 165px;

    width: 360px;

    height: 520px;

    background: white;

    border-radius: 18px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);

    display: none;

    z-index: 9999;

}

.chat-header {

    height: 60px;

    background: #0d6efd;

    color: white;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 20px;

    font-weight: bold;

}

.chat-body {

    height: 390px;

    overflow-y: auto;

    padding: 15px;

    background: #f5f5f5;

}

.chat-footer {

    height: 70px;

    display: flex;

    border-top: 1px solid #ddd;

}

.chat-footer input {

    flex: 1;

    border: none;

    outline: none;

    padding: 15px;

}

.chat-footer button {

    width: 70px;

    border: none;

    background: #0d6efd;

    color: white;

    cursor: pointer;

}

.message {

    max-width: 75%;

    margin-bottom: 10px;

    padding: 10px 14px;

    border-radius: 16px;

    clear: both;

}

.agent {

    background: white;

    float: left;

}

.customer {

    background: #0d6efd;

    color: white;

    float: right;

}

.chat-welcome {

    text-align: center;

    padding: 30px 20px;

    color: #666;

}

.chat-welcome .avatar {

    width: 70px;
    height: 70px;

    background: #0d6efd;

    border-radius: 50%;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    font-size: 30px;

    margin-bottom: 15px;

}

.chat-welcome h5 {

    margin-bottom: 10px;

    font-weight: bold;

}

#btnSend:disabled {

    opacity: .5;

    cursor: not-allowed;

}

.msg {

    max-width: 75%;

    padding: 10px 14px;

    margin-bottom: 10px;

    border-radius: 18px;

    clear: both;

    word-break: break-word;

}

.me {

    background: #0d6efd;

    color: white;

    float: right;

}

.agent {

    background: white;

    border: 1px solid #ddd;

    float: left;

}