/* stylelint-disable no-descending-specificity */
/* stylelint-disable no-duplicate-selectors */

.agent-assistant-fab.is-action-wave .agent-assistant-fab__bot {
  animation: agent-fab-action-wave-bot 2.3s ease-in-out both;
}

.agent-assistant-fab.is-action-wave .agent-assistant-fab__head {
  animation: agent-fab-action-wave-head 2.3s ease-in-out both;
}

.agent-assistant-fab.is-action-wave .agent-assistant-fab__arm--left {
  z-index: 6;
  animation: agent-fab-action-wave-arm-left 2.3s ease-in-out both;
  transform-origin: top center;
}

.agent-assistant-fab.is-action-wave .agent-assistant-fab__arm--right {
  animation: agent-fab-action-wave-arm-right 2.3s ease-in-out both;
}

@keyframes agent-fab-action-wave-bot {
  0%,
  100% {
    transform: scale(var(--agent-assistant-bot-scale)) rotate(var(--agent-assistant-robot-tilt));
  }

  22%,
  66% {
    transform: scale(var(--agent-assistant-bot-scale)) rotate(calc(var(--agent-assistant-robot-tilt) - 4deg));
  }
}

@keyframes agent-fab-action-wave-head {
  0%,
  100% {
    transform: translate(var(--agent-assistant-head-x), var(--agent-assistant-head-y)) rotate(0deg);
  }

  30%,
  66% {
    transform: translate(var(--agent-assistant-head-x), calc(var(--agent-assistant-head-y) - 0.1rem)) rotate(-4deg);
  }
}

@keyframes agent-fab-action-wave-arm-left {
  0%,
  100% {
    transform: rotate(17deg);
  }

  16% {
    transform: translate(-0.08rem, -0.06rem) rotate(64deg);
  }

  30% {
    transform: translate(-0.26rem, -0.28rem) rotate(132deg);
  }

  44% {
    transform: translate(-0.18rem, -0.2rem) rotate(92deg);
  }

  58% {
    transform: translate(-0.26rem, -0.28rem) rotate(132deg);
  }

  72% {
    transform: translate(-0.1rem, -0.08rem) rotate(64deg);
  }

  88% {
    transform: translate(-0.02rem, -0.02rem) rotate(28deg);
  }
}

@keyframes agent-fab-action-wave-arm-right {
  0%,
  100% {
    transform: rotate(-17deg);
  }

  30%,
  70% {
    transform: rotate(-28deg) translateY(0.06rem);
  }
}
