.jwa-float {
	--jwa-size: 56px;
	align-items: flex-end;
	bottom: calc(var(--jwa-bottom, 20px) + env(safe-area-inset-bottom, 0px));
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 0;
	position: fixed;
	z-index: 99990;
}

.jwa-side-right {
	right: calc(var(--jwa-edge, 20px) + env(safe-area-inset-right, 0px));
}

.jwa-side-left {
	left: calc(var(--jwa-edge, 20px) + env(safe-area-inset-left, 0px));
}

.jwa-dir-vertical {
	flex-direction: column;
}

.jwa-dir-vertical.jwa-side-left {
	align-items: flex-start;
}

.jwa-dir-horizontal {
	align-items: center;
	flex-direction: row;
}

.jwa-size-s { --jwa-size: 44px; }
.jwa-size-m { --jwa-size: 56px; }
.jwa-size-l { --jwa-size: 64px; }
.jwa-size-xl { --jwa-size: 72px; }

.jwa-wait,
.jwa-closed {
	display: none;
}

.jwa-btn {
	align-items: center;
	background: var(--jwa-color, #25d366);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	color: #fff;
	display: inline-flex;
	height: var(--jwa-size);
	isolation: isolate;
	justify-content: center;
	position: relative;
	text-decoration: none;
	transition: transform .15s ease;
	width: var(--jwa-size);
}

.jwa-shape-square .jwa-btn,
.jwa-shape-square .jwa-btn::after {
	border-radius: 14px;
}

.jwa-btn svg {
	fill: currentColor;
	height: 52%;
	width: 52%;
}

.jwa-btn:hover {
	color: #fff;
	transform: scale(1.07);
}

.jwa-btn:focus-visible {
	outline: 3px solid #1d2327;
	outline-offset: 3px;
}

.jwa-label {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
	color: #1d2327;
	font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
	opacity: 0;
	padding: 8px 12px;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: opacity .15s ease;
	white-space: nowrap;
}

.jwa-side-right .jwa-label {
	right: calc(100% + 10px);
}

.jwa-side-left .jwa-label {
	left: calc(100% + 10px);
}

.jwa-dir-horizontal .jwa-label {
	bottom: calc(100% + 8px);
	left: 50%;
	right: auto;
	top: auto;
	transform: translateX(-50%);
}

.jwa-labels-always .jwa-label,
.jwa-labels-hover .jwa-btn:hover .jwa-label,
.jwa-labels-hover .jwa-btn:focus-visible .jwa-label {
	opacity: 1;
}

.jwa-labels-none .jwa-label {
	display: none;
}

.jwa-close {
	background: #1d2327;
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	font: 16px/24px system-ui, Arial, sans-serif;
	height: 24px;
	padding: 0;
	position: absolute;
	text-align: center;
	top: -32px;
	width: 24px;
}

.jwa-side-right .jwa-close {
	right: 0;
}

.jwa-side-left .jwa-close {
	left: 0;
}

.jwa-fx-pulse .jwa-btn::after {
	animation: jwa-ring 2s ease-out infinite;
	background: var(--jwa-color, #25d366);
	border-radius: inherit;
	content: "";
	inset: 0;
	opacity: .55;
	position: absolute;
	z-index: -1;
}

.jwa-fx-shake .jwa-btn {
	animation: jwa-shake 4s ease-in-out infinite;
}

.jwa-fx-bounce .jwa-btn {
	animation: jwa-bounce 3s ease-in-out infinite;
}

.jwa-fx-shake .jwa-btn:hover,
.jwa-fx-bounce .jwa-btn:hover {
	animation-play-state: paused;
}

@keyframes jwa-ring {
	from { opacity: .55; transform: scale(1); }
	to { opacity: 0; transform: scale(1.7); }
}

@keyframes jwa-shake {
	0%, 84%, 100% { transform: rotate(0); }
	87% { transform: rotate(-12deg); }
	90% { transform: rotate(12deg); }
	93% { transform: rotate(-8deg); }
	96% { transform: rotate(6deg); }
}

@keyframes jwa-bounce {
	0%, 80%, 100% { transform: translateY(0); }
	86% { transform: translateY(-10px); }
	92% { transform: translateY(0); }
	96% { transform: translateY(-4px); }
}

@media (min-width: 783px) {
	.jwa-no-desktop { display: none !important; }
}

@media (max-width: 782px) {
	.jwa-no-mobile { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	.jwa-btn,
	.jwa-btn::after,
	.jwa-label {
		animation: none !important;
		transition: none !important;
	}
}

@media print {
	.jwa-float { display: none !important; }
}
