.cw-wallet-wrap {
	max-width: 920px;
	color: #111111;
}

.cw-wallet-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}

.cw-wallet-card {
	border: 1px solid #dcdcdc;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 16px;
	background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.cw-wallet-label {
	margin: 0;
	color: #222222;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cw-wallet-balance {
	font-size: 32px;
	font-weight: 700;
	margin: 6px 0 0;
	color: #dd0000;
	line-height: 1.1;
}

.cw-wallet-form p {
	margin-bottom: 12px;
}

.cw-wallet-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.cw-wallet-form input {
	width: 100%;
	max-width: 420px;
	border: 1px solid #cfcfcf;
	border-radius: 8px;
	padding: 10px 12px;
	background: #ffffff;
	color: #111111;
}

.cw-wallet-form textarea {
	width: 100%;
	max-width: 420px;
	border: 1px solid #cfcfcf;
	border-radius: 8px;
	padding: 10px 12px;
	background: #ffffff;
	color: #111111;
	resize: vertical;
}

.cw-claim-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	max-width: 760px;
}

.cw-claim-checkbox-label input[type='checkbox'] {
	margin-top: 2px;
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.cw-claim-checkbox-label span {
	line-height: 1.4;
}

.cw-claim-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.cw-claim-tab {
	border: 1px solid #dd0000;
	background: #ffffff;
	color: #dd0000;
	border-radius: 8px;
	padding: 8px 12px;
	font-weight: 600;
	cursor: pointer;
}

.cw-claim-tab.is-active {
	background: #dd0000;
	color: #ffffff;
}

.cw-claim-tab-panel {
	display: none;
}

.cw-claim-tab-panel.is-active {
	display: block;
}

.cw-wallet-badges {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 6px 0;
}

.cw-wallet-badge-shortcode {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	line-height: 1;
	text-decoration: none;
	color: #dd0000;
	padding: 3px 0;
	font-weight: 700;
}

.cw-wallet-badge-separator {
	width: 100%;
	border: 0;
	border-top: 1px solid #dd0000;
	margin: 4px 0;
}

.cw-wallet-badge-icon {
	display: inline-flex;
	width: 15px;
	height: 15px;
	max-width: 20px;
	max-height: 20px;
}

.cw-wallet-badge-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.cw-wallet-badge-text {
	color: #dd0000;
	font-size: 14px;
}

span.cw-wallet-badge-text span.woocommerce-Price-amount.amount {
	color: #dd0000;
}

.woocommerce-account .cw-wallet-wrap h2,
.woocommerce-account .cw-wallet-wrap h3,
.woocommerce-account .cw-wallet-wrap strong,
.woocommerce-account .cw-wallet-wrap p,
.woocommerce-account .cw-wallet-wrap label,
.woocommerce-account .cw-wallet-wrap th,
.woocommerce-account .cw-wallet-wrap td {
	color: #111111;
}

.woocommerce-account .cw-wallet-wrap h2,
.woocommerce-account .cw-wallet-wrap h3 {
	border-left: 4px solid #dd0000;
	padding-left: 10px;
}

.woocommerce-account .cw-wallet-wrap > h2 {
	margin-bottom: 10px;
}

.woocommerce-account .cw-wallet-wrap .shop_table {
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #dedede;
}

.woocommerce-account .cw-wallet-wrap .shop_table thead th {
	background: #111111;
	color: #ffffff;
	font-weight: 700;
}

.woocommerce-account .cw-wallet-wrap .shop_table tbody tr:nth-child(even) {
	background: #f7f7f7;
}

.woocommerce-account .cw-wallet-wrap .button,
.woocommerce-account .cw-wallet-wrap button.button {
	background: #dd0000;
	border-color: #dd0000;
	color: #ffffff;
	border-radius: 8px;
	padding: 8px 14px;
	font-weight: 600;
}

.woocommerce-account .cw-wallet-wrap .button:hover,
.woocommerce-account .cw-wallet-wrap button.button:hover {
	background: #b10000;
	border-color: #b10000;
	color: #ffffff;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	color: #111111;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	color: #dd0000;
	font-weight: 700;
}

/* Match screenshot-like wallet layout while keeping plugin brand colors */
.woocommerce-account .cw-wallet-wrap {
	max-width: 980px;
}

.woocommerce-account .cw-wallet-summary {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
}

.woocommerce-account .cw-wallet-summary .cw-wallet-card {
	margin-bottom: 0;
}

.woocommerce-account .cw-balance-card,
.woocommerce-account .cw-withdrawals-card {
	min-height: 330px;
}

.woocommerce-account .cw-withdrawals-card {
	padding: 0;
	overflow: hidden;
}

.woocommerce-account .cw-withdrawals-card h3,
.woocommerce-account .cw-claim-card h3 {
	margin: 0;
	padding: 14px 16px;
	border-left: 0;
	background: #111111;
	color: #dd0000;
}

.woocommerce-account .cw-claim-card > h3 {
	margin-bottom: 0 !important;
}

.woocommerce-account .cw-withdrawals-card p {
	padding: 0 16px;
}

.woocommerce-account .cw-wallet-wrap .cw-wallet-card p,
.woocommerce-account .cw-wallet-wrap .cw-wallet-card span,
.woocommerce-account .cw-wallet-wrap .cw-wallet-card label,
.woocommerce-account .cw-wallet-wrap .cw-wallet-card td,
.woocommerce-account .cw-wallet-wrap .cw-wallet-card th,
.woocommerce-account .cw-wallet-wrap .cw-wallet-card strong,
.woocommerce-account .cw-wallet-wrap .cw-wallet-card small {
	color: #111111;
}

.woocommerce-account .cw-claim-card {
	padding: 0;
	overflow: hidden;
}

.woocommerce-account .cw-claim-card .cw-claim-tabs {
	margin: 0;
	gap: 0;
	border-bottom: 1px solid #dd0000;
}

.woocommerce-account .cw-claim-card .cw-claim-tab {
	flex: 1 1 50%;
	text-align: center;
	border-radius: 0;
	border: 0;
	border-right: 1px solid #dd0000;
	padding: 11px 12px;
}

.woocommerce-account .cw-claim-card .cw-claim-tab:last-child {
	border-right: 0;
}

.woocommerce-account .cw-claim-card .cw-claim-tab-panel {
	padding: 22px 18px 18px;
}

.woocommerce-account .cw-claim-card .cw-wallet-form input,
.woocommerce-account .cw-claim-card .cw-wallet-form textarea {
	max-width: 560px;
}

/* Header shortcode balance should be regular weight */
.cw-wallet-badge-shortcode,
.cw-wallet-badge-text,
span.cw-wallet-badge-text span.woocommerce-Price-amount.amount {
	font-weight: 400;
}

@media (max-width: 640px) {
	.cw-wallet-card {
		padding: 16px;
	}

	.cw-wallet-balance {
		font-size: 28px;
	}

	.woocommerce-account .cw-wallet-summary {
		grid-template-columns: 1fr;
	}
}
