/* ========================================================================== 
   Toy Max — Playful floating WhatsApp contact
   ========================================================================== */

.tmx-wa-float {
	position: fixed;
	inset-inline-end: 20px;
	bottom: 84px;
	z-index: 365;
	display: grid;
	width: 58px;
	height: 58px;
	place-items: center;
	border: 5px solid #ffd324;
	border-radius: 50%;
	background: linear-gradient(145deg, #35df76 0%, #18a95a 100%);
	box-shadow: 0 8px 0 #dca900, 0 15px 28px rgba(11, 45, 111, .2), 0 8px 22px rgba(37, 211, 102, .28);
	color: #fff !important;
	text-decoration: none !important;
	isolation: isolate;
	transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease;
	animation: tmx-wa-arrive .85s cubic-bezier(.22, 1, .36, 1) .7s both;
}

.tmx-wa-float::before {
	position: absolute;
	inset: 3px;
	z-index: -1;
	border: 1px solid rgba(255, 255, 255, .52);
	border-radius: inherit;
	content: "";
}

.tmx-wa-float:is(:hover, :focus-visible) {
	color: #fff !important;
	outline: none;
	transform: translateY(-4px) rotate(-3deg) scale(1.06);
	box-shadow: 0 10px 0 #dca900, 0 20px 34px rgba(11, 45, 111, .23), 0 11px 28px rgba(37, 211, 102, .35);
}

.tmx-wa-float:focus-visible {
	outline: 3px solid #0b2d6f;
	outline-offset: 5px;
}

.tmx-wa-icon {
	position: relative;
	z-index: 2;
	display: block;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .12));
}

.tmx-wa-radar {
	position: absolute;
	inset: -5px;
	z-index: -2;
	border: 2px solid rgba(37, 211, 102, .55);
	border-radius: 50%;
	pointer-events: none;
	animation: tmx-wa-radar 3s cubic-bezier(.25, .46, .45, .94) infinite;
}

.tmx-wa-radar--delay {
	animation-delay: 1.5s;
}

.tmx-wa-spark {
	position: absolute;
	top: -10px;
	inset-inline-end: -7px;
	z-index: 3;
	display: grid;
	width: 22px;
	height: 22px;
	place-items: center;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #f11f37;
	box-shadow: 0 3px 8px rgba(11, 45, 111, .2);
	color: #ffd324;
	font-size: 10px;
	line-height: 1;
	animation: tmx-wa-spark 2.8s ease-in-out infinite;
}

.tmx-wa-tooltip {
	position: absolute;
	inset-inline-end: calc(100% + 15px);
	top: 50%;
	display: grid;
	min-width: 172px;
	padding: 10px 15px;
	border: 2px solid #ffd324;
	border-radius: 15px 15px 5px 15px;
	background: #0b2d6f;
	box-shadow: 0 12px 28px rgba(11, 45, 111, .22);
	color: #fff;
	line-height: 1.2;
	opacity: 0;
	pointer-events: none;
	transform: translate(8px, -50%) scale(.96);
	transform-origin: right center;
	transition: opacity .25s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
}

.tmx-wa-tooltip small {
	color: #bfeaff;
	font-size: 10px;
	font-weight: 700;
}

.tmx-wa-tooltip strong {
	margin-top: 2px;
	color: #fff;
	font-size: 13px;
	font-weight: 900;
}

.tmx-wa-float:is(:hover, :focus-visible) .tmx-wa-tooltip {
	opacity: 1;
	transform: translate(0, -50%) scale(1);
}

@keyframes tmx-wa-arrive {
	from { opacity: 0; transform: translateY(22px) scale(.72) rotate(12deg); }
	to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes tmx-wa-radar {
	0% { opacity: .75; transform: scale(.9); }
	65% { opacity: .18; }
	100% { opacity: 0; transform: scale(1.7); }
}

@keyframes tmx-wa-spark {
	0%, 100% { transform: rotate(-8deg) scale(1); }
	50% { transform: rotate(8deg) scale(1.12); }
}

@media (hover: none) {
	.tmx-wa-tooltip {
		display: none;
	}
}

@media (max-width: 1024px) {
	.tmx-wa-float {
		inset-inline-end: 10px;
		bottom: calc(122px + env(safe-area-inset-bottom, 0px));
		width: 52px;
		height: 52px;
		border-width: 4px;
		box-shadow: 0 6px 0 #dca900, 0 12px 24px rgba(11, 45, 111, .18), 0 7px 18px rgba(37, 211, 102, .25);
	}

	body:has(.scrollToTop.wd-sticky-btn-shown) .tmx-wa-float {
		bottom: calc(122px + var(--wd-sticky-btn-height, 60px) + env(safe-area-inset-bottom, 0px));
	}

	.tmx-wa-icon {
		width: 26px;
		height: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tmx-wa-float,
	.tmx-wa-radar,
	.tmx-wa-spark {
		animation: none !important;
	}

	.tmx-wa-float,
	.tmx-wa-tooltip {
		transition: none !important;
	}
}
