.wafc {
	position: fixed;
	bottom: calc(var(--wafc-offset-y, 20px) + env(safe-area-inset-bottom, 0px));
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	line-height: 1;
	-webkit-tap-highlight-color: transparent;
}

.wafc--right {
	right: var(--wafc-offset-x, 20px);
}

.wafc--left {
	left: var(--wafc-offset-x, 20px);
	flex-direction: row-reverse;
}

.wafc__bubble {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: var(--wafc-size, 60px);
	height: var(--wafc-size, 60px);
	border-radius: 50%;
	background: var(--wafc-color, #25d366);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wafc__bubble::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--wafc-color, #25d366);
	opacity: 0.5;
	z-index: -1;
	animation: wafc-pulse 2s ease-out infinite;
}

.wafc__icon {
	width: 55%;
	height: 55%;
	display: block;
}

.wafc__label {
	max-width: calc(100vw - var(--wafc-size, 60px) - var(--wafc-offset-x, 20px) * 2 - 10px);
	padding: 9px 14px;
	border-radius: 999px;
	background: #fff;
	color: #1f2937;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	box-sizing: border-box;
}

.wafc:hover .wafc__bubble,
.wafc:focus-visible .wafc__bubble {
	transform: scale(1.08);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.wafc:focus-visible {
	outline: none;
}

.wafc:focus-visible .wafc__bubble {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

@keyframes wafc-pulse {
	0% {
		transform: scale(1);
		opacity: 0.5;
	}
	100% {
		transform: scale(1.6);
		opacity: 0;
	}
}

@media (max-width: 767px) {
	.wafc--hide-mobile {
		display: none;
	}
}

@media (min-width: 768px) {
	.wafc--hide-desktop {
		display: none;
	}
}

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

	.wafc__bubble::before {
		animation: none;
		display: none;
	}
}

@media print {
	.wafc {
		display: none;
	}
}
