/*
 * Rewards UI.
 *
 * Loaded only on cart, checkout, account and product pages. Uses the theme's
 * tokens with fallbacks, so it still looks deliberate under a different theme.
 */

.tcgt-redeem {
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	background: var(--tcgt-surface, #171a21);
	border: 1px solid var(--tcgt-line, #2a2f3a);
	border-radius: var(--tcgt-radius, 12px);
}

.tcgt-redeem__title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	letter-spacing: -0.01em;
}

.tcgt-redeem__balance {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	color: var(--tcgt-muted, #9aa3b2);
}

.tcgt-redeem__label {
	display: block;
	margin-bottom: 0.375rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--tcgt-muted, #9aa3b2);
}

.tcgt-redeem__row {
	display: flex;
	gap: 0.5rem;
	align-items: stretch;
	flex-wrap: wrap;
}

.tcgt-redeem__input {
	flex: 0 1 8rem;
	padding: 0.5rem 0.625rem;
	background: var(--tcgt-surface-2, #1f232c);
	border: 1px solid var(--tcgt-line, #2a2f3a);
	border-radius: var(--tcgt-radius-sm, 8px);
	color: var(--tcgt-text, #e8eaed);
}

.tcgt-redeem__applied {
	margin: 0 0 0.75rem;
	padding: 0.625rem 0.75rem;
	background: rgba(63, 185, 80, 0.12);
	border: 1px solid rgba(63, 185, 80, 0.35);
	border-radius: var(--tcgt-radius-sm, 8px);
	font-size: 0.875rem;
}

.tcgt-redeem__hint,
.tcgt-redeem__login {
	margin: 0.5rem 0 0;
	font-size: 0.75rem;
	color: var(--tcgt-muted, #9aa3b2);
}

.woocommerce .tcgt-redeem__remove {
	background: var(--tcgt-surface-2, #1f232c);
	color: var(--tcgt-muted, #9aa3b2);
	border: 1px solid var(--tcgt-line, #2a2f3a);
	font-size: 0.8125rem;
}

/* --- totals row --------------------------------------------------------- */
.tcgt-points-earn th {
	font-weight: 600;
}

.tcgt-points-earn__note {
	display: block;
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--tcgt-muted, #9aa3b2);
}

/* --- product page ------------------------------------------------------- */
.tcgt-product-points {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.25rem 0.625rem;
	border-radius: 999px;
	background: rgba(245, 185, 66, 0.14);
	border: 1px solid rgba(245, 185, 66, 0.4);
	color: var(--tcgt-accent, #f5b942);
	font-size: 0.75rem;
	font-weight: 700;
}

/* --- thank you ---------------------------------------------------------- */
.tcgt-points-summary {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	background: var(--tcgt-surface, #171a21);
	border: 1px solid var(--tcgt-line, #2a2f3a);
	border-radius: var(--tcgt-radius, 12px);
}

.tcgt-points-summary__title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
}

.tcgt-points-summary__list {
	margin: 0;
	padding-left: 1.125rem;
	font-size: 0.9375rem;
}

.tcgt-points-summary__balance {
	color: var(--tcgt-muted, #9aa3b2);
}

/* --- account ------------------------------------------------------------ */
.tcgt-account-points__balance {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	padding: 1.25rem;
	background: var(--tcgt-surface, #171a21);
	border: 1px solid var(--tcgt-line, #2a2f3a);
	border-radius: var(--tcgt-radius, 12px);
}

.tcgt-account-points__label {
	font-size: 0.8125rem;
	color: var(--tcgt-muted, #9aa3b2);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
}

.tcgt-account-points__value {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--tcgt-accent, #f5b942);
	line-height: 1;
}

.tcgt-account-points__unit {
	color: var(--tcgt-muted, #9aa3b2);
	font-size: 0.875rem;
}

.tcgt-account-points__table {
	width: 100%;
}

.tcgt-account-points__reason {
	display: block;
	font-size: 0.75rem;
	color: var(--tcgt-muted, #9aa3b2);
}

.tcgt-account-points__table .tcgt-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.tcgt-pos {
	color: var(--tcgt-success, #3fb950);
	font-weight: 700;
}

.tcgt-neg {
	color: var(--tcgt-muted, #9aa3b2);
	font-weight: 700;
}
