.scroll-to-top {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background-color: transparent;
  border: 0;
  position: fixed;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  cursor: none;
}

.scroll-to-top.opaque {
  opacity: 1;
  pointer-events: none;
  cursor: pointer;
  z-index: 1050;
}

#scroll-to-top--button {
  border-radius: 50%;
  border: 1px solid #027cac;
  background-color: #f4f5fa;
  height: 40px;
  width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 20px -5px #027cac;
  pointer-events: auto;
}

#scroll-to-top--button i {
  color: #027cac;
  font-size: 1.2rem;
}

.scroll-to-top p {
  font-size: 1.1rem;
  cursor: pointer;
  position: absolute;
  white-space: nowrap;
  bottom: -40px;
  visibility: hidden;
}

.scroll-to-top--button:focus {
  outline: 0;
  box-shadow: none;
}

.scroll-to-top #scroll-to-top--button:hover,
.scroll-to-top #scroll-to-top--button:focus {
  background-color: #027cac;
}

.scroll-to-top #scroll-to-top--button:hover i,
.scroll-to-top #scroll-to-top--button:focus i {
  color: #f4f5fa;
}

.scroll-to-top #scroll-to-top--button:hover p,
.scroll-to-top #scroll-to-top--button:focus p {
  visibility: visible;
}

/* Customer specific styling */
.scroll-to-top.sa-hub {
  left: 0;
  right: -1100px;
  bottom: 50px;
}

@media (max-width: 1199px) {
  .scroll-to-top.sa-hub {
    left: 0;
    right: 0;
    bottom: auto;
    top: 50px;
  }

  .scroll-to-top.sa-hub p {
    visibility: visible;
    position: static;
    margin-bottom: 0;
    margin-left: 8px;
  }

  .scroll-to-top #scroll-to-top--button:hover,
  .scroll-to-top #scroll-to-top--button:focus {
    background-color: #f4f5fa;
  }

  .scroll-to-top #scroll-to-top--button:hover i,
  .scroll-to-top #scroll-to-top--button:focus i {
    color: #027cac;
  }

  #scroll-to-top--button {
    border-radius: 5%;
    height: auto;
    width: auto;
    padding: 5px 10px;
    background-color: #f4f5fa;
    box-shadow: none;
  }

  .scroll-to-top.sa-hub p,
  .scroll-to-top.sa-hub i {
    color: #027cac;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .scroll-to-top.sa-hub {
    left: 0;
    right: 0;
    bottom: 50px;
    top: auto;
  }
}
