.fishgoo-floating-tools {
	position: fixed;
	right: 18px;
	top: 50%;
	z-index: 9998;
	transform: translateY(-50%);
	font-family: inherit;
}

.fishgoo-floating-tools--right-bottom {
	top: auto;
	bottom: 92px;
	transform: none;
}

.fishgoo-ft-list {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fishgoo-ft-action {
	position: relative;
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: flex-start;
	min-width: 48px;
	min-height: 48px;
	color: #fff;
	text-decoration: none;
	border: 0;
	border-radius: 999px;
	background: var(--fishgoo-ft-primary, #1177aa);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
	overflow: hidden;
	transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.fishgoo-ft-action:hover,
.fishgoo-ft-action:focus-visible {
	color: #fff;
	background: var(--fishgoo-ft-hover, #0b5f8a);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
	outline: 3px solid #fff;
	outline-offset: 2px;
	text-decoration: none;
}

.fishgoo-ft-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
}

.fishgoo-ft-icon svg {
	display: block;
	width: var(--fishgoo-ft-icon-size, 24px);
	height: var(--fishgoo-ft-icon-size, 24px);
	fill: none;
	stroke: currentColor;
}

.fishgoo-ft-label {
	max-width: 0;
	padding: 0;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	opacity: 0;
	overflow: hidden;
	transition: max-width .2s ease, padding .2s ease, opacity .15s ease;
}

.fishgoo-floating-tools--labels-hover .fishgoo-ft-action:hover .fishgoo-ft-label,
.fishgoo-floating-tools--labels-hover .fishgoo-ft-action:focus-visible .fishgoo-ft-label,
.fishgoo-floating-tools--labels-always .fishgoo-ft-label {
	max-width: 220px;
	padding-left: 16px;
	opacity: 1;
}

.fishgoo-floating-tools--labels-always .fishgoo-ft-action {
	padding-left: 2px;
}

.fishgoo-ft-has-back-to-top .back-to-top,
.fishgoo-ft-has-back-to-top #back-to-top,
.fishgoo-ft-has-back-to-top #return-to-top,
.fishgoo-ft-has-back-to-top .scroll-to-top {
	display: none !important;
}

@media (min-width: 769px) {
	.fishgoo-ft-desktop-hidden {
		display: none;
	}
}

@media (max-width: 768px) {
	body.fishgoo-ft-enabled.fishgoo-ft-mobile-enabled {
		padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
	}

	.fishgoo-floating-tools,
	.fishgoo-floating-tools--right-bottom {
		display: none;
	}

	.fishgoo-floating-tools--mobile-enabled,
	.fishgoo-floating-tools--mobile-enabled.fishgoo-floating-tools--right-bottom {
		display: block;
		position: fixed;
		inset: auto 0 0 0;
		width: 100%;
		transform: none;
		padding: 7px max(8px, env(safe-area-inset-right, 0px)) calc(7px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
		background: rgba(255, 255, 255, .97);
		box-shadow: 0 -7px 24px rgba(0, 0, 0, .14);
	}

	.admin-bar .fishgoo-floating-tools {
		bottom: 0;
	}

	.fishgoo-ft-list {
		display: grid;
		align-items: stretch;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 5px;
	}

	.fishgoo-ft-mobile-hidden {
		display: none;
	}

	.fishgoo-ft-action {
		flex-direction: column;
		justify-content: center;
		width: 100%;
		min-width: 0;
		min-height: 54px;
		gap: 2px;
		border-radius: 10px;
		box-shadow: none;
	}

	.fishgoo-ft-icon {
		width: 28px;
		height: 28px;
		flex-basis: 28px;
	}

	.fishgoo-ft-icon svg {
		width: 21px;
		height: 21px;
	}

	.fishgoo-ft-label,
	.fishgoo-floating-tools--labels-hover .fishgoo-ft-label,
	.fishgoo-floating-tools--labels-always .fishgoo-ft-label {
		display: block;
		max-width: 100%;
		padding: 0 3px;
		font-size: 10px;
		line-height: 1.15;
		text-align: center;
		opacity: 1;
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fishgoo-ft-action,
	.fishgoo-ft-label {
		transition: none;
	}
}
