/* Floating WhatsApp button on listing pages (includes/whatsapp.php). Left side in RTL: the accessibility widget sits on the right. */
.tbg-wa-float {
	position: fixed;
	inset-inline-end: 16px;
	bottom: 20px;
	z-index: 9000; /* under the cookie banner (9500) and the accessibility widget (9600) */
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 52px;
	padding-inline: 14px 18px;
	border-radius: 999px;
	background: var(--c-green-700, #07513d);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
}
.tbg-wa-float:hover { filter: brightness(1.12); color: #fff; }
.tbg-wa-float:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 3px; box-shadow: 0 0 0 3px #fff, 0 6px 20px rgba(0, 0, 0, .28); }
.tbg-wa-float svg { width: 26px; height: 26px; fill: currentColor; flex: none; }

@media (max-width: 768px) {
	/* Icon only. Raised above the bottom action bar (52px plus the safe area) when the page has one. */
	.tbg-wa-float {
		inset-inline-end: 12px;
		bottom: calc(16px + env(safe-area-inset-bottom));
		width: 52px;
		padding: 0;
		justify-content: center;
	}
	body.tbg-has-actionbar .tbg-wa-float { bottom: calc(68px + env(safe-area-inset-bottom)); }
	.tbg-wa-float__text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media print { .tbg-wa-float { display: none; } }
