/* QR code reader: the drop box, then one block per picture with its codes. */

.pdfe-qrread .pdfe-dropzone__paste {
	margin: 4px 0 0;
	font-size: 0.875rem;
	color: var(--pdfe-muted, #677990);
}

.pdfe-qrread .pdfe-dropzone__paste kbd {
	display: inline-block;
	padding: 1px 6px;
	border: 1px solid var(--pdfe-border, #e2e8f0);
	border-bottom-width: 2px;
	border-radius: 5px;
	background: #fff;
	font: 600 0.8rem/1.4 inherit;
	color: var(--pdfe-text, #172d4b);
}

/* After a scan the drop box gets smaller, so the results sit right under it. */
.pdfe-qrread .pdfe-dropzone.is-compact {
	padding-block: 18px;
}

.pdfe-qrread .pdfe-dropzone.is-compact .pdfe-dropzone__icon {
	display: none;
}

.pdfe-qrread.is-busy .pdfe-dropzone {
	opacity: 0.7;
	pointer-events: none;
}

.pdfe-qrread__work {
	display: grid;
	gap: 16px;
	margin-top: 18px;
	scroll-margin-top: 90px;
}

.pdfe-qrread__summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
}

.pdfe-qrread__summary p {
	margin: 0 auto 0 0;
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--pdfe-text, #172d4b);
}

.pdfe-qrread__result {
	display: grid;
	grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
	gap: 18px;
	padding: 16px;
	border: 1px solid var(--pdfe-border, #e2e8f0);
	border-radius: 14px;
	background: #fff;
}

.pdfe-qrread__pic {
	min-width: 0;
}

.pdfe-qrread__preview {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	background: var(--pdfe-bg, #f5f7fb);
}

.pdfe-qrread__name {
	margin: 8px 0 0;
	font-size: 0.8125rem;
	color: var(--pdfe-muted, #677990);
	overflow-wrap: anywhere;
}

.pdfe-qrread__codes {
	display: grid;
	gap: 12px;
	min-width: 0;
	align-content: start;
}

.pdfe-qrread__card {
	padding: 14px 16px;
	border: 1px solid var(--pdfe-border, #e2e8f0);
	border-radius: 12px;
	background: var(--pdfe-bg, #f5f7fb);
}

.pdfe-qrread__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 1.05rem;
	color: var(--pdfe-navy, #003275);
}

.pdfe-qrread__title svg {
	flex: none;
	color: #f49902;
}

.pdfe-qrread__warn {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 0 0 10px;
	padding: 8px 10px;
	border-radius: 8px;
	background: #fff6e5;
	color: #8a5a12;
	font-size: 0.875rem;
	line-height: 1.45;
}

.pdfe-qrread__warn svg {
	flex: none;
	margin-top: 1px;
}

.pdfe-qrread__rows {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 6px 14px;
	margin: 0 0 12px;
}

.pdfe-qrread__rows dt {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--pdfe-muted, #677990);
	padding-top: 2px;
}

.pdfe-qrread__rows dd {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
	margin: 0;
	min-width: 0;
}

.pdfe-qrread__value {
	font-weight: 600;
	color: var(--pdfe-text, #172d4b);
	overflow-wrap: anywhere;
	white-space: pre-wrap;
}

.pdfe-qrread__mini {
	padding: 2px 9px;
	border: 1px solid var(--pdfe-border, #e2e8f0);
	border-radius: 999px;
	background: #fff;
	font: 600 0.75rem/1.6 inherit;
	color: var(--pdfe-navy, #003275);
	text-decoration: none;
	cursor: pointer;
}

.pdfe-qrread__mini:hover,
.pdfe-qrread__mini:focus-visible {
	border-color: var(--pdfe-navy, #003275);
}

.pdfe-qrread__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pdfe-qrread__note {
	margin: 10px 0 0;
	font-size: 0.8125rem;
	color: var(--pdfe-muted, #677990);
}

.pdfe-qrread__none {
	padding: 14px 16px;
	border-radius: 12px;
	background: #fcedee;
	color: #7a2d30;
}

.pdfe-qrread__none ul {
	margin: 8px 0 0;
	padding-left: 18px;
	font-size: 0.9rem;
	line-height: 1.5;
}

@media (max-width: 640px) {
	.pdfe-qrread__result {
		grid-template-columns: minmax(0, 1fr);
		padding: 12px;
	}

	.pdfe-qrread__preview {
		max-height: 220px;
		width: auto;
		margin-inline: auto;
	}

	.pdfe-qrread__rows {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.pdfe-qrread__rows dd {
		margin-bottom: 6px;
	}

	.pdfe-qrread__actions .pdfe-btn {
		flex: 1 1 auto;
	}
}

/* Phones and tablets have no Ctrl+V: the paste hint is for computers only. */
@media (hover: none) and (pointer: coarse) {
	.pdfe-qrread .pdfe-dropzone__paste {
		display: none;
	}
}
