.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 20000;
  display: inline-flex;
  transform: translateY(calc(100% + 50px));
  transition: transform .6s var(--ease-out-elastic);
}

.back-to-top.active {
  transform: translateY(0);
}

.back-to-top.active .ms-btt--inner svg {
  transform: rotate(-90deg) translateX(0);
  transition-delay: .1s;
}

.back-to-top .ms-btt--inner {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ed-theme-primary);
  color: #121212;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  line-height: 0;
}

.back-to-top .ms-btt--inner svg {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  transform: rotate(-90deg) translateX(-10px);
  transition: transform .6s var(--ease-out-elastic);
}

.back-to-top .ms-btt--inner path {
  transition: transform .6s var(--ease-out-elastic);
  transform-origin: center;
}

.back-to-top .ms-btt--inner:hover svg {
  transform: rotate(-90deg) translateX(0) scale(1.2);
}

.back-to-top .ms-btt--inner:hover path:first-child,
.back-to-top .ms-btt--inner:hover path:last-child {
  transform: translateX(-50px);
}

.back-to-top .ms-btt--inner:hover path:nth-child(2) {
  transform: translateX(50px);
}

.back-to-top .ms-btt--inner:active {
  transform: translateY(2px);
}

@media (max-width: 1023px) {
  .back-to-top {
    right: 15px;
    bottom: 15px;
  }
}
