/*==============================================================================
  BACK TO TOP -- shared floating button for both the public site and the
  client dashboard. Defaults to the standard single-widget bottom-right
  position; front pages override `bottom` (see enquiry-widget.css) to stack
  above the "Talk to statSCALAR" widget instead of overlapping it.
==============================================================================*/
.ss-back-to-top{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1040;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ss-border, #E2E8F0);
  border-radius: 999px;
  background: var(--ss-white, #fff);
  color: var(--ss-primary, #00A86B);
  box-shadow: var(--ss-shadow, 0 12px 30px rgba(15, 23, 42, .08));
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease, color .2s ease, border-color .2s ease;
}

.ss-back-to-top.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ss-back-to-top:hover,
.ss-back-to-top:focus-visible{
  background: var(--ss-primary, #00A86B);
  border-color: var(--ss-primary, #00A86B);
  color: #fff;
  transform: translateY(-3px);
}

.ss-back-to-top:focus-visible{
  outline: 2px solid var(--ss-primary, #00A86B);
  outline-offset: 2px;
}

.ss-back-to-top svg{
  width: 18px;
  height: 18px;
}

@media (max-width: 480px){
  .ss-back-to-top{
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce){
  .ss-back-to-top{
    transition: opacity .15s ease, visibility .15s;
  }
  .ss-back-to-top:hover{
    transform: none;
  }
}
