/**
 * Partner referrals table - My Account > Your referrals.
 *
 * Seven columns do not fit a phone, and this page is read on one more often
 * than not, so below 782px every row becomes a card and each cell is labelled
 * from its data-th. Fallback colours are given for every token in case this
 * sheet ever loads without the store bundle.
 */

.pt-rf {
	margin: 0 0 8px;
}

.pt-rf-code {
	margin: 0 0 3px;
	font-size: 17px;
	color: var(--ink, #0f1b2d);
}

.pt-rf-sub {
	margin: 0 0 20px;
	font-size: 14px;
	color: var(--ink-3, #7a8699);
}

.pt-rf-code strong {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: 0.04em;
	color: var(--ink, #0f1b2d);
}

/* ------------------------------------------------------------ the figures */

.pt-rf-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 0 0 22px;
}

.pt-rf-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border: 1px solid var(--line, #e3e8ef);
	border-radius: 12px;
	background: var(--surface, #fff);
}

.pt-rf-num {
	font-size: 22px;
	font-weight: 700;
	color: var(--ink, #0f1b2d);
	font-variant-numeric: tabular-nums;
}

.pt-rf-num .woocommerce-Price-amount {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.pt-rf-cap {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-3, #7a8699);
}

/* -------------------------------------------------------------- the table */

.pt-rf-scroll {
	overflow-x: auto;
}

.pt-rf-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.pt-rf-table th,
.pt-rf-table td {
	padding: 12px 10px;
	border-bottom: 1px solid var(--line, #e3e8ef);
	text-align: left;
	vertical-align: middle;
}

.pt-rf-table th {
	font-size: 11px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--ink-3, #7a8699);
	font-weight: 600;
	white-space: nowrap;
}

.pt-rf-table .pt-rf-r {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.pt-rf-no {
	display: block;
	font-weight: 600;
	color: var(--ink, #0f1b2d);
}

.pt-rf-date {
	display: block;
	font-size: 12px;
	color: var(--ink-3, #7a8699);
}

.pt-rf-earned {
	font-weight: 700;
}

.pt-rf-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.pt-rf-pill.is-paid {
	background: var(--ok-bg, #e7f6ec);
	color: var(--ok-fg, #1c6b36);
}

.pt-rf-pill.is-pending {
	background: #fdf0e3;
	color: #8a4b12;
}

/* --------------------------------------------------------------- the rest */

.pt-rf-empty,
.pt-rf-note,
.pt-rf-terms {
	color: var(--ink-3, #7a8699);
	font-size: 13px;
	line-height: 1.55;
}

.pt-rf-empty {
	margin: 0;
	padding: 22px;
	border: 1px dashed var(--line, #e3e8ef);
	border-radius: 12px;
	text-align: center;
}

.pt-rf-note {
	margin: 14px 0 0;
}

.pt-rf-terms {
	margin: 18px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--line, #e3e8ef);
	font-size: 12px;
}

/* ---------------------------------------------------------------- phone */

@media (max-width: 782px) {
	.pt-rf-stats {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.pt-rf-stat {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding: 12px 14px;
	}

	.pt-rf-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.pt-rf-table,
	.pt-rf-table tbody,
	.pt-rf-table tr,
	.pt-rf-table td {
		display: block;
		width: 100%;
	}

	.pt-rf-table tr {
		margin: 0 0 12px;
		padding: 6px 14px;
		border: 1px solid var(--line, #e3e8ef);
		border-radius: 12px;
	}

	.pt-rf-table td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 9px 0;
		border-bottom: 1px solid var(--line-2, #f1f4f8);
		text-align: right;
	}

	.pt-rf-table tr td:last-child {
		border-bottom: 0;
	}

	.pt-rf-table td::before {
		content: attr(data-th);
		flex: 0 0 auto;
		font-size: 11px;
		letter-spacing: 0.07em;
		text-transform: uppercase;
		color: var(--ink-3, #7a8699);
		font-weight: 600;
		text-align: left;
	}

	.pt-rf-no,
	.pt-rf-date {
		display: inline;
	}

	.pt-rf-date {
		margin-left: 8px;
	}
}
/* ------------------------------------------------- not a partner (yet) */

.pt-rf-invite-lead {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 700;
	color: var(--ink, #0f1b2d);
}

.pt-rf-invite p {
	margin: 0 0 14px;
}

.pt-rf-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 22px;
	border-radius: 10px;
	background: var(--accent, #1668d6);
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background .18s cubic-bezier(.4, 0, .2, 1);
}

.pt-rf-cta:hover,
.pt-rf-cta:focus-visible {
	background: var(--accent-ink, #0f4fa8);
	color: #fff !important;
}

.pt-rf-invite .pt-rf-terms {
	margin-top: 16px;
}