/* Estilos limitados ao widget de 2026. */
.eu-chatbot {
    --chat-purple: #9038cf;
    --chat-dark: #5c1f8a;
    --chat-ink: #1b1424;
    font-family: var(--fonte-texto, sans-serif);
    font-size: 14px;
    color: var(--chat-ink);
    line-height: 1.5;
}
.eu-chatbot [hidden] { display: none !important; }
.eu-chatbot button, .eu-chatbot textarea { font: inherit; }
.eu-chatbot button { cursor: pointer; }
.eu-chatbot button:disabled { cursor: default; opacity: .55; }
.eu-chatbot button:focus-visible, .eu-chatbot textarea:focus-visible,
.eu-chatbot a:focus-visible, .eu-chatbot__messages:focus-visible {
    outline: 3px solid #1a5dc6;
    outline-offset: 3px;
}
.eu-chatbot__launcher {
    position: fixed;
    right: 5.25rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border: 2px solid var(--chat-dark);
    border-radius: 999px;
    color: #fff;
    background: var(--chat-purple);
    box-shadow: 0 8px 24px rgba(27, 20, 36, .24);
    font-weight: 600;
}
.eu-chatbot__launcher:hover { background: var(--chat-dark); }
.eu-chatbot__panel {
    position: fixed;
    right: 1.25rem;
    bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
    z-index: 61;
    display: flex;
    flex-direction: column;
    width: 420px;
    max-width: calc(100vw - 2.5rem);
    height: 620px;
    max-height: calc(100vh - 7.25rem);
    max-height: calc(100dvh - 7.25rem - env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    border: 1px solid #e4d7ee;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 70px rgba(27, 20, 36, .25);
}
.eu-chatbot__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: 22px 20px;
    color: #fff;
    background: var(--chat-dark);
    border-top: 5px solid #fe82ca;
}
.eu-chatbot__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1px; }
.eu-chatbot__header h2 { margin: 6px 0; font-size: 23px; color: #fff; }
.eu-chatbot__header p { margin: 0; font-size: 12px; color: #f1deff; }
.eu-chatbot__close {
    align-self: flex-start;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 25px !important;
    line-height: 1;
}
.eu-chatbot__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: 12px 16px;
    border-bottom: 1px solid #eee5f4;
    font-size: 11px;
    color: #685673;
}
.eu-chatbot__new, .eu-chatbot__older, .eu-chatbot__retry {
    border: 0;
    padding: 4px;
    background: transparent;
    color: var(--chat-dark);
    font-weight: 600 !important;
    text-decoration: underline;
}
.eu-chatbot__new { white-space: nowrap; }
.eu-chatbot__history-toolbar { padding: 6px 16px; text-align: center; font-size: 12px; }
.eu-chatbot__messages {
    flex: 1;
    min-height: 60px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 16px;
    background: #fbf7ff;
}
.eu-chatbot__message { margin: 0 0 16px; max-width: 92%; }
.eu-chatbot__message--user { margin-left: auto; }
.eu-chatbot__author { display: block; margin: 0 4px 5px; font-size: 11px; font-weight: 600; color: #685673; }
.eu-chatbot__message--user .eu-chatbot__author { text-align: right; }
.eu-chatbot__bubble {
    padding: 12px 14px;
    border: 1px solid #e8dced;
    border-radius: 4px 16px 16px;
    background: #fff;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}
.eu-chatbot__message--user .eu-chatbot__bubble {
    color: #fff;
    background: var(--chat-dark);
    border-color: var(--chat-dark);
    border-radius: 16px 4px 16px 16px;
}
.eu-chatbot__message--failed .eu-chatbot__bubble { opacity: .6; }
.eu-chatbot__failed-label { display: block; margin-top: 5px; color: #a51c32; font-size: 11px; }
.eu-chatbot__bubble a { color: var(--chat-dark); text-decoration: underline; }
.eu-chatbot__sources { margin-top: 9px; font-size: 12px; }
.eu-chatbot__sources summary { cursor: pointer; color: var(--chat-dark); font-weight: 600; }
.eu-chatbot__sources a { display: block; margin-top: 6px; }
.eu-chatbot__suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 4px; }
.eu-chatbot__suggestions button {
    border: 1px solid #dcc3ed;
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--chat-dark);
    background: #fbf7ff;
    font-size: 11px;
}
.eu-chatbot__suggestions button:hover { background: #f0dffd; }
.eu-chatbot__feedback { padding: 10px 16px 0; font-size: 12px; color: #685673; }
.eu-chatbot__feedback--error { color: #a51c32; }
.eu-chatbot__form { display: flex; align-items: flex-end; gap: 10px; flex-shrink: 0; padding: 12px 16px 6px; }
.eu-chatbot__form textarea {
    flex: 1;
    min-width: 0;
    max-height: 100px;
    resize: none;
    border: 1px solid #dcc3ed;
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--chat-ink);
    background: #fff;
    font-size: 16px;
    line-height: 1.4;
}
.eu-chatbot__send { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 12px; background: var(--chat-dark); color: #fff; }
.eu-chatbot__note { flex-shrink: 0; margin: 0; padding: 4px 16px 14px; color: #685673; font-size: 10px; text-align: center; }
.eu-chatbot__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 480px) {
    .eu-chatbot__panel { right: 12px; max-width: calc(100vw - 24px); }
    .eu-chatbot__launcher { right: 4.75rem; padding: 12px 16px; font-size: 12px; }
    .eu-chatbot__header { padding: 16px; }
    .eu-chatbot__toolbar > span { max-width: 175px; }
}
@media (max-height: 560px) {
    .eu-chatbot__panel {
        bottom: 12px;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }
    .eu-chatbot__header { padding: 10px 16px; }
    .eu-chatbot__header h2 { font-size: 18px; margin: 3px 0; }
    .eu-chatbot__header p, .eu-chatbot__suggestions { display: none; }
    .eu-chatbot__toolbar { padding: 6px 16px; }
    .eu-chatbot__form textarea { height: 44px; }
    .eu-chatbot__note { padding-bottom: 8px; }
}
