.wfm-root {
	--wfm-color-primary: var(--color-primary, #25D366);
	--wfm-color-primary-dark: var(--color-primary-dark, #1DA851);
	--wfm-color-fg: var(--color-on-primary, #ffffff);
	--wfm-size: 56px;
	--wfm-radius: 50%;

	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 9999;

	opacity: 0;
	transform: scale(0.8);
	animation: wfm-fade-in 0.3s ease forwards;
	animation-delay: 0.4s;
}

.wfm-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--wfm-size);
	height: var(--wfm-size);
	border-radius: var(--wfm-radius);
	background-color: var(--wfm-color-primary);
	color: var(--wfm-color-fg);
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.wfm-btn:hover,
.wfm-btn:focus-visible {
	background-color: var(--wfm-color-primary-dark);
	transform: scale(1.05);
}

.wfm-icon {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.wfm-multi {
	position: relative;
}

.wfm-panel {
	position: absolute;
	bottom: calc(var(--wfm-size) + 14px);
	right: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 10px;
	list-style: none;
	min-width: 230px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	max-height: 0;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
	transform: translateY(8px) scale(0.98);
	transform-origin: bottom right;
	transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.25s ease;
}

.wfm-panel.is-open {
	max-height: 480px;
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.wfm-panel li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wfm-panel li::marker,
.wfm-panel li::before {
	content: none;
}

.wfm-panel .wfm-panel__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	text-decoration: none;
	color: #1f2328;
	background-color: transparent;
	transition: background-color 0.15s ease;
}

.wfm-panel .wfm-panel__link:hover,
.wfm-panel .wfm-panel__link:focus-visible {
	background-color: rgba(37, 211, 102, 0.12);
}

.wfm-panel .wfm-panel__link .wfm-icon {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
}

.wfm-panel .wfm-panel__label {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: inherit;
}

@keyframes wfm-fade-in {
	from {
		opacity: 0;
		transform: scale(0.8);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media (max-width: 480px) {
	.wfm-root {
		bottom: calc(14px + env(safe-area-inset-bottom, 0px));
		right: 14px;
	}

	.wfm-btn {
		--wfm-size: 52px;
	}

	.wfm-panel {
		min-width: 200px;
	}
}
