.pv-visitor-badge {
	position: fixed;
	bottom: 18px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(29, 35, 39, 0.92);
	color: #f0f0f1;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 12.5px;
	line-height: 1;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	z-index: 999999;
	cursor: pointer;
	transition: box-shadow 0.3s ease;
	max-width: calc(100vw - 20px);
}

.pv-visitor-badge--left {
	left: 18px;
}

.pv-visitor-badge--right {
	right: 18px;
}

.pv-visitor-badge--pulse {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), 0 0 0 4px rgba(122, 208, 255, 0.25);
}

.pv-visitor-badge__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2ecc71;
	box-shadow: 0 0 0 rgba(46, 204, 113, 0.6);
	animation: pv-live-pulse 2s infinite;
	flex-shrink: 0;
}

@keyframes pv-live-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6);
	}
	70% {
		box-shadow: 0 0 0 6px rgba(46, 204, 113, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
	}
}

.pv-visitor-badge__icon {
	display: inline-flex;
	color: #7ad0ff;
	flex-shrink: 0;
}

.pv-visitor-badge__text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pv-visitor-badge__text strong {
	font-weight: 700;
	color: #ffffff;
}

.pv-visitor-badge__tooltip {
	position: absolute;
	bottom: calc(100% + 8px);
	background: rgba(29, 35, 39, 0.95);
	color: #f0f0f1;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 11.5px;
	white-space: nowrap;
	max-width: calc(100vw - 40px);
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0;
	pointer-events: none;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.pv-visitor-badge--left .pv-visitor-badge__tooltip {
	left: 0;
}

.pv-visitor-badge--right .pv-visitor-badge__tooltip {
	right: 0;
}

/* Hover works on desktop/mouse; the .pv-visitor-badge--open class (below)
   is toggled by JS on tap, so the tooltip is also reachable on touch devices
   that have no hover state at all. */
.pv-visitor-badge:hover .pv-visitor-badge__tooltip,
.pv-visitor-badge--open .pv-visitor-badge__tooltip {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 600px) {
	.pv-visitor-badge {
		padding: 7px 12px;
		font-size: 11.5px;
	}

	.pv-visitor-badge--left {
		left: 10px;
	}

	.pv-visitor-badge--right {
		right: 10px;
	}

	.pv-visitor-badge__text {
		max-width: 46vw;
	}
}
