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

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

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

.kopo-epc__body {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: flex-start;
}

.kopo-epc__code {
	flex: 0 0 auto;
	line-height: 0;
}

.kopo-epc__code svg {
	display: block;
	max-width: 100%;
	height: auto;
}

.kopo-epc__details {
	flex: 1 1 16rem;
	min-width: 0;
}

.kopo-epc__intro {
	margin: 0 0 1rem;
}

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

.kopo-epc__list dt {
	font-weight: 600;
	opacity: .7;
}

.kopo-epc__list dd {
	margin: 0;
	word-break: break-word;
}

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

.kopo-epc__note {
	margin: 0;
	font-size: .875em;
	opacity: .75;
}

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

/* Alleen voor beheerders zichtbaar bij een checkoutdiagnose. */
.kopo-epc-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 );
}

.kopo-epc-debug h3 {
	margin: 0 0 .75rem;
}

.kopo-epc-debug table {
	width: 100%;
	border-collapse: collapse;
}

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

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

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

	.kopo-epc__body {
		gap: 1rem;
	}
}
