/**
 * NextGen Commerce: B2B pieces on the storefront (loaded only on WooCommerce's
 * pages while the B2B module is on): the invitation to log in where prices are
 * hidden, the business sign-up card, the business section of My Account, the
 * note above the payment methods, the minimum-order progress and the margin
 * card.
 *
 * Self-contained: it inherits the theme's font, colours and buttons. Lines are
 * mixed from currentColor and boxes are framed, not tinted, so text keeps
 * exactly the theme's contrast.
 */

.ngc-b2b-cta,
.ngc-b2b-signup,
.ngc-b2b-note,
.ngc-b2b-minimum,
.ngc-b2b-account,
.ngc-b2b-margin {
	--ngc-b2b-line: color-mix(in srgb, currentcolor 18%, transparent);
	--ngc-b2b-accent: var(--wp--preset--color--primary, currentcolor);
	--ngc-b2b-radius: 8px;
}

/* Invitation to log in (product page, quick views). */

.ngc-b2b-cta {
	margin: 1rem 0;
	padding: 1rem;
	border: 1px solid var(--ngc-b2b-line);
	border-radius: var(--ngc-b2b-radius);
}

.ngc-b2b-cta__text {
	margin: 0 0 0.75rem;
}

.ngc-b2b-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: center;
	margin: 0;
}

/* Business sign-up (My Account's login page). */

.ngc-b2b-signup {
	margin: 2rem 0 0;
	padding: 1.25rem;
	border: 1px solid var(--ngc-b2b-line);
	border-radius: var(--ngc-b2b-radius);
}

.ngc-b2b-signup__title {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
}

.ngc-b2b-signup__text {
	margin: 0 0 1rem;
}

/* Note above the payment methods. */

.ngc-b2b-note {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--ngc-b2b-line);
	border-inline-start: 3px solid var(--ngc-b2b-accent);
	border-radius: var(--ngc-b2b-radius);
}

/* Minimum-order progress (cart, checkout). */

.ngc-b2b-minimum {
	margin: 0 0 1rem;
}

.ngc-b2b-minimum__text {
	margin: 0 0 0.5rem;
}

.ngc-b2b-minimum__bar {
	height: 0.5rem;
	overflow: hidden;
	border: 1px solid var(--ngc-b2b-line);
	border-radius: 999px;
}

.ngc-b2b-minimum__bar > span {
	display: block;
	height: 100%;
	background: var(--ngc-b2b-accent);
}

/* Business section (My Account) and margin card (product page). */

.ngc-b2b-account,
.ngc-b2b-margin {
	display: grid;
	gap: 0.5rem;
	margin: 0 0 1rem;
}

.ngc-b2b-margin {
	margin: 1rem 0;
	padding: 0.75rem 1rem;
	border: 1px solid var(--ngc-b2b-line);
	border-radius: var(--ngc-b2b-radius);
}

.ngc-b2b-account__row,
.ngc-b2b-margin__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	justify-content: space-between;
}

.ngc-b2b-account__row dt,
.ngc-b2b-margin__row dt {
	font-weight: 600;
}

.ngc-b2b-account__row dd,
.ngc-b2b-margin__row dd {
	margin: 0;
}

.ngc-b2b-badge {
	display: inline-block;
	margin-inline-start: 0.5rem;
	padding: 0 0.5rem;
	border: 1px solid currentcolor;
	border-radius: 999px;
	font-size: 0.8125em;
}
