/**
 * Watermark For Tutor LMS - frontend styles.
 *
 * The overlay itself is styled inline by the renderer script (with
 * !important) so themes cannot accidentally restyle or hide it. This file
 * only covers the player container and helper UI.
 *
 * @package WatermarkForTutorLMS
 * @since   1.0.0
 */

.tutor-video-player {
	position: relative;
	isolation: isolate;
}

/* Hide picture-in-picture and download controls when protection is on. */
.wftl-ah-protected .plyr__controls [data-plyr="pip"],
.wftl-ah-protected .plyr__controls [data-plyr="download"] {
	display: none !important;
}

/* Custom fullscreen button used for native YouTube/Vimeo players. */
.wftl-ah-fs-btn {
	position: absolute;
	right: 12px;
	bottom: 56px;
	z-index: 2147483647;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	color: #fff;
	cursor: pointer;
	background: rgba( 0, 0, 0, 0.55 );
	border: 0;
	border-radius: 4px;
	opacity: 0.55;
	transition: opacity 0.2s ease, background 0.2s ease;
}

.tutor-video-player:hover .wftl-ah-fs-btn,
.wftl-ah-fs-btn:focus {
	opacity: 1;
}

.wftl-ah-fs-btn:hover {
	background: rgba( 0, 0, 0, 0.75 );
}

/* Copy protection: no text selection outside form fields. */
.wftl-ah-nocopy body {
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

.wftl-ah-nocopy input,
.wftl-ah-nocopy textarea,
.wftl-ah-nocopy select,
.wftl-ah-nocopy [contenteditable=""],
.wftl-ah-nocopy [contenteditable="true"] {
	-webkit-user-select: text;
	user-select: text;
}

.wftl-ah-nocopy img {
	-webkit-user-drag: none;
}
