#cwf-contacto-chat-flotante,
#cwf-contacto-chat-flotante-mobile,
#cwf-contacto-chat-flotante *,
#cwf-contacto-chat-flotante-mobile * {
	box-sizing: border-box;
}

#cwf-contacto-chat-flotante {
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(16px, env(safe-area-inset-bottom));
	max-width: calc(100vw - 32px);
	z-index: 999999;
	font-family: inherit;
	overflow: visible;
	pointer-events: none;
}

#cwf-contacto-chat-flotante .cwf-desktop-actions {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	gap: clamp(12px, 2vw, 20px);
	max-width: 100%;
	overflow: visible;
	pointer-events: auto;
}

#cwf-contacto-chat-flotante .cwf-action {
	position: relative;
	overflow: visible;
}

#cwf-contacto-chat-flotante .cwf-floating-button,
#cwf-contacto-chat-flotante-mobile .cwf-mobile-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	border: 0;
	text-decoration: none;
	background: var(--cwf-primary);
	color: var(--cwf-text);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#cwf-contacto-chat-flotante .cwf-floating-button {
	width: 60px;
	height: 60px;
	border-radius: 999px;
}

#cwf-contacto-chat-flotante .cwf-floating-button:hover,
#cwf-contacto-chat-flotante .cwf-floating-button:focus,
#cwf-contacto-chat-flotante-mobile .cwf-mobile-button:hover,
#cwf-contacto-chat-flotante-mobile .cwf-mobile-button:focus {
	background: var(--cwf-hover-bg);
	color: var(--cwf-hover-text);
	text-decoration: none;
	outline: none;
}

#cwf-contacto-chat-flotante .cwf-floating-button:focus-visible,
#cwf-contacto-chat-flotante-mobile .cwf-mobile-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

#cwf-contacto-chat-flotante .cwf-floating-button:hover,
#cwf-contacto-chat-flotante .cwf-floating-button:focus {
	transform: translateY(-2px);
}

#cwf-contacto-chat-flotante .cwf-label {
	position: absolute;
	right: 0;
	bottom: calc(100% + 18px);
	width: max-content;
	min-width: 145px;
	max-width: calc(100vw - 40px);
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--cwf-label-bg);
	color: var(--cwf-label-text);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
	text-align: center;
	white-space: normal;
	overflow-wrap: anywhere;
	line-height: 1.4;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

#cwf-contacto-chat-flotante .cwf-label-title {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 700;
}

#cwf-contacto-chat-flotante .cwf-action:hover .cwf-label,
#cwf-contacto-chat-flotante .cwf-action:focus-within .cwf-label {
	opacity: 1;
	visibility: visible;
}

#cwf-contacto-chat-flotante .cwf-icon,
#cwf-contacto-chat-flotante-mobile .cwf-icon {
	display: block;
	width: 24px;
	height: 24px;
	fill: currentColor;
	flex: 0 0 auto;
}

#cwf-contacto-chat-flotante-mobile {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	display: flex;
	width: 100%;
	font-family: inherit;
}

#cwf-contacto-chat-flotante-mobile .cwf-mobile-button {
	height: 44px;
	border-radius: 0;
	font-size: 17px;
	gap: 10px;
}

#cwf-contacto-chat-flotante-mobile .cwf-mobile-phone {
	width: 75%;
	background: var(--cwf-secondary);
}

#cwf-contacto-chat-flotante-mobile .cwf-mobile-chat {
	width: 25%;
}

#cwf-contacto-chat-flotante-mobile.cwf-buttons-count-1 .cwf-mobile-button {
	width: 100%;
}

#cwf-contacto-chat-flotante-mobile .cwf-mobile-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#cwf-contacto-chat-flotante .screen-reader-text,
#cwf-contacto-chat-flotante-mobile .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 768px) {
	#cwf-contacto-chat-flotante {
		display: none;
	}
}

@media (min-width: 769px) {
	#cwf-contacto-chat-flotante-mobile {
		display: none;
	}
}
