.kreva-srt-toggle {
	position: relative;
}

.kreva-srt-toggle.is-active {
	color: var(--plyr-color-main, #00b3ff);
}

/* Underline state, not just color (colorblindness, high-contrast mode). */
.kreva-srt-toggle.is-active::after {
	content: '';
	position: absolute;
	left: 25%;
	right: 25%;
	bottom: 4px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
}

.kreva-srt-toggle:focus-visible {
	outline: 2px solid var(--plyr-color-main, #00b3ff);
	outline-offset: 2px;
}

/* pointer-events: none so it doesn't block clicks on the video or controls. */
.kreva-srt-overlay {
	position: absolute;
	left: 5%;
	right: 5%;
	bottom: 12%;
	z-index: 1;
	display: none;
	pointer-events: none;
	text-align: center;
	font-size: 1.1rem;
	line-height: 1.4;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.kreva-srt-overlay.is-visible {
	display: block;
}

.kreva-srt-overlay:empty {
	display: none;
}

.kreva-srt-overlay:not(:empty) {
	background: rgba(0, 0, 0, 0.6);
	padding: 4px 10px;
	border-radius: 4px;
	display: inline-block;
	max-width: 90%;
}

@media (max-width: 480px) {
	.kreva-srt-overlay {
		font-size: 0.9rem;
		bottom: 15%;
	}
}
