/* Product 3 mobile microphone compatibility */
.voice-page,
.voice-shell,
.voice-header,
.voice-controls,
.chat-box,
.voice-buttons,
.pair,
.card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.voice-page {
    width: 100%;
    overflow-x: hidden;
}

.voice-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

#recordBtn {
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.status,
.card textarea,
.empty {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 700px) {
    .voice-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .voice-shell {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        overflow: hidden;
    }

    .voice-header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        align-items: center;
    }

    .voice-header .plan-badge {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .voice-header h1 {
        font-size: clamp(1.45rem, 7vw, 2.2rem);
        overflow-wrap: anywhere;
    }

    .voice-controls,
    .voice-controls.ee,
    .pair {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .field,
    .field select,
    .field input,
    .card,
    .card textarea {
        width: 100%;
        max-width: 100%;
    }

    .voice-buttons .btn-v,
    .voice-buttons label.btn-v {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .chat-box {
        width: 100%;
        overflow-x: hidden;
    }
}
