.widget {
    width: 100%;
    max-width: 400px;
    height: 500px;
    border-radius: 15px;
    position: fixed;
    right: 40px;
    bottom: 90px;
    transform: scale(0.5);
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom right;
    overflow: hidden;
    transition: all 0.1s ease;
    z-index: 999;
}

.show-chatbot .widget {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chatbot-toggler {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 55px;
    height: 55px;
    color: #fff;
    border: solid 2px #fff;
    background: #00558c;
    border-radius: 50%;
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    z-index: 898;
}

.show-chatbot .chatbot-toggler {
    transform: rotate(90deg);
}

.chatbot-toggler span {
    position: absolute;
}

.show-chatbot .chatbot-toggler span:first-child,
.chatbot-toggler span:last-child {
    opacity: 0;
}

.show-chatbot .chatbot-toggler span:last-child {
    opacity: 1;
}

.widget-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.widget .widget-content .widget-header {
    background: #00558c;
    margin: 0;
    display: flex;
    padding: 20px;
    align-items: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.widget .widget-content .widget-header .imagem {
    width: 40px;
    height: 40px;
}

.widget .widget-content .widget-body {
    background: #fff;
    padding: 15px;
    overflow-y: auto; /* Adiciona a rolagem vertical */
    flex-grow: 1;
    padding-bottom: 10px;
}

.widget .widget-content .widget-footer {
    width: 100%;
    padding: 0 15px;
    display: flex;
    background: #131f45;
    min-height: 50px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.widget-body .message {
    display: flex;
    margin-bottom: 10px;
}

.widget-body .message img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.widget-body .message .text {
    width: 200px;
    padding: 10px;
    font-size: 85%;
}

.widget-body .message.user .text {
    background: #049dd9;
    margin-left: auto;
    color: white;
    border-radius: 10px 10px 0 10px;
}

.widget-body .message.bot .text {
    background: #0b2866;
    color: white;
    border-radius: 10px 10px 10px 0;
}

@media(max-width: 490px) {
    .widget {
        width: 100%;
        max-width: 100%;
        height: 100%;
        right: 0;
        bottom: 0;
    }

    .widget .widget-content .widget-footer {
        /* height: 50px; */
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .widget .widget-content .widget-header {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .widget .widget-content .widget-header .close-button i {
        display: block !important;
    }
}
