/* Floating WhatsApp contact control only. */
.shajghor-floating-whatsapp {
	position: fixed;
	right: max(1.25rem, env(safe-area-inset-right));
	bottom: max(1.5rem, env(safe-area-inset-bottom));
	z-index: 999;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border: 2px solid #faf8f4;
	border-radius: 50%;
	background: #0f5c4d;
	box-shadow: 0 0.5rem 1.5rem rgba(31, 41, 51, 0.22);
	color: #fff;
	text-decoration: none;
	transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.shajghor-floating-whatsapp:hover {
	background: #0b493d;
	box-shadow: 0 0.65rem 1.75rem rgba(31, 41, 51, 0.28);
	color: #fff;
	transform: translateY(-2px);
}

.shajghor-floating-whatsapp:focus-visible {
	outline: 3px solid #c9a86a;
	outline-offset: 3px;
}

.shajghor-floating-whatsapp__icon {
	display: block;
	width: 1.85rem;
	height: 1.85rem;
}

.shajghor-floating-whatsapp__tooltip {
	position: absolute;
	right: calc(100% + 0.65rem);
	width: max-content;
	max-width: 12rem;
	padding: 0.45rem 0.65rem;
	border-radius: 0.4rem;
	background: #1f2933;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.2;
	opacity: 0;
	pointer-events: none;
	transform: translateX(0.25rem);
	transition: opacity 160ms ease, transform 160ms ease;
}

.shajghor-floating-whatsapp:hover .shajghor-floating-whatsapp__tooltip,
.shajghor-floating-whatsapp:focus-visible .shajghor-floating-whatsapp__tooltip {
	opacity: 1;
	transform: translateX(0);
}

body.woocommerce-checkout .shajghor-floating-whatsapp {
	bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 4.5rem));
}

@media (min-width: 783px) {
	.shajghor-floating-whatsapp--hide-desktop {
		display: none;
	}
}

@media (max-width: 782px) {
	.shajghor-floating-whatsapp {
		right: max(1rem, env(safe-area-inset-right));
		bottom: max(5.75rem, calc(env(safe-area-inset-bottom) + 4.75rem));
		width: 3.25rem;
		height: 3.25rem;
	}

	body.woocommerce-checkout .shajghor-floating-whatsapp {
		bottom: max(7rem, calc(env(safe-area-inset-bottom) + 6rem));
	}

	.shajghor-floating-whatsapp__tooltip {
		display: none;
	}

	.shajghor-floating-whatsapp--hide-mobile {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shajghor-floating-whatsapp,
	.shajghor-floating-whatsapp__tooltip {
		transition: none;
	}
}
