.floating-cta {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 150;
  display: block;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.85rem) scale(0.85);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.floating-cta.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-cta-pill {
  display: flex;
  align-items: center;
  height: 3.1rem;
  border-radius: 999px;
  background-color: var(--evergreen);
  box-shadow: 0 10px 26px rgba(19, 42, 19, 0.3);
  overflow: hidden;
  transition: background-color 0.25s ease;
}

.floating-cta:hover .floating-cta-pill,
.floating-cta:focus-visible .floating-cta-pill {
  background-color: var(--fern);
}

.floating-cta-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  font-size: 1.1rem;
  color: var(--gold);
}

.floating-cta-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: 0.85rem;
  color: var(--lime-cream);
  opacity: 0;
  transition: max-width 0.3s ease, opacity 0.2s ease, padding-right 0.3s ease;
}

.floating-cta:hover .floating-cta-label,
.floating-cta:focus-visible .floating-cta-label {
  max-width: 11rem;
  padding-right: 1.35rem;
  opacity: 1;
}

@media (max-width: 480px) {
  .floating-cta {
    right: 1rem;
    bottom: 1rem;
  }

  .floating-cta-pill {
    height: 2.75rem;
  }

  .floating-cta-icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1rem;
  }

  .floating-cta-label {
    font-size: 0.8rem;
  }
}

