/* Nút 🎤 nằm trong ô hỏi, ngay bên trái nút gửi (nút gửi của theme: absolute, right 0, rộng 40px) */
.ha247-mic-on .wpshare247-ai-content-assistant-question { padding-right: 80px !important; }
.ha247-mic-btn {
    position: absolute; top: 50%; right: 42px; transform: translateY(-50%);
    width: 32px; height: 32px; padding: 0; margin: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: transparent; color: #0077b6;
    cursor: pointer; line-height: 1; z-index: 2;
}
.ha247-mic-btn:hover { background: #e8f4fb; }
.ha247-mic-btn:focus-visible { outline: 2px solid #0077b6; outline-offset: 1px; }
.ha247-mic-btn.is-listening { background: #d62828; color: #fff; animation: ha247-mic-pulse 1.2s ease-in-out infinite; }
@keyframes ha247-mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(214, 40, 40, .45); }
    50% { box-shadow: 0 0 0 6px rgba(214, 40, 40, 0); }
}
@media (prefers-reduced-motion: reduce) { .ha247-mic-btn.is-listening { animation: none; } }
.ha247-mic-tip {
    display: none; position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: 4px;
    padding: 5px 8px; border-radius: 4px; background: #f1f7fb; color: #23527c;
    font-size: 12px; line-height: 1.4; z-index: 3;
}
.ha247-mic-tip.is-on { display: block; }
.ha247-mic-tip.is-error { background: #fbeaea; color: #b32d2e; }
