/* BrilliantSolutions Donate Button — floating CTA
   Pixel-based sizing so the button renders identically in any theme. */

a.bsca-donate-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  background: #e01a22;
  color: #ffffff !important;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(224, 26, 34, 0.35);
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-font-smoothing: antialiased;
}

a.bsca-donate-float svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
}

a.bsca-donate-float span {
  color: inherit;
}

a.bsca-donate-float.bsca-df-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  animation: bsca-df-pulse 3s cubic-bezier(0.22, 1, 0.36, 1) infinite 1.2s;
}

a.bsca-donate-float:hover,
a.bsca-donate-float:focus {
  background: #b01218;
  color: #ffffff !important;
  transform: translateY(-2px);
  animation: none;
}

a.bsca-donate-float:focus-visible {
  outline: 2px solid #161616;
  outline-offset: 3px;
}

@keyframes bsca-df-pulse {
  0% {
    box-shadow: 0 10px 28px rgba(224, 26, 34, 0.35), 0 0 0 0 rgba(224, 26, 34, 0.45);
  }
  60% {
    box-shadow: 0 10px 28px rgba(224, 26, 34, 0.35), 0 0 0 14px rgba(224, 26, 34, 0);
  }
  100% {
    box-shadow: 0 10px 28px rgba(224, 26, 34, 0.35), 0 0 0 0 rgba(224, 26, 34, 0);
  }
}

@media (max-width: 380px) {
  a.bsca-donate-float {
    padding: 13px 19px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.bsca-donate-float {
    transition: none;
  }
  a.bsca-donate-float.bsca-df-visible {
    animation: none;
  }
}
