/**
 * Studio Alma do Lar — WhatsApp nativo.
 *
 * O botão global fica acima do minicart, mas abaixo do painel lateral. A CTA
 * de produto permanece dentro do fluxo do formulário nativo do WooCommerce.
 */

.studioalmadolar-whatsapp-fab,
.studioalmadolar-whatsapp-product-cta {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	border-radius: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.studioalmadolar-whatsapp-fab {
	border: 0;
	background: var(--studioalmadolar-whatsapp-color, #128C3C);
	color: #fff;
}

.studioalmadolar-whatsapp-product-cta {
	border: 1px solid #eaeaea;
	background: var(--studioalmadolar-surface, #fff);
	color: var(--studioalmadolar-ink, #2f2a26);
	font-weight: 400;
}

.studioalmadolar-whatsapp-fab:hover {
	background: var(--studioalmadolar-whatsapp-color, #128C3C);
	filter: brightness(0.9);
	color: #fff;
	transform: translateY(-1px);
}

.studioalmadolar-whatsapp-product-cta:hover {
	border-color: #eaeaea;
	background: var(--studioalmadolar-surface-muted, #f5f5f5);
	color: var(--studioalmadolar-ink, #2f2a26);
	transform: translateY(-1px);
}

.studioalmadolar-whatsapp-fab:focus-visible,
.studioalmadolar-whatsapp-product-cta:focus-visible {
	outline: 3px solid var(--studioalmadolar-focus, #8b5e3c);
	outline-offset: 3px;
}

.studioalmadolar-whatsapp-fab {
	position: fixed;
	/* O SVG tem área visual interna menor; 18px alinha a borda percebida ao minicart. */
	right: 18px;
	bottom: 88px;
	z-index: 910;
	width: 52px;
	height: 52px;
	min-width: 52px;
	min-height: 52px;
	padding: 0;
	border-radius: 50%;
}

.studioalmadolar-whatsapp-fab img {
	display: block;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
}

.studioalmadolar-whatsapp-product-cta img {
	display: block;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
}

.single-product .woocommerce-variation-add-to-cart {
	flex-wrap: wrap;
}

.studioalmadolar-whatsapp-fab__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.studioalmadolar-whatsapp-product-cta {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 65px;
	margin-top: 0.75rem;
	padding: 0.75rem 1rem;
	border-radius: 100px;
	font-size: 0.95rem;
	text-align: center;
	white-space: nowrap;
	flex: 0 0 100%;
	clear: both;
}

@media (max-width: 782px) {
	.single-product .woocommerce-variation-add-to-cart > .studioalmadolar-whatsapp-product-cta {
		grid-column: 1 / -1;
		justify-self: stretch;
	}
}


@media (prefers-reduced-motion: reduce) {
	.studioalmadolar-whatsapp-fab,
	.studioalmadolar-whatsapp-product-cta {
		transition: none;
	}
}
