@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap");

body {
	font-family: "Roboto", Arial, Helvetica, sans-serif;
	margin: 0;
	background: #fff;
	color: #111;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

.flex-center {
	display: flex;
	justify-content: center;
}

.header-center {
	align-items: center;
	flex-direction: column;
	margin-top: 10%;
}

.left-margin {
	margin: 0px 16px;
}

#sj-frame-wrapper {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	display: none;
	flex-direction: column;
	background: #fff;
	overflow: hidden;
}

#sj-frame {
	border: none;
	flex: 1;
	width: 100%;
	height: 100%;
	background-color: #fff;
}

#sj-error {
	color: #b42318 !important;
	white-space: pre-wrap;
}

#sj-error-code {
	font-size: 12px;
	color: #111;
	font-family: "Courier New", Courier, monospace;
}

.logo {
	height: 25vh;
}

.logo-wrapper .text {
	font-size: 75px;
	color: #111;
}

.logo-wrapper h1 {
	color: #111;
}

.desc p {
	width: 560px;
	color: #475467;
}

#sj-address {
	background: none;
	box-sizing: border-box;
	font-family: inherit;
	padding: 0px 17px;
	height: 48px;
	border: 1px solid #d0d5dd;
	color: #111;
	border-radius: 3px;
	outline: none;
	width: 350px;
	margin-top: 5px;
	border-radius: 50px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
	transition: border-radius 0.1s;
}

#sj-address:focus {
	border: 1px solid #667085;
	border-radius: 6px;
}

.credit {
	border-radius: 10px;
	padding: 10px;
	display: block;
	border: #d0d5dd 1px solid;
	color: #111;
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 15px;
}

.credit label {
	margin-left: auto;
	margin-right: 15px;
}

.credit a,
.credit label {
	color: #111;
	text-decoration: underline;
	text-align: right;
}

.credit pre {
	display: none;
	width: 100%;
}

.credit label::after {
	content: "show license";
	cursor: pointer;
}

.credit input:checked + label::after {
	content: "hide license";
}

.credit input:checked ~ pre {
	display: block;
}

#sj-frame-url {
	position: absolute;
	top: max(8px, env(safe-area-inset-top));
	left: 12px;
	right: 12px;
	z-index: 3;
	color: #475467;
	margin: 0;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 1px 8px rgba(16, 24, 40, 0.08);
	font-family: monospace;
	font-size: 11px;
	line-height: 1.2;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	text-wrap: nowrap;
	pointer-events: none;
}

#sj-loading {
	position: fixed;
	inset: 0;
	z-index: 10;
	box-sizing: border-box;
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 14px;
	min-height: 100vh;
	min-height: 100dvh;
	padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
	background: #fff;
	color: #475467;
	font-size: 14px;
	text-align: center;
}

.loader {
	width: 24px;
	height: 24px;
	border: 2px solid #d0d5dd;
	border-top-color: #111;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 600px) {
	.header-center {
		margin-top: 24vh;
		margin-top: 24dvh;
	}

	#sj-address {
		width: calc(100vw - 48px);
		max-width: 350px;
	}

	#sj-frame-url {
		display: none;
	}

	#sj-loading {
		gap: 10px;
		font-size: 13px;
	}

	.loader {
		width: 22px;
		height: 22px;
	}
}
