/* Go Wild Expedition: scroll-to-top control.
   Self-contained to avoid changing existing theme sections. */
button.gwe-scrolltop {
  position: fixed;
  z-index: 900;
  right: 26px;
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4a941;
  border-radius: 50%;
  background: #1a5632;
  color: #ffffff;
  box-shadow: 0 5px 17px rgba(15, 61, 34, 0.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease,
              background-color 180ms ease, box-shadow 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
button.gwe-scrolltop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
button.gwe-scrolltop svg {
  width: 25px;
  height: 25px;
  display: block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button.gwe-scrolltop:hover {
  background: #0f3d22;
  box-shadow: 0 7px 20px rgba(15, 61, 34, 0.3);
}
button.gwe-scrolltop:focus-visible {
  outline: 3px solid #d4a941;
  outline-offset: 4px;
}
@media (max-width: 767px) {
  button.gwe-scrolltop {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    right: 17px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
  button.gwe-scrolltop svg { width: 22px; height: 22px; }
}
/* Keep the complete mobile footer, including its copyright, unobstructed. */
@media (max-width: 767px) {
  body.gwe-mobile-footer-visible .gwewa-widget,
  body.gwe-mobile-footer-visible button.gwe-scrolltop,
  body.gwe-mobile-footer-visible button.gwe-scrolltop.is-visible {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(12px) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  button.gwe-scrolltop { transition: none; }
}
