/**
 * sst-points — my-account Points page + dashboard card.
 * Tone matches account-checkout.css (white panels, #e3e6ea soft lines,
 * 6px radius, #ac004d accent) and the account-ranks card grammar.
 */

.sst-points-card {
	background: #ffffff;
	border: 1px solid #e3e6ea;
	border-left: 6px solid #ac004d;
	border-radius: 6px;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
	margin: 1.5rem 0;
	padding: clamp(1rem, 3vw, 1.75rem);
}

.sst-points-card__eyebrow {
	color: #4f555c;
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sst-points-card__balance {
	font-size: clamp(2rem, 5vw, 2.6rem);
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
	margin: 0.35rem 0 0;
}

.sst-points-card__balance span {
	color: #4f555c;
	font-size: 0.45em;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.sst-points-card__yen {
	color: #ac004d;
	font-size: 1.02rem;
	font-weight: 650;
	margin: 0.35rem 0 0;
}

.sst-points-card__yen .woocommerce-Price-amount {
	color: inherit;
	font-weight: inherit;
}

.sst-points-card__expiry,
.sst-points-card__pending,
.sst-points-card__empty {
	background: #f6f7f7;
	border-radius: 5px;
	color: #111111;
	font-size: 0.92rem;
	line-height: 1.55;
	margin: 0.9rem 0 0;
	padding: 0.65rem 0.8rem;
}

.sst-points-card__expiry strong {
	color: #ac004d;
}

.sst-points-card__pending strong {
	font-variant-numeric: tabular-nums;
}

.sst-points-card__cta {
	margin: 1rem 0 0;
}

.sst-points-card--compact .sst-points-card__balance {
	font-size: clamp(1.6rem, 4vw, 2rem);
}

/* ------------------------------------------------------------- rates table */

.sst-points-schedule,
.sst-points-rates,
.sst-points-history {
	margin: 1.75rem 0;
}

.sst-points-schedule h3,
.sst-points-rates h3,
.sst-points-history h3 {
	font-size: 1.1rem;
	margin: 0 0 0.75rem;
}

.sst-points-table-wrap {
	overflow-x: auto;
}

.sst-points-rates tr.is-current td {
	background: #fdf2f7;
	font-weight: 650;
}

.sst-points-rates__you {
	background: #ac004d;
	border-radius: 999px;
	color: #ffffff;
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1;
	margin-left: 0.4rem;
	padding: 0.25rem 0.55rem;
	text-transform: uppercase;
	vertical-align: middle;
}

.sst-points-rates__note {
	color: #4f555c;
	font-size: 0.85rem;
	line-height: 1.55;
	margin: 0.6rem 0 0;
}

/* --------------------------------------------------------- expiry schedule
   Lot-expiry model v2: one row per outstanding lot ("what expires when").
   The nearest expiry (first row) is emphasized. */

.sst-points-schedule td,
.sst-points-schedule th {
	font-variant-numeric: tabular-nums;
}

.sst-points-schedule tr.is-next td {
	background: #fdf2f7;
	font-weight: 650;
}

.sst-points-schedule__in {
	color: #4f555c;
	font-size: 0.85em;
	font-weight: 600;
	margin-left: 0.4rem;
	white-space: nowrap;
}

.sst-points-schedule tr.is-next .sst-points-schedule__in {
	color: #ac004d;
}

.sst-points-schedule__yen {
	color: #4f555c;
	font-weight: 500;
}

.sst-points-schedule__yen .woocommerce-Price-amount {
	color: inherit;
	font-weight: inherit;
}

.sst-points-schedule__note {
	color: #4f555c;
	font-size: 0.85rem;
	line-height: 1.55;
	margin: 0.6rem 0 0;
}

/* ---------------------------------------------------------------- history */

.sst-points-history td,
.sst-points-history th {
	font-variant-numeric: tabular-nums;
}

.sst-points-history__order {
	color: #ac004d;
	font-weight: 650;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.sst-points-delta {
	font-weight: 700;
}

.sst-points-delta--plus {
	color: #1a7f37;
}

.sst-points-delta--minus {
	color: #b42318;
}

/* --------------------------------------------------------------- pagination
   Markup reuses the theme's sst-orders-pagination classes; these fallbacks
   only apply if the theme styles are ever absent on the points endpoint. */

.sst-points-pagination {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 1.1rem 0 0;
}

.sst-points-pagination .sst-orders-pagination__page {
	border: 1px solid #e3e6ea;
	border-radius: 5px;
	line-height: 1;
	min-width: 2.1rem;
	padding: 0.5rem 0.55rem;
	text-align: center;
	text-decoration: none;
}

.sst-points-pagination .sst-orders-pagination__page.is-current {
	background: #ac004d;
	border-color: #ac004d;
	color: #ffffff;
	font-weight: 700;
}

.sst-points-pagination .sst-orders-pagination__arrow {
	padding: 0.5rem 0.35rem;
	text-decoration: none;
}

@media (max-width: 600px) {
	.sst-points-pagination .sst-orders-pagination__arrow span {
		display: none;
	}
}
