/* =============================================================================
   WooCommerce WhatsApp Order — Frontend Styles
   ============================================================================= */

/* ----- Product / Cart WhatsApp button ----- */
.wwao-whatsapp-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	padding: 12px 20px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	color: #fff !important;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
}

.wwao-whatsapp-button:hover,
.wwao-whatsapp-button:focus {
	opacity: 0.9;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5);
	color: #fff !important;
	text-decoration: none;
}

.wwao-whatsapp-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
}

/* Icon inside button */
.wwao-whatsapp-button .wwao-icon,
.wwao-cart-button .wwao-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* Cart-specific overriding theme full-width */
.wwao-cart-button {
	width: 100%;
	justify-content: center;
	margin-bottom: 8px;
}

/* ----- Floating Button (Feature 3) ----- */
.wwao-floating-button {
	position: fixed;
	z-index: 9999;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	animation: wwao-pulse 2.5s infinite;
}

.wwao-floating-button svg {
	width: 30px;
	height: 30px;
	fill: #fff;
}

.wwao-floating-button:hover,
.wwao-floating-button:focus {
	transform: scale(1.1);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
	text-decoration: none;
}

/* Positions */
.wwao-floating-bottom-right {
	bottom: 24px;
	right: 24px;
}

.wwao-floating-bottom-left {
	bottom: 24px;
	left: 24px;
}

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