/**
 * WhatsApp Floating Action Button — styles.
 *
 * Built per DESIGN_SYSTEM §9.3 + mockups/style-guide.html .whatsapp-fab pattern.
 * Bottom-right corner, mint accent color (NOT WhatsApp green — keeps brand consistency).
 *
 * Phase 4-A.
 */

.lpk-whatsapp-fab {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9998;          /* below STAGING banner (99999) but above all content */
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--color-whatsapp, #25D366);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.08);
	text-decoration: none;
	transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background-color 0.18s ease-out;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.lpk-whatsapp-fab:hover,
.lpk-whatsapp-fab:focus-visible {
	transform: translateY(-2px) scale(1.04);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.1);
	background: #1ebd5a;
	color: #fff;
}

.lpk-whatsapp-fab:focus-visible {
	outline: 3px solid #00ECC2;
	outline-offset: 3px;
}

.lpk-whatsapp-fab__icon {
	display: block;
	width: 28px;
	height: 28px;
}

/* === Closed state (outside business hours, show_tooltip mode) === */
.lpk-whatsapp-fab--closed {
	background: #6b7280;
}

.lpk-whatsapp-fab--closed:hover,
.lpk-whatsapp-fab--closed:focus-visible {
	background: #4b5563;
}

/* === Tooltip (closed-state explainer) === */
.lpk-whatsapp-fab__tooltip {
	position: absolute;
	right: calc(100% + 12px);
	bottom: 50%;
	transform: translateY(50%);
	background: #0B0B0B;
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 12px;
	line-height: 1.4;
	padding: 8px 12px;
	border-radius: 6px;
	max-width: 220px;
	white-space: normal;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease-out;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lpk-whatsapp-fab__tooltip::after {
	content: '';
	position: absolute;
	right: -5px;
	top: 50%;
	transform: translateY(-50%);
	border: 5px solid transparent;
	border-left-color: #0B0B0B;
}

.lpk-whatsapp-fab:hover .lpk-whatsapp-fab__tooltip,
.lpk-whatsapp-fab:focus-visible .lpk-whatsapp-fab__tooltip {
	opacity: 1;
}

/* === Mobile adjustments === */
@media (max-width: 767px) {
	.lpk-whatsapp-fab {
		bottom: 16px;
		right: 16px;
		width: 52px;
		height: 52px;
	}
	.lpk-whatsapp-fab__icon {
		width: 26px;
		height: 26px;
	}
	.lpk-whatsapp-fab__tooltip {
		max-width: 180px;
		font-size: 11px;
	}
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
	.lpk-whatsapp-fab,
	.lpk-whatsapp-fab__tooltip {
		transition: none;
	}
	.lpk-whatsapp-fab:hover {
		transform: none;
	}
}

/* === Print: hide === */
@media print {
	.lpk-whatsapp-fab {
		display: none !important;
	}
}
