/**
 * WhatsApp Floating Button Styles
 *
 * @package Kidymart_Settings
 */

.kidymart-whatsapp-button {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 60px;
	height: 60px;
	background-color: #25D366;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 9999;
	transition: all 0.3s ease;
	text-decoration: none;
	cursor: pointer;
}

.kidymart-whatsapp-button svg {
	width: 32px;
	height: 32px;
	color: #ffffff;
}

.kidymart-whatsapp-button:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
	background-color: #1ebe57;
}

.kidymart-whatsapp-button:active {
	transform: scale(1.05);
}

/* Pulse animation */
@keyframes whatsapp-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
	}
	70% {
		box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
	}
}

.kidymart-whatsapp-button {
	animation: whatsapp-pulse 2s infinite;
}

.kidymart-whatsapp-button:hover {
	animation: none;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
	.kidymart-whatsapp-button {
		width: 56px;
		height: 56px;
		bottom: 16px;
		right: 16px;
	}

	.kidymart-whatsapp-button svg {
		width: 28px;
		height: 28px;
	}
}

/* Tablet */
@media screen and (min-width: 769px) and (max-width: 1024px) {
	.kidymart-whatsapp-button {
		width: 58px;
		height: 58px;
		bottom: 18px;
		right: 18px;
	}

	.kidymart-whatsapp-button svg {
		width: 30px;
		height: 30px;
	}
}

/* Accessibility */
.kidymart-whatsapp-button:focus {
	outline: 2px solid #1ebe57;
	outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	.kidymart-whatsapp-button {
		box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
	}

	.kidymart-whatsapp-button:hover {
		box-shadow: 0 6px 16px rgba(255, 255, 255, 0.15);
	}
}
