/**
 * Captain Store - global floating WhatsApp button (CAPTAIN-WHATSAPP-01).
 *
 * Fixed, bottom-right, circular. Loads site-wide (see inc/assets.php),
 * same as header.css / footer.css. No layout impact on surrounding content
 * (position: fixed is removed from normal flow).
 */

.cs-whatsapp {
	position: fixed;
	right: 26px;
	bottom: 26px;
	z-index: 999999; /* above the WP admin bar (99999) and any theme chrome */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #25d366; /* WhatsApp brand green */
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
	line-height: 0;
	transition: transform var(--cs-dur) var(--cs-ease),
	            box-shadow var(--cs-dur) var(--cs-ease),
	            background-color var(--cs-dur) var(--cs-ease);
}

.cs-whatsapp:hover,
.cs-whatsapp:focus-visible {
	background-color: #20bd5c;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
	transform: scale(1.06);
}

.cs-whatsapp:focus-visible {
	outline: 2px solid var(--cs-ink);
	outline-offset: 3px;
}

.cs-whatsapp__icon {
	width: 30px;
	height: 30px;
	display: block;
}

@media (max-width: 782px) {
	.cs-whatsapp {
		right: 18px;
		bottom: 18px;
		width: 54px;
		height: 54px;
	}

	.cs-whatsapp__icon {
		width: 27px;
		height: 27px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cs-whatsapp {
		transition: none;
	}

	.cs-whatsapp:hover,
	.cs-whatsapp:focus-visible {
		transform: none;
	}
}
