.call-lobby {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 100%;
	height: 100%;
	color: var(--ui-color-palette-white-base, #fff);
	font-family: var(--ui-font-family-primary, var(--ui-font-family-helvetica));
	font-size: 14px;
	background-color: var(--call-view__background-color, #1a1a1a);
	background-image: url("images/background.webp");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: top right;
	--call-lobby-content-width: 351px;
}

.call-lobby__permissions {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.call-lobby__permissions-text {
	color: rgba(var(--ui-color-palette-white-base-rgb), 0.7);
	font-size: 16px;
}

.call-lobby__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 40px;
	padding-bottom: 110px;
}

.call-lobby__caller-info {
	margin-bottom: 10px;
	color: rgba(var(--ui-color-palette-white-base-rgb), 0.6);
	font-size: 16px;
}

.call-lobby__caller-info-name {
	color: var(--ui-color-palette-white-base, #fff);
	font-weight: 600;
}

/* Bottom Panel */
.call-lobby-bottom-panel {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
}

.call-lobby-bottom-panel .bx-messenger-videocall-panel-item-with-arrow-right {
	z-index: 2;
}

.call-lobby-device-check {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
}

.call-lobby-device-check__no-video {
	width: var(--call-lobby-content-width, 351px);
	height: 191px;
	background: rgba(var(--ui-color-palette-black-solid-rgb), 0.2);
	border-radius: var(--ui-border-radius-md, 10px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.call-lobby-device-check__no-video-icon {
	width: 48px;
	height: 48px;
	margin-bottom: 8px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none'%3E%3Cpath d='M8 12a4 4 0 0 1 4-4h24a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H12a4 4 0 0 1-4-4V12z' stroke='rgba(255,255,255,0.3)' stroke-width='2'/%3E%3Cpath d='M6 6l36 36' stroke='rgba(255,255,255,0.3)' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
}

.call-lobby-device-check__no-video-text {
	color: rgba(var(--ui-color-palette-white-base-rgb), 0.5);
	font-size: 13px;
}

.call-lobby-device-check__video-container {
	position: relative;
}

.call-lobby-device-check__video {
	/* Width is content width minus 2px border on each side */
	width: calc(var(--call-lobby-content-width, 351px) - 2px);
	height: 185px;
	border-radius: var(--ui-border-radius-md, 10px);
	border: 1px solid rgba(var(--ui-color-palette-white-base-rgb), 0.15);
	object-fit: cover;
}

.call-lobby-device-check__video.--flipped {
	transform: scaleX(-1);
}

.call-lobby-mic-level {
	box-sizing: border-box;
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translate(-50%);
	padding: 1px 24px 1px 11px;
	display: flex;
	align-items: center;
	background-color: rgba(var(--ui-color-palette-black-solid-rgb), 0.45);
	-webkit-backdrop-filter: blur(50px);
	        backdrop-filter: blur(50px);
	border-radius: 14px;
}

.call-lobby-mic-level__icon {
	width: 14px;
	height: 14px;
	margin-right: 3px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none'%3E%3Cpath d='M7 1a2 2 0 0 0-2 2v4a2 2 0 0 0 4 0V3a2 2 0 0 0-2-2zM3.5 6.5a3.5 3.5 0 0 0 7 0' stroke='%23fff' stroke-linecap='round'/%3E%3Cpath d='M7 10v3' stroke='%23fff' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
}

.call-lobby-mic-level__bars {
	display: flex;
	align-items: center;
	height: 20px;
}

.call-lobby-mic-level__bar {
	width: 3px;
	height: 8px;
	margin-right: 2px;
	border-radius: 2px;
	background-color: rgba(var(--ui-color-palette-white-base-rgb), 0.42);
}

.call-lobby-user-form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: var(--call-lobby-content-width, 351px);
}

.call-lobby-user-form__name-container {
	display: flex;
	align-items: center;
	gap: 10px;
}

.call-lobby-user-form__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
}

.call-lobby-user-form__name-text {
	color: var(--ui-color-palette-white-base, #fff);
	font-size: 16px;
	font-weight: 600;
}

.call-lobby-user-form__name-input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 16px;
	border: 1px solid var(--call-view__conference-connection-name-input-border-color, rgba(var(--ui-color-palette-white-base-rgb), 0.6));
	border-radius: var(--ui-border-radius-md, 10px);
	background: var(--call-view__conference-connection-name-input-background-color, rgba(var(--ui-color-palette-white-base-rgb), 0.1));
	color: var(--call-view__conference-connection-name-input-text-color, rgba(var(--ui-color-palette-white-base-rgb), 0.8));
	font-size: 15px;
	outline: none;
}

.call-lobby-user-form__name-input::placeholder {
	color: var(--call-view__conference-connection-name-input-placeholder-color, rgba(var(--ui-color-palette-white-base-rgb), 0.4));
}

.call-lobby-user-form__name-input:focus {
	border-color: rgba(var(--ui-color-palette-white-base-rgb), 0.4);
}

.call-lobby-user-form__buttons {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.call-lobby-user-form__button {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	min-width: 293px;
	width: fit-content;
	height: 38px;
	border: 1px solid var(--call-view__conference-connection-primary-button-border-color, rgba(var(--ui-color-palette-white-base-rgb), 0.24));
	border-radius: var(--ui-border-radius-md, 10px);
	font-size: var(--ui-font-size-lg, 15px);
	font-weight: var(--ui-font-weight-medium, 500);
	cursor: pointer;
}

.call-lobby-user-form__button::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: transparent;
	transition: background-color 0.15s;
}

.call-lobby-user-form__button:hover::after {
	background-color: var(--call-view__conference-connection-button-background-color-hover, rgba(var(--ui-color-palette-black-solid-rgb), 0.08));
}

.call-lobby-user-form__button.--video {
	background-color: var(--call-view__conference-connection-primary-button-background-color, #1587fa);
	color: var(--ui-color-palette-white-base, #fff);
}

.call-lobby-user-form__button.--audio {
	background-color: var(--call-view__conference-connection-secondary-button-background-color, #ffffff1a);
	color: var(--ui-color-palette-white-base, #fff);
}

.call-lobby-user-form__button.--disabled {
	background-color: var(--call-view__conference-connection-button-background-color-disabled, rgba(var(--ui-color-palette-white-base-rgb), 0.16));
	border-color: var(--call-view__conference-connection-button-border-color-disabled, rgba(var(--ui-color-palette-white-base-rgb), 0.16));
	color: var(--call-view__conference-connection-button-text-color-disabled, rgba(var(--ui-color-palette-white-base-rgb), 0.3));
	cursor: default;
	pointer-events: none;
}

/* a11y: keyboard focus indication. Inset outline avoids clipping by button overflow: hidden */
.call-lobby-user-form__button:focus-visible {
	outline: 2px solid var(--ui-color-accent-main-link, #2067db);
	outline-offset: -2px;
}
