/* Picasso WhatsApp Button — bottone flottante + tooltip. */

.pw-root {
	position: fixed;
	z-index: 9990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

/* Ancoraggio: gli offset arrivano dalle custom properties inline. */
.pw-bottom-right { right: var(--pw-x, 20px); bottom: var(--pw-y, 20px); }
.pw-bottom-left  { left: var(--pw-x, 20px);  bottom: var(--pw-y, 20px); align-items: flex-start; }
.pw-top-right    { right: var(--pw-x, 20px); top: var(--pw-y, 20px);    flex-direction: column-reverse; }
.pw-top-left     { left: var(--pw-x, 20px);  top: var(--pw-y, 20px);    flex-direction: column-reverse; align-items: flex-start; }

.pw-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pw-button:hover {
	transform: scale(1.07);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
	color: #fff;
}

.pw-button svg {
	width: 34px;
	height: 34px;
	display: block;
}

.pw-tooltip {
	position: relative;
	max-width: min(290px, calc(100vw - 40px));
	background: #fff;
	color: #262626;
	border-radius: 12px;
	box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
	padding: 14px 34px 14px 16px;
	font-size: 14px;
	line-height: 1.45;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.pw-tooltip.pw-open {
	opacity: 1;
	transform: translateY(0);
}

.pw-tooltip__close {
	position: absolute;
	top: 6px;
	right: 8px;
	border: 0;
	background: transparent;
	color: #8d8d8d;
	font-size: 18px;
	line-height: 1;
	padding: 4px;
	cursor: pointer;
}

.pw-tooltip__close:hover {
	color: #262626;
}

@media (max-width: 600px) {
	.pw-button {
		width: 56px;
		height: 56px;
	}

	.pw-button svg {
		width: 30px;
		height: 30px;
	}
}
