/* =============================
   Floating Chat Button
============================= */

.chatbot-toggle{
    position:fixed;
    right:25px;
    bottom:25px;
    width:65px;
    height:65px;
    background:#5B21B6;
    color:#fff;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:28px;
    cursor:pointer;
    box-shadow:0 15px 35px rgba(0,0,0,.25);
    z-index:9999;
    transition:.3s;
}

.chatbot-toggle:hover{
    transform:scale(1.08);
}

.chat-notify{
    position:absolute;
    top:8px;
    right:8px;
    width:12px;
    height:12px;
    background:#ff3b30;
    border-radius:50%;
    border:2px solid #fff;
}

/* =============================
   Chat Window
============================= */

.chatbot-box{

    position:fixed;

    right:25px;

    bottom:100px;

    width:370px;

    height:560px;

    background:#fff;

    border-radius:25px;

    overflow:hidden;

    display:none;

    box-shadow:0 25px 60px rgba(0,0,0,.25);

    z-index:9999;

}

/* =============================
   Header
============================= */

.chat-header{

    background:#5B21B6;

    color:#fff;

    padding:18px 20px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.chat-user{

    display:flex;

    align-items:center;

    gap:12px;

}

.chat-avatar{

    width:48px;

    height:48px;

    border-radius:50%;

    background:#fff;

    color:#5B21B6;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:22px;

}

.chat-header h4{

    margin:0;

    font-size:17px;

    font-weight:700;

}

.chat-header small{

    color:#e9ddff;

}

#closeChat{

    cursor:pointer;

    font-size:22px;

}

/* =============================
   Chat Body
============================= */

.chat-body{

    height:410px;

    overflow-y:auto;

    padding:20px;

    background:#f8f8ff;

}

.bot-msg{

    background:#ede8ff;

    padding:15px 18px;

    border-radius:18px;

    max-width:85%;

    line-height:1.7;

    font-size:15px;

}

/* =============================
   Footer
============================= */

.chat-footer{

    display:flex;

    align-items:center;

    gap:10px;

    padding:15px;

    border-top:1px solid #eee;

    background:#fff;

}

.chat-footer input{

    flex:1;

    height:48px;

    border:1px solid #ddd;

    border-radius:30px;

    padding:0 18px;

    outline:none;

}

.chat-footer input:focus{

    border-color:#5B21B6;

}

.chat-footer button{

    width:48px;

    height:48px;

    border:none;

    background:#5B21B6;

    color:#fff;

    border-radius:50%;

    cursor:pointer;

    font-size:18px;

}
.quick-buttons{
    margin-top:20px;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.chat-btn{

    border:none;

    background:#5B21B6;

    color:#fff;

    border-radius:30px;

    padding:10px 18px;

    cursor:pointer;

    font-size:14px;

    transition:.3s;

}

.chat-btn:hover{

    background:#4318a8;

}
/* Quick Buttons */

.quick-actions{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    margin-top:18px;

}

.quick-btn{

    border:none;

    background:#ffffff;

    color:#5B21B6;

    border:1px solid #d8c8ff;

    border-radius:12px;

    padding:10px 14px;

    font-size:14px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}

.quick-btn:hover{

    background:#5B21B6;

    color:#fff;

}

.quick-btn i{

    margin-right:6px;

}
@media(max-width:768px){

.chatbot-box{

    width:95%;

    right:2.5%;

    left:2.5%;

    bottom:90px;

    height:78vh;

}

.chat-body{

    height:calc(78vh - 160px);

}

.quick-actions{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:8px;

}

.quick-btn{

    width:100%;

    font-size:13px;

    padding:10px;

}

}