.wolfedu-whatsapp-contact {
	position: fixed;
	inset-inline-end: 24px;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	z-index: 900;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 52px;
	min-height: 52px;
	padding: 12px 18px 12px 14px;
	border: 1px solid rgba(250, 249, 245, 0.3);
	border-radius: 999px;
	background: #0f7a40;
	box-shadow: 0 8px 24px rgba(20, 20, 19, 0.2);
	color: #faf9f5;
	font-family: "Hind Siliguri", Poppins, Arial, sans-serif;
	font-size: 15px;
	font-weight: 650;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition:
		transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1),
		background-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
		opacity 180ms cubic-bezier(0.22, 1, 0.36, 1),
		visibility 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wolfedu-whatsapp-contact:visited {
	color: #faf9f5;
}

.wolfedu-whatsapp-contact:hover {
	background: #0b6735;
	box-shadow: 0 12px 30px rgba(20, 20, 19, 0.26);
	color: #faf9f5;
	text-decoration: none;
	transform: translateY(-2px);
}

.wolfedu-whatsapp-contact:focus-visible {
	outline: 3px solid #141413;
	outline-offset: 3px;
}

.wolfedu-whatsapp-contact__icon {
	width: 27px;
	height: 27px;
	flex: 0 0 27px;
	fill: currentColor;
}

.wolfedu-whatsapp-contact__label {
	display: inline-block;
}

/* The custom Udemy page already contains an older local button. Hide it so
   visitors get exactly one consistent sitewide contact action. */
.postid-756 .wes-udemy .whatsapp-float {
	display: none !important;
}

/* Keep the contact action out of the way while navigation overlays are open. */
body.ast-main-header-nav-open .wolfedu-whatsapp-contact,
body.ast-popup-nav-open .wolfedu-whatsapp-contact {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

@supports selector(body:has(*)) {
	body:has(.elementor-menu-cart--shown) .wolfedu-whatsapp-contact {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
}

@media (max-width: 767px) {
	.wolfedu-whatsapp-contact {
		inset-inline-end: 16px;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		width: 56px;
		height: 56px;
		min-width: 56px;
		min-height: 56px;
		padding: 0;
	}

	.wolfedu-whatsapp-contact__label {
		display: none;
	}

	/* Product 756 has a fixed mobile purchase bar at the bottom. */
	.postid-756 .wolfedu-whatsapp-contact {
		bottom: calc(88px + env(safe-area-inset-bottom, 0px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.wolfedu-whatsapp-contact {
		transition: none;
	}

	.wolfedu-whatsapp-contact:hover {
		transform: none;
	}
}

@media print {
	.wolfedu-whatsapp-contact {
		display: none !important;
	}
}
