/* Floating WhatsApp pill: same design as digitalwithsandip.com */
.wa-ico { --wa: #25d366; display: block; overflow: visible; }
.wa-ico__disc { fill: var(--wa); }
.wa-ico__ring { fill: none; stroke: #fff; stroke-width: 2.4; }
.wa-ico__phone { fill: #fff; }
.wa-ico__stroke { fill: var(--wa); fill-opacity: 0; stroke: var(--wa); stroke-width: 2.6; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.wa-ico__dot { fill: var(--wa); opacity: 0; transform-box: fill-box; transform-origin: center; }
/* 8s loop: logo pops out, outline redraws itself, fills, logo springs back */
.wa-ico__logo { transform-box: fill-box; transform-origin: center; animation: waLogo 8s cubic-bezier(.3, .7, .3, 1) infinite; }
.wa-ico__draw { animation: waDrawLayer 8s linear infinite; }
.wa-ico__draw .wa-ico__stroke { animation: waStroke 8s ease-in-out infinite; }
.wa-ico__draw .wa-ico__dot { animation: waDot 8s ease-in-out infinite; }
@keyframes waLogo { 0%, 55% { opacity: 1; transform: scale(1); } 57%, 75% { opacity: 0; transform: scale(.6); } 82% { opacity: 1; transform: scale(1.12); } 88%, 100% { opacity: 1; transform: scale(1); } }
@keyframes waDrawLayer { 0%, 55% { opacity: 0; } 56%, 76% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes waStroke { 0%, 56% { stroke-dashoffset: 100; fill-opacity: 0; } 68% { stroke-dashoffset: 0; fill-opacity: 0; } 72% { fill-opacity: 0; } 76%, 100% { stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes waDot { 0%, 66% { opacity: 0; transform: scale(0); } 69% { opacity: 1; transform: scale(1.3); } 72% { opacity: 1; transform: scale(1); } 74%, 100% { opacity: 0; } }

.wa-float {
	position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 45;
	display: inline-flex; align-items: center; gap: 9px;
	padding: 5px 5px 5px 16px; border-radius: 999px; text-decoration: none;
	background: linear-gradient(100deg, #fff 0%, #f4fdf7 45%, #d9f7e3 100%);
	border: 1.5px solid #9fe2b6; color: #10261a;
	font: 700 14px/1 var(--sans);
	box-shadow: 0 14px 30px -12px rgba(30, 21, 51, .45), 0 0 0 1px rgba(30, 21, 51, .06), 0 0 28px rgba(37, 211, 102, .18);
	opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none;
	transition: opacity .35s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .25s;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { color: #10261a; box-shadow: 0 18px 36px -12px rgba(30, 21, 51, .5), 0 0 0 1px rgba(30, 21, 51, .06), 0 0 34px rgba(37, 211, 102, .3); }
.wa-float:active { transform: scale(.97); }
.wa-float:focus-visible { outline: 2px solid #25d366; outline-offset: 3px; }
.wa-float__icon { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.wa-float__icon::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(37, 211, 102, .35); animation: waHalo 1.8s ease-out infinite; }
.wa-ico--lg { position: relative; width: 36px; height: 36px; }
@keyframes waHalo { 0% { transform: scale(.85); opacity: .9; } 70% { transform: scale(1.25); opacity: 0; } 100% { transform: scale(1.25); opacity: 0; } }

/* This replaces the old WhatsApp plugin button at every screen size. */
.qlwapp, .qlwapp__container, nav.whatsapp { display: none !important; }

/* Phones: sit above the bottom app bar, and stay away from the buy button and forms. */
@media (max-width: 767px) {
	.wa-float { bottom: calc(14px + env(safe-area-inset-bottom)); }
	.single-product .wa-float, .woocommerce-cart .wa-float, .woocommerce-checkout .wa-float { display: none; }
	.pp-toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* Desktop: beside the chat bubble, not over it. */
@media (min-width: 1024px) {
	.wa-float { right: 96px; bottom: 22px; gap: 11px; padding: 6px 6px 6px 20px; font-size: 15px; }
	.wa-float:hover { transform: translateY(-2px); }
	.wa-float__icon { width: 44px; height: 44px; }
	.wa-ico--lg { width: 40px; height: 40px; }
	.pp-toast { bottom: 92px; }
}

@media (prefers-reduced-motion: reduce) {
	.wa-ico__logo { animation: none !important; opacity: 1 !important; transform: none !important; }
	.wa-ico__draw { display: none; }
	.wa-float__icon::before { animation: none; }
}
