/*
 * Team-context banner shown for a team player ("Designing for {team} as
 * {player}" -> compact pill design, spec 3). Self-contained (own custom
 * properties) so it renders consistently wherever it's placed, without
 * depending on the surrounding page's styles or on nct-teams.css (which
 * isn't loaded on either page that uses this).
 *
 * Base is a plain left-aligned inline row, sized to its content - the fit
 * for custom-template.php, where it sits right under the "Back to Shop"
 * link inside the narrow product-head column. preview.php has no
 * equivalent nearby anchor, so it keeps the .nct-team-banner--top modifier:
 * a full-width, centered bar at the top of the page.
 */
.nct-team-banner {
	--nct-banner-accent: #6a4fd6;
	--nct-banner-accent-bg: rgba(124, 92, 250, 0.12);
	--nct-banner-warning: #8a5a00;
	--nct-banner-warning-bg: #fdf3e0;
	--nct-banner-note: #0c72a9;
	--nct-banner-note-bg: rgba(12, 114, 169, 0.08);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 10px 0;
	font-family: inherit;
}

.nct-team-banner--top {
	justify-content: center;
	margin: 0;
	padding: 14px 24px 6px;
	text-align: center;
}

.nct-team-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--nct-banner-accent-bg);
	color: var(--nct-banner-accent);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	padding: 6px 12px;
	border-radius: 999px;
	white-space: nowrap;
}

.nct-team-pill svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

/*
 * .customize-top-content p (theme style.css) outranks a bare .nct-team-note
 * on custom-template.php, now that the note sits inside that container -
 * scope with the .nct-team-banner ancestor for the extra specificity.
 */
.nct-team-banner .nct-team-note {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--nct-banner-note);
	background: var(--nct-banner-note-bg);
	padding: 6px 12px;
	border-radius: 6px;
}

.nct-team-banner .nct-team-note-warning {
	color: var(--nct-banner-warning);
	background: var(--nct-banner-warning-bg);
}

@media (max-width: 600px) {
	.nct-team-banner--top {
		padding: 12px 16px 6px;
	}
}


/* Preview page, after a team_pays player clicks Submit: hide the product info
   and show the "you've submitted" confirmation in its place. The selectors repeat
   .card-preview-main .card-preview-right so they outrank card-preview.css, which
   restyles every p, span and h1 inside it. */
.card-preview-right.nct-submitted > *:not(.card-preview-buttons) {
	display: none !important;
}

.card-preview-main .card-preview-right .nct-submitted-box {
	max-width: 480px;
	text-align: left;
}

.card-preview-main .card-preview-right .nct-submitted-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}

.card-preview-main .card-preview-right .nct-submitted-check {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #1a8a4a;
	display: flex;
	align-items: center;
	justify-content: center;
}

.card-preview-main .card-preview-right .nct-submitted-check svg {
	width: 24px;
	height: 24px;
}

.card-preview-main .card-preview-right .nct-submitted-title {
	margin: 0;
	font-weight: 900;
	font-size: 26px;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.card-preview-main .card-preview-right .nct-submitted-text {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 24px;
	letter-spacing: 0.3px;
}

.card-preview-main .card-preview-right .nct-submitted-progress {
	margin-bottom: 24px;
}

.card-preview-main .card-preview-right .nct-submitted-progress-head {
	margin-bottom: 4px;
}

.card-preview-main .card-preview-right .nct-submitted-progress-label {
	font-weight: 800;
	font-size: 14px;
	line-height: 20px;
	color: #0b6f99;
	text-transform: uppercase;
}

/* Same bar as the team status page (.nct-progress-bar-track / -fill). */
.card-preview-main .card-preview-right .nct-submitted-track {
	height: 12px;
	border-radius: 999px;
	overflow: hidden;
	background: #eceef0;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06);
}

.card-preview-main .card-preview-right .nct-submitted-fill {
	height: 100%;
	border-radius: 999px;
	background: #7c5cfa;
	width: 0;
	transition: width .3s ease;
}

.card-preview-main .card-preview-right .nct-submitted-progress-count {
	display: block;
	margin-top: 6px;
	font-weight: 800;
	font-size: 14px;
	line-height: 20px;
	color: #000;
}

.card-preview-main .card-preview-right .nct-submitted-step {
	display: flex;
	gap: 14px;
	margin-bottom: 16px;
}

.card-preview-main .card-preview-right .nct-submitted-mark {
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 13px;
	box-sizing: border-box;
}

.card-preview-main .card-preview-right .nct-submitted-mark--done {
	background: #1a8a4a;
	color: #fff;
	font-size: 15px;
}

.card-preview-main .card-preview-right .nct-submitted-mark--next {
	border: 2px solid #7C5CFA;
	color: #7C5CFA;
}

.card-preview-main .card-preview-right .nct-submitted-mark--todo {
	border: 2px solid #bbb;
	color: #888;
}

.card-preview-main .card-preview-right .nct-submitted-step-title {
	font-weight: 800;
	font-size: 14px;
}

.card-preview-main .card-preview-right .nct-submitted-step-note {
	font-size: 14px;
	line-height: 22px;
	color: #555;
}
