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

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

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

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

.agent-assistant-fab.is-action-sleep .agent-assistant-fab__eye {
  animation: agent-fab-action-sleep-eye 5.8s ease-in-out both;
}

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

.agent-assistant-fab.is-action-sleep .agent-assistant-fab__arm--left {
  animation: agent-fab-action-sleep-arm-left 5.8s ease-in-out both;
}

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

.agent-assistant-fab.is-action-sleep .agent-assistant-fab__leg {
  animation: agent-fab-action-sleep-leg 5.8s ease-in-out both;
}

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

  22%,
  82% {
    transform: translateY(0.42rem) scale(var(--agent-assistant-bot-scale))
      rotate(calc(var(--agent-assistant-robot-tilt) - 8deg));
  }

  46%,
  64% {
    transform: translateY(0.36rem) scale(var(--agent-assistant-bot-scale))
      rotate(calc(var(--agent-assistant-robot-tilt) - 10deg));
  }
}

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

  22%,
  82% {
    opacity: 0.62;
    transform: translate(0.1rem, 0.16rem) rotate(78deg) scale(0.78);
  }
}

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

  22%,
  82% {
    transform: translate(calc(var(--agent-assistant-head-x) - 0.12rem), calc(var(--agent-assistant-head-y) + 0.22rem))
      rotate(-12deg);
  }
}

@keyframes agent-fab-action-sleep-eye {
  0%,
  100% {
    border-block-end-width: 0.15rem;
    opacity: 1;
    transform: translate(var(--agent-assistant-eye-x), var(--agent-assistant-eye-y)) scale(1);
  }

  18%,
  86% {
    border-block-end-width: 0.1rem;
    opacity: 0.62;
    transform: translate(0, 0.1rem) scale(1.18, 0.24);
  }
}

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

  22%,
  82% {
    transform: translate(var(--agent-assistant-body-x), calc(var(--agent-assistant-body-y) + 0.26rem)) scaleY(0.78);
  }
}

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

  22%,
  82% {
    transform: translate(0.12rem, 0.2rem) rotate(92deg);
  }
}

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

  22%,
  82% {
    transform: translate(-0.12rem, 0.2rem) rotate(-92deg);
  }
}

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

  22%,
  82% {
    opacity: 0.35;
    transform: translateY(-0.16rem) scale(0.76);
  }
}
