.root {
	position: relative;
	display: inline-flex;

	// Rounded hover for ghost icon button
	:global(.rt-IconButton) {
		border-radius: variables.$radius-sm;
		transition: background-color variables.$duration-normal variables.$ease-out,
			color variables.$duration-normal variables.$ease-out;
	}
}

.badge {
	position: absolute;
	top: 0;
	right: 0;
	transform: translate(50%, -50%);
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 9999px;
	background-color: var(--color-danger);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	pointer-events: none;
	border: 1.5px solid variables.$bg-default;
	box-sizing: content-box;
	animation: badgePulse 2s var(--ease-out) infinite;
}

@keyframes badgePulse {
	0%, 100% { transform: translate(50%, -50%) scale(1); }
	50% { transform: translate(50%, -50%) scale(1.08); }
}
