/* WesEggs Account Funds front end — cream and charcoal, matching the site. */
.weseggs-af-account,
.payment_box.payment_method_accountfunds,
#payment .payment_method_accountfunds .payment_box {
	--weseggs-af-cream: #f7f1e5;
	--weseggs-af-cream-dark: #efe6d4;
	--weseggs-af-paper: #fffdf8;
	--weseggs-af-ink: #2b2a28;
	--weseggs-af-muted: #6b655c;
	--weseggs-af-line: #d9d0c1;
	--weseggs-af-charcoal: #3a3835;
}

.weseggs-af-account {
	background: var(--weseggs-af-cream);
	color: var(--weseggs-af-ink);
	border: 1px solid var(--weseggs-af-line);
	padding: 28px 24px 32px;
	margin: 0 auto 24px;
	max-width: 36rem;
	text-align: center;
}

.weseggs-af-account h2,
.weseggs-af-account h3,
.weseggs-af-account .weseggs-af-account__title {
	font-family: 'trend', Helvetica, Arial, sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--weseggs-af-ink);
	background: none;
	min-height: 0;
	padding: 0;
	margin: 0 0 16px;
	font-size: 1.15em;
}

.weseggs-af-account__intro {
	margin: 0 0 16px;
	color: var(--weseggs-af-muted);
	font-size: 15px;
}

.weseggs-af-account__balance {
	display: block;
	background: var(--weseggs-af-paper);
	border: 1px solid var(--weseggs-af-line);
	padding: 18px 16px 16px;
	margin: 0 auto 24px;
}

.weseggs-af-account__balance-label {
	display: block;
	color: var(--weseggs-af-muted);
	font-size: 13px;
	margin-bottom: 6px;
}

.weseggs-af-account__balance-value {
	display: block;
	font-family: 'trend', Helvetica, Arial, sans-serif;
	font-size: 2rem;
	line-height: 1.2;
	color: var(--weseggs-af-charcoal);
	font-weight: 400;
}

.weseggs-af-topup {
	margin: 0 auto;
	max-width: 22rem;
	text-align: center;
}

.weseggs-af-topup .form-row {
	width: 100%;
	float: none;
	margin: 0 0 12px;
	padding: 0;
}

.weseggs-af-topup #topup_amount {
	width: 100%;
	max-width: 100%;
	height: 50px;
	margin-top: 0;
	text-align: center;
	font-size: 16px;
}

.weseggs-af-topup .description,
.weseggs-af-topup-hint {
	display: block;
	margin-top: 8px;
	color: var(--weseggs-af-muted);
	font-size: 13px;
}

/* Leave the theme’s decorative cart button image alone; only tidy spacing. */
.weseggs-af-topup .button,
.weseggs-af-account .button {
	margin-top: 8px;
}

.weseggs-af-deposits {
	margin-top: 28px;
	text-align: left;
}

.weseggs-af-deposits h2,
.weseggs-af-deposits h3 {
	text-align: center;
	margin-bottom: 12px;
}

.weseggs-af-deposits .shop_table {
	background: var(--weseggs-af-paper);
	border: 1px solid var(--weseggs-af-line);
	width: 100%;
}

.weseggs-af-deposits .shop_table th,
.weseggs-af-deposits .shop_table td {
	color: var(--weseggs-af-ink);
	border-color: var(--weseggs-af-line);
	padding: 10px 12px;
}

.weseggs-af-deposits .shop_table a {
	color: var(--weseggs-af-charcoal);
}

/* Checkout payment box for Account Funds. */
#payment .payment_method_accountfunds .payment_box,
.woocommerce-checkout #payment .payment_box.payment_method_accountfunds {
	background: #f7f1e5 !important;
	color: #2b2a28 !important;
	border: 1px solid #d9d0c1;
	border-radius: 0;
}

#payment .payment_method_accountfunds .payment_box::before,
.woocommerce-checkout #payment .payment_box.payment_method_accountfunds::before {
	border-color: transparent;
	border-bottom-color: #f7f1e5 !important;
}

#payment .payment_method_accountfunds .payment_box p {
	color: #2b2a28;
	margin: 0;
	line-height: 1.5;
}

/* Cart / checkout funds row. */
.woocommerce-cart .account-funds th,
.woocommerce-checkout .account-funds th,
.woocommerce-cart .account-funds-discount th,
.woocommerce-checkout .account-funds-discount th,
.woocommerce-cart .account-funds td,
.woocommerce-checkout .account-funds td,
.woocommerce-cart .account-funds-discount td,
.woocommerce-checkout .account-funds-discount td {
	color: #2b2a28;
}

.weseggs-af-remove-funds {
	color: #3a3835;
	margin-left: 6px;
	white-space: nowrap;
}

/* Thank-you and order details “Account funds used” line. */
.woocommerce-order-details .woocommerce-table--order-details .funds_used th,
.woocommerce-order-details .woocommerce-table--order-details .funds_used td,
.woocommerce-table .funds_used th,
.woocommerce-table .funds_used td {
	color: #2b2a28;
}

@media (max-width: 600px) {
	.weseggs-af-account {
		padding: 20px 16px 24px;
	}
	.weseggs-af-account__balance-value {
		font-size: 1.6rem;
	}
	.weseggs-af-deposits .shop_table th {
		display: none;
	}
}
