/**
 * Floating chat / assistenza (Generale → Chat).
 */

.psh-floating-chat {
	position: fixed;
	z-index: 100050;
	right: 1.25rem;
	bottom: 1.25rem;
	left: auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.75rem;
	pointer-events: none;
	max-width: min(100vw - 2.5rem, 420px);
}

.psh-floating-chat > * {
	pointer-events: auto;
}

.psh-floating-chat__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--psh-chat-bg, #25d366);
	color: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.psh-floating-chat__btn:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.2);
	color: #fff;
}

.psh-floating-chat__btn:focus-visible {
	outline: 2px solid var(--psh-primary-color, #111);
	outline-offset: 3px;
}

.psh-floating-chat__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	color: #fff;
}

.psh-floating-chat__icon .psh-chat-icon {
	display: block;
	width: 24px;
	height: 24px;
}

.psh-floating-chat__widget,
.psh-floating-chat__shortcode {
	max-width: 100%;
}

@media (max-width: 480px) {
	.psh-floating-chat {
		right: 1rem;
		bottom: 1rem;
	}

	.psh-floating-chat__btn {
		width: 46px;
		height: 46px;
	}

	.psh-floating-chat__icon .psh-chat-icon {
		width: 22px;
		height: 22px;
	}
}
