#va-chat-button{

    position:fixed;

    right:25px;

    bottom:25px;

    width:65px;

    height:65px;

    border-radius:50%;

    background:#28a745;

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:28px;

    cursor:pointer;

    box-shadow:0 10px 25px rgba(0,0,0,.25);

    z-index:99999;

    transition:.3s;

}
.va-chat-welcome{
    padding:20px;
}

.va-chat-welcome h3{
    margin:0 0 10px;
    font-size:22px;
}

.va-chat-welcome p{
    margin:6px 0;
    color:#555;
    line-height:1.5;
}

.va-chat-welcome hr{
    margin:18px 0;
    border:none;
    border-top:1px solid #ddd;
}

.va-input{

    width:100%;
    box-sizing:border-box;
    padding:12px 14px;
    margin-bottom:12px;

    border:1px solid #ccc;
    border-radius:8px;

    font-size:15px;

    outline:none;

}

.va-input:focus{

    border-color:#28a745;

}

.va-btn{

    width:100%;

    padding:12px;

    background:#28a745;

    color:#fff;

    border:none;

    border-radius:8px;

    font-size:16px;

    cursor:pointer;

}

.va-btn:hover{

    background:#218838;

}

#va-chat-button:hover{

    transform:scale(1.08);

}

#va-chat-window{

    position:fixed;

    right:25px;

    bottom:105px;

    width:360px;

    height:560px;

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    display:none;

    flex-direction:column;

    box-shadow:0 15px 45px rgba(0,0,0,.25);

    z-index:99999;

}

.va-chat-header{

    background:#28a745;

    color:#fff;

    padding:18px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.va-chat-header small{

    display:block;

    opacity:.9;

}

#va-chat-close{

    border:none;

    background:none;

    color:#fff;

    font-size:24px;

    cursor:pointer;

}

#va-chat-body{

    flex:1;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    min-height:0;

    background:#f5f5f5;

}
#mensagens{

    flex:1;
    overflow-y:auto;
    min-height:0;

}

#novaMensagem{

    width:100%;
    box-sizing:border-box;

}

#enviarMensagem{

    white-space:nowrap;
    cursor:pointer;

}

.va-chat-tools {
    display:flex;
    align-items:center;
    gap:6px;
    margin-top:10px;
    flex-wrap:wrap;
}

.va-chat-tool {
    width:34px;
    height:34px;
    border:none;
    border-radius:50%;
    background:#fff;
    color:#198754;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 1px 4px rgba(0,0,0,.12);
    font-size:16px;
}

.va-chat-file input {
    display:none;
}

.va-chat-file-name {
    max-width:150px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:12px;
    color:#666;
}

.va-chat-attachment-img {
    display:block;
    max-width:190px;
    max-height:160px;
    margin-top:8px;
    border-radius:10px;
    object-fit:cover;
}

.va-chat-attachment-link {
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-top:8px;
    color:#198754;
    font-weight:600;
    text-decoration:none;
}

.va-chat-link {
    color:#146c43;
    font-weight:600;
    text-decoration:underline;
    overflow-wrap:anywhere;
}

@media (max-width: 600px) {

    #va-chat-button {
        right: 18px;
        bottom: 85px;
        width: 58px;
        height: 58px;
        font-size: 24px;
        z-index: 999999;
    }

    #va-chat-body {
        overflow-y: auto;
    }

}
.va-chat-credit {
    margin-top: 18px;
    padding: 12px 0 4px;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 11px;
}

.va-chat-credit a {
    color: #198754;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 600;
}

.va-chat-credit img {
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
}

.va-chat-credit a:hover {
    color: #146c43;
}

.va-chat-welcome {
    padding-bottom: 28px !important;
    overflow-y: auto;
}
.va-chat-credit {
    margin-top: 16px;
    padding: 10px 0 4px;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 11px;
}

.va-chat-credit a {
    color: #198754;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 600;
}

#va-chat-window {
    height: auto;
    max-height: calc(100dvh - 130px);
}

@media (max-width: 600px) {
    #va-chat-window {
        left: 10px !important;
        right: 10px !important;
        top: auto !important;
        bottom: 76px !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        max-height: calc(100dvh - 105px) !important;
        z-index: 999999;
    }

    #va-chat-body {
        overflow-y: auto;
    }

    .va-chat-header {
        padding: 14px 18px;
    }

    .va-chat-welcome {
        padding: 16px 18px 22px !important;
    }

    .va-chat-welcome h3 {
        font-size: 20px;
    }

    .va-chat-welcome hr {
        margin: 14px 0;
    }

    .va-input {
        padding: 10px 12px;
        margin-bottom: 10px;
    }

    .va-btn {
        padding: 11px;
    }

    .va-chat-credit {
        margin-top: 12px;
        padding-bottom: 8px;
    }
}
