.ws-back-to-top {
  --ws-back-to-top-base: clamp(1rem, 2vw, 2rem);
  --ws-footer-offset: 0px;
  position: fixed;
  left: clamp(1rem, 2vw, 2rem);
  bottom: calc(var(--ws-back-to-top-base) + var(--ws-footer-offset) + env(safe-area-inset-bottom, 0px));
  z-index: 9996;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 5rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid #d3aa55;
  border-radius: 0 !important;
  background: rgba(15, 21, 28, 0.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  color: #f7f8fa;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: bottom 160ms ease, opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ws-back-to-top[hidden],
.ws-back-to-top.is-footer-covered {
  display: none !important;
}

.ws-back-to-top:hover {
  border-color: #e24642;
  background: #c73331;
  color: #fff;
}

.ws-back-to-top:focus-visible {
  outline: 3px solid #ffd37a !important;
  outline-offset: 4px;
}

.ws-back-to-top__arrow {
  color: #d3aa55;
  font-size: 1rem;
  line-height: 0.8;
}

.ws-back-to-top:hover .ws-back-to-top__arrow {
  color: #fff;
}

.wayside-brand-logo {
  display: block;
  width: auto;
  height: 75px;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 899px) {
  .ws-back-to-top {
    --ws-back-to-top-base: 1rem;
    left: 1rem;
    min-width: 4.5rem;
    min-height: 2.875rem;
    padding: 0.7rem 0.85rem;
  }

  .wayside-brand-logo {
    height: 48px;
  }
}

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