/* Red asterisk + tooltip after the petition title (injected by assets/js/petition-tooltip.js). */
.petitioner__note {
	position: relative;
	display: inline-block;
	margin-left: 0.15em;
	color: var(--ptr-color-primary, #e01a2b);
	cursor: help;
	outline: none;
}

.petitioner__note-tip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	z-index: 20;
	width: max-content;
	max-width: min(280px, 80vw);
	padding: 8px 12px;
	border-radius: 6px;
	background: #222;
	color: #fff;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	transform: translateX(-50%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s, visibility 0.15s;
}

.petitioner__note-tip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	border: 6px solid transparent;
	border-top-color: #222;
	transform: translateX(-50%);
}

/* Flipped below the asterisk when there's no room above (set by JS). */
.petitioner__note--below .petitioner__note-tip {
	top: calc(100% + 8px);
	bottom: auto;
}

.petitioner__note--below .petitioner__note-tip::after {
	top: auto;
	bottom: 100%;
	border-top-color: transparent;
	border-bottom-color: #222;
}

.petitioner__note:hover .petitioner__note-tip,
.petitioner__note:focus .petitioner__note-tip {
	opacity: 1;
	visibility: visible;
}
