.soma-back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 19px 0 15px;
  border: 1px solid rgba(36, 56, 44, 0.18);
  border-radius: 999px;
  background: #c8f04f;
  box-shadow: 0 12px 28px rgba(36, 56, 44, 0.24);
  color: #24382c;
  cursor: pointer;
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, background-color 180ms ease;
}

.soma-back-to-top[hidden] {
  display: none;
}

.soma-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.soma-back-to-top:hover {
  background: #ff6a4d;
}

.soma-back-to-top:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.soma-back-to-top__icon {
  width: 19px;
  height: 19px;
  fill: none;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

html.soma-contact-open .soma-back-to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  visibility: hidden;
}

@media (max-width: 560px) {
  .soma-back-to-top {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 50px;
    min-height: 50px;
    padding: 0;
  }

  .soma-back-to-top__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .soma-back-to-top {
    transition: none;
  }
}

@media (forced-colors: active) {
  .soma-back-to-top {
    border: 1px solid ButtonText;
    box-shadow: none;
  }
}
