.chatbot-widget{
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9000;
    font-family: inherit;
}
.chatbot-widget-launcher{
    display: flex;
    align-items: flex-end;
    gap: 10px;
    animation: chatbot-sobe-desce 1.5s ease-in-out infinite;
}
.chatbot-widget.is-open .chatbot-widget-launcher{
    animation: none;
}
.chatbot-widget-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #00995D;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
}
.chatbot-widget-btn img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.chatbot-widget-btn:focus-visible{
    outline: 3px solid #245F40;
    outline-offset: 2px;
}
.chatbot-widget-hint{
    position: relative;
    max-width: 220px;
    padding: 10px 12px;
    border: 1px solid #c9e2d3;
    border-radius: 12px 12px 4px 12px;
    background: #fff;
    color: #245F40;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}
.chatbot-widget-hint.is-hidden,
.chatbot-widget-panel{
    display: none;
}
.chatbot-widget.is-open .chatbot-widget-hint{
    display: none;
}
.chatbot-widget.is-open .chatbot-widget-panel{
    display: flex;
    flex-direction: column;
}
.chatbot-widget-panel{
    position: absolute;
    right: 0;
    bottom: 84px;
    width: 380px;
    height: 620px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    overflow: hidden;
}
.chatbot-widget-header{
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 12px;
    background: #00995D;
    color: #fff;
}
.chatbot-widget-header img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}
.chatbot-widget-header strong{
    flex: 1;
    font-size: 0.95rem;
}
.chatbot-widget-close{
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}
.chatbot-widget-close:hover{
    background: rgba(255, 255, 255, 0.3);
}
.chatbot-widget-frame{
    flex: 1;
    width: 100%;
    border: 0;
    background: #f5f5f5;
}

@keyframes chatbot-sobe-desce{
    0%, 100%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-12px);
    }
}

@media (max-width: 576px){
    .chatbot-widget{
        right: 12px;
        bottom: 12px;
    }
    .chatbot-widget-btn{
        width: 64px;
        height: 64px;
    }
    .chatbot-widget-hint{
        max-width: min(220px, calc(100vw - 100px));
        font-size: 0.8rem;
    }
    .chatbot-widget.is-open .chatbot-widget-panel{
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-width: 100vw;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        border: 0;
    }
}

@media (prefers-reduced-motion: reduce){
    .chatbot-widget-launcher{
        animation: none;
    }
}
