.ce-assistente {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 9997;
    font-family: inherit;
}

.ce-assistente__atalho {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f47a25, #d95416);
    box-shadow: 0 10px 28px rgba(146, 65, 22, .28);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ce-assistente__atalho:hover,
.ce-assistente__atalho:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(146, 65, 22, .34);
}

.ce-assistente__atalho-icone {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    font-size: 15px;
}

.ce-assistente__painel {
    position: absolute;
    left: 0;
    bottom: 62px;
    display: flex;
    width: min(440px, calc(100vw - 24px));
    max-height: min(570px, calc(100vh - 92px));
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #efd9cc;
    border-radius: 18px;
    background: #fffdfb;
    box-shadow: 0 22px 56px rgba(30, 31, 37, .22);
}

.ce-assistente__painel[hidden] {
    display: none !important;
}

.ce-assistente__cabecalho {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 18px;
    background: linear-gradient(135deg, #f47a25, #df5d1b);
    color: #fff;
}

.ce-assistente__cabecalho strong,
.ce-assistente__cabecalho span {
    display: block;
}

.ce-assistente__cabecalho strong {
    font-size: 16px;
}

.ce-assistente__cabecalho span {
    margin-top: 3px;
    font-size: 12px;
    opacity: .94;
}

.ce-assistente__fechar {
    width: 31px;
    height: 31px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.ce-assistente__conversa {
    display: flex;
    min-height: 160px;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 16px;
    background: #fffdfb;
}

.ce-assistente__mensagem {
    max-width: 88%;
    padding: 11px 13px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.ce-assistente__mensagem--bot {
    align-self: flex-start;
    border: 1px solid #f0ddd2;
    border-bottom-left-radius: 4px;
    background: #fff;
    color: #34302f;
}

.ce-assistente__mensagem--usuario {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    background: #50336d;
    color: #fff;
}

.ce-assistente__sugestoes {
    display: grid;
    align-self: flex-start;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 16px 4px;
}

.ce-assistente__sugestoes[hidden] {
    display: none;
}

.ce-assistente__sugestoes button {
    width: 100%;
    min-width: 0;
    border: 1px solid #efc3aa;
    border-radius: 999px;
    padding: 7px 6px;
    background: #fff;
    color: #ad4815;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.ce-assistente__sugestoes button:hover,
.ce-assistente__sugestoes button:focus-visible {
    border-color: #d85c1b;
    background: #fff4ed;
}

.ce-assistente__links {
    display: flex;
    align-self: flex-start;
    flex-wrap: wrap;
    gap: 7px;
    max-width: 100%;
}

.ce-assistente__links a {
    max-width: 100%;
    overflow: hidden;
    border: 1px solid #efc3aa;
    border-radius: 999px;
    padding: 7px 10px;
    color: #ad4815;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ce-assistente__links a:hover,
.ce-assistente__links a:focus-visible {
    border-color: #d85c1b;
    background: #fff4ed;
}

.ce-assistente__formulario {
    display: flex;
    flex-direction: column;
    gap: 9px;
    border-top: 1px solid #f0e2db;
    padding: 12px;
    background: #fff;
}

.ce-assistente__formulario input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    border: 1px solid #dfc9bc;
    border-radius: 10px;
    padding: 10px 11px;
    background: #fff;
    color: #292421;
    font: inherit;
    font-size: 13px;
}

.ce-assistente__formulario input:focus {
    outline: 2px solid rgba(244, 122, 37, .28);
    outline-offset: 1px;
    border-color: #e46b25;
}

.ce-assistente__formulario button {
    align-self: flex-end;
    min-height: 40px;
    border: 0;
    border-radius: 10px;
    padding: 0 13px;
    background: #50336d;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.ce-assistente__formulario button:disabled {
    cursor: wait;
    opacity: .65;
}

.ce-assistente__aviso {
    margin: 0;
    border-top: 1px solid #f0e2db;
    padding: 8px 13px 10px;
    color: #756c67;
    background: #fffaf7;
    font-size: 11px;
    line-height: 1.35;
}

@media (max-width: 540px) {
    .ce-assistente {
        left: 12px;
        bottom: 12px;
    }

    .ce-assistente__painel {
        bottom: 57px;
    }

    .ce-assistente__atalho {
        min-height: 45px;
        padding: 0 15px;
    }

    .ce-assistente__sugestoes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ce-assistente__sugestoes button:last-child {
        grid-column: 1 / -1;
        width: auto;
        justify-self: center;
        padding-right: 12px;
        padding-left: 12px;
    }
}
