/* Chat por WhatsApp — sitio. Prefijo cpw-. */
.cpw-icon {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
}

/* Botón (ficha del producto y shortcode) */
.cpw-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 10px 22px;
	border-radius: 10px;
	background: #25d366;
	color: #fff !important;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color .2s, transform .2s;
}

.cpw-button:hover,
.cpw-button:focus-visible {
	background: #1ebe5b;
	color: #fff;
}

.cpw-button:active {
	transform: scale(.98);
}

.cpw-button--product {
	display: flex;
	width: 100%;
	margin: 0 0 20px;
	font-size: 17px;
}

/* Botón flotante: posición desde la configuración (variables en el atributo style). */
.cpw-float {
	position: fixed;
	z-index: 9990;
	bottom: var(--cpw-bottom, 20px);
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff !important;
	text-decoration: none !important;
}

.cpw-float--right {
	right: var(--cpw-side, 20px);
	flex-direction: row-reverse;
}

.cpw-float--left {
	left: var(--cpw-side, 20px);
}

.cpw-float::before {
	content: "";
	position: absolute;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #25d366;
	opacity: .5;
	animation: cpw-pulse 2.4s ease-out infinite;
	pointer-events: none;
}

.cpw-float--right::before {
	right: 0;
}

.cpw-float--left::before {
	left: 0;
}

.cpw-float .cpw-icon {
	position: relative;
	width: 60px;
	height: 60px;
	padding: 15px;
	box-sizing: border-box;
	border-radius: 50%;
	background: #25d366;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
	transition: transform .2s;
}

.cpw-float:hover .cpw-icon {
	transform: scale(1.06);
}

.cpw-float__label {
	position: relative;
	padding: 8px 14px;
	border-radius: 999px;
	background: #fff;
	color: #1b1d22;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}

@keyframes cpw-pulse {
	0% {
		transform: scale(1);
		opacity: .45;
	}
	70%,
	100% {
		transform: scale(1.5);
		opacity: 0;
	}
}

@media (max-width: 767px) {
	.cpw-float {
		bottom: var(--cpw-bottom-m, 20px);
	}

	.cpw-float::before,
	.cpw-float .cpw-icon {
		width: 54px;
		height: 54px;
	}

	.cpw-float .cpw-icon {
		padding: 13px;
	}

	.cpw-float__label {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cpw-float::before {
		animation: none;
	}
}
