/**
 * WhatsApp H1 Button - Frontend styles.
 *
 * The button's colors, border, radius and padding are injected as
 * inline CSS custom properties (--wh1-*) by the shortcode renderer.
 */

.whatsapp-h1-button-wrapper {
	display: block;
	margin: 1.5em 0;
}

.whatsapp-h1-button-wrapper.whatsapp-h1-button-align-left {
	text-align: left;
}

.whatsapp-h1-button-wrapper.whatsapp-h1-button-align-center {
	text-align: center;
}

.whatsapp-h1-button-wrapper.whatsapp-h1-button-align-right {
	text-align: right;
}

.whatsapp-h1-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	background: var(--wh1-bg, #25D366);
	color: var(--wh1-text, #ffffff) !important;
	border: var(--wh1-border-width, 2px) solid var(--wh1-border, #128C7E);
	border-radius: var(--wh1-radius, 8px);
	padding: var(--wh1-pad-y, 12px) var(--wh1-pad-x, 20px);
	font-family: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, filter 0.18s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
	user-select: none;
	-webkit-user-select: none;
	white-space: nowrap;
}

.whatsapp-h1-button:visited,
.whatsapp-h1-button:hover,
.whatsapp-h1-button:focus,
.whatsapp-h1-button:active {
	color: var(--wh1-text, #ffffff) !important;
	text-decoration: none !important;
}

.whatsapp-h1-button-icon {
	flex: 0 0 auto;
	fill: currentColor;
}

/* Sizes ----------------------------------------------------------------- */

.whatsapp-h1-button-size-small {
	font-size: 12px;
}

.whatsapp-h1-button-size-small .whatsapp-h1-button-icon {
	font-size: 14px;
}

.whatsapp-h1-button-size-medium {
	font-size: 15px;
}

.whatsapp-h1-button-size-medium .whatsapp-h1-button-icon {
	font-size: 18px;
}

.whatsapp-h1-button-size-large {
	font-size: 18px;
}

.whatsapp-h1-button-size-large .whatsapp-h1-button-icon {
	font-size: 22px;
}

/* Hover effects --------------------------------------------------------- */

.whatsapp-h1-button-hover-lift:hover,
.whatsapp-h1-button-hover-lift:focus {
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
	filter: brightness(1.05);
}

.whatsapp-h1-button-hover-glow:hover,
.whatsapp-h1-button-hover-glow:focus {
	box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.25), 0 6px 14px rgba(0, 0, 0, 0.18);
	filter: brightness(1.05);
}

.whatsapp-h1-button-hover-pulse:hover,
.whatsapp-h1-button-hover-pulse:focus {
	animation: wh1-pulse 1.2s ease-in-out infinite;
}

.whatsapp-h1-button-hover-none:hover,
.whatsapp-h1-button-hover-none:focus {
	/* No transform; subtle color shift only */
	filter: brightness(0.96);
}

@keyframes wh1-pulse {
	0%, 100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
	}
	50% {
		transform: scale(1.03);
		box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
	}
}

.whatsapp-h1-button:focus-visible {
	outline: 2px solid var(--wh1-border, #128c7e);
	outline-offset: 3px;
}

.whatsapp-h1-button-label {
	display: inline-block;
	vertical-align: middle;
}
