/* Host-Hinweis "Bildschirm teilen" im Live-Raum. Nur der Host sieht ihn. */
#wi-live-screen-share-hint {
	display: none;
	position: absolute;
	left: 16px;
	bottom: 84px;
	z-index: 40;
	max-width: min(92%, 420px);
	gap: 10px;
	align-items: flex-start;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(17, 24, 39, 0.92);
	color: #fff;
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Sichtbar wird der Hinweis nur ueber diese Klasse, die das Script setzt. Ein anderer
   Baustein kann ihn damit nicht versehentlich einblenden (gemessen 03.11.2026). */
#wi-live-screen-share-hint.is-shown {
	display: flex;
}

#wi-live-screen-share-hint[hidden] {
	display: none;
}

#wi-live-screen-share-hint .wi-live-ssh-icon {
	flex: 0 0 auto;
	font-size: 18px;
	line-height: 1.2;
}

#wi-live-screen-share-hint .wi-live-ssh-body {
	flex: 1 1 auto;
	min-width: 0;
}

#wi-live-screen-share-hint .wi-live-ssh-text {
	margin: 0;
	color: #fff;
}

#wi-live-screen-share-hint .wi-live-ssh-link {
	display: inline-block;
	margin-top: 8px;
	padding: 6px 10px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	color: #fff;
	font-size: 13px;
	text-decoration: none;
}

#wi-live-screen-share-hint .wi-live-ssh-link:hover,
#wi-live-screen-share-hint .wi-live-ssh-link:focus {
	border-color: #fff;
	color: #fff;
}

#wi-live-screen-share-hint .wi-live-ssh-link[hidden] {
	display: none;
}

#wi-live-screen-share-hint .wi-live-ssh-close {
	flex: 0 0 auto;
	background: transparent;
	border: 0;
	color: rgba(255, 255, 255, 0.75);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
}

#wi-live-screen-share-hint .wi-live-ssh-close:hover {
	color: #fff;
}

/* QR-Codes direkt im Raum (Tobias 2026-11-03): App holen, Raum verbinden, beides antippbar. */
#wi-live-screen-share-hint .wi-live-ssh-qrs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

/* Das Script blendet die Gruppe aus, wenn das Geraet den Code nicht braucht (iOS, Android unter
   14). Ohne diese Regel gewinnt display:flex gegen das hidden-Attribut. */
#wi-live-screen-share-hint .wi-live-ssh-qrs[hidden] {
	display: none;
}

#wi-live-screen-share-hint .wi-live-ssh-qr {
	flex: 0 0 auto;
	width: 96px;
	text-align: center;
	text-decoration: none;
	color: #fff;
}

#wi-live-screen-share-hint .wi-live-ssh-qr-canvas {
	display: block;
	width: 96px;
	height: 96px;
	background: #fff;
	border-radius: 6px;
	padding: 4px;
	box-sizing: border-box;
}

#wi-live-screen-share-hint .wi-live-ssh-qr-canvas svg {
	display: block;
	width: 100%;
	height: 100%;
}

#wi-live-screen-share-hint .wi-live-ssh-qr-cap {
	display: block;
	margin-top: 5px;
	font-size: 11px;
	line-height: 1.25;
	color: rgba(255, 255, 255, 0.9);
}

#wi-live-screen-share-hint .wi-live-ssh-qr:hover .wi-live-ssh-qr-cap,
#wi-live-screen-share-hint .wi-live-ssh-qr:focus .wi-live-ssh-qr-cap {
	color: #fff;
	text-decoration: underline;
}

@media (max-width: 600px) {
	#wi-live-screen-share-hint {
		left: 8px;
		right: 8px;
		bottom: 72px;
		max-width: none;
		font-size: 13px;
	}
}
