/* ============================================================
   Kauky WhatsApp — Frontend Floating Button
   ============================================================ */

#kwa-float-wrap {
	position: fixed;
	z-index: 9999;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
}

/* ---- Position classes ---- */
#kwa-float-wrap.kwa-pos-bottom-right { bottom: 24px; right: 24px; }
#kwa-float-wrap.kwa-pos-top-right    { top: 24px; right: 24px; }
#kwa-float-wrap.kwa-pos-center-right { top: 50%; right: 24px; transform: translateY(-50%); }
#kwa-float-wrap.kwa-pos-bottom-left  { bottom: 24px; left: 24px; flex-direction: row-reverse; }
#kwa-float-wrap.kwa-pos-top-left     { top: 24px; left: 24px; flex-direction: row-reverse; }
#kwa-float-wrap.kwa-pos-center-left  { top: 50%; left: 24px; transform: translateY(-50%); flex-direction: row-reverse; }

/* ---- Button ---- */
#kwa-float-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25D366;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
	transition: transform .2s ease, box-shadow .2s ease;
	text-decoration: none;
	flex-shrink: 0;
}

#kwa-float-btn:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}

#kwa-float-btn svg {
	pointer-events: none;
}

/* ---- CTA bubble ---- */
#kwa-cta-bubble {
	position: relative;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
	padding: 8px 14px;
	font-size: 14px;
	font-family: sans-serif;
	line-height: 1.4;
	white-space: nowrap;
	color: #1d2327;
	opacity: 0;
	transform: translateX(6px);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
}

/* Arrow pointing right (bubble sits to the left of the button) */
#kwa-cta-bubble::after {
	content: '';
	position: absolute;
	right: -6px;
	top: 50%;
	transform: translateY(-50%);
	border: 6px solid transparent;
	border-right: none;
	border-left-color: #fff;
}

/* Left-side positions: bubble sits to the right of button — flip arrow */
#kwa-float-wrap.kwa-pos-bottom-left #kwa-cta-bubble,
#kwa-float-wrap.kwa-pos-top-left    #kwa-cta-bubble,
#kwa-float-wrap.kwa-pos-center-left #kwa-cta-bubble {
	transform: translateX(-6px);
}

#kwa-float-wrap.kwa-pos-bottom-left #kwa-cta-bubble::after,
#kwa-float-wrap.kwa-pos-top-left    #kwa-cta-bubble::after,
#kwa-float-wrap.kwa-pos-center-left #kwa-cta-bubble::after {
	right: auto;
	left: -6px;
	border-left: none;
	border-right-color: #fff;
}

/* Show bubble only when hovering the button */
#kwa-float-wrap:has(#kwa-float-btn:hover) #kwa-cta-bubble {
	opacity: 1;
	transform: translateX(0);
}
