/**
 * Back-to-top button (loads after parent + main so hide state is not lost).
 */
#to-top-btn.top-button {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s ease-in-out,
    transform 0.3s ease-in-out;
}

#to-top-btn.top-button i {
  line-height: 1;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Must beat Bootscore .top-button.visible */
#to-top-btn.top-button.visible.is-near-footer,
#to-top-btn.top-button.is-near-footer {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: scale(0.92);
}
