.wtw-wallet {
	--wtw-primary: #222222;
	--wtw-primary-dark: #111111;
	--wtw-secondary: #444444;
	--wtw-text: #111111;
	--wtw-text-muted: #555555;
	--wtw-border: #e2e8f0;
	--wtw-cream: #f8fafc;
	--wtw-radius: 12px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	color: #111111 !important;
	margin-top: 15px;
	margin-bottom: 35px;
	padding-left: 10px;
	padding-right: 10px;
}

.wtw-wallet * {
	box-sizing: border-box;
}

.wtw-wallet h3 {
	margin: 0 0 6px;
	color: #111111 !important;
	font-family: inherit;
	font-weight: 700;
}

.wtw-muted {
	color: #555555 !important;
	font-size: 0.9rem;
}

/* Balance Card */
.wtw-balance-card {
	background: #222222 !important;
	color: #ffffff !important;
	border-radius: var(--wtw-radius);
	padding: 28px 32px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.wtw-balance-label {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.75rem;
	opacity: 0.9;
	color: #ffffff !important;
}

.wtw-balance-amount,
.wtw-balance-amount *,
.wtw-balance-amount .woocommerce-Price-amount,
.wtw-balance-amount .woocommerce-Price-currencySymbol,
.wtw-balance-amount span,
.wtw-balance-amount bdi {
	font-size: 2.4rem !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	background: transparent !important;
	border: none !important;
}

/* Cards */
.wtw-topup-card,
.wtw-ledger-card {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: var(--wtw-radius);
	padding: 28px 32px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Quick Amounts */
.wtw-amount-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 18px 0;
}

.wtw-quick-amount {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 1px solid #cbd5e1 !important;
	background: #f1f5f9 !important;
	border-radius: 999px !important;
	padding: 8px 22px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	color: #111111 !important;
	font-size: 0.95rem !important;
	transition: all 0.2s ease !important;
	outline: none !important;
	box-shadow: none !important;
	height: auto !important;
	line-height: normal !important;
}

/* Strip inner borders/backgrounds from WooCommerce price spans */
.wtw-quick-amount *,
.wtw-quick-amount .woocommerce-Price-amount,
.wtw-quick-amount .woocommerce-Price-currencySymbol,
.wtw-quick-amount span,
.wtw-quick-amount bdi {
	border: none !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
}

.wtw-quick-amount:hover,
.wtw-quick-amount.is-active {
	background: #111111 !important;
	border-color: #111111 !important;
	color: #ffffff !important;
}

.wtw-quick-amount:hover *,
.wtw-quick-amount.is-active * {
	color: #ffffff !important;
}

/* Input & Buttons */
.wtw-amount-input {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 280px;
	margin-bottom: 20px;
}

.wtw-amount-input label {
	font-size: 0.9rem;
	font-weight: 600;
	color: #111111 !important;
}

.wtw-amount-input input {
	padding: 12px 16px;
	border-radius: 8px;
	border: 1px solid #cbd5e1 !important;
	color: #111111 !important;
	font-size: 1rem;
	background: #ffffff !important;
}

.wtw-topup-form button[type="submit"],
.wtw-topup-form .btn-primary {
	background: #111111 !important;
	border: none !important;
	color: #ffffff !important;
	padding: 12px 28px !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
	font-size: 0.95rem !important;
	cursor: pointer !important;
	transition: background 0.2s ease;
}

.wtw-topup-form button[type="submit"]:hover,
.wtw-topup-form .btn-primary:hover {
	background: #333333 !important;
}

/* Table */
.wtw-table-wrap {
	overflow-x: auto;
}

.wtw-ledger-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 14px;
}

.wtw-ledger-table th,
.wtw-ledger-table td {
	text-align: left;
	padding: 14px 16px;
	border-bottom: 1px solid #e2e8f0;
	font-size: 0.92rem;
	white-space: nowrap;
	color: #111111 !important;
}

.wtw-ledger-table th {
	color: #64748b !important;
	font-weight: 600;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: #f8fafc;
}

.wtw-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
}

.wtw-badge-topup { background: #e2e8f0; color: #1e293b !important; }
.wtw-badge-purchase { background: #fee2e2; color: #991b1b !important; }
.wtw-badge-refund { background: #dcfce7; color: #166534 !important; }
.wtw-badge-adjustment { background: #f1f5f9; color: #475569 !important; }

.wtw-amount.wtw-credit { color: #16a34a !important; font-weight: 700; }
.wtw-amount.wtw-debit { color: #dc2626 !important; font-weight: 700; }

.wtw-pagination {
	display: flex;
	gap: 8px;
	margin-top: 20px;
}

.wtw-pagination a {
	padding: 8px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	color: #111111 !important;
	text-decoration: none;
}

.wtw-pagination a.is-current {
	background: #111111 !important;
	color: #ffffff !important;
	border-color: #111111 !important;
}

@media (max-width: 640px) {
	.wtw-ledger-table thead { display: none; }
	.wtw-ledger-table tr { display: block; padding: 12px 0; border-bottom: 1px solid #e2e8f0; }
	.wtw-ledger-table td { display: flex; justify-content: space-between; border: none; padding: 6px 0; white-space: normal; }
	.wtw-ledger-table td::before { content: attr(data-label); font-weight: 600; color: #64748b !important; margin-right: 12px; }
}
