.fgb-floating-wrap {
	position: fixed;
	line-height: 1;
	pointer-events: none;
}

.fgb-floating-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: min(90vw, 520px);
	box-sizing: border-box;
	overflow: hidden;
	text-decoration: none !important;
	line-height: 1.2;
	letter-spacing: normal;
	white-space: nowrap;
	pointer-events: auto;
	isolation: isolate;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.fgb-floating-button:hover,
.fgb-floating-button:focus-visible {
	background: var(--fgb-hover) !important;
	color: var(--fgb-text) !important;
	transform: translateY(-2px);
	filter: brightness(1.04);
	text-decoration: none !important;
}

.fgb-floating-button:focus-visible {
	outline: 3px solid rgba(37, 99, 235, .45);
	outline-offset: 4px;
}

.fgb-floating-button .fgb-icon {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	line-height: 1;
}

.fgb-floating-button .fgb-icon img {
	display: block;
	object-fit: contain;
	border: 0;
	box-shadow: none;
}

.fgb-floating-button .fgb-label {
	position: relative;
	z-index: 2;
}

.fgb-animation-gleam::before {
	content: "";
	position: absolute;
	z-index: 1;
	top: -70%;
	left: -55%;
	width: 34%;
	height: 240%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,var(--fgb-gleam-opacity)), transparent);
	transform: rotate(18deg);
	animation: fgb-gleam var(--fgb-duration) ease-in-out infinite;
	pointer-events: none;
}

.fgb-animation-glow {
	animation: fgb-glow var(--fgb-duration) ease-in-out infinite;
}

.fgb-animation-pulse {
	animation: fgb-pulse var(--fgb-duration) ease-in-out infinite;
}

.fgb-animation-bounce {
	animation: fgb-bounce var(--fgb-duration) ease-in-out infinite;
}

@keyframes fgb-gleam {
	0%, 18% { left: -55%; opacity: 0; }
	28% { opacity: 1; }
	58% { left: 125%; opacity: 0; }
	100% { left: 125%; opacity: 0; }
}

@keyframes fgb-glow {
	0%, 100% { box-shadow: 0 10px 26px rgba(0,0,0,.22), 0 0 0 0 color-mix(in srgb, var(--fgb-bg) 45%, transparent); }
	50% { box-shadow: 0 14px 34px rgba(0,0,0,.28), 0 0 0 10px color-mix(in srgb, var(--fgb-bg) 0%, transparent); }
}

@keyframes fgb-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.055); }
}

@keyframes fgb-bounce {
	0%, 78%, 100% { transform: translateY(0); }
	84% { transform: translateY(-7px); }
	90% { transform: translateY(0); }
	95% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
	.fgb-floating-button,
	.fgb-floating-button::before {
		animation: none !important;
		transition: none !important;
	}
}

@media (max-width: 480px) {
	.fgb-floating-button {
		max-width: calc(100vw - 28px);
	}
}
