/* WC User Funds  -  Frontend styles */

/* ── Checkout store funds box ────────────────────────────── */
.wuf-checkout-box {
	background: #fefef5;
	border: 1px solid #e8df9a;
	border-radius: 4px;
	padding: 14px 18px;
	margin-bottom: 20px;
}

.wuf-apply-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 1em;
}

.wuf-apply-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.wuf-credit-details {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #ddd8a0;
}

.wuf-balance-info {
	margin: 0 0 8px;
	font-size: 1.15em;
	font-weight: 600;
	color: #1a1a1a;
}

.wuf-partial-info {
	background: #fafaf0;
	border-left: 3px solid #c8bc50;
	padding: 8px 12px;
	margin: 0;
	border-radius: 2px;
	font-size: .92em;
	color: #4a4a2a;
}

.wuf-full-info {
	background: #f2faf3;
	border-left: 3px solid #4caf50;
	padding: 8px 12px;
	margin: 0;
	border-radius: 2px;
	font-size: .92em;
	color: #1e4620;
}

/* ── Order details  -  funds row ───────────────────────────── */
.wuf-order-funds-row th,
.wuf-order-funds-row td {
	color: #2e7d32;
	font-weight: 600;
}

/* ── My Account dashboard balance ────────────────────────── */
.wuf-account-balance {
	background: #f2faf3;
	border: 1px solid #a5d6a7;
	border-radius: 4px;
	padding: 12px 16px;
	margin-bottom: 20px;
}

/* ── My Account funds history page ──────────────────────── */
.wuf-account-funds-page { margin-top: 16px; }

.wuf-current-balance {
	font-size: 1.1em;
	background: #f2faf3;
	border: 1px solid #a5d6a7;
	border-radius: 4px;
	padding: 12px 16px;
	margin-bottom: 20px;
}

/* ── Transaction table redesign ──────────────────────────── */
.wuf-transactions-table {
	border-collapse: separate;
	border-spacing: 0 4px;
}

.wuf-transactions-table thead tr th {
	background: #f7f7f7;
	color: #555;
	font-weight: 600;
	font-size: .85em;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 8px 12px;
	border-bottom: 2px solid #e0e0e0;
}

.wuf-transactions-table tbody tr {
	background: #fff;
}

.wuf-transactions-table tbody tr td {
	padding: 10px 12px;
	color: #3a3a3a;
	font-size: .95em;
	border-top: 1px solid #f0f0f0;
	border-bottom: 1px solid #f0f0f0;
}

/* Left border accent — the only color signal */
.wuf-transactions-table tbody tr td:first-child {
	border-left: 4px solid #e0e0e0;
	padding-left: 10px;
}

.wuf-transactions-table .wuf-credit td:first-child {
	border-left-color: #4caf50;
}

.wuf-transactions-table .wuf-debit td:first-child {
	border-left-color: #e57373;
}

/* Amount column: bold but still neutral */
.wuf-transactions-table .wuf-amount {
	font-weight: 600;
	color: #2a2a2a;
}

/* ── Pagination ───────────────────────────────────────────── */
.wuf-pagination { margin-top: 16px; text-align: center; }
