
/* =========================================================
   GEST AI CHATBOT + WHATSAPP
   ========================================================= */

#gest-ai-launcher{
    position:fixed;
    right:24px;
    bottom:88px;
    z-index:99990;
    width:58px;
    height:58px;
    border:0;
    border-radius:50%;
    background:#183f37;
    color:#fff;
    cursor:pointer;
    font-size:25px;
    box-shadow:0 8px 25px rgba(0,0,0,.20);
}

#gest-ai-launcher:hover{
    transform:translateY(-2px);
}

#gest-whatsapp{
    position:fixed;
    right:24px;
    bottom:20px;
    z-index:99990;
    width:58px;
    height:58px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#25D366;
    color:#fff;
    text-decoration:none;
    font-size:27px;
    box-shadow:0 8px 25px rgba(0,0,0,.20);
}

#gest-ai-box{
    display:none;
    position:fixed;
    right:24px;
    bottom:158px;
    z-index:99991;
    width:370px;
    max-width:calc(100vw - 32px);
    height:520px;
    max-height:calc(100vh - 190px);
    background:#fffaf7;
    border:1px solid #dfd4cd;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 18px 60px rgba(0,0,0,.22);
    font-family:"DM Sans",Arial,sans-serif;
}

#gest-ai-box.gest-open{
    display:flex;
    flex-direction:column;
}

.gest-ai-head{
    background:#183f37;
    color:#fff;
    padding:17px 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.gest-ai-title{
    font-size:16px;
    font-weight:800;
}

.gest-ai-subtitle{
    font-size:11px;
    opacity:.78;
    margin-top:3px;
}

#gest-ai-close{
    background:transparent;
    color:#fff;
    border:0;
    font-size:22px;
    cursor:pointer;
}

#gest-ai-messages{
    flex:1;
    overflow-y:auto;
    padding:16px;
}

.gest-msg{
    max-width:88%;
    padding:11px 13px;
    margin:0 0 10px;
    border-radius:14px;
    font-size:14px;
    line-height:1.55;
}

.gest-msg.bot{
    background:#f1e9e4;
    color:#183f37;
}

.gest-msg.user{
    margin-left:auto;
    background:#183f37;
    color:#fff;
}

.gest-ai-form{
    display:flex;
    gap:8px;
    padding:12px;
    border-top:1px solid #e4dad4;
    background:#fff;
}

#gest-ai-input{
    flex:1;
    min-width:0;
    border:1px solid #d8ccc5;
    border-radius:12px;
    padding:11px 12px;
    font-family:inherit;
    outline:none;
}

#gest-ai-send{
    border:0;
    border-radius:12px;
    background:#c47760;
    color:#fff;
    padding:0 15px;
    font-weight:700;
    cursor:pointer;
}

@media(max-width:600px){
    #gest-ai-launcher,
    #gest-whatsapp{
        right:16px;
    }

    #gest-ai-box{
        right:16px;
        bottom:150px;
        width:calc(100vw - 32px);
    }
}

/* GEST AI — USER MESSAGE TEXT VISIBILITY FIX — FROZEN SCOPE */
#gest-ai-box .gest-msg.user {
    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;
}


/* GEST AI — CHATBOT HEADER TEXT VISIBILITY — FINAL */
#gest-ai-box .gest-ai-head,
#gest-ai-box .gest-ai-head .gest-ai-title,
#gest-ai-box .gest-ai-head .gest-ai-subtitle,
#gest-ai-box #gest-ai-close {
    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;
}

