.tg-whatsapp-widget {
	position: fixed;
	right: 18px;
	bottom: 92px;
	z-index: 9998;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0;
	width: 58px;
	min-height: 58px;
	padding: 5px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(37, 211, 102, 0.16);
	box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
	backdrop-filter: blur(12px);
	overflow: hidden;
	text-decoration: none !important;
	transition: width 0.28s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.tg-whatsapp-widget:hover,
.tg-whatsapp-widget:focus-visible {
	width: 212px;
	transform: translateY(-2px);
	box-shadow: 0 22px 44px rgba(15, 23, 42, 0.2);
}

.tg-whatsapp-widget__message {
	color: #1f2937;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	white-space: nowrap;
	max-width: 0;
	opacity: 0;
	transform: translateX(10px);
	overflow: hidden;
	transition: max-width 0.28s ease, opacity 0.2s ease, transform 0.28s ease,
		margin-right 0.28s ease;
	margin-right: 0;
	pointer-events: none;
}

.tg-whatsapp-widget:hover .tg-whatsapp-widget__message,
.tg-whatsapp-widget:focus-visible .tg-whatsapp-widget__message {
	max-width: 150px;
	opacity: 1;
	transform: translateX(0);
	margin-right: 10px;
}

.tg-whatsapp-widget__button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, #25d366 0%, #18b957 100%);
	box-shadow: 0 14px 28px rgba(37, 211, 102, 0.32);
	flex-shrink: 0;
}

.tg-whatsapp-widget__button::before {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 1px solid rgba(37, 211, 102, 0.28);
	animation: tg-whatsapp-pulse 2s ease-out infinite;
}

.tg-whatsapp-widget__button svg {
	width: 24px;
	height: 24px;
	fill: #fff;
}

@keyframes tg-whatsapp-pulse {
	0% {
		opacity: 0.7;
		transform: scale(0.94);
	}

	70% {
		opacity: 0;
		transform: scale(1.18);
	}

	100% {
		opacity: 0;
		transform: scale(1.18);
	}
}

@media (max-width: 1024px) {
	.tg-whatsapp-widget {
		display: none;
	}

	.tg-whatsapp-widget:hover,
	.tg-whatsapp-widget:focus-visible {
		width: 50px;
	}

	.tg-whatsapp-widget__message {
		display: none;
		font-size: 12px;
		line-height: 1.3;
		white-space: nowrap;
	}

	.tg-whatsapp-widget:hover .tg-whatsapp-widget__message,
	.tg-whatsapp-widget:focus-visible .tg-whatsapp-widget__message {
		max-width: 0;
		margin-right: 0;
	}

	.tg-whatsapp-widget__button {
		width: 42px;
		height: 42px;
	}

	.tg-whatsapp-widget__button svg {
		width: 22px;
		height: 22px;
	}
}
