.whatsappx-floating {
	position: fixed;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-end;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.whatsappx-floating.whatsappx-left-side {
	align-items: flex-start;
}

.whatsappx-contact-wrap {
	position: relative;
	display: inline-flex;
}

.whatsappx-contact {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #1f2933;
	text-decoration: none;
	filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.18));
	cursor: pointer;
}

.whatsappx-left-side .whatsappx-contact {
	flex-direction: row-reverse;
}

.whatsappx-name {
	max-width: min(220px, calc(100vw - 104px));
	padding: 8px 12px;
	border-radius: 8px;
	background: #fff;
	color: #152331;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
	transition: transform 160ms ease, opacity 160ms ease;
}

.whatsappx-icon {
	position: relative;
	display: inline-flex;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	background: #25d366;
	color: #fff;
	box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
	transition: transform 160ms ease, background-color 160ms ease;
}

.whatsappx-icon-wechat {
	background: #07c160;
}

.whatsappx-icon-qq {
	background: #12b7f5;
}

.whatsappx-icon-phone {
	background: #2563eb;
}

.whatsappx-icon-email {
	background: #e11d48;
}

.whatsappx-icon svg {
	width: 32px;
	height: 32px;
	fill: currentColor;
}

.whatsappx-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	display: inline-flex;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border: 2px solid #fff;
	border-radius: 999px;
	align-items: center;
	justify-content: center;
	background: #ffb020;
	color: #1f2933;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	box-sizing: border-box;
}

.whatsappx-contact:hover,
.whatsappx-contact:focus {
	color: #152331;
	text-decoration: none;
	outline: none;
}

.whatsappx-contact:hover .whatsappx-icon,
.whatsappx-contact:focus .whatsappx-icon {
	transform: translateY(-2px) scale(1.04);
}

.whatsappx-contact:hover .whatsappx-name,
.whatsappx-contact:focus .whatsappx-name {
	transform: translateX(-2px);
}

.whatsappx-left-side .whatsappx-contact:hover .whatsappx-name,
.whatsappx-left-side .whatsappx-contact:focus .whatsappx-name {
	transform: translateX(2px);
}

.whatsappx-qr-popover {
	position: absolute;
	right: 68px;
	bottom: 0;
	display: none;
	width: 156px;
	padding: 10px;
	border-radius: 8px;
	background: #fff;
	color: #152331;
	text-align: center;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
	box-sizing: border-box;
}

.whatsappx-left-side .whatsappx-qr-popover {
	right: auto;
	left: 68px;
}

.whatsappx-contact-wechat:hover .whatsappx-qr-popover,
.whatsappx-contact-wechat:focus-within .whatsappx-qr-popover {
	display: block;
}

.whatsappx-qr-popover img {
	display: block;
	width: 136px;
	height: 136px;
	margin: 0 auto 6px;
	object-fit: cover;
}

.whatsappx-qr-popover span {
	display: block;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

@media (max-width: 480px) {
	.whatsappx-floating {
		gap: 8px;
	}

	.whatsappx-icon {
		width: 50px;
		height: 50px;
	}

	.whatsappx-icon svg {
		width: 29px;
		height: 29px;
	}

	.whatsappx-name {
		max-width: calc(100vw - 92px);
		font-size: 13px;
	}

	.whatsappx-qr-popover {
		right: 60px;
		width: 144px;
	}

	.whatsappx-left-side .whatsappx-qr-popover {
		left: 60px;
	}

	.whatsappx-qr-popover img {
		width: 124px;
		height: 124px;
	}
}
