.chatbot {
    position: fixed;
    bottom: 65px;
    right: 20px;
    font-family: 'Roboto', sans-serif;
    z-index: 999;
}

.chatbot.active .btn-init-chat {
    display: none;
}

.chatbot .btn-init-chat {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fff;
    background-image: url(https://cdn-icons-png.flaticon.com/512/4712/4712126.png);
    background-size: contain;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 1px 2px 2px 2px rgb(0 0 0 / 49%);
    transition: all 0.4s ease;
    position: absolute;
    bottom: 0;
    right: 0;
    transform-origin: bottom right;
}

.chatbot .chat-card {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    transform-origin: bottom right;
    opacity: 0;
    pointer-events: none;
}

.chatbot.active .chat-card {
    width: 500px;
    max-width: 90vw;
    height: 600px;
    max-height: 90vh;
    border-radius: 15px;
    opacity: 1;
    pointer-events: all;
}

.chatbot.active .btn-init-chat {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

.chat-card-header,
.chat-card-body,
.chat-card-footer {
    opacity: 0;
    transition: opacity 0.3s ease 0.3s;
}

.chatbot.active .chat-card-header,
.chatbot.active .chat-card-body,
.chatbot.active .chat-card-footer {
    opacity: 1;
}

.chatbot .chat-card-header {
    padding: 10px !important;
    background-color: #f2f2f2;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chatbot .chat-card-header .titulo {
    display: flex;
    align-items: center;
}
.chatbot .chat-card-header .imagem img {
    max-width: 30px;
}

.chatbot .chat-card-header .titulo .imagem {
    padding-right: 10px;
}

.chatbot .chat-card-body {
    margin: 0;
    padding: 10px;
    overflow-y: scroll;
    height: calc(100% - 125px);
    position: relative;
}

.chatbot .chat-card-body li p {
    padding: 0px;
    margin: 0px;
}

.chatbot .chat-card-body li.you {
    margin-left: 20%;
    margin-bottom: 10px;
    text-align: right;
    color: #023E88;
    background-color: #f2f2f2;
    border-radius: 10px 10px 0 10px;
    padding: 10px;
    display: block
}

.chatbot .chat-card-body li.bot {
    margin-right: 20%;
    margin-bottom: 10px;
    text-align: left;
    color: #023E88;
    background-color: #e3f6ff;
    border-radius: 10px 10px 10px 0px;
    padding: 10px;
    display: block
}

.chatbot .chat-card-footer {
    padding: 10px;
    margin: 0px;
    border-radius: 0 0 10px 10px;
    position: relative;
    overflow: hidden;
}

.chatbot .chat-card-footer input.message {
    width: 100%;
    padding: 10px 60px 10px 10px;;
    border-radius: 10px;
    border: none;
    background-color: #f2f2f2;
}

.chatbot .chat-card-footer input.message:focus {
    outline: none;
}

.chatbot .chat-card-footer button.btn-send {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background-color: #4CAF5000;
    color: #fff;
    cursor: pointer;
}

.chat-loading {
    display: none;
}

.chat-loading.show {
    position: fixed;
    bottom: 70px;
    z-index: 999;
    display: initial;
}

.chat-loading span {
    font-size: 30px;
    animation: bounce 1s infinite;
    display: inline-block;
}

.typing-loader span:nth-child(1) {
    animation-delay: 0.1s;
}
.typing-loader span:nth-child(2) {
    animation-delay: 0.25s;
}
.typing-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}
