/* Homepage-only shortcut: the parent page-view controls route visibility. */
.gx-app .home-contact-button {
  position: fixed;
  z-index: 7;
  right: calc(max(0px, (100vw - var(--gx-content-shell-max, 480px)) / 2) + 16px + env(safe-area-inset-right, 0px));
  bottom: calc(var(--gx-floating-nav-height, 76px) + 28px + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  box-sizing: border-box;
  border: 1.5px solid var(--gx-ui-primary, #c49b60);
  border-radius: 50%;
  background: var(--gx-ui-primary, #17583e);
  box-shadow: 0 4px 14px rgba(var(--gx-ui-shadow-rgb, 23, 58, 40), 0.2);
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 150ms ease, box-shadow 150ms ease, opacity 180ms ease, transform 180ms ease, visibility 180ms;
}

.home-contact-button span {
  width: 28px;
  height: 28px;
  background: var(--gx-ui-soft, #f1d5a3);
  -webkit-mask: url('/gx-customer-assets/assets/icons/support-headphones-lucide.svg?v=2ae54e4d23ce4464899f') center / contain no-repeat;
  mask: url('/gx-customer-assets/assets/icons/support-headphones-lucide.svg?v=2ae54e4d23ce4464899f') center / contain no-repeat;
}

.gx-app[data-gx-floating-nav="false"] .home-contact-button { display: none; }

/* Share the navigation's single scroll state; do not run a second listener. */
.gx-app:has(.gx-app-header__nav[data-scroll-hidden="true"]) .home-contact-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(var(--gx-floating-nav-height, 76px) + 24px + env(safe-area-inset-bottom, 0px)));
}

.gx-app .home-contact-button:hover,
.gx-app .home-contact-button:active { background: var(--gx-ui-primary-hover, #10452f); }
.gx-app .home-contact-button:focus-visible {
  outline: 3px solid var(--gx-ui-primary, #9a6426);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .gx-app .home-contact-button { transition: none; }
}
