/**
 * Advance payment summary styling, classic and block checkout.
 *
 * Deliberately minimal and colour-neutral: these rows sit inside the theme's
 * order review table, so inheriting the theme's typography reads better than
 * imposing our own. Only the emphasis and spacing are ours.
 *
 * @package CodAdvance
 */

.wccap-advance-row--advance th,
.wccap-advance-row--advance td {
	font-weight: 700;
}

.wccap-advance-row--remaining th,
.wccap-advance-row--remaining td {
	opacity: 0.85;
}

.wccap-block-summary--advance {
	font-weight: 700;
}

.wccap-block-summary--remaining {
	opacity: 0.85;
}

/* Delegate gateway picker inside our payment method box. */
.wccap-gateway-choice {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wccap-gateway-choice li {
	margin: 0 0 0.5em;
	padding: 0;
}

.wccap-gateway-choice label {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	cursor: pointer;
}

.wccap-gateway-choice img {
	max-height: 24px;
	width: auto;
}

.wccap-summary-box {
	margin: 1em 0 0;
	padding: 0.75em 1em;
	border-left: 3px solid currentColor;
	opacity: 0.9;
	font-size: 0.95em;
}

.wccap-summary-box dl {
	margin: 0;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.25em 1em;
}

.wccap-summary-box dt,
.wccap-summary-box dd {
	margin: 0;
}

.wccap-summary-box dd {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* The "Pay later" option: visually secondary to the real gateways above it. */
.wccap-gateway-choice__pay-later {
	margin-top: 0.75em;
	padding-top: 0.75em;
	border-top: 1px dashed currentColor;
	border-top-color: rgba(127, 127, 127, 0.35);
}

.wccap-gateway-choice__pay-later .description,
.wccap-delegate__description {
	display: block;
	margin-top: 0.25em;
	padding-left: 1.75em;
	opacity: 0.75;
	font-size: 0.9em;
}
