.wcaf-account-funds {
	display: grid;
	gap: 1.5rem;
}

.wcaf-funds-heading h2 {
	margin-bottom: 0.35rem;
}

.wcaf-funds-heading p {
	margin-top: 0;
	color: #555;
}

.wcaf-funds-notice {
	margin: 0 0 1rem;
}

.wcaf-balance-card {
	background: linear-gradient(135deg, #f3f7ff 0%, #e8f2ff 100%);
	border: 1px solid #c8dbf5;
	border-radius: 14px;
	padding: 1.4rem 1.6rem;
	box-shadow: 0 3px 14px rgba(25, 73, 130, 0.07);
}

.wcaf-balance-label {
	display: block;
	font-size: 0.9rem;
	color: #4b5b70;
	margin-bottom: 0.25rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.wcaf-balance-value {
	display: block;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
	color: #172b46;
}

.wcaf-funds-info,
.wcaf-topup-box,
.wcaf-history {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 1.25rem 1.5rem;
}

.wcaf-funds-info h3,
.wcaf-topup-box h3,
.wcaf-history h3 {
	margin-top: 0;
	margin-bottom: 0.75rem;
}

.wcaf-funds-info ul {
	margin: 0;
	padding-left: 1.25rem;
}

.wcaf-funds-info li + li {
	margin-top: 0.4rem;
}

.wcaf-topup-form {
	margin-top: 1rem;
}

.wcaf-topup-form .form-row {
	margin-bottom: 1rem;
}

.wcaf-field-hint {
	display: block;
	margin-top: 0.3rem;
	font-size: 0.85rem;
	color: #5c6675;
}

.wcaf-payment-methods {
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
	display: grid;
	gap: 0.6rem;
}

.wcaf-payment-methods legend {
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.wcaf-gateway-option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.8rem 0.95rem;
	border: 1px solid #d6dbe3;
	border-radius: 10px;
	cursor: pointer;
	background: #fcfdff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wcaf-gateway-option:hover {
	border-color: #678bbd;
}

.wcaf-gateway-option:has(input:checked) {
	border-color: #245a9a;
	box-shadow: 0 0 0 2px rgba(36, 90, 154, 0.12);
	background: #f7faff;
}

.wcaf-gateway-content {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.wcaf-gateway-title {
	font-weight: 500;
}

.wcaf-gateway-title small {
	display: block;
	margin-top: 0.15rem;
	color: #6b4e00;
	font-weight: 400;
}

.wcaf-gateway-icon img {
	max-height: 30px;
	width: auto;
}

.wcaf-add-funds-submit {
	min-height: 44px;
}

.wcaf-table-wrap {
	overflow-x: auto;
}

.wcaf-transactions-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.wcaf-transactions-table th,
.wcaf-transactions-table td {
	padding: 0.75rem 0.65rem;
	text-align: left;
	border-bottom: 1px solid #e8eaee;
	vertical-align: top;
}

.wcaf-transactions-table thead th {
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #4f5b6b;
}

.wcaf-column-amount,
.wcaf-column-balance {
	white-space: nowrap;
}

.wcaf-pagination {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 1rem;
}

.wcaf-page-count {
	color: #596579;
	font-size: 0.9rem;
}

.wcaf-checkout-funds {
	margin-top: 0.5rem;
	font-size: 0.95rem;
}

.wcaf-checkout-balance,
.wcaf-checkout-total {
	margin: 0.15rem 0;
}

.wcaf-checkout-notice {
	border-radius: 9px;
	padding: 0.85rem 1rem;
	margin: 0.75rem 0;
	border: 1px solid transparent;
}

.wcaf-checkout-notice p {
	margin: 0 0 0.5rem;
}

.wcaf-checkout-notice p:last-child {
	margin-bottom: 0;
}

.wcaf-checkout-notice--error {
	background: #fff6f5;
	border-color: #e6aaa4;
	color: #641f17;
}

.wcaf-checkout-notice--ok,
.wcaf-checkout-notice--success {
	background: #f2fbf6;
	border-color: #a8dabc;
	color: #164a2a;
}

.wcaf-checkout-ready {
	color: #217346;
	font-weight: 600;
}

.wcaf-refresh-note {
	margin: 0.65rem 0 0;
	font-size: 0.85rem;
	color: #5d6879;
	font-style: italic;
}

.wcaf-add-funds-button {
	margin-top: 0.15rem;
}

.wcaf-block-notice {
	border-radius: 8px;
	padding: 0.8rem 1rem;
	margin: 0.6rem 0;
	border: 1px solid #d9dee7;
	background: #fafbfc;
}

.wcaf-block-notice--error {
	background: #fff6f5;
	border-color: #e6aaa4;
	color: #641f17;
}

.wcaf-block-notice p {
	margin: 0 0 0.5rem;
}

.wcaf-block-notice p:last-child {
	margin-bottom: 0;
}

.wcaf-block-description,
.wcaf-block-balance,
.wcaf-block-total,
.wcaf-block-ready {
	margin: 0.35rem 0;
}

.wcaf-block-ready {
	color: #217346;
	font-weight: 600;
}

.wcaf-guest-title {
	font-weight: 600;
}

.wcaf-topup-thankyou {
	margin-top: 1rem;
}

body.wcaf-credits-only .wc-block-components-express-payment,
body.wcaf-credits-only .wc-block-components-express-payment-continue-rule,
body.wcaf-credits-only .wc-stripe-payment-request-wrapper,
body.wcaf-credits-only #wc-stripe-payment-request-wrapper,
body.wcaf-credits-only .wc-stripe-payment-request-button-separator,
body.wcaf-credits-only .wc-stripe-express-checkout,
body.wcaf-credits-only .wc-stripe-express-checkout-element,
body.wcaf-credits-only .ppc-button-wrapper,
body.wcaf-credits-only .paypal-buttons,
body.wcaf-credits-only .ppcp-express-buttons,
body.wcaf-credits-only #ppc-button-ppcp-gateway {
	display: none !important;
}

@media (max-width: 700px) {
	.wcaf-balance-value {
		font-size: 1.65rem;
	}

	.wcaf-funds-info,
	.wcaf-topup-box,
	.wcaf-history {
		padding: 1rem;
	}

	.wcaf-gateway-content {
		align-items: flex-start;
		flex-direction: column;
	}

	.wcaf-transactions-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.wcaf-transactions-table tr {
		display: block;
		border: 1px solid #e5e7eb;
		border-radius: 10px;
		margin-bottom: 0.75rem;
		padding: 0.5rem 0.75rem;
	}

	.wcaf-transactions-table td {
		display: flex;
		justify-content: space-between;
		gap: 1rem;
		border: 0;
		padding: 0.4rem 0;
	}

	.wcaf-transactions-table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: #5c6675;
	}
}
