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

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

.agent-assistant-fab.is-action-stretch .agent-assistant-fab__antenna {
  animation: agent-fab-action-stretch-antenna 4.4s ease-in-out both;
}

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

.agent-assistant-fab.is-action-stretch .agent-assistant-fab__body {
  animation: agent-fab-action-stretch-body 4.4s ease-in-out both;
}

.agent-assistant-fab.is-action-stretch .agent-assistant-fab__arm--left {
  z-index: 6;
  animation: agent-fab-action-stretch-arm-left 4.4s ease-in-out both;
}

.agent-assistant-fab.is-action-stretch .agent-assistant-fab__arm--right {
  z-index: 6;
  animation: agent-fab-action-stretch-arm-right 4.4s ease-in-out both;
}

.agent-assistant-fab.is-action-stretch .agent-assistant-fab__leg--left {
  animation: agent-fab-action-stretch-leg-left 4.4s ease-in-out both;
}

.agent-assistant-fab.is-action-stretch .agent-assistant-fab__leg--right {
  animation: agent-fab-action-stretch-leg-right 4.4s ease-in-out both;
}

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

  18% {
    transform: translateY(0.18rem) scale(var(--agent-assistant-bot-scale)) scaleY(0.92)
      rotate(var(--agent-assistant-robot-tilt));
  }

  44%,
  70% {
    transform: translateY(-0.34rem) scale(var(--agent-assistant-bot-scale)) scaleY(1.06)
      rotate(calc(var(--agent-assistant-robot-tilt) + 2deg));
  }

  86% {
    transform: translateY(0.08rem) scale(var(--agent-assistant-bot-scale)) rotate(var(--agent-assistant-robot-tilt));
  }
}

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

  44%,
  70% {
    transform: translate(var(--agent-assistant-head-x), calc(var(--agent-assistant-head-y) - 0.2rem)) rotate(-24deg);
  }
}

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

  44%,
  70% {
    transform: translate(var(--agent-assistant-head-x), calc(var(--agent-assistant-head-y) - 0.28rem)) rotate(5deg);
  }
}

@keyframes agent-fab-action-stretch-body {
  0%,
  100% {
    transform: translate(var(--agent-assistant-body-x), var(--agent-assistant-body-y)) scaleY(1);
  }

  18% {
    transform: translate(var(--agent-assistant-body-x), calc(var(--agent-assistant-body-y) + 0.12rem)) scaleY(0.88);
  }

  44%,
  70% {
    transform: translate(var(--agent-assistant-body-x), calc(var(--agent-assistant-body-y) - 0.08rem)) scaleY(1.12);
  }
}

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

  44%,
  70% {
    transform: translate(-0.24rem, -0.7rem) rotate(168deg);
  }
}

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

  44%,
  70% {
    transform: translate(0.24rem, -0.7rem) rotate(-168deg);
  }
}

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

  44%,
  70% {
    transform: translate(-0.18rem, 0.02rem) rotate(-18deg);
  }
}

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

  44%,
  70% {
    transform: translate(0.18rem, 0.02rem) rotate(18deg);
  }
}
