/* === WA CONNECT FRONTEND STYLES === */

/* === WRAPPER === */
#wa-connect-wrapper {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 10px;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.4s ease, transform 0.4s ease;
	pointer-events: none;
}

#wa-connect-wrapper.wa-connect-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* === BUTTON === */
#wa-connect-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background-color: #25D366;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	text-decoration: none;
	position: relative;
	z-index: 1;
}

#wa-connect-btn:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
}

/* === PULSE ANIMATION === */
#wa-connect-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background-color: #25D366;
	animation: wa-connect-pulse 2s ease-out infinite;
	z-index: -1;
}

@keyframes wa-connect-pulse {
	0% {
		transform: scale(1);
		opacity: 0.6;
	}
	70% {
		transform: scale(1.5);
		opacity: 0;
	}
	100% {
		transform: scale(1.5);
		opacity: 0;
	}
}

/* === TOOLTIP LABEL === */
#wa-connect-label {
	background-color: #333333;
	color: #ffffff;
	font-size: 14px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	padding: 6px 14px;
	border-radius: 20px;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.2s ease;
	order: -1;
	pointer-events: none;
}

#wa-connect-wrapper:hover #wa-connect-label {
	opacity: 1;
}

/* === MOBILE — hide label on small screens === */
@media (max-width: 480px) {
	#wa-connect-label {
		display: none;
	}
}
