/* Homepage floating actions, shared by every public page. Keep this last. */
html body :is(.whatsapp-float, .back-to-top)[data-site-floating-action] {
  box-sizing: border-box !important;
  position: fixed !important;
  right: calc(22px + env(safe-area-inset-right, 0px)) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(29, 29, 31, 0.10) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.96) !important;
  background-image: none !important;
  color: #1d1d1f !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10) !important;
  -webkit-backdrop-filter: blur(18px) saturate(120%) !important;
  backdrop-filter: blur(18px) saturate(120%) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  isolation: isolate !important;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms cubic-bezier(.22, 1, .36, 1), background-color 180ms ease, box-shadow 180ms ease !important;
}

html body .whatsapp-float[data-site-floating-action="whatsapp"] {
  bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 1600 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate3d(0, 0, 0) !important;
}

html body .back-to-top[data-site-floating-action="back-to-top"] {
  bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 1590 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate3d(0, 8px, 0) !important;
}

html body .back-to-top.visible[data-site-floating-action="back-to-top"] {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate3d(0, 0, 0) !important;
}

html body :is(.whatsapp-float, .back-to-top)[data-site-floating-action] .icons {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: currentColor !important;
  fill: currentColor !important;
  stroke: none;
  pointer-events: none;
}

html body :is(.whatsapp-float, .back-to-top)[data-site-floating-action] :is(use, path) {
  color: currentColor !important;
  fill: currentColor !important;
}

@media (hover: hover) and (pointer: fine) {
  html body :is(.whatsapp-float, .back-to-top)[data-site-floating-action]:hover {
    background: #fff !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.15) !important;
    transform: translate3d(0, -2px, 0) !important;
  }
}

html body :is(.whatsapp-float, .back-to-top)[data-site-floating-action]:active {
  transform: scale(.96) !important;
}

html body :is(.whatsapp-float, .back-to-top)[data-site-floating-action]:focus-visible {
  outline: 2px solid #36b8a9 !important;
  outline-offset: 3px !important;
}

html body.nav-open :is(.whatsapp-float, .back-to-top)[data-site-floating-action],
html body.lang-open :is(.whatsapp-float, .back-to-top)[data-site-floating-action] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate3d(0, 10px, 0) !important;
}

@media (max-width: 768px) {
  html body :is(.whatsapp-float, .back-to-top)[data-site-floating-action] {
    right: calc(14px + env(safe-area-inset-right, 0px)) !important;
  }

  html body .whatsapp-float[data-site-floating-action="whatsapp"] {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body .back-to-top[data-site-floating-action="back-to-top"] {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  html body :is(.whatsapp-float, .back-to-top)[data-site-floating-action] {
    background: #fff !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body :is(.whatsapp-float, .back-to-top)[data-site-floating-action] { transition: none !important; }
}
