/* "Videoquelle" field of the legacy course editor (Einbettungscode | Video hochladen).
   Markup: PCLib/Course/CustomVideo/VideoSourceFieldRenderer.php (behaviour inline there). */

/* The legacy acf_* rules force display:block on textarea/desc, so the UA [hidden]
   rule alone would not hide them — panes are toggled by data-mode instead. */
.rd-video-source [hidden],
.rd-video-source[data-mode="embed"] [data-source-mode="upload"],
.rd-video-source[data-mode="upload"] [data-source-mode="embed"] {
	display: none;
}

.rd-video-source-existing {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--rd-spacing-x-sm);
	padding: var(--rd-spacing-md);
	border-radius: var(--rd-borderradius-border-big);
	background: var(--rd-success-inactive);
}

.rd-video-source-upload.error {
	padding: var(--rd-spacing-sm);
	border: var(--rd-borderwidth-border-default) solid var(--rd-error-default);
	border-radius: var(--rd-borderradius-border-md);
}

.rd-video-source-cancel {
	margin-top: var(--rd-spacing-sm);
}

/* The acf_desc above already lists the formats. */
.rd-video-source .rd-vod-upload-formats {
	display: none;
}

/* Videodauer is auto-filled from the hosting in upload mode, so it is locked: pointer-events
   blocks the +/- controls and clicks, readonly on the sub-inputs blocks keyboard entry
   (set in JS, re-applied after each value change). Applied on the pc-durationinput wrapper. */
.rd-vod-duration-locked {
	pointer-events: none;
	opacity: 0.6;
}
