.controller {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  background-color: #fff;
  padding: 8px 15px;
  padding-bottom: calc(12px + constant(safe-area-inset-bottom));
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.talkWrapper {
  --h: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px 16px;
  background-color: #e3efff;
  border-radius: 20px;
  user-select: none;
  gap: 8px;
  min-width: 116px;
  color: #0078ff;
}

.listenerDot {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: var(--h);
  width: 36px;

  span {
    display: inline-block;
    width: 4px;
    margin: 0 1px;
    background-color: #4898fc;
    border-radius: 2px;
    height: calc(var(--h) - var(--d) * 4px);
    transition: height 0.2s ease;
    opacity: calc(1 - var(--d) * 0.4);
  }
}

.isTalking {
  span {
    animation: soundWave 1s infinite ease-in-out;
  }

  span:nth-child(1) {
    animation-delay: 0s;
  }
  span:nth-child(2) {
    animation-delay: 0.2s;
  }
  span:nth-child(3) {
    animation-delay: 0.4s;
  }
  span:nth-child(4) {
    animation-delay: 0.6s;
  }
  span:nth-child(5) {
    animation-delay: 0.8s;
  }
}

@keyframes soundWave {
  0%,
  100% {
    height: 4px;
  }
  50% {
    height: 16px;
  }
}

.microphoneWrapper {
  display: flex;
  align-items: center;
  background-color: #f6f6f6;
  padding: 10px 15px;
  border-radius: 400px;
}

.timerWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f6f6f6;
  padding: 8px 14px;
  border-radius: 400px;
  color: #0078ff;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
}
