.nfb-button {
	--nfb-primary: #0D2950;
	--nfb-secondary: #E70000;

	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--nfb-primary);
	box-shadow: 0 8px 24px rgba(13, 41, 80, 0.28);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nfb-button:hover,
.nfb-button:focus-visible {
	transform: scale(1.06);
	background: var(--nfb-secondary);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

/* Subtle attention-grabbing pulse: a copy of the button's own color fades
   and expands behind it. Paused on hover/focus so it doesn't fight with the
   hover color change, and disabled entirely for reduced-motion users. */
.nfb-button::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--nfb-primary);
	opacity: 0.55;
	z-index: -1;
	animation: nfb-pulse 2.6s ease-out infinite;
}

@keyframes nfb-pulse {
	0% {
		transform: scale(1);
		opacity: 0.55;
	}
	100% {
		transform: scale(1.8);
		opacity: 0;
	}
}

.nfb-button:hover::after,
.nfb-button:focus-visible::after {
	animation-play-state: paused;
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	.nfb-button::after {
		animation: none;
		opacity: 0;
	}
}

.nfb-button-icon {
	width: 26px;
	height: 26px;
	object-fit: contain;
	pointer-events: none;
}

.nfb-button-icon--default {
	fill: none;
	stroke: #fff;
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.nfb-button-tooltip {
	position: absolute;
	left: calc(100% + 14px);
	top: 50%;
	transform: translate(-6px, -50%);
	white-space: nowrap;
	background: var(--nfb-primary);
	color: #fff;
	font-family: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
	font-size: 14px;
	font-weight: 500;
	padding: 8px 14px;
	border-radius: 8px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.nfb-button-tooltip::after {
	content: '';
	position: absolute;
	right: 100%;
	top: 50%;
	transform: translateY(-50%);
	border: 6px solid transparent;
	border-right-color: var(--nfb-primary);
}

.nfb-button:hover .nfb-button-tooltip,
.nfb-button:focus-visible .nfb-button-tooltip {
	opacity: 1;
	transform: translate(0, -50%);
}

@media (max-width: 480px) {
	.nfb-button {
		left: 16px;
		bottom: 16px;
		width: 52px;
		height: 52px;
	}

	.nfb-button-tooltip {
		display: none;
	}
}
