#markp-chat-container{
    position:fixed;
    right:17px;
    bottom:100px;
    z-index:999999;
}

/* BOTÃO FLUTUANTE */

#markp-chat-button{
    width:64px;
    height:64px;
    border-radius:50%;
    background:#4285f4;
    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;
}

#markp-chat-button:hover{
    transform:scale(1.08);
}

/* JANELA CHAT */

#markp-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 */

#markp-chat-header{
    background:#4285f4;
    color:#ffffff;
    padding:20px 40px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}
#markp-chat-header strong {
    font-size:18px;
    color:#ffffff;
}
#markp-chat-header span{
    display:block;
    font-size:14px;
    opacity:.7;
    margin-top:4px;
}

#markp-close-chat{
    background:none;
    border:none;
    color:#ffffff;
    font-size:28px;
    cursor:pointer;
    padding:0;
}

/* MENSAGENS */

#markp-chat-messages{
    flex:1;
    overflow-y:auto;
    padding:20px;
    background:#f7f7f7;
}

.markp-message{
    margin-bottom:16px;
    max-width:85%;
    padding:14px 16px;
    border-radius:18px;
    line-height:1.5;
    font-size:14px;
    word-wrap:break-word;
}

.markp-user{
    background:#4285f4;
    color:white;
    margin-left:auto;
    border-bottom-right-radius:6px;
}

.markp-bot{
    background:white;
    color:#111;
    border-bottom-left-radius:6px;
}

/* FOOTER */

#markp-chat-footer{
    padding:16px;
    display:flex;
    gap:10px;
    border-top:1px solid #eee;
    background:white;
}

#markp-chat-input{
    flex:1;
    border:1px solid #ddd;
    border-radius:14px;
    padding:14px;
    outline:none;
    font-size:14px;
}

#markp-chat-input:focus{
    border-color:#111;
}

#markp-send-message{
    background:#4285f4;
    color:white;
    border:none;
    border-radius:14px;
    padding:0 20px;
    cursor:pointer;
    transition:.3s;
}

#markp-send-message:hover{
    opacity:.9;
}

/* FEEDBACK */

.markp-feedback{
    display:flex;
    gap:8px;
    margin-top:8px;
    margin-bottom:10px;
}

.markp-feedback button{
    border:none;
    background:#efefef;
    cursor:pointer;
    border-radius:8px;
    padding:6px 10px;
    transition:.2s;
}

.markp-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){

    #markp-chat-container{
        right:14px;
        bottom:14px;
    }

    #markp-chat-window{
        width:calc(100vw - 28px);
        height:75vh;
        right:0;
        bottom:80px;
    }

    #markp-chat-button{
        width:58px;
        height:58px;
        font-size:24px;
    }

}