/* Assistente Otoh — área pública */
.otoh-chat-close {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    line-height: 1;
}

.otoh-chat-status {
    font-size: 11px;
    opacity: 0.75;
    font-weight: 600;
}

.otoh-chat-body {
    scroll-behavior: smooth;
}

.otoh-chat-msg-bot,
.otoh-chat-msg-user {
    max-width: 88%;
    animation: otohChatMsgIn 0.28s ease both;
}

@keyframes otohChatMsgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.otoh-chat-typing {
    align-self: flex-start;
    display: inline-flex;
    gap: 5px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px 16px 16px 0;
}

.otoh-chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
    animation: otohTypingDot 1.2s infinite ease-in-out;
}

.otoh-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.otoh-chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes otohTypingDot {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
    40% { transform: translateY(-5px); opacity: 1; }
}

.otoh-chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.otoh-chat-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #0A192F;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
    font-family: inherit;
}

.otoh-chat-option i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fef9c3;
    color: #0A192F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.otoh-chat-option:hover {
    border-color: #FFD700;
    background: #fffbeb;
    transform: translateX(3px);
}

.otoh-chat-input-wrap {
    display: flex;
    gap: 8px;
    width: 100%;
}

.otoh-chat-input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.otoh-chat-input:focus {
    border-color: #0A192F;
    box-shadow: 0 0 0 3px rgba(10, 25, 47, 0.08);
}

.otoh-chat-send {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: #0A192F;
    color: #FFD700;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s;
}

.otoh-chat-send:hover { transform: scale(1.05); }

.otoh-chat-summary {
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    text-align: left;
}

.otoh-chat-summary strong { color: #0A192F; }

.otoh-chat-action {
    gap: 8px;
}

.otoh-chat-action i { font-size: 18px; }

.otoh-chat-restart {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.otoh-chat-restart:hover { color: #0A192F; }

/* Top bar clicável */
.top-bar--interactive {
    cursor: pointer;
    border: none;
    width: 100%;
    font-family: inherit;
    transition: filter 0.2s;
}

.top-bar--interactive:hover {
    filter: brightness(1.05);
}

.top-bar-btn {
    pointer-events: none;
}

@media (max-width: 768px) {
    .otoh-chat-window {
        width: min(calc(100vw - 24px), 350px) !important;
        right: 0 !important;
    }
}
