.voice-textarea-wrap {
  position: relative;
}

.voice-textarea-wrap textarea.form-control {
  padding-right: 8px;
}

.voice-textarea-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 6px;
}

.voice-textarea-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #0f172a;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.voice-textarea-btn:hover:not(:disabled) {
  background: #e0f2fe;
  border-color: #00bcd4;
  color: #0e7490;
}

.voice-textarea-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.voice-textarea-btn.is-recording {
  background: #fef2f2;
  border-color: #f87171;
  color: #b91c1c;
  animation: voice-ta-pulse 1.2s ease-in-out infinite;
}

@keyframes voice-ta-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.35);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(248, 113, 113, 0);
  }
}

.voice-textarea-btn .vt-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.voice-textarea-status {
  flex: 1 1 100%;
  min-height: 1.2em;
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.voice-textarea-status.is-error {
  color: #b91c1c;
}

.voice-textarea-status.is-busy {
  color: #0e7490;
}