/* WhatsApp Sticky Button — frontend */
.wsb-widget {
	position: fixed;
	z-index: 99999;
	--wsb-bg: #25D366;
	--wsb-fg: #FFFFFF;
}

/* Posizioni */
.wsb-pos-bottom-right { right: 20px; bottom: 20px; }
.wsb-pos-bottom-left  { left: 20px;  bottom: 20px; }
.wsb-pos-middle-right { right: 20px; top: 50%; transform: translateY(-50%); }
.wsb-pos-middle-left  { left: 20px;  top: 50%; transform: translateY(-50%); }

.wsb-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 20px;
	border-radius: 50px;
	text-decoration: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	background: var(--wsb-bg);
	color: var(--wsb-fg);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
	transition: transform .18s ease, box-shadow .18s ease;
	white-space: nowrap;
	animation: wsb-in .35s ease both;
}

.wsb-btn:hover,
.wsb-btn:focus {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(0, 0, 0, .26);
	color: var(--wsb-fg);
}

.wsb-btn .wsb-icon {
	display: inline-flex;
	flex: 0 0 auto;
}

.wsb-btn .wsb-icon svg {
	width: 26px;
	height: 26px;
	fill: currentColor;
	display: block;
}

.wsb-label {
	display: inline-block;
}

/* Variante solo icona (CTA nascosta) */
.wsb-icon-only .wsb-btn {
	padding: 0;
	width: 60px;
	height: 60px;
	justify-content: center;
	border-radius: 50%;
}
.wsb-icon-only .wsb-label {
	display: none;
}

/* Animazione di ingresso */
@keyframes wsb-in {
	from { opacity: 0; transform: translateY(12px) scale(.96); }
	to   { opacity: 1; }
}
.wsb-pos-middle-right,
.wsb-pos-middle-left {
	/* mantiene il centratura verticale anche con l'animazione */
	animation: none;
}
.wsb-pos-middle-right .wsb-btn,
.wsb-pos-middle-left .wsb-btn {
	animation: wsb-in .35s ease both;
}

/* Responsive: nascondi dove richiesto */
@media (max-width: 782px) {
	.wsb-hide-mobile { display: none !important; }
	.wsb-btn { font-size: 14px; padding: 12px 16px; }
}
@media (min-width: 783px) {
	.wsb-hide-desktop { display: none !important; }
}

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