﻿/* ======================================================
    *****************************************************

    All Imports

    ****************************************************
   ===================================================== */
@import './variables.css';
@import './background.css';
@import './videoplayer.css';
@import './paymentsheet.css';
@import './customerSigning.css';

.live-screen .customer-container {
	overflow: hidden;
}

/* Customer Meeting Presentation selector */
.customer-container:not(:is(:has(.main-screen), :has(.background-video-wrapper))) {
	/* Margin top added for mobile browsers so user can scroll (this should hide the address bar so we have more screen real estate) */
	margin-top: 10px;
}

.customer-fimenu {
	display: flex;
	width: 100%;
	height: 100%;
	justify-content: center;
	/* position: relative;
            margin-top: 45px; */
}

.meeting-room-container {
	display: flex;
	width: 100%;
	height: 100%;
	justify-content: center;
	position: absolute;
	top: 0;
}

.customer-container .mobile-portait-warning {
	display: none;
}

#scaleContainer {
	padding: 0;
}

.connection-code {
	margin-top: 0;
	justify-content: center;
	height: 100%;
	font-size: clamp(8rem, 10cqw, 19rem);
	color: var(--secondary-color);
	text-align: center;
}

/* ======================================================
    *****************************************************

    VideoSlidingPanel

    ****************************************************
   ===================================================== */

.customer-video-chat-panel {
	position: absolute;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	top: 0;
	right: 0;
	height: 100cqh;
	width: 0;
	background: rgba(66, 104, 144, 0.99);
	z-index: 100;
	overflow: hidden;
	gap: 3%;
	border-top-left-radius: 25px;
	border-bottom-left-radius: 25px;
	box-shadow: 0px 0px 20px 0px #34383e;
}

.customer-video-chat-panel.open {
	width: 80cqw;
	transition: width 0.3s ease;
}
.customer-video-chat-panel.close {
	width: 0;
	transition: width 0.3s ease;
}

.customer-video-chat-panel #video-chat {
	display: grid;
	align-items: center;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	place-items: center;
	height: 80%;
	aspect-ratio: 4 / 3;
	/* width: 80%; */
	gap: 15%;
}

.customer-video-chat-panel #video-chat .remote-stream,
.customer-video-chat-panel #video-chat .local-stream {
	height: 100%;
	width: fit-content;
	min-width: 0;
	min-height: 0;
}

.customer-video-chat-panel #video-chat .video-chat-stream-container {
	height: 100%;
	width: 100%;
}

.customer-video-chat-panel #video-chat video {
	max-height: 100%;
	max-width: 100%;
	background-color: #1e1e1e;
	height: 100%;
	/*width: 100%;*/
	aspect-ratio: 640 / 480;
}

.customer-video-chat-panel .remote-meeting-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.customer-video-chat-panel .remote-meeting-controls button {
	width: 150px;
	padding: 15px;
}

/* ======================================================
    *****************************************************

    Portrait Mode Styles

    ****************************************************
   ===================================================== */
@media only screen and (orientation: portrait) {
	.main-screen img {
		width: 10%;
	}

	.customer-container .mobile-portait-warning {
		position: absolute;
		z-index: 200;
		height: 100cqh;
		width: 100%;
		margin: auto;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		color: var(--secondary-color);
		text-align: center;
		font-size: 2.2rem;
		background-color: var(--main-color);
	}

	.customer-container .mobile-portait-warning .fa-sync {
		margin-top: 3rem;
		font-size: 6rem;
	}
}

/* ======================================================
    *****************************************************

    Home Everywhere - showing for Instore connections (screen sizes 1920 x 1080)

    ****************************************************
   ===================================================== */
.home-everywhere {
	display: none;
}

@media only screen and (min-width: 1024px) {
	/* Customer Meeting Presentation selector */
	.customer-container:not(:is(:has(.main-screen), :has(.background-video-wrapper))) {
		/* Margin top added for mobile browsers so user can scroll (this should hide the address bar so we have more screen real estate) */
		margin-top: unset;
	}

	.home-everywhere {
		display: initial;
	}
}
