/**
 * Escrow fee disclosure — cart and checkout.
 *
 * Deliberately neutral: inherits the theme's type and colour so it reads as
 * part of the order summary rather than a bolted-on notice. Uses currentColor
 * with opacity instead of fixed greys so it survives a dark theme.
 */

.sam-escrow-note {
	margin: 0.75em 0 0;
	padding: 0.75em 0 0;
	border-top: 1px solid rgba( 128, 128, 128, 0.25 );
	font-size: 0.9em;
	line-height: 1.45;
}

.sam-escrow-note__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1em;
}

.sam-escrow-note__label {
	font-weight: 600;
}

.sam-escrow-note__range {
	white-space: nowrap;
	font-weight: 600;
}

.sam-escrow-note__detail {
	margin-top: 0.25em;
}

.sam-escrow-note__detail > summary {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75em;
	cursor: pointer;
	list-style: none;
	opacity: 0.75;
	font-size: 0.95em;
}

/* Hide the native disclosure triangle; the "Show/Hide" text is the affordance. */
.sam-escrow-note__detail > summary::-webkit-details-marker {
	display: none;
}

.sam-escrow-note__detail > summary::marker {
	content: '';
}

.sam-escrow-note__toggle {
	white-space: nowrap;
	text-decoration: underline;
}

.sam-escrow-note__detail[open] .sam-escrow-note__toggle {
	visibility: hidden;
}

.sam-escrow-note__table {
	width: 100%;
	margin: 0.6em 0 0;
	border-collapse: collapse;
	font-size: 0.95em;
}

.sam-escrow-note__table th,
.sam-escrow-note__table td {
	padding: 0.25em 0;
	border: 0;
	font-weight: 400;
	text-align: left;
	vertical-align: baseline;
}

.sam-escrow-note__rate {
	width: 4.5em;
	text-align: right;
	opacity: 0.6;
	font-variant-numeric: tabular-nums;
}

.sam-escrow-note__amount {
	width: 6.5em;
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.sam-escrow-note__foot {
	margin: 0.75em 0 0;
	opacity: 0.7;
	font-size: 0.9em;
}

/* Classic checkout injects the notice inside a totals table cell. */
tr.sam-escrow-row > td {
	padding-top: 0 !important;
}

tr.sam-escrow-row .sam-escrow-note {
	margin-top: 0;
}
