/* floating link: character stacked on top of the button, centered */
.clinical-fab-link {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  animation: clinical-fab-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1s backwards;
  transition: transform 0.25s ease;
}

.clinical-fab__character {
  display: block;
  height: 76px;
  width: auto;
  margin: 0;
  pointer-events: none;
  transform-origin: 50% 100%;
  transition: transform 0.3s ease;
}

.clinical-fab {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  border-radius: 30px;
  gap: 10px;
  z-index: 1;
  /* shine layer on top of the green, slid into view on hover */
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%) 150% 0 / 250% 100% no-repeat,
              #024f40;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  animation: clinical-fab-pulse 2.5s ease-out 2s infinite;
  transition: background-position 0.7s ease, background-color 0.25s ease;
}

.clinical-fab img {
  width: 6px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.clinical-fab-link:hover,
.clinical-fab-link:focus {
  text-decoration: none;
  transform: translateY(-4px) scale(1.05);
}

.clinical-fab-link:hover .clinical-fab,
.clinical-fab-link:focus .clinical-fab {
  color: #fff;
  background-color: #036b57;
  background-position: -50% 0, 0 0;
  animation-play-state: paused;
}

.clinical-fab-link:hover .clinical-fab__character,
.clinical-fab-link:focus .clinical-fab__character {
  transform: rotate(-6deg);
}

@keyframes clinical-fab-in {
  from { opacity: 0; transform: translateY(80px) scale(0.6); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes clinical-fab-pulse {
  0%   { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(2, 79, 64, 0.6); }
  70%  { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 16px rgba(2, 79, 64, 0); }
  100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(2, 79, 64, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .clinical-fab-link,
  .clinical-fab,
  .clinical-fab__character {
    animation: none;
    transition: none;
  }
}
