/**
 * Oath - Account Credits
 * My Account page styles matching Savoy theme aesthetic
 *
 * @since 1.0.2
 */

/* ==========================================================================
   Balance Summary Card - Savoy-inspired minimalist design
   ========================================================================== */

.account-funds-balance-card {
	background: #EEEEEE;
	border: 1px solid #E5E5E5;
	border-radius: 8px;
	padding: 30px;
	margin-bottom: 30px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.account-funds-balance-card .balance-summary {
	text-align: center;
}

.account-funds-balance-card .balance-label {
	font-size: 14px;
	color: #777777;
	font-weight: normal;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 10px 0;
}

.account-funds-balance-card .balance-amount {
	font-size: 36px;
	font-weight: 600;
	color: #282828;
	margin-bottom: 15px;
}

.account-funds-balance-card .balance-breakdown {
	display: flex;
	justify-content: center;
	gap: 25px;
	font-size: 14px;
	color: #777777;
	margin-top: 10px;
	padding-top: 15px;
	border-top: 1px solid #E5E5E5;
}

.account-funds-balance-card .balance-detail strong {
	color: #282828;
}

.account-funds-balance-card .balance-held {
	color: #888888;
}

/* ==========================================================================
   Transaction History Table - Matches Orders table styling
   ========================================================================== */

.my_account_transactions {
	border: none;
	margin-bottom: 30px;
}

.my_account_transactions thead {
	background: transparent;
}

.my_account_transactions thead th {
	font-size: 12px;
	color: #777777;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 12px 15px;
	border-bottom: 2px solid #E5E5E5;
	text-align: left;
}

.my_account_transactions thead th.transaction-amount,
.my_account_transactions thead th.transaction-balance {
	text-align: right;
}

.my_account_transactions tbody td.transaction-amount,
.my_account_transactions tbody td.transaction-balance {
	text-align: right;
}

.my_account_transactions tbody tr {
	border-bottom: 1px solid #E5E5E5;
}

.my_account_transactions tbody tr:last-child {
	border-bottom: none;
}

.my_account_transactions tbody td {
	padding: 18px 15px;
	vertical-align: top;
	color: #777777;
	font-size: 14px;
}

.my_account_transactions tbody td strong {
	color: #282828;
}

/* Transaction type badges */
.transaction-type-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.transaction-type-badge.type-credit {
	background: #FDF6E8;
	color: #DC9814;
}

.transaction-type-badge.type-debit {
	background: #F5F5F5;
	color: #666666;
}

/* Transaction amounts */
.transaction-amount .amount {
	font-size: 16px;
	font-weight: 600;
}

.transaction-amount .amount-credit {
	color: #DC9814;
}

.transaction-amount .amount-debit {
	color: #666666;
}

/* Transaction links - Savoy's golden-orange accent */
.woocommerce-MyAccount-account-funds .transaction-link {
	color: #DC9814;
	text-decoration: none;
	font-weight: 500;
}

.woocommerce-MyAccount-account-funds .transaction-link:hover {
	color: #C48612;
	text-decoration: underline;
}

/* Transaction notes */
.transaction-note {
	font-size: 13px;
	color: #888888;
	font-style: italic;
	display: block;
	margin-top: 4px;
}

/* Transaction status badges */
.transaction-status-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	margin-left: 8px;
	background: #F5F5F5;
	color: #666666;
}

/* Voided/expired transaction styling */
.transaction-status-voided,
.transaction-status-expired {
	opacity: 0.7;
}

.transaction-status-voided .transaction-amount,
.transaction-status-expired .transaction-amount {
	text-decoration: line-through;
}

/* ==========================================================================
   Pagination - Savoy minimalist style
   ========================================================================== */

.woocommerce-pagination {
	margin-top: 30px;
	text-align: center;
}

.woocommerce-pagination ul {
	display: inline-block;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-pagination ul li {
	display: inline-block;
	margin: 0 3px;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
	display: block;
	padding: 8px 14px;
	color: #777777;
	text-decoration: none;
	border: 1px solid #E5E5E5;
	border-radius: 4px;
	font-size: 14px;
	min-width: 40px;
	text-align: center;
}

.woocommerce-pagination ul li a:hover {
	background: #DC9814;
	color: #fff;
	border-color: #DC9814;
}

.woocommerce-pagination ul li span.current {
	background: #DC9814;
	color: #fff;
	border-color: #DC9814;
	font-weight: 600;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media screen and (max-width: 768px) {
	.account-funds-balance-card {
		padding: 20px;
	}

	.account-funds-balance-card .balance-amount {
		font-size: 28px;
	}

	.account-funds-balance-card .balance-breakdown {
		flex-direction: column;
		gap: 8px;
		text-align: center;
	}

	/* Stack table cells vertically on mobile */
	.my_account_transactions thead {
		display: none;
	}

	.my_account_transactions tbody tr {
		display: block;
		margin-bottom: 20px;
		border: 1px solid #E5E5E5;
		border-radius: 8px;
		padding: 15px;
	}

	.my_account_transactions tbody td {
		display: block;
		padding: 8px 0;
		border: none;
		text-align: left;
	}

	.my_account_transactions tbody td:before {
		content: attr(data-title) ": ";
		font-weight: 600;
		color: #282828;
		display: block;
		margin-bottom: 4px;
	}

	.transaction-type-badge {
		margin-top: 5px;
	}
}

/* ==========================================================================
   Section Headings
   ========================================================================== */

.woocommerce-MyAccount-account-funds h2 {
	color: #282828;
	font-weight: 600;
	margin-bottom: 20px;
	font-size: 18px;
	margin-top: 40px;
}

.woocommerce-MyAccount-account-funds h2:first-of-type {
	margin-top: 0;
}

/* Balance card label override */
.account-funds-balance-card .balance-label {
	font-size: 14px;
	font-weight: normal;
}
