/* 5thAXIS — Compatibility Links widget */

.axis5th-cl {
	--axis5th-cl-border:     #E4E4E7;
	--axis5th-cl-text:       var(--e-global-color-text);
	--axis5th-cl-hover-bg:   var(--e-global-color-primary); /* #DD2828 */
	--axis5th-cl-hover-text: #FAFAFA; /* white */

	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

/* ── Pill link ───────────────────────────────────────────────────── */

.axis5th-cl__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: transparent;
	border: 1px solid var(--axis5th-cl-border);
	color: var(--axis5th-cl-text);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	border-radius: 6px;
}

.axis5th-cl__link:hover {
	background: var(--axis5th-cl-hover-bg);
	border-color: var(--axis5th-cl-hover-bg);
	color: var(--axis5th-cl-hover-text);
}

/* ── Arrow icon — hidden by default, slides in on hover ──────────── */

.axis5th-cl__icon {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	overflow: hidden;
	max-width: 0;
	opacity: 0;
	transition: max-width 0.2s ease, opacity 0.15s ease;
}

.axis5th-cl__link:hover .axis5th-cl__icon {
	max-width: 1.5rem;
	opacity: 1;
}

.axis5th-cl__icon svg,
.axis5th-cl__icon i {
	display: block;
	width: 12px;
	height: 12px;
	font-size: 12px;
}
