:root {
	--ok-color: #3da047;
}

a {
	text-decoration: none;
}

@keyframes opc {
	to {
		opacity: 1;
	}
}

body[mobile]:fullscreen {
	height: 100svh;
}

#buttons :is(button, .btn-ro) {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 11ch;
	height: 50px;
	border: none;
	border-radius: 0.6rem;
	padding: 0 1.33rem;
	font-family: sans-serif;
}

#buttons .btn-ro.std {
	background-color: var(--ok-color);
	color: #222222;
	transition: background-color 0.3s ease;
}
#buttons .btn-ro.std:disabled {
	background-color: #666666;
}

#buttons .btn-ro.std-ok {
	background-color: var(--ok-color);
	color: #222222;
	transition: background-color 0.3s ease;
}

#buttons.btn-ro.std-error {
	background-color: var(--ok-color);
	color: #222222;
	transition: background-color 0.3s ease;
}
.btn-ro.std-trsp {
	color: #ffffff;
	background: #000000;
}
.btn-ro.std-trsp-large {
	height: 64px;
	border: 1px solid gray;
}
section[webcam] #sectionWaitForCamera {
	display: flex;
	place-items: center;
	align-items: center;
	text-align: center;
	width: 100%;
	height: 100%;
	z-index: 200;
	padding: 2rem 1rem;
	color: #c34;
	font-family: sans-serif;
	font-size: 1.2rem;
}
section[webcam] #sectionEnroll {
	width: 100%;
}
:is(.mobile-qr, .web-cam, #paramsText) {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	gap: 1rem;
	font-family: sans-serif;
}

#paramsText {
	padding: 1.1rem;
	font-family: sans-serif;
}
:is(.mobile-qr, .web-cam) {
	text-align: center;
}
:is(.mobile-qr, .web-cam) div {
	display: flex;
	align-items: center;
	height: 100%;
	width: max-content;
}
:is(.mobile-qr, .web-cam) p {
	text-align: center;
}
:is(.mobile-qr, .web-cam) p:empty {
	display: none;
}
.mobile-qr .qr-image {
	flex: 1;
	aspect-ratio: 1;
	border-radius: 0.2rem;
	background-color: #ffffff;
	padding: 1rem;
	margin: 1rem;
	border: 1px solid #cccccc;
}
.mobile-qr .qr-image img {
	width: 240px;
}
#sectionEnrollSuccess {
	padding: 1rem 0.2rem;
	font-size: 1.1rem;
	color: var(--ok-color);
	max-width: 96vw;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-height: 300px;
	justify-content: center;
	text-align: center;
	font-family: sans-serif;
	align-items: center;
}
#sectionEnroll #paramsText {
	flex: 0 1 36%;
	max-width: 96%;
	white-space: wrap;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
}
#sectionEnroll #paramsText span {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.3rem;
}
#sectionEnroll #paramsText img {
	max-width: 75px;
	border-radius: 0.6rem;
}
#sectionEnroll #videoContainer {
	flex: 1 0 55%;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: max-content 1fr max-content;
	padding: 0;
	gap: 0;
	justify-items: center;
	background-color: #222222;
	border-radius: 0.66rem;
	overflow: hidden;
	aspect-ratio: 4/3;
	min-width: 760px;
}

#sectionEnroll #videoContainer canvas {
	grid-column: 1;
	grid-row: 1/4;
	margin: 0.7rem 0;
	width: 100%;
	height: 100%;
}
#sectionEnroll #processResult {
	grid-column: 1;
	grid-row: 1;
	font-size: 1rem;
	padding: 0.33rem 0.7rem;
	z-index: 102;
	justify-self: end;
	margin: 20px 20px auto;
	font-family: sans-serif;
	font-weight: 300;
}
#sectionEnroll #processResult[notok] {
	color: white;
	background-color: hsl(350 100% 68% /0.5);
}
#buttons {
	grid-column: 1;
	grid-row: 3;
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	gap: calc(0.7rem + 1vw);
	width: 100%;
	z-index: 100;
	padding: 0.7rem 1rem 1rem;
	bottom: calc(0.7rem + 1vw);
	height: max-content;
}
body[mobile] #buttons {
	flex-direction: column;
	position: sticky;
	bottom: 0.7rem;
}

body[mobile] {
	background-color: #222222;
}

body[mobile] #sectionWaitForCamera {
	display: flex;
	flex-direction: column;
	text-align: center;
	width: 97vw;
	height: 97svh;
	padding: 1rem 0.5rem;
	margin: auto;
	position: absolute;
	justify-content: space-between;
	box-sizing: border-box;
	background-color: #eeeeee;
	border-radius: 0.5rem;
	align-items: center;
	z-index: 200;
}
body[mobile] #sectionEnroll {
	flex-direction: column;
	align-items: center;
	width: 96vw;
	height: calc(var(--vh, 1vh) * 100);
}
body[mobile] #sectionEnroll #videoContainer {
	align-items: center;
	aspect-ratio: unset;
	max-height: 98dvh;
	min-width: unset;
}

body[mobile] #sectionEnroll #processResult {
	justify-self: unset;
}
body[mobile] #paramsText {
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	color: #222222;
}
body[mobile] #paramsText span {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
body[mobile] #paramsText span p {
	margin: 0.5rem 0;
}
body[mobile] #paramsText img {
	max-width: 70px;
	border-radius: 0.5rem;
}

body[mobile] #paramsText {
	padding: 0;
}

.identity-validation-user-photo {
	max-width: 333px;
}
/* Biometric enroll */

body[dir=ltr] [biometric-enroll] label {
    display: flex;
    align-items: center;
    gap: .5rem;
}
body[dir=ltr] [biometric-enroll] label input[type="checkbox"] {
    position: relative;
    left: unset;
    opacity: unset;
}
/* Biometric succeded */

[biometric-succeded] .btns-footer {
	padding: 0;
	display: grid;
	grid-template-areas: 'label back remove';
	grid-template-columns: 2fr auto auto;
	align-items: center;
}
[biometric-succeded] .btn-ro[disabled] {
	margin: 1rem 0;
	background: #d9ffda;
	color: #19651c;
    pointer-events: none;
}

[biometric-succeded] .std-trsp,
[biometric-succeded] .std-2 {
	background: #000000;
	color: #ffffff;
}
[biometric-succeded] .std-trsp:hover,
[biometric-succeded] .std-2:hover {
	background: unset;
	color: unset;
}
[biometric-succeded] label  {
	grid-area: label;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
[biometric-succeded] label input[type="checkbox"] {
	position: relative;
    left: unset !important;
    opacity: unset;
}
[biometric-succeded] .std-trsp {
	grid-area: back;
}
[biometric-succeded] .std-2 {
	grid-area: remove;
}

@media screen and (max-width: 800px) {
	[biometric-succeded] .btns-footer {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			'label label'
			'back remove';
		gap: 1rem 0.5rem;
        justify-items: center;
	}
}
