*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
}


/* CHAT ICON */
.chat-icon {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s ease;
}

.chat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chat-icon:hover {
    transform: scale(1.1);
}


/* CHAT WINDOW */

.chat-box{

    position:fixed;

    right:20px;

    bottom:90px;

    width:360px;

    height:520px;

    background:white;

    border-radius:18px;

    display:none;

    flex-direction:column;

    overflow:hidden;

    box-shadow:0 10px 30px rgba(0,0,0,.2);

    z-index:999;

}



/* HEADER */

.chat-header{

    height:60px;

    background:#2563eb;

    color:white;

    padding:0 18px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    font-size:18px;

    font-weight:bold;

}


.close-btn{

    cursor:pointer;

    font-size:25px;

}



/* CHAT BODY */

.chat-body{

    flex:1;

    padding:15px;

    display:flex;

    flex-direction:column;

    gap:12px;

    overflow-y:auto;

}



/* BOT MESSAGE */

.bot-message{

    background:#f1f5f9;

    color:#222;

    max-width:80%;

    width:auto;

    padding:14px;

    border-radius:18px 18px 18px 5px;

    line-height:1.6;

    align-self:flex-start;

    word-wrap:break-word;

}



/* USER MESSAGE */

.user-message{

    background:#2563eb;

    color:white;

    max-width:80%;

    width:auto;

    padding:14px;

    border-radius:18px 18px 5px 18px;

    line-height:1.6;

    align-self:flex-end;

    word-wrap:break-word;

}



/* OPTION BUTTONS */

.option-btn{
    background:#2563eb;
    color:white;
    border:none;
    padding:12px 18px;
    border-radius:25px;
    cursor:pointer;
    align-self:flex-start;   /* must be flex-start, not flex-end */
    margin:5px 0;
    transition:.3s;
}

.options-wrapper{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-self:flex-start;
    max-width:90%;
}


.option-btn:hover{

    background:#1749c6;

}



/* PROMO INPUT */

.input-box{

    display:flex;

    gap:8px;

    margin-top:10px;

}


.input-box input{

    flex:1;

    padding:10px 15px;

    border-radius:20px;

    border:1px solid #ccc;

    outline:none;

}


.input-box button{

    background:#2563eb;

    color:white;

    border:none;

    padding:10px 15px;

    border-radius:20px;

    cursor:pointer;

}





/* MOBILE */

@media(max-width:768px){


    .chat-box{

        width:360px;

        max-width:90%;

        height:70vh;

        right:15px;

        bottom:85px;

        border-radius:18px;

    }



    .chat-header{

        height:55px;

        font-size:16px;

        padding:0 15px;

    }



    .chat-body{

        padding:12px;

    }



    .bot-message,
    .user-message{

        max-width:85%;

        font-size:14px;

    }



    .option-btn{

        font-size:14px;

        padding:10px 15px;

    }



    .chat-icon{

        width: 40px;

        height:58px;

        right:18px;

        bottom:18px;

        font-size:26px;

    }

}



/* SMALL MOBILE */

@media(max-width:400px){


    .chat-box{

        width:80%;

        height:65vh;

        right:4%;

    }


}