#wg-chat-button{
    position:relative;
    overflow:visible;
}

.wg-chat-label{
    position:absolute;
    right:75px;
    top:50%;
    transform:translateY(-50%);
    background:#1f3d63;
    color:#fff;
    padding:7px 10px;
    border-radius:30px;
    font-size:12px;
    font-weight:600;
    white-space:nowrap;

    opacity:0;
    visibility:hidden;

    transition:all .25s ease;
}

.wg-chat-label::after{
    content:"";
    position:absolute;
    right:-6px;
    top:50%;
    transform:translateY(-50%);
    border-left:6px solid #1f3d63;
    border-top:6px solid transparent;
    border-bottom:6px solid transparent;
}

#wg-chat-button:hover .wg-chat-label{
    opacity:1;
    visibility:visible;
    right:65px;
}

.wg-chat-icon{
    width:30px;
    height:30px;
    color:#ffffff;
    display:block;
}

#wg-chat-container{
    position:fixed;
    right:17px;
    bottom:100px;
    z-index:999999;
}

/* BOTÃO FLUTUANTE */

#wg-chat-button{
    width:64px;
    height:64px;
    border-radius:50%;
    background:#2D445E;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    color:#ffffff;
    font-size:28px;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
    transition:.3s;
}

#wg-chat-button:hover{
    transform:scale(1.08);
}

/* JANELA CHAT */

#wg-chat-window{
    position:absolute;
    right:0;
    bottom:80px;
    width:380px;
    height:500px;
    background:white;
    border-radius:24px;
    overflow:hidden;
    z-index:99999;
    display:none;
    flex-direction:column;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
}

/* HEADER */

#wg-chat-header{
    background:#2D445E;
    color:#ffffff;
    padding:20px 40px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

#wg-chat-header strong{
    font-size:18px;
    color:#ffffff;
}

#wg-chat-header span{
    display:block;
    font-size:14px;
    opacity:.7;
    margin-top:4px;
}

#wg-close-chat{
    background:none;
    border:none;
    color:#ffffff;
    font-size:28px;
    cursor:pointer;
    padding:0;
}

/* MENSAGENS */

#wg-chat-messages{
    flex:1;
    overflow-y:auto;
    padding:20px;
    background:#f7f7f7;
}

.wg-message{
    margin-bottom:16px;
    max-width:85%;
    padding:14px 16px;
    border-radius:18px;
    line-height:1.5;
    font-size:14px;
    word-wrap:break-word;
}

.wg-user{
    background:#2D445E;
    color:white;
    margin-left:auto;
    border-bottom-right-radius:6px;
}

.wg-bot{
    background:white;
    color:#111;
    border-bottom-left-radius:6px;
}

/* FOOTER */

#wg-chat-footer{
    padding:16px;
    display:flex;
    gap:10px;
    border-top:1px solid #eee;
    background:white;
}

#wg-chat-input{
    flex:1;
    border:1px solid #ddd;
    border-radius:14px;
    padding:14px;
    outline:none;
    font-size:14px;
}

#wg-chat-input:focus{
    border-color:#111;
}

#wg-send-message{
    background:#2D445E;
    color:white;
    border:none;
    border-radius:14px;
    padding:0 20px;
    cursor:pointer;
    transition:.3s;
}

#wg-send-message:hover{
    opacity:.9;
}

/* FEEDBACK */

.wg-feedback{
    display:flex;
    gap:8px;
    margin-top:8px;
    margin-bottom:10px;
}

.wg-feedback button{
    border:none;
    background:#efefef;
    cursor:pointer;
    border-radius:8px;
    padding:6px 10px;
    transition:.2s;
}

.wg-feedback button:hover{
    background:#ddd;
}

/* TYPING */

.typing-dots{
    display:flex;
    gap:4px;
}

.typing-dots span{
    width:8px;
    height:8px;
    background:#999;
    border-radius:50%;
    animation:typing 1.4s infinite;
}

.typing-dots span:nth-child(2){
    animation-delay:.2s;
}

.typing-dots span:nth-child(3){
    animation-delay:.4s;
}

@keyframes typing{

    0%, 60%, 100%{
        transform:translateY(0);
        opacity:.4;
    }

    30%{
        transform:translateY(-4px);
        opacity:1;
    }

}

/* RESPONSIVO */

@media(max-width:768px){

    #wg-chat-container{
        right:8px;
        bottom:70px;
    }

    #wg-chat-window{
        width:calc(100vw - 28px);
        height:75vh;
        right:0;
        bottom:80px;
    }

    #wg-chat-button{
        width:50px;
        height:50px;
        font-size:24px;
    }

}