/**
 * Estilos para los botones flotantes (WhatsApp + Vender mi auto).
 * Prefijo "ccfb-" para evitar colisiones con el tema o con otros plugins.
 */

.ccfb-container {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	/* No interferir con el layout de la página */
	pointer-events: none;
}

.ccfb-container a,
.ccfb-container .ccfb-tooltip {
	pointer-events: auto;
}

.ccfb-btn {
	display: flex;
	width: 60px;
	height: 60px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	line-height: 0;
	transition: transform 0.2s ease;
}

.ccfb-btn:hover,
.ccfb-btn:focus {
	transform: translateY(-2px);
}

.ccfb-btn img {
	width: 100%;
	height: 100%;
	display: block;
	/* Los PNG ya incluyen fondo, borde y radius, no se agregan aquí
	   estilos adicionales para no duplicar el diseño. */
}

.ccfb-custom-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.ccfb-tooltip {
	position: absolute;
	right: calc(100% + 10px);
	top: 50%;
	transform: translateY(-50%);
	height: 60px;
	min-width: 170px;
	max-width: 220px;
	background: #F7F7F5;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 14px;
	white-space: nowrap;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ccfb-tooltip.ccfb-tooltip-visible {
	opacity: 1;
	visibility: visible;
}

.ccfb-tooltip-title {
	text-transform: uppercase;
	color: #0B1A41;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}

.ccfb-tooltip-subtitle {
	color: #6B7280;
	font-size: 11px;
	line-height: 1.3;
	margin-top: 2px;
}

/* Ajustes responsive para pantallas pequeñas */
@media (max-width: 480px) {
	.ccfb-container {
		right: 12px;
		bottom: 12px;
		gap: 10px;
	}

	.ccfb-btn {
		width: 52px;
		height: 52px;
	}

	.ccfb-tooltip {
		max-width: 150px;
		min-width: 140px;
		height: auto;
		min-height: 52px;
		white-space: normal;
		padding: 6px 10px;
	}
}
