@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

*{
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
    font-family: 'Poppins', sans-serif;
}
/*
body{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;

}*/

#preview{
    height: 100px;
}

.open-chat-cont{
    position: fixed;
    bottom: 10px;
    z-index: 100;
    right: 20px;
}

#open-chat{
    width: 55px;
    height: 55px;
    cursor: pointer;
}

#open-chat path{
    stroke: #6f4e37db;
}

#open-chat.active path,#open-chat.dark path{
    stroke: white;
}

#chatbot-popout{
    position: fixed;
    bottom: 80px;
    max-height: 0px;
    right: 20px;
    z-index: 90;
    transition: 0.3s;
}

#chatbot-popout.active{
    max-height: 80%;
}

@media(max-width: 500px){
    .chatbot-popout{
        left: 0px;
        bottom: 0px;
        top: 0px;
        margin-top: 57px;
    }

    .chatbot-popout.active{
        width: 100%;
        position: fixed;
        right: 0px;
        left: 0px;
        bottom: 0px;
        max-height: 100%;
    }
}


.dorelimg{
    border-radius: 25px;
}

.chatbot-popout{
    position: relative;
    width: 400px;
    background-color: #fff;
    overflow: hidden;
    border-radius: 15px;
}

@media(max-width: 500px){
    .chatbot-popout{
        border-radius: 0px;
        border-top:2px solid white;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
        width: 100%;
    }
}


.chatbot-popout.dark{
    background-color: #fff;
}

.chat-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 22px;
    background-color: #6f4e37;
}


.chat-header.dark{
    background-color: #1E1E1E;
}

.chat-header .header-info{
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-info .dorelimg{
     height: 45px;
     width: 45px;
}

.header-info .logo-text{
    color: white;
    font-weight: 600;
    font-size: 1.31rem
}

.chat-header #close-chatbot{
    border: none;
    color: white;
    height: 40px;
    width: 40px;
    padding-top: 2px;
    margin-right: -10px;
    font-size: 1.9rem;
    border-radius: 25px;
    cursor: pointer;
    background: none;
    transition: 0.2s ease;
}

.chat-header #close-chatbot:hover{
    background: #885f41;
}

.chat-header.dark #close-chatbot:hover{
    background: #212121;
}

.chat-body{
    padding: 20px 15px;
    display: flex;
    gap: 20px;
    height: 460px;
    overflow-y: auto;
    flex-direction: column;
    margin-bottom: 82px;
    background-color: #926545;
}

@media(max-width: 500px){
    .chat-body{
        height: 100%;
        padding-bottom: 170px;
    }
}

.chat-body.dark{
    background-color: #403d3d;
}

.chat-body .message{
    display: flex;
    gap: 11px;
    align-items: center;
}

.chat-body .bot-message .bot-avatar{
    height: 45px;
    width: 45px;
    border-radius: 25px;
    padding: 2px;
    align-self: flex-end;
}

.chat-body .user-message{
    flex-direction: column;
    align-items: flex-end;
}

.chat-body .message .message-text{
    padding: 10px 15px;
    background-color: transparent;
    font-size: 0.95rem;
    max-width: 75%;
}

.chat-body .bot-message .message-text{
    border-radius: 13px 13px 13px 3px;
    background-color: #9c7456;
    color: white;
}

.chat-body .user-message .message-text{
    border-radius: 15px;
    border-radius: 13px 13px 3px 13px;
    background-color: #9c7456;
    color: white;
}

.chat-body .bot-message .message-text.dark{
    background-color: #2e2c2c;
}

.chat-body .user-message .message-text.dark{
    background-color: #2e2c2c;
}

.message-text.dark{
    background-color: #403d3d;/*/////////////////////////////////////////////////////////////////////////////////////////////*/
}

.chat-body .bot-message .thinking-indicator{
    display: flex;
    gap: 4px;
    padding-block: 7px;
}

.chat-body .bot-message .thinking-indicator .dot{
    height: 7px;
    width: 7px;
    border-radius: 50%;
    background: #ffffff; /*user color*/
    animation: dotPulse 1.8s ease-in-out infinite;
}

.chat-body .bot-message .thinking-indicator .dot:nth-child(1){
    animation-delay: 0.2s;
}

.chat-body .bot-message .thinking-indicator .dot:nth-child(2){
    animation-delay: 0.4s;
}

.chat-body .bot-message .thinking-indicator .dot:nth-child(3){
    animation-delay: 0.6s;
}

@keyframes dotPulse{
    0%, 44%{
        transform: translateY(0);
    }

    28%{
        opacity: 0.4;
        transform: translateY(-4px);
    }

    44%{
        opacity: 0.2;
    }
}

.chat-footer{
    position: absolute;
    bottom: 0px;
    width: 100%;
    background-color: #926545;;
    padding: 15px 15px 20px;
}

.chat-footer.dark{
    background-color: #403d3d;
}

.chat-footer .chat-form{
    display: flex;
    align-items: center;
    background-color: transparent;
    border-radius: 32px;
    outline: 1px solid #fff;
}

.chat-footer .chat-form:focus-within{
    outline: 2px solid #fff;
}

.arrow-up-container{
    display: flex;
    justify-content: center;
    align-items: center;
}

#arrow-up{
    width: 70%;
    margin-bottom: 2px;
}

.chat-form .message-input{
    border: none;
    outline: none;
    height: 47px;
    width: 100%;
    font-size: 0.95rem;
    padding: 10px 0 14px 18px;
    border-radius: inherit;
    resize: none;
    background-color: transparent;
    color: white;
}

.chat-form .message-input::placeholder{
    color: white;
}

.chat-form .chat-controls{
    display: flex;
    height: 47px;
    align-items: center;
    align-self: flex-end;
    gap: 3px;
    padding-right: 6px;
}

.chat-form .chat-controls button{
    height: 40px;
    width: 40px;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    background: none;
    background: #d8d8d8;/*888888888888888*/
    font-size: 20px;
}

.chat-form .chat-controls button:hover{
    background: #bfbfbf;/*888888888888888*/
}