/*
 * Hinweis-Ebene im Raum. Ueber der WordPress-Admin-Leiste (z-index 99999) und ueber der
 * CTA-Leiste, mit festem Abstand unter der oberen Kante, damit kein Hinweis angeschnitten wird.
 */

#wi-room-notices {
	position: fixed;
	top: 12px;
	left: 12px;
	right: 12px;
	z-index: 100300;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-start;
	max-height: 70vh;
	overflow-y: auto;
	pointer-events: none;
}

/* Admin-Leiste: 32 px auf dem Rechner, 46 px auf dem Handy. Der Abstand kommt dazu, damit der
   Hinweis nicht halb darunter liegt. */
body.admin-bar #wi-room-notices {
	top: 44px;
}

@media screen and (max-width: 782px) {
	body.admin-bar #wi-room-notices {
		top: 58px;
	}
}

#wi-room-notices > * {
	pointer-events: auto;
	max-width: min(560px, 100%);
}

/* Der Host-Hinweis "Bildschirm teilen" behaelt sein Aussehen, verliert aber seine eigene
   Position: in der Ebene bestimmt die Ebene, wo er steht. */
#wi-room-notices #wi-live-screen-share-hint {
	position: static;
	left: auto;
	right: auto;
	top: auto;
	bottom: auto;
	max-width: 100%;
	margin: 0;
}

.wi-room-notice {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid rgba(17, 24, 39, 0.12);
	background: #fff;
	color: #1f2937;
	font-size: 14px;
	line-height: 1.45;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.wi-room-notice[data-tone="success"] {
	border-color: #b8e2c0;
	background: #edfaef;
	color: #1a7f37;
}

.wi-room-notice[data-tone="warning"] {
	border-color: #f0d98c;
	background: #fcf9e8;
	color: #8a6d1b;
}

.wi-room-notice-text {
	flex: 1 1 auto;
	min-width: 0;
}

.wi-room-notice-close {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 20px;
	line-height: 1;
	padding: 0 2px;
	cursor: pointer;
	opacity: 0.7;
}

.wi-room-notice-close:hover,
.wi-room-notice-close:focus {
	opacity: 1;
}

/* Host-Konsole: die ehrliche CTA-Zeile. Grau heisst "noch nicht bestaetigt", gruen nur mit
   Bestaetigung eines Teilnehmers. */
.wi-cta-delivery-line {
	display: inline-block;
	margin-left: 10px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 12px;
	line-height: 1.5;
	background: #f0f0f1;
	color: #50575e;
	max-width: 46vw;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: middle;
}

.wi-cta-delivery-line[data-state="delivered"] {
	background: #edfaef;
	color: #1a7f37;
}
