/**
 * "Chat with us" click-to-chat button.
 *
 * Uses WhatsApp brand green for the fill. Sized and spaced to sit naturally
 * next to WooCommerce's own buttons without inheriting their theme styles,
 * since themes restyle .button very differently.
 *
 * @since 1.5.1
 */

.wcwa-chat-button {
	margin: 1em 0;
}

.wcwa-chat-button--left   { text-align: left; }
.wcwa-chat-button--center { text-align: center; }
.wcwa-chat-button--right  { text-align: right; }

.wcwa-chat-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.7em 1.25em;
	background: #25d366;
	color: #fff;
	border-radius: 4px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.wcwa-chat-button__link:hover,
.wcwa-chat-button__link:focus {
	background: #1da851;
	color: #fff;
	text-decoration: none;
}

.wcwa-chat-button__link:focus-visible {
	outline: 2px solid #075e54;
	outline-offset: 2px;
}

.wcwa-chat-button__icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
}

/* Honour a reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
	.wcwa-chat-button__link { transition: none; }
}
