/** Bexon template — Back to top (main.css + Innovasys colors) */
:root {
  --tj-color-theme-primary: #7b5dff;
  --tj-color-common-white: #ffffff;
  --tj-color-theme-dark: #1a2e3a;
  --tj-fw-sbold: 600;
  --tj-fs-h5: 20px;
}

#tj-back-to-top {
  height: 60px;
  width: 60px;
  background-color: var(--tj-color-common-white);
  border-radius: 50%;
  position: fixed;
  bottom: 30px;
  inset-inline-end: 40px;
  transform: scale(0);
  display: grid;
  place-items: center;
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s;
  z-index: 100;
}

@media only screen and (min-width: 576px) and (max-width: 767px), (max-width: 575px) {
  #tj-back-to-top {
    height: 50px;
    width: 50px;
  }
}

#tj-back-to-top.active {
  bottom: 40px;
  transform: scale(1);
  opacity: 1;
  visibility: visible;
  animation: 500ms ease-in-out 0s normal none 1 running scrollToTop;
  transition: 0.3s;
  background: var(--tj-color-theme-primary);
}

#tj-back-to-top .return {
  visibility: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#tj-back-to-top-percentage {
  height: calc(100% - 2px);
  width: calc(100% - 2px);
  background-color: var(--tj-color-common-white);
  color: var(--tj-color-theme-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: var(--tj-fw-sbold);
  box-shadow: rgba(0, 0, 0, 0.05) 0px 5px 15px 0px;
}

#tj-back-to-top-percentage i {
  font-size: var(--tj-fs-h5);
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  #tj-back-to-top {
    inset-inline-end: 30px;
  }

  #tj-back-to-top.active {
    bottom: 30px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px), only screen and (min-width: 576px) and (max-width: 767px), (max-width: 575px) {
  #tj-back-to-top {
    bottom: 20px;
    inset-inline-end: 20px;
  }

  #tj-back-to-top.active {
    bottom: 20px;
  }
}

@keyframes scrollToTop {
  0% {
    transform: translate3d(0, 80%, 0);
    visibility: visible;
  }

  to {
    transform: translateZ(0);
  }
}
