/**
 * CSS tooltip replacing the Extras for Elementor "Tooltip" extension.
 * Set by the migrate-extensions batch: class .teads-tooltip + data-teads-tooltip attribute.
 * Colours / width come from the --teads-tt-* custom properties written on the element.
 */
.teads-tooltip {
	position: relative;
}

.teads-tooltip::after {
	content: attr(data-teads-tooltip);
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	z-index: 10;
	box-sizing: border-box;
	width: max-content;
	max-width: var(--teads-tt-width, 250px);
	padding: 10px 20px;
	border-radius: 5px;
	background: var(--teads-tt-bg, #363636);
	box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.15);
	color: #fff;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(-50%);
	transition: opacity 0.2s ease;
}

.teads-tooltip:hover::after,
.teads-tooltip:focus::after,
.teads-tooltip:focus-within::after {
	opacity: 1;
	visibility: visible;
}
