.pvtw {
	margin: 0;
}

/* Visually hidden full sentence for screen readers (the animated copy is aria-hidden). */
.pvtw__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pvtw__cursor {
	display: inline-block;
	margin-left: 0.06em;
	font-style: normal;
	font-weight: 300;
	-webkit-text-fill-color: currentColor;
}

/* Cursor is solid while typing/deleting, blinks while idle. */
.pvtw:not(.pvtw--typing) .pvtw__cursor {
	animation: pvtw-blink 1s steps(1) infinite;
}

@keyframes pvtw-blink {
	50% { opacity: 0; }
}

.pvtw--no-cursor .pvtw__cursor {
	display: none;
}

/* Optional gradient on the changing word. */
.pvtw-grad-on .pvtw__word {
	background-image: linear-gradient(90deg, var(--pvtw-g1, #f5a623), var(--pvtw-g2, #ffd98a));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	padding-right: 0.08em; /* stops the last italic letter being clipped */
}

@media (prefers-reduced-motion: reduce) {
	.pvtw__cursor {
		animation: none !important;
	}
}
