/* WhatsApp Floating Button - Frontend Styles */

.wfb-wrapper {
	position: fixed;
	bottom: 20px;
	z-index: 999999;
	display: flex;
	align-items: center;
	gap: 10px;
}

.wfb-wrapper.wfb-pos-right {
	right: 20px;
	flex-direction: row-reverse;
}

.wfb-wrapper.wfb-pos-left {
	left: 20px;
	flex-direction: row;
}

.wfb-button {
	width: var(--wfb-size, 60px);
	height: var(--wfb-size, 60px);
	background-color: var(--wfb-bg, #25D366);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	flex-shrink: 0;
}

.wfb-button:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.wfb-button img {
	width: 60%;
	height: 60%;
	object-fit: contain;
	border-radius: 0;
}

.wfb-greeting {
	background: #fff;
	color: #333;
	padding: 8px 14px;
	border-radius: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	font-size: 14px;
	white-space: nowrap;
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Visibility toggles: "hide on desktop" / "hide on mobile" checkboxes in settings */
@media (min-width: 769px) {
	.wfb-hide-desktop {
		display: none !important;
	}
}

@media (max-width: 768px) {
	.wfb-hide-mobile {
		display: none !important;
	}
	.wfb-greeting {
		display: none;
	}
	.wfb-wrapper {
		bottom: 15px;
	}
	.wfb-wrapper.wfb-pos-right {
		right: 15px;
	}
	.wfb-wrapper.wfb-pos-left {
		left: 15px;
	}
}
