.chccta {
	--chccta-whatsapp-icon-size: 34px;
	--chccta-peru-logo-height: 40px;
	--chccta-phone-font-size: 15px;
	--chccta-label-font-size: 12px;
	--chccta-blue: #004f88;
	--chccta-blue-soft: #0d4f73;
	--chccta-green: #1ebf66;
	--chccta-border: rgba(13, 79, 115, 0.22);
	--chccta-tooltip-bg: #0f172a;
	--chccta-tooltip-text: #ffffff;

	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	max-width: 100%;
	vertical-align: middle;
	font-family: inherit;
	line-height: 1;
	animation: chccta-fadeInUp 0.7s ease-out both;
}

.chccta,
.chccta * {
	box-sizing: border-box;
}

.chccta__item {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.chccta__whatsapp-link,
.chccta__peru-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	outline: none;
}

.chccta__whatsapp-link {
	gap: 10px;
	color: var(--chccta-blue);
}

.chccta__whatsapp-icon {
	display: block;
	width: var(--chccta-whatsapp-icon-size);
	height: var(--chccta-whatsapp-icon-size);
	object-fit: contain;
	flex: 0 0 auto;
	filter: drop-shadow(0 6px 12px rgba(30, 191, 102, 0.12));
}

.chccta__whatsapp-text {
	display: inline-flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	white-space: nowrap;
}

.chccta__phone {
	color: var(--chccta-blue-soft);
	font-size: var(--chccta-phone-font-size);
	font-weight: 800;
	letter-spacing: 0;
}

.chccta__label {
	color: var(--chccta-blue);
	font-size: var(--chccta-label-font-size);
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.chccta__divider {
	display: inline-block;
	width: 1px;
	height: 24px;
	flex: 0 0 auto;
	background: var(--chccta-border);
}

.chccta__peru-link {
	min-height: var(--chccta-peru-logo-height);
}

.chccta__peru-logo {
	display: block;
	width: auto;
	max-width: 150px;
	height: var(--chccta-peru-logo-height);
	object-fit: contain;
}

.chccta__peru-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 76px;
	height: var(--chccta-peru-logo-height);
	padding-left: 12px;
	border-left: 5px solid #e51d2a;
	color: #222f3d;
	font-size: 10px;
	font-weight: 900;
	line-height: 0.92;
	letter-spacing: 0;
}

.chccta__tooltip {
	position: absolute;
	z-index: 9999;
	top: calc(100% + 12px);
	left: 50%;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	width: max-content;
	max-width: min(320px, calc(100vw - 32px));
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	background: var(--chccta-tooltip-bg);
	box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
	color: var(--chccta-tooltip-text);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -4px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
	visibility: hidden;
	white-space: normal;
}

.chccta__tooltip::after {
	position: absolute;
	top: -6px;
	left: 50%;
	width: 12px;
	height: 12px;
	background: var(--chccta-tooltip-bg);
	content: "";
	transform: translateX(-50%) rotate(45deg);
}

.chccta__item--peru,
.chccta-perucompras {
	position: relative;
}

.chccta__item--peru .chccta__tooltip::before,
.chccta-perucompras .chccta-tooltip::before {
	position: absolute;
	top: -12px;
	left: 0;
	width: 100%;
	height: 12px;
	content: "";
}

.chccta__item:hover .chccta__tooltip,
.chccta__item:focus-within .chccta__tooltip,
.chccta__item.is-open .chccta__tooltip,
.chccta__tooltip:hover,
.chccta-perucompras:hover .chccta-tooltip,
.chccta-perucompras .chccta-tooltip:hover {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
	visibility: visible;
}

.chccta__tooltip--peru {
	align-items: flex-start;
	text-align: left;
}

.chccta__tooltip .linea-2 {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.chccta__tooltip .mano {
	display: inline-block;
	flex: 0 0 auto;
	animation: mano-move 1.4s ease-in-out infinite;
	line-height: 1;
}

.chccta__tooltip a {
	position: relative;
	z-index: 1;
	color: #8fd3ff;
	font-weight: 800;
	text-decoration: none;
}

.chccta__tooltip a:hover,
.chccta__tooltip a:focus {
	color: #ffffff;
	text-decoration: underline;
}

.chccta__whatsapp-link:hover .chccta__phone,
.chccta__whatsapp-link:focus .chccta__phone,
.chccta__whatsapp-link:hover .chccta__label,
.chccta__whatsapp-link:focus .chccta__label {
	color: #063c63;
}

.chccta__whatsapp-link:focus-visible,
.chccta__peru-link:focus-visible,
.chccta__tooltip a:focus-visible {
	border-radius: 6px;
	outline: 2px solid rgba(0, 79, 136, 0.32);
	outline-offset: 4px;
}

@keyframes mano-move {
	0% {
		transform: translateX(0);
	}

	50% {
		transform: translateX(6px);
	}

	100% {
		transform: translateX(0);
	}
}

@keyframes chccta-fadeInUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 1024px) {
	.chccta {
		gap: 11px;
	}

	.chccta__whatsapp-link {
		gap: 8px;
	}
}

@media (max-width: 640px) {
	.chccta {
		gap: 10px;
	}

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

	.chccta__divider {
		height: 22px;
	}

	.chccta__peru-logo {
		max-width: 112px;
	}

	.chccta__tooltip {
		max-width: calc(100vw - 24px);
	}

	.chccta__tooltip .linea-2 {
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	.chccta,
	.chccta__tooltip,
	.chccta__tooltip .mano {
		animation: none;
		transition: none;
	}
}
