/* Gravador estilo WhatsApp V13 */

.recording-bar {
  display: none !important;
}

.composer.wa-recording {
  min-height: 72px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  overflow: visible;
}

.composer.wa-recording > :not(.wa-recorder-panel):not(input):not(.sr-only) {
  display: none !important;
}

.wa-recorder-panel {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  color: var(--text, #e9edef);
}

.wa-recorder-panel.hidden {
  display: none !important;
}

.wa-recorder-trash,
.wa-recorder-pause,
.wa-recorder-send {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.wa-recorder-trash {
  color: #8696a0;
  background: transparent;
}

.wa-recorder-trash:hover {
  color: #ea4335;
  background: rgba(234, 67, 53, 0.12);
}

.wa-recorder-pause {
  color: #00a884;
  background: rgba(0, 168, 132, 0.12);
}

.wa-recorder-pause:hover {
  background: rgba(0, 168, 132, 0.2);
}

.wa-recorder-send {
  color: #ffffff;
  background: #00a884;
  box-shadow: 0 3px 12px rgba(0, 168, 132, 0.28);
}

.wa-recorder-send:hover {
  background: #06cf9c;
  transform: scale(1.04);
}

.wa-recorder-trash:active,
.wa-recorder-pause:active,
.wa-recorder-send:active {
  transform: scale(0.94);
}

.wa-recorder-trash svg,
.wa-recorder-pause svg,
.wa-recorder-send svg {
  width: 21px;
  height: 21px;
  pointer-events: none;
}

.wa-recorder-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 74px;
  color: #ef5350;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.wa-recorder-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ef5350;
  box-shadow: 0 0 0 4px rgba(239, 83, 80, 0.12);
  animation: wa-recorder-pulse 1.15s ease-in-out infinite;
}

.composer.wa-recording.wa-paused .wa-recorder-dot {
  animation: none;
  opacity: 0.42;
}

.wa-recorder-time {
  min-width: 48px;
  color: inherit;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.wa-recorder-wave-wrap {
  flex: 1 1 auto;
  min-width: 80px;
  height: 40px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(134, 150, 160, 0.08);
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.wa-recorder-wave {
  display: block;
  width: 100%;
  height: 32px;
}

@keyframes wa-recorder-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.46;
    transform: scale(0.82);
  }
}

@media (max-width: 640px) {
  .composer.wa-recording {
    padding-inline: 6px;
  }

  .wa-recorder-panel {
    gap: 7px;
    padding-inline: 2px;
  }

  .wa-recorder-trash,
  .wa-recorder-pause,
  .wa-recorder-send {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .wa-recorder-status {
    min-width: 64px;
    gap: 6px;
  }

  .wa-recorder-wave-wrap {
    min-width: 48px;
    padding-inline: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-recorder-dot {
    animation: none;
  }

  .wa-recorder-trash,
  .wa-recorder-pause,
  .wa-recorder-send {
    transition: none;
  }
}
