/* Center layout */
.CenteredLayout {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

.image-container {
	cursor: pointer;
	transition: transform 0.3s;
	width: 50vw; /* Initial width is 50% of the viewport width */
	height: auto; /* Maintain aspect ratio */
	max-width: 400px; /* Maximum initial width */
}

.inline-message {
	display: inline;
}

#countdown-timer {
	margin-left: 2px;
	display: inline;
	font-weight: bold;
}

.loader {
	border: 8px solid #f3f3f3;
	border-top: 8px solid var(--primary-color);
	border-radius: 50%;
	width: 80px;
	height: 80px;
	animation: spin 5s linear infinite;
	margin: 20px auto;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.downtime {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.presentation-form {
	width: 50%;
}

/* Card containing QR + buttons */
.qr-card {
	background-color: #f0f0f0;
	border-radius: 10px;
	padding: 30px;
	width: 80%;
	max-width: 800px;
	margin: 0 auto 30px auto;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
	text-align: center;
}

#qr-image {
	border: 10px solid white;
}

.qr-url-block {
	max-width: 100%;
	text-align: left;
	margin: 0 auto;
}

.qr-url {
	font-size: 14px;
	background-color: #f9f9f9;
	padding: 10px;
	border-radius: 5px;
	border: 1px solid #ccc;
	max-width: 100%;
	word-break: break-all;
	max-height: 50px;
	overflow: auto;
}

.buttons {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: 10px;
}

button {
	padding: 10px 20px;
	font-size: 16px;
	cursor: pointer;
}

.buttons button {
	min-height: 48px;
	padding: 12px 24px;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}


button#cancelButton {
	background-color: gray;
	color: white;
}

/* DCQL query collapsible container */
.dcql-query-container {
	display: flex;
	justify-content: center;
	width: 100%;
}

.details-toggle {
	width: 80%;
	max-width: 800px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background-color: #f4f4f4;
	padding: 20px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.details-toggle summary {
	font-size: 19px;
	font-weight: bold;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 10px;
	padding-bottom: 10px;
}

.details-toggle summary::before {
	content: "▸";
	font-size: 22px;
	transition: transform 0.2s ease;
}

.details-toggle[open] summary::before {
	transform: rotate(90deg);
}

.dcql-query-block {
	width: 100%;
}

.dcql-query {
	width: 100%;
	font-family: monospace;
	background-color: #f4f4f4;
	border: none;
	padding: 0;
	resize: vertical;
	box-sizing: border-box;
	white-space: pre-wrap;
	overflow-x: hidden;
}

@media only screen and (max-width: 480px) {
	.buttons {
		display: block;
	}

	#qr-image {
		max-width: 90%;
	}
}


/* UX-I18N 1.0: QR usage guidance */
.qr-help {
  width: min(100%, 600px);
  box-sizing: border-box;
  margin: 0 auto 18px auto;
  padding: 14px 16px;
  border: 1px solid rgba(180, 83, 9, .28);
  border-radius: 10px;
  background: rgba(255, 248, 235, .92);
  text-align: left;
  line-height: 1.45;
  color: #3f3f3f;
}
.qr-help-title { display: block; margin-bottom: 6px; color: #8d4208; }
.qr-help p { margin: 5px 0; }
@media (max-width: 640px) { .qr-help { padding: 12px; font-size: .95rem; } }

/* UX-I18N 1.0.1: compact QR guidance and above-the-fold button placement */
.CenteredLayout {
	gap: 12px;
}
.qr-card {
	padding: 24px 24px 20px;
}
.qr-card h1 {
	margin: 8px 0 2px;
}
.qr-help {
	width: min(100%, 560px);
	margin: 0 auto 10px auto;
	padding: 12px 14px;
	line-height: 1.34;
	font-size: 0.96rem;
}
.qr-help-title {
	margin-bottom: 4px;
	font-size: 0.95rem;
}
.qr-help p {
	margin: 4px 0;
}
#qr-image {
	max-width: 180px;
	height: auto;
}
.qr-url {
	font-size: 13px;
	padding: 8px 10px;
	max-height: 44px;
}
.buttons {
	margin-top: 4px;
}
@media (max-width: 900px) {
	.qr-card {
		width: min(92%, 760px);
		padding: 22px 18px 18px;
	}
}
@media (max-width: 640px) {
	.qr-card h1 {
		font-size: 2rem;
	}
	.qr-help {
		font-size: 0.92rem;
		padding: 10px 12px;
	}
	#qr-image {
		max-width: 165px;
	}
}

/* UX-I18N 1.0.2 FINAL: wide, low-height credential guidance on all verifiers */
.CenteredLayout {
	gap: 8px;
}
.qr-card {
	padding: 18px 20px 14px;
}
.qr-card h1 {
	margin: 5px 0 2px;
}
.qr-help {
	width: calc(100% - 16px);
	max-width: none;
	box-sizing: border-box;
	margin: 0 auto 5px;
	padding: 8px 12px;
	font-size: 12.5px;
	line-height: 1.22;
}
.qr-help-title {
	display: block;
	margin-bottom: 3px;
	font-size: 12.5px;
	line-height: 1.2;
}
.qr-help p {
	font-size: 12.5px !important;
	line-height: 1.22 !important;
	margin: 2px 0 !important;
}
#qr-image {
	width: 176px;
	max-width: 176px;
	height: auto;
}
.qr-url {
	font-size: 12px;
	padding: 7px 9px;
	max-height: 38px;
}
.qr-card .buttons {
	margin-top: 1px;
}
.qr-card .Btn.Medium {
	margin-top: 2px;
	margin-bottom: 2px;
	padding-top: 9px;
	padding-bottom: 9px;
	min-height: 40px;
}
@media (max-width: 900px) {
	.qr-help {
		width: calc(100% - 10px);
	}
}
@media (max-width: 640px) {
	.qr-card {
		padding: 14px 12px 12px;
	}
	.qr-help,
	.qr-help p,
	.qr-help-title {
		font-size: 12px !important;
	}
	#qr-image {
		width: 160px;
		max-width: 160px;
	}
}

/* UX: hide the raw OpenID4VP authorization-request URL from the QR screen. */
.qr-url-block {
	display: none;
}

/* UX: hide the raw OpenID4VP authorization-request URL from the QR screen. */
.qr-url-block {
	display: none;
}

/* UX: hide the DCQL Query section from the QR screen. */
.dcql-query-container {
	display: none;
}
