.attachment-preview audio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.attachment-preview .attachment-audio-toggle {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(22, 217, 227, .55);
  border-radius: 999px;
  background: linear-gradient(100deg, rgba(255, 23, 111, .24), rgba(145, 76, 255, .22), rgba(22, 217, 227, .2));
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  margin-left: 0;
  white-space: nowrap;
}

.attachment-preview .attachment-audio-toggle[hidden] {
  display: none !important;
}

.attachment-preview .attachment-audio-toggle span {
  color: var(--cyan);
}

.message-audio {
  display: block;
  width: min(360px, 100%);
  height: 38px;
  margin-top: 7px;
  accent-color: var(--cyan);
}

.message-audio[hidden] {
  display: none !important;
}

#voice-button.is-recording {
  border-color: var(--pink);
  background: rgba(255, 23, 111, .2);
  box-shadow: 0 0 8px var(--pink), 0 0 14px rgba(22, 217, 227, .45);
  animation: voice-pulse 1.1s ease-in-out infinite;
}

@keyframes voice-pulse {
  50% {
    transform: scale(1.08);
    filter: brightness(1.35);
  }
}

@media (max-width: 380px) {
  .composer-foot .media-tools button {
    width: 30px;
    height: 32px;
  }

  .media-tools {
    gap: 3px;
  }

  .send-button {
    min-width: 70px;
    padding-inline: 10px;
  }

  .attachment-preview .attachment-audio-toggle {
    flex: 0 0 auto;
  }
}
