/* A full member's invitations and the next-step offer of full membership (REQ-683, REQ-685). Loaded on the personal page
   and the last step of joining only. Colours come from the site's tokens, so the dark display keeps its contrast. */
.bnb-invite-panel {
	background: var(--bnb-surface);
	border: 2px solid var(--bnb-gold-bright);
	border-radius: var(--bnb-r-lg);
	box-shadow: 0 0 0 4px var(--bnb-gold-pale);
	margin-block: var(--bnb-space-4);
	padding: var(--bnb-space-4);
}

.bnb-invite-panel h2 {
	color: var(--bnb-heading-ink, var(--bnb-ink));
	font-size: 1.6rem;
	margin: 0 0 var(--bnb-space-2);
}

.bnb-invite-lead {
	font-size: 1.1rem;
	line-height: 1.7;
}

.bnb-invite-panel .bnb-invite-counts {
	display: grid;
	gap: var(--bnb-space-3);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: var(--bnb-space-3) 0;
}

.bnb-invite-panel .bnb-invite-counts div {
	background: var(--bnb-gold-pale);
	border-radius: var(--bnb-r-md, 10px);
	padding: var(--bnb-space-2) var(--bnb-space-3);
	text-align: center;
}

.bnb-invite-panel .bnb-invite-counts dt {
	color: var(--bnb-ink-soft);
	font-size: 0.95rem;
}

.bnb-invite-panel .bnb-invite-counts dd {
	color: var(--bnb-heading-ink, var(--bnb-ink));
	font-size: 2rem;
	font-weight: 700;
	margin: 0;
}

.bnb-invite-ways {
	display: grid;
	gap: var(--bnb-space-4);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bnb-invite-ways h3 {
	margin-block-start: 0;
}

.bnb-invite-mail textarea,
.bnb-invite-mail input {
	max-inline-size: 100%;
}

.bnb-invite-code code {
	background: var(--bnb-surface-2, var(--bnb-surface));
	border: 2px dashed var(--bnb-gold-bright);
	border-radius: var(--bnb-r-md, 10px);
	color: var(--bnb-heading-ink, var(--bnb-ink));
	display: inline-block;
	font-size: 1.15rem;
	font-weight: 700;
	max-inline-size: 100%;
	overflow-wrap: anywhere;
	padding: var(--bnb-space-2) var(--bnb-space-3);
}

.bnb-invite-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bnb-space-2);
}

.bnb-invite-list {
	border-collapse: collapse;
	inline-size: 100%;
}

.bnb-invite-list th,
.bnb-invite-list td {
	border-block-end: 1px solid var(--bnb-line);
	padding: var(--bnb-space-2);
	text-align: start;
}

@media (max-width: 720px) {
	.bnb-invite-ways {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The next-step offer: the gift in front, the struck price beside it, one button. */
.bnb-offer {
	background: var(--bnb-gold-pale);
	border: 2px solid var(--bnb-gold-bright);
	border-radius: var(--bnb-r-lg);
	display: grid;
	gap: var(--bnb-space-2);
	margin-block: var(--bnb-space-3);
	padding: var(--bnb-space-4);
}

.bnb-offer p {
	margin: 0;
}

.bnb-offer-eyebrow {
	color: var(--bnb-gold-ink);
	font-weight: 700;
}

.bnb-offer-lead {
	color: var(--bnb-heading-ink, var(--bnb-ink));
	font-size: 1.25rem;
	line-height: 1.6;
}

.bnb-offer-price {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: var(--bnb-space-2);
}

.bnb-offer-was {
	color: var(--bnb-ink-soft);
	font-size: 1.25rem;
	text-decoration: line-through;
	text-decoration-thickness: 2px;
}

.bnb-offer-now {
	color: var(--bnb-heading-ink, var(--bnb-ink));
	font-size: 2.2rem;
	line-height: 1;
}

.bnb-offer-note {
	color: var(--bnb-ink-soft);
}

.bnb-offer-gets {
	display: grid;
	gap: var(--bnb-space-1);
	list-style: none;
	margin: 0;
	padding: 0;
}

.bnb-offer-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--bnb-space-3);
}

.bnb-offer-button {
	font-size: 1.15rem;
	padding-block: var(--bnb-space-3);
	padding-inline: var(--bnb-space-5, 2rem);
}

.bnb-offer-easy {
	color: var(--bnb-ink-soft);
}

.bnb-offer-ways h3 {
	font-size: 1rem;
	margin: 0 0 var(--bnb-space-1);
}

.bnb-offer-ways ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bnb-space-2) var(--bnb-space-4);
	list-style: none;
	margin: 0;
	padding: 0;
}

/* A code that came with the invitation link: shown as given, not as a field to change. */
.bnb-invited-by {
	background: var(--bnb-gold-pale);
	border: 2px solid var(--bnb-gold-bright);
	border-radius: var(--bnb-r-lg);
	display: grid;
	gap: var(--bnb-space-2);
	margin-block: var(--bnb-space-3);
	padding: var(--bnb-space-3) var(--bnb-space-4);
}

.bnb-invited-by p {
	margin: 0;
}

.bnb-invited-by input[readonly] {
	background: var(--bnb-surface);
	border-style: dashed;
	font-weight: 700;
}

.bnb-invited-banner {
	background: var(--bnb-gold-pale);
	border: 2px solid var(--bnb-gold-bright);
	border-radius: var(--bnb-r-lg);
	color: var(--bnb-heading-ink, var(--bnb-ink));
	font-size: 1.25rem;
	margin-block: var(--bnb-space-3);
	padding: var(--bnb-space-3) var(--bnb-space-4);
}

/* The welcome step's line for a message that is not there yet takes no room. */
.bnb-welcome-count:empty {
	display: none;
}
