/**
 * Opmaak van het betaalblok.
 * Bewust terughoudend, zodat het zich voegt naar het thema.
 */

.gotrusted-qr {
	border: 1px solid rgba( 0, 0, 0, .12 );
	border-radius: 4px;
	padding: 1.25rem 1.5rem 1.5rem;
	margin: 1.5rem 0;
}

.gotrusted-qr__heading {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	line-height: 1.3;
}

.gotrusted-qr__body {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: flex-start;
}

.gotrusted-qr__code {
	flex: 0 0 auto;
	line-height: 0;
}

.gotrusted-qr__code svg {
	display: block;
	max-width: 100%;
	height: auto;
}

.gotrusted-qr__details {
	flex: 1 1 16rem;
	min-width: 0;
}

.gotrusted-qr__intro {
	margin: 0 0 1rem;
}

.gotrusted-qr__list {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: .35rem 1rem;
	margin: 0 0 1rem;
}

.gotrusted-qr__list dt {
	font-weight: 600;
	opacity: .7;
}

.gotrusted-qr__list dd {
	margin: 0;
	word-break: break-word;
}

.gotrusted-qr__mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-variant-numeric: tabular-nums;
}

.gotrusted-qr__note {
	margin: 0;
	font-size: .875em;
	opacity: .75;
}

.gotrusted-qr-error {
	padding: .75rem 1rem;
	border-left: 3px solid #d63638;
	background: rgba( 214, 54, 56, .06 );
}

/* Alleen voor beheerders zichtbaar bij een checkoutdiagnose. */
.gotrusted-qr-debug {
	position: relative;
	z-index: 99999;
	max-width: 70rem;
	margin: 1rem auto;
	padding: 1rem 1.25rem;
	border: 2px solid #2271b1;
	background: #fff;
	color: #1d2327;
	box-shadow: 0 2px 12px rgba( 0, 0, 0, .14 );
}

.gotrusted-qr-debug h3 {
	margin: 0 0 .75rem;
}

.gotrusted-qr-debug table {
	width: 100%;
	border-collapse: collapse;
}

.gotrusted-qr-debug th,
.gotrusted-qr-debug td {
	padding: .35rem .5rem;
	border-bottom: 1px solid #dcdcde;
	text-align: left;
}

/* Het proefblok in het beheerscherm. */
.gotrusted-qr-preview {
	display: inline-block;
	padding: .75rem;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
}

@media ( max-width: 480px ) {
	.gotrusted-qr {
		padding: 1rem;
	}

	.gotrusted-qr__body {
		gap: 1rem;
	}
}

/* ---------------------------------------------------------------------
 * Betaalgegevens met kopieerknoppen
 * ------------------------------------------------------------------ */

.gotrusted-qr__fields {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.gotrusted-qr__field {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .5rem 0;
	border-bottom: 1px solid rgba( 0, 0, 0, .08 );
}

.gotrusted-qr__field:last-child {
	border-bottom: 0;
}

.gotrusted-qr__label {
	flex: 0 0 5rem;
	font-weight: 600;
	opacity: .7;
}

.gotrusted-qr__value {
	flex: 1 1 auto;
	min-width: 0;
	word-break: break-word;
}

.gotrusted-qr__copy {
	flex: 0 0 auto;
	padding: .35rem .7rem;
	font: inherit;
	font-size: .8125em;
	line-height: 1.2;
	color: inherit;
	background: rgba( 0, 0, 0, .05 );
	border: 1px solid rgba( 0, 0, 0, .15 );
	border-radius: 3px;
	cursor: pointer;
}

.gotrusted-qr__copy:hover {
	background: rgba( 0, 0, 0, .09 );
}

.gotrusted-qr__copy.is-done {
	border-color: #2e7d32;
	color: #2e7d32;
}

.gotrusted-qr__save {
	margin: .6rem 0 0;
	font-size: .875em;
	line-height: 1.3;
	text-align: center;
}

/* ---------------------------------------------------------------------
 * Groot scherm: de code voorop, geen uitklapknop nodig
 * ------------------------------------------------------------------ */

.gotrusted-qr__intro--phone,
.gotrusted-qr__note--phone,
.gotrusted-qr__toggle-wrap {
	display: none;
}

/* ---------------------------------------------------------------------
 * Klein scherm: de gegevens voorop, de code eronder
 *
 * De klasse wordt door het script gezet, niet door een media query, zodat
 * een pagina uit de cache alsnog de juiste weergave krijgt.
 * ------------------------------------------------------------------ */

.gotrusted-qr--phone .gotrusted-qr__body {
	display: block;
}

.gotrusted-qr--phone .gotrusted-qr__intro--scan,
.gotrusted-qr--phone .gotrusted-qr__note--scan {
	display: none;
}

.gotrusted-qr--phone .gotrusted-qr__intro--phone,
.gotrusted-qr--phone .gotrusted-qr__note--phone,
.gotrusted-qr--phone .gotrusted-qr__toggle-wrap {
	display: block;
}

.gotrusted-qr--phone .gotrusted-qr__code {
	display: none;
	margin: 1rem auto 0;
	max-width: 15rem;
}

.gotrusted-qr--phone.gotrusted-qr--open .gotrusted-qr__code {
	display: block;
}

.gotrusted-qr--phone .gotrusted-qr__field {
	cursor: pointer;
	padding: .65rem 0;
}

.gotrusted-qr--phone .gotrusted-qr__label {
	flex-basis: 4.5rem;
}

.gotrusted-qr--phone .gotrusted-qr__toggle-wrap {
	margin: 0 0 1rem;
}

.gotrusted-qr__toggle {
	width: 100%;
	padding: .6rem 1rem;
	font: inherit;
	color: inherit;
	background: transparent;
	border: 1px solid rgba( 0, 0, 0, .2 );
	border-radius: 3px;
	cursor: pointer;
}

/* Zonder script blijft alles gewoon staan. */
.gotrusted-qr--auto:not( .gotrusted-qr--phone ) .gotrusted-qr__code {
	display: block;
}

/* 1.16.0: stappen om zelf over te maken. */
.gotrusted-qr__manual {
	margin: 14px 0 0;
	padding: 12px 14px;
	border: 1px solid #dfe9e4;
	border-radius: 10px;
	background: #f6f8f7;
	font-size: 14px;
	line-height: 1.55;
}
.gotrusted-qr__manual-title {
	margin: 0 0 6px;
}
.gotrusted-qr__manual-steps {
	margin: 0 0 0 1.2em;
	padding: 0;
}
.gotrusted-qr__manual-steps li {
	margin: 2px 0;
}
