.assistente-conbcon {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 120;
    font-family: 'Poppins', Arial, sans-serif;
    color: #101633;
}

.assistente-conbcon *,
.assistente-conbcon *::before,
.assistente-conbcon *::after {
    box-sizing: border-box;
}

.assistente-conbcon__launcher {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #0646D3;
    color: #fff;
    box-shadow: 0 18px 36px rgba(6, 70, 211, .32), 0 6px 14px rgba(6, 13, 39, .24);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.assistente-conbcon__launcher:hover,
.assistente-conbcon__launcher:focus-visible {
    background: #0A57F2;
    box-shadow: 0 22px 44px rgba(6, 70, 211, .38), 0 7px 16px rgba(6, 13, 39, .26);
    transform: translateY(-2px);
}

.assistente-conbcon__launcher svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.assistente-conbcon__panel {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: min(380px, calc(100vw - 32px));
    height: min(620px, calc(100vh - 118px));
    min-height: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(6, 70, 211, .12);
    border-radius: 8px;
    box-shadow: 0 24px 58px rgba(6, 13, 39, .28), 0 8px 18px rgba(6, 13, 39, .14);
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.assistente-conbcon__panel[hidden] {
    display: none;
}

.assistente-conbcon.is-open .assistente-conbcon__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.assistente-conbcon__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 16px 14px;
    background: #071247;
    color: #fff;
}

.assistente-conbcon__header strong {
    display: block;
    font: 700 18px/22px 'Oswald', Arial, sans-serif;
    text-transform: uppercase;
    color: #fff;
}

.assistente-conbcon__header span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font: 500 12px/16px 'Poppins', Arial, sans-serif;
    color: #A7BBFF;
}

.assistente-conbcon__header span::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #35D07F;
}

.assistente-conbcon__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.assistente-conbcon__close:hover,
.assistente-conbcon__close:focus-visible {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .32);
}

.assistente-conbcon__close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.assistente-conbcon__messages {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 16px;
    background: #F4F6FB;
}

.assistente-conbcon__message {
    max-width: 86%;
    padding: 11px 13px;
    border-radius: 8px;
    font: 400 14px/21px 'Poppins', Arial, sans-serif;
    color: #101633;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.assistente-conbcon__message a {
    color: #0646D3;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.assistente-conbcon__message--assistant {
    align-self: flex-start;
    background: #fff;
    border: 1px solid rgba(6, 70, 211, .10);
}

.assistente-conbcon__message--user {
    align-self: flex-end;
    background: #0646D3;
    color: #fff;
}

.assistente-conbcon__typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 48px;
}

.assistente-conbcon__typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #60709B;
    animation: assistenteTyping 1s infinite ease-in-out;
}

.assistente-conbcon__typing span:nth-child(2) {
    animation-delay: .15s;
}

.assistente-conbcon__typing span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes assistenteTyping {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: .45;
    }
    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.assistente-conbcon__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border-top: 1px solid rgba(6, 70, 211, .10);
}

.assistente-conbcon__field {
    min-width: 0;
}

.assistente-conbcon__field textarea {
    width: 100%;
    max-height: 120px;
    resize: none;
    overflow-y: auto;
    padding: 11px 13px;
    border: 1px solid rgba(6, 70, 211, .18);
    border-radius: 8px;
    background: #F8FAFE;
    color: #101633;
    font: 400 14px/20px 'Poppins', Arial, sans-serif;
}

.assistente-conbcon__field textarea::placeholder {
    color: #6F7EA8;
}

.assistente-conbcon__field textarea:focus {
    border-color: #0646D3;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(6, 70, 211, .10);
}

.assistente-conbcon__send {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: end;
    border-radius: 50%;
    background: #0646D3;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, opacity .2s ease;
}

.assistente-conbcon__send:hover,
.assistente-conbcon__send:focus-visible {
    background: #0A57F2;
    transform: translateY(-1px);
}

.assistente-conbcon__send:disabled {
    cursor: not-allowed;
    opacity: .5;
    transform: none;
}

.assistente-conbcon__send svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.assistente-conbcon__contato {
    display: block;
    padding: 0 14px 14px;
    background: #fff;
    color: #0646D3;
    font: 600 13px/18px 'Poppins', Arial, sans-serif;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.assistente-conbcon__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 520px) {
    .assistente-conbcon {
        right: 14px;
        bottom: 14px;
    }

    .assistente-conbcon__launcher {
        width: 58px;
        height: 58px;
    }

    .assistente-conbcon__panel {
        position: fixed;
        right: 10px;
        bottom: 84px;
        width: calc(100vw - 20px);
        height: min(620px, calc(100vh - 104px));
        min-height: 360px;
    }

    .assistente-conbcon__messages {
        padding: 14px;
    }

    .assistente-conbcon__message {
        max-width: 92%;
    }
}
