.fsg-wholesale-invoices,
.fsg-wholesale-balance,
.fsg-wholesale-pay-order {
	color: var(--fsp-ink-900, #131a16);
}

.fsg-wholesale-balance {
	margin: 1.5rem 0;
	padding: 1.25rem;
	border-left: 0.35rem solid var(--fsp-blue-500, #00adee);
	background: var(--fsp-surface, #f5f8fa);
}

.fsg-wholesale-balance__amount {
	margin: 0.25rem 0 1rem;
	font-size: 1.75rem;
	font-weight: 700;
}

.fsg-wholesale-invoices__table .fsg-wholesale-is-overdue {
	color: #b42318;
	font-weight: 700;
}

.woocommerce-MyAccount-navigation-link--on-account {
	--fsp-account-icon: url("../assets/account-invoices.svg");
}

.fsg-wholesale-invoices,.fsg-wholesale-payments,.fsg-wholesale-snapshot{margin:1.5rem 0;overflow-x:auto}
.fsg-wholesale-invoices h2,.fsg-wholesale-payments h2,.fsg-wholesale-snapshot h2{margin-bottom:.8rem}
.fsg-wholesale-invoices__table,.fsg-wholesale-payments table,.fsg-wholesale-snapshot table,.fsg-wholesale-pay-order__table{width:100%;border-collapse:collapse}
.fsg-wholesale-invoices__table th,.fsg-wholesale-invoices__table td,.fsg-wholesale-payments th,.fsg-wholesale-payments td,.fsg-wholesale-snapshot th,.fsg-wholesale-snapshot td,.fsg-wholesale-pay-order__table th,.fsg-wholesale-pay-order__table td{padding:.7rem;border-bottom:1px solid var(--fsp-border,#d7e0e5);text-align:left;vertical-align:top}
.fsg-wholesale-invoices__form button{margin-top:1rem}
.fsg-wholesale-invoices__subtotal{margin-left:1rem;font-weight:700}
.fsg-wholesale-invoice-pdf{display:inline-block;margin-left:.3rem;padding:.1rem .3rem;border-radius:3px;background:var(--fsp-blue-500,#00adee);color:white;font-size:.7rem;text-decoration:none}
.fsg-wholesale-status{display:inline-block;padding:.2rem .55rem;border-radius:999px;background:var(--fsp-surface-soft,#f0f4f6);font-size:.8rem;font-weight:700;white-space:nowrap}
.fsg-wholesale-status--billed{background:#dff2fb;color:#14577a}
.fsg-wholesale-status--overdue{background:#fde7e5;color:#9a2922}
.fsg-wholesale-status--pending,.fsg-wholesale-status--on-hold{background:#fff0cc;color:#795600}
.fsg-wholesale-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin:1rem 0}
.fsg-wholesale-totals>div{padding:1rem;background:var(--fsp-surface,#f5f8fa);border:1px solid var(--fsp-border,#d7e0e5)}
.fsg-wholesale-totals strong,.fsg-wholesale-totals span{display:block}
.fsg-wholesale-totals span{margin-top:.35rem;font-size:1.2rem}
.fsg-wholesale-payments details{margin-top:.35rem;font-size:.85rem}
.fsg-wholesale-pay-order{max-width:1000px;margin:2rem auto;padding:0 1rem}
@media(max-width:700px){.fsg-wholesale-totals{grid-template-columns:1fr}.fsg-wholesale-invoices__table,.fsg-wholesale-payments table{min-width:650px}}

.fsg-wholesale-status--processing,.fsg-wholesale-status--fylprocessing{background:#fff0cc;color:#795600}
.fsg-wholesale-status--paid{background:#e0f3e5;color:#246b38}
.fsg-wholesale-selection[hidden]{display:none}

.fsg-payment-originals[hidden]{display:none}
.fsg-payment-row[aria-controls]{cursor:pointer}
.fsg-payment-row.is-locked{background:var(--fsp-surface-soft,#f0f4f6)}
