/* Pedido por voz — Minha Lista */

.voice-order-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    align-items: flex-end;
    justify-content: center;
    background: rgba(7, 11, 20, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.voice-order-overlay.open {
    display: flex;
}

.voice-order-sheet {
    width: 100%;
    max-width: 520px;
    max-height: min(92vh, 640px);
    overflow: auto;
    background: var(--surface, #fff);
    border-radius: 16px 16px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    box-shadow: var(--shadow-lg, 0 -8px 40px rgba(0, 0, 0, 0.25));
}

.voice-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.voice-order-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text, #0f172a);
}

.voice-order-hint {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--text-sub, #64748b);
    line-height: 1.45;
}

.voice-order-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent, #2563eb);
    font-weight: 600;
    font-size: 14px;
}

.voice-order-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent, #2563eb);
    animation: voice-order-pulse 1s ease-in-out infinite;
}

@keyframes voice-order-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(1.25); }
}

.voice-order-transcript-wrap {
    margin-bottom: 12px;
}

.voice-order-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub, #64748b);
}

.voice-order-transcript {
    width: 100%;
    min-height: 88px;
    padding: 12px 14px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    background: var(--surface2, #f8fafc);
    color: var(--text, #0f172a);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.voice-order-preview {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.voice-order-preview-title {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #15803d;
}

.voice-order-preview-text {
    margin: 0;
    font-size: 14px;
    color: var(--text, #0f172a);
    line-height: 1.45;
}

.voice-order-error,
.voice-order-warn {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.voice-order-error {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.voice-order-warn {
    background: rgba(251, 191, 36, 0.15);
    color: #92400e;
}

.voice-order-actions {
    margin-bottom: 12px;
}

.voice-order-actions .panel-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.voice-order-actions .panel-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.voice-order-confirm-row {
    display: flex;
    gap: 8px;
}

.voice-order-confirm-row .panel-btn {
    flex: 1;
    min-width: 0;
}

[data-theme="dark"] .voice-order-sheet {
    background: var(--surface, #0d1420);
}

[data-theme="dark"] .voice-order-transcript {
    background: var(--surface2, #121c2e);
    border-color: var(--border, rgba(59, 130, 246, 0.22));
    color: var(--text, #f1f5f9);
}
