/* BeetChat — botón flotante de WhatsApp */

.beetchat-float {
	position: fixed;
	z-index: 99999;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #25d366;
	color: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.beetchat-float:hover,
.beetchat-float:focus {
	transform: scale(1.06);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
	color: #fff;
}

.beetchat-float svg {
	width: 32px;
	height: 32px;
}

.beetchat-float--bottom-right {
	right: 20px;
	bottom: 20px;
}

/* Tooltip (sólo desktop, aparece al hover) */
.beetchat-float[data-beetchat-tooltip]::after {
	content: attr(data-beetchat-tooltip);
	position: absolute;
	right: calc(100% + 12px);
	top: 50%;
	transform: translateY(-50%) translateX(6px);
	white-space: nowrap;
	background: #333;
	color: #fff;
	font-size: 13px;
	line-height: 1;
	padding: 8px 10px;
	border-radius: 6px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.beetchat-float[data-beetchat-tooltip]:hover::after,
.beetchat-float[data-beetchat-tooltip]:focus::after {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

/* Botón inline en la ficha de producto — variante WhatsApp del botón "Comprar" */
.beetchat-product-button.button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	background-color: #25d366;
	border-color: #25d366;
	color: #fff;
	vertical-align: top;
}

.beetchat-product-button.button:hover,
.beetchat-product-button.button:focus {
	background-color: #1ebe57;
	border-color: #1ebe57;
	color: #fff;
}

.beetchat-product-button svg {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
}

/* En layouts donde el "Añadir al carrito" queda en línea, forzamos salto */
.woocommerce div.product form.cart .beetchat-product-button {
	display: flex;
	width: 100%;
	justify-content: center;
	float: none;
	clear: both;
}

/* Mobile: un poco más chico y más pegado al borde */
@media (max-width: 600px) {
	.beetchat-float {
		width: 52px;
		height: 52px;
	}
	.beetchat-float svg {
		width: 28px;
		height: 28px;
	}
	.beetchat-float--bottom-right {
		right: 14px;
		bottom: 14px;
	}
	.beetchat-float[data-beetchat-tooltip]::after {
		display: none;
	}
}
