/* Centered content within card */
.centered-layout {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 16px;
	justify-content: center;
	align-items: center;
}

/* QR image */
#qr-image {
	border: 1px solid rgba(0, 0, 0, 0.12);
	padding: 4px;
	border-radius: 12px;
}

/* URL block */
.qr-url-block {
	width: 100%;
	max-width: 760px;
}

.qr-url {
	font-size: 0.9rem;
	background: #f9fafb;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.12);

	word-break: break-all;
	max-height: 70px;
	overflow: auto;
}

/* Buttons */
.buttons {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	width: 100%;
}

.buttons .Btn {
	min-width: 250px;
}

/* DCQL section */
.scan-qr__dcql {
	width: 100%;
	max-width: 920px;
	margin: 0 auto;
}

.details-toggle {
	width: 100%;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	background: #fff;
	padding: 1rem;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.details-toggle summary {
	font-size: 1.05rem;
	font-weight: 800;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 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 {
	margin-top: 0.75rem;
}

.dcql-query {
	width: 100%;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
		"Courier New", monospace;

	background: color-mix(in srgb, var(--primary-main-color) 3%, #fff);
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;

	padding: 0.75rem;
	resize: vertical;
	box-sizing: border-box;
	white-space: pre-wrap;
	overflow-x: hidden;
}

/* Responsive */
@media (max-width: 480px) {
	.buttons {
		flex-direction: column;
	}

	.buttons .Btn {
		width: 100%;
	}
}
