.hz-floating-buttons {
	position: fixed;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	right: clamp(16px, 3vw, 36px);
	bottom: clamp(24px, 6vh, 72px);
	z-index: 50;
	width: auto;
	height: auto;
	pointer-events: none;
}

.hz-floating-buttons__link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	color: var(--hz-color-light) !important;
	text-decoration: none !important;
	background: var(--hz-color-dark);
	border-radius: 4px;
	pointer-events: auto;
	transition:
		background-color 160ms ease,
		color 160ms ease;
}

.hz-floating-buttons__link:hover,
.hz-floating-buttons__link:focus {
	color: var(--hz-color-light) !important;
	text-decoration: none !important;
	background: var(--hz-color-primary);
}

.hz-floating-buttons__link:focus-visible {
	outline: 2px solid var(--hz-color-light);
	outline-offset: 3px;
}

.hz-floating-buttons__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	color: inherit !important;
}

.hz-floating-buttons__icon svg,
.hz-floating-buttons__icon i {
	display: block;
	width: 34px;
	height: 34px;
	color: inherit !important;
	fill: currentColor !important;
}

.hz-floating-buttons__icon i {
	font-size: 34px;
	line-height: 1;
}

.hz-floating-buttons__icon svg [stroke] {
	stroke: currentColor !important;
}

.hz-floating-buttons__icon svg [fill]:not([fill="none"]) {
	fill: currentColor !important;
}

.hz-floating-buttons__tooltip {
	position: absolute;
	right: -20px;
	bottom: calc(100% + 18px);
	display: flex;
	justify-content: flex-end;
	max-width: calc(100vw - 32px);
	color: var(--hz-color-light);
	opacity: 0;
	pointer-events: none;
	transform: translateY(6px);
	transition:
		opacity 160ms ease,
		transform 160ms ease;
}

.hz-floating-buttons__tooltip::after {
	position: absolute;
	right: 38px;
	bottom: -17px;
	width: 0;
	height: 0;
	content: "";
	border-top: 17px solid var(--hz-color-primary);
	border-right: 12px solid transparent;
	border-left: 12px solid transparent;
}

.hz-floating-buttons__tooltip-text {
	display: block;
	width: max-content;
	max-width: calc(100vw - 32px);
	padding: 8px 16px;
	color: var(--hz-color-light);
	font-family: var(--hz-font-body);
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.4;
	overflow-wrap: anywhere;
	text-align: center;
	background: var(--hz-color-primary);
	border-radius: 4px;
}

.hz-floating-buttons__link:hover .hz-floating-buttons__tooltip,
.hz-floating-buttons__link:focus .hz-floating-buttons__tooltip {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 767px) {
	.hz-floating-buttons {
		right: 16px;
		bottom: 16px;
	}

	.hz-floating-buttons__tooltip {
		right: 0;
	}

	.hz-floating-buttons__tooltip::after {
		right: 18px;
	}
}
