/**
 * Custom Floating Button - front-end styles.
 * Position, size and z-index are injected inline from the plugin settings.
 */

.cfb-fb {
	position: fixed;
	line-height: 0;
	pointer-events: none; /* Only the link itself should capture clicks. */
}

.cfb-fb .cfb-fb__link {
	display: block;
	line-height: 0;
	border: 0;
	padding: 0;
	text-decoration: none;
	box-shadow: none;
	pointer-events: auto;
	transition: transform 0.25s ease, opacity 0.25s ease;
	-webkit-tap-highlight-color: transparent;
}

.cfb-fb a.cfb-fb__link:hover,
.cfb-fb a.cfb-fb__link:focus {
	transform: scale(1.06);
	opacity: 0.92;
	text-decoration: none;
	box-shadow: none;
}

.cfb-fb a.cfb-fb__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

/* Salient (and many themes) force `max-width: 100%` and border radii on images. */
.cfb-fb img {
	display: block;
	max-width: none;
	max-height: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
	padding: 0;
}

@media (prefers-reduced-motion: reduce) {
	.cfb-fb .cfb-fb__link {
		transition: none;
	}

	.cfb-fb a.cfb-fb__link:hover,
	.cfb-fb a.cfb-fb__link:focus {
		transform: none;
	}
}

@media print {
	.cfb-fb {
		display: none !important;
	}
}
