/* ════════════════════════════════════════════════════
   voice.css — shared voice affordances (P4): mic button + consent sheet
   ════════════════════════════════════════════════════ */

.lani-mic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #9ca3af;
    cursor: pointer;
    flex: 0 0 auto;
    transition: color 150ms ease, border-color 150ms ease;
}
.lani-mic:hover { color: #dfe2ea; border-color: rgba(59, 130, 246, 0.5); }
.lani-mic--listening {
    color: #fff;
    border-color: rgba(59, 130, 246, 0.8);
    background: rgba(59, 130, 246, 0.22);
    animation: lani-mic-pulse 1.2s ease-in-out infinite;
}
.lani-mic--denied { color: #b3574f; border-color: rgba(179, 87, 79, 0.5); }
@keyframes lani-mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.45); }
    50%      { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
}

/* Mic docked inside a ChatWidget composer (appended after the textarea). */
.lani-mic--composer {
    position: absolute;
    right: 10px;
    bottom: 10px;
}

.lani-voice-consent {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 4, 6, 0.7);
    backdrop-filter: blur(4px);
    z-index: 990;
}
.lani-voice-consent__card {
    max-width: 420px;
    margin: 24px;
    padding: 24px 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(16, 16, 22, 0.98);
    color: #c4c4cc;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
}
.lani-voice-consent__card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #f4f4f6;
    letter-spacing: -0.01em;
}
.lani-voice-consent__card p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; }
.lani-voice-consent__note { color: #7c818c; font-size: 12.5px; }
.lani-voice-consent__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}
.lani-voice-consent__actions button {
    border: none;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 13.5px;
    cursor: pointer;
}
.lani-voice-consent__actions [data-deny] {
    background: rgba(255, 255, 255, 0.06);
    color: #9ca3af;
}
.lani-voice-consent__actions [data-allow] {
    background: linear-gradient(90deg, #3b82f6, #d946ef);
    color: #fff;
    font-weight: 600;
}

/* The intro's conversation-step mic sits with the reply chips. */
.lani-intro-chips .lani-mic { width: 34px; height: 34px; }

@media (prefers-reduced-motion: reduce) {
    .lani-mic--listening { animation: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3); }
}
