/*====================================
    Zebra Mart Chatbot
====================================*/

#chatbot-toggle{
    position:fixed;
    right:15px;
    bottom:70px;
    width:65px;
    height:65px;
    background:#007bff;
    border-radius:50%;
    cursor:pointer;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    font-size:28px;
    box-shadow:0 8px 25px rgba(0,0,0,.25);
    z-index:99999;
    transition:.3s;
}

#chatbot-toggle:hover{
    transform:scale(1.08);
    background:#0056b3;
}

.chat-icon{
    animation:pulse 2s infinite;
}

@keyframes pulse{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.15);
    }

    100%{
        transform:scale(1);
    }

}

/*====================================*/

#chatbot-window{

    width:370px;
    height:560px;

    position:fixed;

    right:25px;
    bottom:100px;

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    display:none;

    box-shadow:0 10px 35px rgba(0,0,0,.25);

    z-index:99999;

    border:1px solid #ddd;

}

/*====================================*/

.chat-header{

    background:#007bff;

    color:#fff;

    padding:15px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.chat-header-left{

    display:flex;

    align-items:center;

}

.bot-avatar{

    width:45px;

    height:45px;

    background:#fff;

    color:#007bff;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    margin-right:10px;

    font-size:22px;

    font-weight:bold;

}

.chat-header h5{

    margin:0;

    font-size:17px;

}

.chat-header small{

    opacity:.8;

}

#close-chat{

    background:none;

    border:none;

    color:#fff;

    font-size:28px;

    cursor:pointer;

}

/*====================================*/

.chat-body{

    height:390px;

    overflow-y:auto;

    background:#f5f7fa;

    padding:15px;

}

/* Scrollbar */

.chat-body::-webkit-scrollbar{

    width:6px;

}

.chat-body::-webkit-scrollbar-thumb{

    background:#bbb;

    border-radius:5px;

}

/*====================================*/

.bot-message{

    display:flex;

    margin-bottom:15px;

}

.user-message{

    display:flex;

    justify-content:flex-end;

    margin-bottom:15px;

}

.bot-message .message{

    background:#ffffff;

    padding:12px 15px;

    border-radius:15px 15px 15px 0;

    max-width:80%;

    box-shadow:0 3px 10px rgba(0,0,0,.08);

    font-size:14px;

    line-height:1.6;

}

.user-message .message{

    background:#007bff;

    color:#fff;

    padding:12px 15px;

    border-radius:15px 15px 0 15px;

    max-width:80%;

    font-size:14px;

    line-height:1.6;

}

/*====================================*/

.quick-list{

    margin-top:10px;

    padding-left:18px;

}

.quick-list li{

    margin-bottom:5px;

}

/*====================================*/

.chat-footer{

    display:flex;

    align-items:center;

    padding:12px;

    border-top:1px solid #eee;

    background:#fff;

}

.chat-footer input{

    flex:1;

    border:1px solid #ccc;

    border-radius:30px;

    padding:12px 18px;

    outline:none;

    font-size:14px;

}

.chat-footer input:focus{

    border-color:#007bff;

}

.chat-footer button{

    width:50px;

    height:50px;

    border:none;

    margin-left:10px;

    border-radius:50%;

    background:#007bff;

    color:#fff;

    cursor:pointer;

    font-size:20px;

    transition:.3s;

}

.chat-footer button:hover{

    background:#0056b3;

}

/*====================================*/
/* Typing Indicator */
/*====================================*/

#typing{

    display:flex;

    align-items:center;

    padding:10px 18px;

}

#typing span{

    width:8px;

    height:8px;

    background:#999;

    border-radius:50%;

    margin-right:5px;

    animation:typing 1s infinite;

}

#typing span:nth-child(2){

    animation-delay:.2s;

}

#typing span:nth-child(3){

    animation-delay:.4s;

}

@keyframes typing{

    0%{

        transform:translateY(0);

        opacity:.3;

    }

    50%{

        transform:translateY(-5px);

        opacity:1;

    }

    100%{

        transform:translateY(0);

        opacity:.3;

    }

}

/*====================================*/

a.chat-link{

    color:#007bff;

    text-decoration:none;

    font-weight:600;

}

a.chat-link:hover{

    text-decoration:underline;

}

/*====================================*/

@media(max-width:576px){

    #chatbot-window{

        width:95%;

        right:2.5%;

        bottom:90px;

        height:80vh;

    }

    #chatbot-toggle{

        right:20px;

        bottom:20px;

    }

}