:root {
    --primary: rgb(115, 83, 130);
    --white: #ffffff;
    --orange: #FAAF41;
  }


@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;700&display=swap');


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-font-smoothing: antialiased!important;
    -moz-osx-font-smoothing: grayscale;
}


#app-wrapper{
    font-family: 'Ubuntu', sans-serif;
    font-weight: 300;
    position: fixed;
    bottom: 4rem;
    right: 1rem;
    width: 300px;
    height: 550px;
    margin-left: auto;
    -webkit-box-shadow: 0px 0px 30px 2px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 0px 30px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 30px 2px rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    border-top-left-radius: 170px;
    border-top-right-radius: 170px;
    max-height: 550px;
    z-index: 2000;
    animation: slide-up 1s ease-in-out forwards;
    transform-origin: bottom;
}

#app-wrapper.minimized {
    width: 0px;
    height: 0px;
    border-radius: 50%;
    transform: translateX(calc(100% - 70px));
    transition: all 0.3s ease-in-out;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
}

#app-wrapper.slideUp{
    animation: slide-up 1s ease-in-out forwards;
    transform-origin: bottom;
}
  

#app-wrapper .app-header{
    max-width: 100%;
    position: relative;
    background: var(--primary);
    height: 3rem;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom: 1px;
}

.app-footer{
    position: relative;
    /* background: rgb(221, 103, 0); */
    background: white;
    height: 3.6rem;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.app-footer .write-area{
    position: absolute;
    font-size: 11px;
    font-family: sans-serif;
    overflow: hidden;
    word-wrap: break-word;
    resize: none;
    width: 90%;
    left: 1rem;
    background-color: white;
    border: 1px solid #f9f9f9;
    padding: 5px;
    padding-right: 50px;
    padding-left: 14px;
    padding-top: 12.5px;
    border-radius: 20px 20px 20px 20px;
    height: 2.5rem;
    top: 0.4rem;
}

.app-footer .search-icon{
    position: absolute;
    width: 2rem;
    height: 2rem;
    background-color: var(--orange);
    color: white;
    right: 20px;
    border-radius: 50%;
    top: 19%;
    border: none;
    cursor: pointer;
}

.app-footer .search-icon i{
    scale: 1;
    position: inherit;
    top: 7.5px;
    left: 7px;
}

#app-wrapper .chat{
    position: relative;
    background: white;
    height: 30.8rem;
    padding: 1rem;
    opacity: 1;
    overflow: auto;
}

.time {
    color: #5a5a5a;
    padding: 2px 12px;
    font-size: 9px;
    transition: opacity 150ms;
}

.bubble-bot,
.bubble-bot-typing {
    color: #5a5a5a;
    background: #f5f5f5;
    padding: 8px 16px;
    border-radius: 0px 15px 15px 15px;
    font-weight: 400;
    text-transform: none;
    text-align: left;
    font-size: 11px;
    /* letter-spacing: 0.7px; */
    margin: 0 0 2px 0;
    max-width: 100%;
    float: none;
    clear: both;
    line-height: 1.5em;
    word-break: break-word;
    transform-origin: left top;
    transition: all 200ms;
    box-sizing: content-box;
    margin-top: 8px;
    /* box-shadow: 1px 2px rgba(164, 164, 164, 0.578); */
}

.bubble-bot .bubble-bot-content {
  transition: opacity 150ms;
}

.bubble-bot:not(.say) .bubble-bot-content {
  opacity: 0;
}

.span-option{
    margin-top: 6px !important;
    position: absolute;
}

.bubble-bot.reply {
    background: var(--orange);
    color: #fff;
    padding: 5px 16px;
    margin-left: 2px;
    text-align: center;
    display: inline-block;
    float: right;
    /* cursor: pointer; */
    transition: all 200ms;
    text-decoration: none;
    word-break: normal;
    box-sizing: content-box;
    animation-play-state: paused;
    animation-fill-mode: forwards;
    transform: translate3d(0px, 0px, 0px);
    animation-delay: -3s;
    -ms-animation-delay: -3;
    -webkit-animation-delay: -3s;
    border-radius: 15px 15px 5px 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.bot.bot-img{
    position: relative;
    padding-bottom: 5px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    max-width: 45px;
    margin-left: 0.2rem;
    top: 2px;
}

.bot.bot-img img{
    width: 100%;
}

.bot.bot-img.minimized{
    display: none;
}

.bot.bot-name{
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    position: relative;
    max-width: 45px;
    color: white;
    z-index: 1;
    right: -3.4rem;
    top: -2.56rem;
}

.bot.bot-description{
    font-family: 'Ubuntu', sans-serif;
    font-weight: 300;
    position: relative;
    color: white;
    z-index: 1;
    right: -3.5rem;
    top: -3rem;
    font-size: 14px;
}

.bot.bot-answer{
    list-style: none;
    padding: 5px;
    margin-top: 5px;
    text-align: center;
    background-color: white;
    border-radius: 50px;
    cursor: pointer;
}

.bot.bot-answer.selected{
    background-color: var(--orange);
    color: var(--white);
}

.bot-answer-list.disabled{
    pointer-events: none;
}

.bot.bot-answer:not(.goback):hover{
    background-color: var(--orange);
    color: var(--white);
}

.bot.bot-answer.goback{
    list-style: none;
    padding: 5px;
    margin-top: 5px;
    text-align: center;
    background-color: var(--primary);
    color: white;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    /* left: 8rem; */
    /* width: 90px; */
    position: relative;
}

.bot.bot-close{
    /*position: relative;
    color: white;
    z-index: 1;
    right: -34rem;
    top: -7.6rem;
    scale: 1.5;
    cursor: pointer;*/
    position: relative;
    color: white;
    z-index: 1;
    right: -21rem;
    top: -4.9rem;
    scale: 1.5;
    cursor: pointer;
}

.bot.bot-minimize{
/*    position: relative;
    color: white;
    z-index: 1;
    right: -23.1rem;
    top: -10rem;
    scale: 1.5;
    width: 15px;
    cursor: pointer;*/
    
    position: relative;
    color: white;
    z-index: 1;
    right: -14.1rem;
    top: -6.3rem;
    scale: 1.5;
    width: 15px;
    cursor: pointer;
}

.chat-bot-icon{
    position: fixed;
    bottom: 0;
    right: 0;
    max-width: 200px;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

.chat-bot-icon img{
    position: relative;
    width: 100%;
    right: -30px;
}

.chat-bot-icon img:hover{
    cursor: pointer;
}

#app-wrapper .chat.active{
    opacity: 1;
}

.bot-thinking{
    position: relative;
    width: 8rem;
    left: 4rem;
    padding-top: 4rem;
}

.bot-thinking.inactive{
    width: 4rem;
    left: 0;
    padding-top: 4rem;
}

.bot-thinking-confused{
    position: relative;
    width: 8rem;
    left: 4rem;
    padding-top: 5rem;
}


#app-wrapper .chat::-webkit-scrollbar {
    width: 8px;               /* width of the entire scrollbar */
}
  
#app-wrapper .chat::-webkit-scrollbar-track {
    background: var(--white);        /* color of the tracking area */
}   
  
#app-wrapper .chat::-webkit-scrollbar-thumb {
    background-color: var(--primary);    /* color of the scroll thumb */
    border-radius: 20px;       /* roundness of the scroll thumb */
}
  

    /* Estilo do popup */
    #chat-bot-popup {
        /*position: fixed;
        bottom: 22px;
        right: 30px;
        width: 325px;
        height: 4.8rem;
        background-color: var(--primary);
        padding: 10px;
        border-radius: 50px;
        display: none;
        cursor: pointer;
        z-index: 2000 !important;*/
        position: fixed;
        bottom: 22px;
        right: 30px;
        width: 325px;
        height: 3rem;
        background-color: var(--primary);
        padding: 10px;
        border-radius: 50px;
        display: none;
        cursor: pointer;
        z-index: 2000 !important;
    }

    #chat-bot-popup .bot-img{
        top: 0;
        left: -1px;
        position: absolute;
        max-width: 200px;
    }

    #chat-bot-popup .bot-img img{
        width: 48px;
    }

    #chat-bot-popup .bot-name{
        width: 48px;
        left: 50px;
        color: var(--white);
        font-family: 'Ubuntu', sans-serif;
        font-weight: 700;
        position: relative;
        top: -5px;
    }

    #chat-bot-popup .bot-description{
        width: 17rem;
        color: var(--white);
        font-family: 'Ubuntu', sans-serif;
        font-weight: 300;
        position: relative;
        font-size: 13px;
        left: 50px;
        top: -10px;
    }

    #chat-bot-popup .bot-maximize{
        /*position: relative;
        left: 24.8rem;
        top: -4rem;
        color: white;
        z-index: 10;
        scale: 1;*/
        position: relative;
        left: 19.8rem;
        top: -2.6rem;
        color: white;
        z-index: 10;
        scale: 1.3;
    }

    #chat-bot-popup .bot-close{
        position: relative;
        left: 35.5rem;
        top: -6.4rem;
        color: white;
        z-index: 10;
        scale: 1.5;
    }

    #chat-bot-popup .bot-img{
        top: 0;
        left: -1px;
        position: absolute;
        max-width: 200px;
    }



    @keyframes fade-in {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }

      .bubble-bot .bubble-bot-content.animated {
        opacity: 0;
        animation-duration: 1s;
        animation-fill-mode: forwards;
      }
      
      .bubble-bot .bubble-bot-content.fade-in {
        animation-name: fade-in;
      }
      
      
      
@keyframes slide-up {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0%);
    }
  }