.floating-icon {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: calc(var(--floating-icon-size) * 2);
  height: calc(var(--floating-icon-size) * 2);
  display: grid;
  place-items: center;
  z-index: 30;
  transform-origin: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-icon.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-emergency {
  width: 100%;
  height: 100%;
  display: block;
  animation: spin 12s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-emergency {
    animation: none;
  }
}

@media (max-width: 700px) {
  .floating-icon {
    right: 16px;
    bottom: 16px;
  }
}
