/**
 * Ambassador Account Area Styles
 */

.ambassador-account {
	/* Appearance settings → WP Global Styles → fallback.
	 * color / background-color are injected by WP via get_block_wrapper_attributes();
	 * all other tokens are derived from currentColor so they automatically adapt. */
	--ambh-accent:        var(--ambh-color-primary, var(--wp--style--color--link, var(--wp--preset--color--primary, #2563eb)));
	--ambh-accent-hover:  var(--ambh-color-primary-hover, var(--wp--preset--color--primary, #1d4ed8));
	--ambh-border:        color-mix(in srgb, currentColor 15%, transparent);
	--ambh-border-hover:  color-mix(in srgb, currentColor 28%, transparent);
	--ambh-surface:       color-mix(in srgb, currentColor  4%, transparent);
	--ambh-surface-hover: color-mix(in srgb, currentColor  7%, transparent);
	--ambh-muted:         color-mix(in srgb, currentColor 55%, transparent);
	font-family: inherit;
}

/* Navigation */
.ambassador-account__navigation {
	margin-bottom: 2rem;
	border-bottom: 2px solid var(--ambh-border);
}

.ambassador-account__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0;
}

.ambassador-account__nav-item {
	margin: 0;
}

.ambassador-account__nav-link {
	display: block;
	padding: 1rem 1.5rem;
	color: var(--ambh-muted);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: all 0.2s;
}

.ambassador-account__nav-link:hover {
	color: inherit;
	border-bottom-color: var(--ambh-border);
}

.ambassador-account__nav-item.is-active .ambassador-account__nav-link {
	color: var(--ambh-accent);
	border-bottom-color: var(--ambh-accent);
	font-weight: 600;
}

/* Content */
.ambassador-account__content {
	background: inherit;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.ambassador-account__content h2 {
	margin-top: 0;
	margin-bottom: 1.5rem;
	font-size: var(--ambh-font-lg, 1.5rem);
	font-weight: 600;
	color: inherit;
}

.ambassador-account__dashboard-section {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--ambh-border);
}

.ambassador-account__dashboard-section-header {
	margin-bottom: 1.25rem;
}

.ambassador-account__dashboard-section-header h3 {
	margin: 0;
	font-size: var(--ambh-font-md, 1.25rem);
	font-weight: 600;
	color: inherit;
}

.ambassador-account__dashboard-section-header p {
	margin: 0.35rem 0 0;
	color: var(--ambh-muted);
}

.ambassador-account__dashboard-empty-state {
	padding: 1.25rem;
	border: 1px dashed var(--ambh-border);
	border-radius: 8px;
	background: var(--ambh-surface);
}

.ambassador-account__dashboard-empty-state p {
	margin: 0;
	color: inherit;
}

/* ── Fundraiser grid ───────────────────────────────────────────────────── */

.ambassador-account__fundraiser-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 640px) {
	.ambassador-account__fundraiser-list {
		grid-template-columns: 1fr;
	}
}

/* ── Card ──────────────────────────────────────────────────────────────── */

.ambassador-account__fundraiser-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--ambh-border);
	border-radius: 6px;
	background: inherit;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
	position: relative;
}

.ambassador-account__fundraiser-card[hidden] {
	display: none;
}

.ambassador-account__fundraiser-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
	z-index: 1;
}

.ambassador-account__fundraiser-card.has-open-menu {
	z-index: 2;
}

/* ── Add new fundraiser button (mirrors .ambh-cff-create-root-btn) ───────── */

.ambh-cff-create-root-wrap {
	margin-top: 12px;
	text-align: center;
}

.ambh-cff-create-root-btn {
	display: inline-block;
	padding: 10px 20px;
	background: transparent;
	color: var(--ambh-accent);
	border: 1px dashed var(--ambh-border-hover);
	border-radius: var(--ambh-radius);
	font-size: 0.9375em;
	font-family: inherit;
	cursor: pointer;
	line-height: 1.4;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ambh-cff-create-root-btn:hover,
.ambh-cff-create-root-btn:focus-visible {
	background: var(--ambh-surface);
	border-color: var(--ambh-accent);
	outline: none;
}

/* ── Card image ─────────────────────────────────────────────────────────── */

.ambassador-account__fundraiser-card-image img,
.ambassador-account__fundraiser-card-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 6px 6px 0 0;
}

.ambassador-account__fundraiser-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ambh-surface);
	color: var(--ambh-muted);
}

.ambassador-account__fundraiser-card-placeholder svg {
	width: 3rem;
	height: 3rem;
}

/* ── Ended / closed fundraiser ──────────────────────────────────────────── */

.ambassador-account__fundraiser-card--ended .ambassador-account__fundraiser-card-image {
	background: #9ca3af;
	border-radius: 6px 6px 0 0;
}

.ambassador-account__fundraiser-card--ended .ambassador-account__fundraiser-card-image img,
.ambassador-account__fundraiser-card--ended .ambassador-account__fundraiser-card-placeholder {
	opacity: 0.5;
}

.ambassador-account__fundraiser-card--ended:hover {
	box-shadow: none;
	transform: none;
}

/* ── Card body ──────────────────────────────────────────────────────────── */

.ambassador-account__fundraiser-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1rem;
	gap: 0.5rem;
}

.ambassador-account__fundraiser-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
}

.ambassador-account__fundraiser-title {
	margin: 0;
	font-size: var(--ambh-font-sm, 0.875rem);
	font-weight: 600;
	line-height: 1.4;
}

.ambassador-account__fundraiser-title a {
	color: inherit;
	text-decoration: none;
}

.ambassador-account__fundraiser-title a:hover {
	color: var(--ambh-accent);
}

/* ── Status badge ───────────────────────────────────────────────────────── */

.ambassador-account__fundraiser-status {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	font-size: var(--ambh-font-xs, 0.75rem);
	font-weight: 600;
	background: #e5e7eb;
	color: #374151;
}

.ambassador-account__fundraiser-status--publish {
	background: #dcfce7;
	color: #166534;
}

.ambassador-account__fundraiser-status--draft {
	background: #e5e7eb;
	color: #374151;
}

.ambassador-account__fundraiser-status--pending,
.ambassador-account__fundraiser-status--pending_verification {
	background: #fef3c7;
	color: #92400e;
}

/* ── Stats row ──────────────────────────────────────────────────────────── */

.ambassador-account__fundraiser-stats {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.5rem;
	font-size: var(--ambh-font-sm, 0.875rem);
}

.ambassador-account__fundraiser-raised {
	font-weight: 600;
	color: inherit;
}

.ambassador-account__fundraiser-target {
	color: var(--ambh-muted);
}

.ambassador-account__fundraiser-days {
	margin-left: auto;
	font-size: var(--ambh-font-xs, 0.75rem);
	color: var(--ambh-muted);
}

.ambassador-account__fundraiser-days--ended {
	color: #6b7280;
}

/* ── Progress bar ───────────────────────────────────────────────────────── */

.ambassador-account__fundraiser-progress {
	height: 6px;
	border-radius: 3px;
	background: var(--ambh-border);
	overflow: hidden;
}

.ambassador-account__fundraiser-progress-fill {
	height: 100%;
	border-radius: 3px;
	background: var(--ambh-color-progress, #00a32a);
	transition: width 0.3s ease;
	min-width: 2px;
}

/* ── Action buttons ─────────────────────────────────────────────────────── */

.ambassador-account__fundraiser-actions {
	display: flex;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.5rem;
}

.ambassador-account__fundraiser-action-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	border: 1px solid var(--ambh-border);
	background: inherit;
	color: inherit;
	font-size: var(--ambh-font-xs, 0.75rem);
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.ambassador-account__fundraiser-action-link:hover {
	border-color: var(--ambh-border-hover);
	background: var(--ambh-surface-hover);
	color: inherit;
	text-decoration: none;
}

.ambassador-account__fundraiser-action-link--primary {
	border-color: var(--ambh-accent);
	background: var(--ambh-accent);
	color: #fff;
}

.ambassador-account__fundraiser-action-link--primary:hover {
	border-color: var(--ambh-accent-hover);
	background: var(--ambh-accent-hover);
	color: #fff;
}

/* Forms */
.ambassador-account__profile-form {
	max-width: 600px;
}

.ambassador-account__form-group {
	margin-bottom: 1.5rem;
}

.ambassador-account__form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: inherit;
}

.ambassador-account__input {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--ambh-border);
	border-radius: 4px;
	font-size: var(--ambh-font-base, 1rem);
	font-family: inherit;
	color: inherit;
	background-color: transparent;
	box-sizing: border-box;
	transition: border-color 0.2s;
}

.ambassador-account__input--readonly {
	background: var(--ambh-surface);
	border-style: dashed;
	color: var(--ambh-muted);
	cursor: not-allowed;
	user-select: text;
}

.ambassador-account__input--readonly::after {
	content: '';
}

.ambassador-account__input:focus {
	outline: none;
	border-color: var(--ambh-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ambh-accent) 15%, transparent);
}

.ambassador-account__form-actions {
	margin-top: 2rem;
}

.ambassador-account__section-heading {
	margin: 0 0 1.25rem;
	font-size: var(--ambh-font-md, 1.125rem);
	font-weight: 600;
}

.ambassador-account__form-row {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 1rem;
	align-items: start;
}

@media (max-width: 480px) {
	.ambassador-account__form-row {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

/* Profile Picture Section */
.ambassador-account__profile-picture-section {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
}

.ambassador-account__profile-picture-section h3 {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: var(--ambh-font-md, 1.25rem);
	font-weight: 600;
	color: inherit;
}

.ambassador-account__profile-picture-container {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
}

.ambassador-account__profile-picture-preview {
	flex-shrink: 0;
}

.ambh-profile-picture {
	display: block;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--ambh-border);
}

.ambh-profile-picture-default {
	border-radius: 50%;
}

.ambassador-account__profile-picture-actions {
	flex: 1;
}

.ambassador-account__profile-picture-upload {
	margin-top: 1rem;
}

.ambassador-account__file-input-wrapper {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.ambassador-account__file-label {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: var(--ambh-surface);
	color: inherit;
	border: 1px solid var(--ambh-border);
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.2s;
}

.ambassador-account__file-label:hover {
	background: var(--ambh-surface-hover);
	border-color: var(--ambh-border-hover);
}

.ambassador-account__file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

.ambassador-account__file-name {
	color: var(--ambh-muted);
	font-size: 0.875rem;
}

.ambassador-account__help-text {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	color: var(--ambh-muted);
}

.ambassador-account__divider {
	margin: 2rem 0;
	border: none;
	border-top: 1px solid var(--ambh-border);
}

/* Profile Picture in Admin */
.ambh-profile-picture-admin {
	margin-top: 1rem;
}

.ambh-profile-picture-admin .ambh-profile-picture {
	margin-bottom: 1rem;
}

.ambassador-account__button {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
}

.ambassador-account__button--primary {
	background: var(--ambh-accent);
	color: #fff;
}

.ambassador-account__button--primary:hover {
	background: var(--ambh-accent-hover);
}

/* Notices */
.ambassador-account-notice {
	padding: 1rem 1.5rem;
	border-radius: 4px;
	margin-bottom: 1.5rem;
	background: var(--ambh-surface);
	border-left: 4px solid var(--ambh-border-hover);
}

.ambassador-account-notice p {
	margin: 0;
	color: inherit;
}

.ambassador-account__notice--success {
	background: #ecfdf5;
	border-left-color: #10b981;
}

.ambassador-account__notice--success p {
	color: #065f46;
}

@media (max-width: 782px) {
	.ambassador-account__content {
		padding: 1.5rem;
	}

	.ambassador-account__fundraiser-actions {
		padding-top: 0.25rem;
	}

	.ambassador-account__fundraiser-action-link {
		flex: 1 1 0;
		justify-content: center;
	}
	
	.ambassador-account__nav-list {
		flex-wrap: wrap;
	}

	.ambassador-account__profile-picture-container {
		flex-direction: column;
		gap: 1rem;
	}

	.ambassador-account__file-input-wrapper {
		flex-direction: column;
		align-items: flex-start;
	}
}

.ambassador-account-notice--error {
	background: #fef2f2;
	border-left-color: #ef4444;
}

.ambassador-account-notice--error p {
	color: #991b1b;
}

/* ── Dashboard inline notices ───────────────────────────────────────────── */

.ambassador-account__notice {
	padding: 1.25rem 1.5rem;
	border-left: 4px solid var(--ambh-border-hover);
	border-radius: 4px;
	background: var(--ambh-surface);
	margin-bottom: 1.5rem;
}

.ambassador-account__notice p {
	margin: 0 0 0.5rem;
	color: inherit;
}

.ambassador-account__notice p:last-child {
	margin-bottom: 0;
}

.ambassador-account__notice-title {
	font-weight: 600;
}

.ambassador-account__notice--warning {
	background: #fffbeb;
	border-left-color: #f59e0b;
}

.ambassador-account__notice--warning p {
	color: #78350f;
}

.ambassador-account__notice--success {
	background: #ecfdf5;
	border-left-color: #10b981;
}

.ambassador-account__notice--success p {
	color: #065f46;
}

.ambassador-account__notice-feedback--success {
	color: #065f46 !important;
	font-weight: 500;
}

.ambassador-account__notice-feedback--error {
	color: #991b1b !important;
	font-weight: 500;
}

.ambassador-account__notice-form {
	margin-top: 1rem;
}

.ambassador-account__button--secondary {
	background: transparent;
	color: #78350f;
	border: 1px solid currentColor;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	font-size: var(--ambh-font-sm, 0.875rem);
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.ambassador-account__button--secondary:hover {
	background: rgba(245, 158, 11, 0.1);
}

/* ── Create fundraiser footer ────────────────────────────────────────────── */

.ambassador-account__dashboard-create-action {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ambh-border);
}


/* ── Fundraiser type tabs ────────────────────────────────────────────────── */

.ambassador-account__fundraiser-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-bottom: 1.25rem;
}

.ambassador-account__fundraiser-tab {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 1rem;
	border: 1.5px solid var(--ambh-border);
	border-radius: 999px;
	background: transparent;
	color: var(--ambh-muted);
	font-size: var(--ambh-font-sm, 0.875rem);
	font-family: inherit;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ambassador-account__fundraiser-tab:hover {
	border-color: var(--ambh-border-hover);
	background: var(--ambh-surface);
	color: inherit;
}

.ambassador-account__fundraiser-tab--active {
	background: var(--ambh-accent);
	border-color: var(--ambh-accent);
	color: #fff;
}

.ambassador-account__fundraiser-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.2rem;
	height: 1.2rem;
	padding: 0 0.3rem;
	border-radius: 999px;
	background: var(--ambh-border);
	font-size: 0.7rem;
	font-weight: 600;
	line-height: 1;
}

.ambassador-account__fundraiser-tab--active .ambassador-account__fundraiser-tab-count {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
}

.ambassador-account__fundraiser-tab-empty {
	margin: 1.5rem 0 0;
	text-align: center;
	color: var(--ambh-muted);
	font-size: var(--ambh-font-sm, 0.875rem);
}

/* ── Fundraiser type badge ───────────────────────────────────────────────── */

.ambassador-account__fundraiser-card-meta {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-shrink: 0;
}

.ambassador-account__fundraiser-type {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	font-size: var(--ambh-font-xs, 0.75rem);
	font-weight: 600;
	background: #e5e7eb;
	color: #374151;
}

.ambassador-account__fundraiser-type--group {
	background: #ede9fe;
	color: #5b21b6;
}

.ambassador-account__fundraiser-type--personal {
	background: #d1fae5;
	color: #065f46;
}

.ambassador-account__fundraiser-type--fundraiser {
	background: #dbeafe;
	color: #1e40af;
}

/* ── Breadcrumb (personal page parent label) ────────────────────────────── */

.ambassador-account__fundraiser-breadcrumb {
	font-size: var(--ambh-font-xs, 0.75rem);
	color: var(--ambh-muted);
	margin-bottom: 0.25rem;
}

.ambassador-account__fundraiser-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.ambassador-account__fundraiser-breadcrumb a:hover {
	color: var(--ambh-accent);
	text-decoration: underline;
}

/* ── Three-dots action menu ─────────────────────────────────────────────── */

.ambassador-account__fundraiser-menu {
	position: relative;
}

.ambassador-account__fundraiser-menu-trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border: 1px solid var(--ambh-border);
	border-radius: 4px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	padding: 0;
	transition: border-color 0.15s, background 0.15s;
	flex-shrink: 0;
}

.ambassador-account__fundraiser-menu-trigger:hover,
.ambassador-account__fundraiser-menu-trigger[aria-expanded="true"] {
	border-color: var(--ambh-border-hover);
	background: var(--ambh-surface-hover);
}

.ambassador-account__fundraiser-menu-trigger svg {
	width: 1rem;
	height: 1rem;
	pointer-events: none;
}

.ambassador-account__fundraiser-menu-dropdown {
	position: absolute;
	right: 0;
	top: calc(100% + 4px);
	min-width: 180px;
	background: Canvas;
	color: CanvasText;
	border: 1px solid var(--ambh-border);
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	z-index: 200;
	overflow: hidden;
}

.ambassador-account__fundraiser-menu-dropdown[hidden] {
	display: none;
}

.ambassador-account__fundraiser-menu-item {
	display: block;
	width: 100%;
	padding: 0.55rem 0.9rem;
	text-align: left;
	border: none;
	background: none;
	color: inherit;
	font-size: var(--ambh-font-sm, 0.875rem);
	font-family: inherit;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.1s;
	white-space: nowrap;
}

.ambassador-account__fundraiser-menu-item:hover {
	background: var(--ambh-surface-hover);
	text-decoration: none;
	color: inherit;
}

.ambassador-account__fundraiser-menu-item--danger {
	color: #dc2626;
}

.ambassador-account__fundraiser-menu-item--danger:hover {
	background: #fef2f2;
	color: #b91c1c;
}

/* ── Group member list ──────────────────────────────────────────────────── */

.ambassador-account__fundraiser-members {
	margin-top: 0.75rem;
	border-top: 1px solid var(--ambh-border);
	padding-top: 0.75rem;
}

.ambassador-account__fundraiser-members-title {
	margin: 0 0 0.4rem;
	font-size: var(--ambh-font-xs, 0.75rem);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ambh-muted);
}

.ambassador-account__fundraiser-members-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.ambassador-account__fundraiser-member-item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0;
	border-top: 1px solid var(--ambh-border);
}

.ambassador-account__fundraiser-member-item:first-child {
	border-top: none;
	padding-top: 0;
}

.ambassador-account__fundraiser-member-name {
	font-size: var(--ambh-font-sm, 0.875rem);
	flex-shrink: 1;
	max-width: 40%;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ambassador-account__fundraiser-member-name a {
	color: inherit;
	text-decoration: none;
}

.ambassador-account__fundraiser-member-name a:hover {
	color: var(--ambh-accent);
}

.ambassador-account__fundraiser-member-bar {
	flex: 1;
	height: 4px;
	border-radius: 2px;
	background: var(--ambh-border);
	overflow: hidden;
}

.ambassador-account__fundraiser-member-bar-fill {
	height: 100%;
	border-radius: 2px;
	background: var(--ambh-color-progress, #00a32a);
	min-width: 2px;
	transition: width 0.3s ease;
}

.ambassador-account__fundraiser-member-amount {
	font-size: var(--ambh-font-xs, 0.75rem);
	color: var(--ambh-muted);
	white-space: nowrap;
	font-weight: 500;
	flex-shrink: 0;
	margin-left: auto;
}

.ambassador-account__fundraiser-members-empty {
	margin: 0;
	font-size: var(--ambh-font-xs, 0.75rem);
	color: var(--ambh-muted);
}

.ambassador-account__fundraiser-member-item--inactive {
	opacity: 0.5;
}

.ambassador-account__fundraiser-member-item--inactive .ambassador-account__fundraiser-member-bar-fill {
	background: var(--ambh-muted);
}

.ambassador-account__fundraiser-member-badge {
	display: inline-block;
	font-size: 0.65rem;
	font-weight: 600;
	line-height: 1;
	padding: 0.2em 0.45em;
	border-radius: 3px;
	vertical-align: middle;
	margin-left: 0.35em;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.ambassador-account__fundraiser-member-badge--inactive {
	background: var(--ambh-border);
	color: var(--ambh-muted);
}

/* ── Invite member inline panel ─────────────────────────────────────────── */

.ambh-invite-form {
	grid-column: 1 / -1;
	border: 1.5px solid var(--ambh-accent);
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	background: color-mix(in srgb, var(--ambh-accent) 5%, Canvas);
	animation: ambh-invite-fadein 0.15s ease;
}

.ambh-invite-form[hidden] {
	display: none;
}

@keyframes ambh-invite-fadein {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}

.ambh-invite-form__title {
	margin: 0 0 0.9rem;
	font-size: var(--ambh-font-sm, 0.875rem);
	font-weight: 600;
	color: inherit;
}

.ambh-invite-form__feedback {
	margin: 0 0 0.9rem;
	padding: 0.55rem 0.9rem;
	border-radius: 4px;
	font-size: var(--ambh-font-sm, 0.875rem);
	font-weight: 500;
}

.ambh-invite-form__feedback--success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.ambh-invite-form__feedback--error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.ambh-invite-form__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: flex-end;
	margin: 0;
}

.ambh-invite-form__form > p {
	margin: 0;
	flex: 1 1 180px;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.ambh-invite-form__form label {
	font-size: var(--ambh-font-sm, 0.875rem);
	font-weight: 500;
	color: inherit;
}

.ambh-invite-form__form .required-indicator {
	color: #dc2626;
}

.ambh-invite-form__form input[type="text"],
.ambh-invite-form__form input[type="email"] {
	width: 100%;
	padding: 0.45rem 0.7rem;
	border: 1px solid var(--ambh-border);
	border-radius: 4px;
	font-size: var(--ambh-font-sm, 0.875rem);
	font-family: inherit;
	color: inherit;
	background: Canvas;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.ambh-invite-form__form input[type="text"]:focus,
.ambh-invite-form__form input[type="email"]:focus {
	outline: none;
	border-color: var(--ambh-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ambh-accent) 15%, transparent);
}

.ambh-invite-form__actions {
	display: flex;
	gap: 0.5rem;
	flex-shrink: 0;
	align-items: flex-end;
}

.ambh-invite-form__submit {
	padding: 0.45rem 1rem;
	background: var(--ambh-accent);
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: var(--ambh-font-sm, 0.875rem);
	font-family: inherit;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s;
}

.ambh-invite-form__submit:hover {
	background: var(--ambh-accent-hover);
}

.ambh-invite-form__cancel {
	padding: 0.45rem 1rem;
	background: transparent;
	color: var(--ambh-muted);
	border: 1px solid var(--ambh-border);
	border-radius: 4px;
	font-size: var(--ambh-font-sm, 0.875rem);
	font-family: inherit;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ambh-invite-form__cancel:hover {
	background: var(--ambh-surface-hover);
	border-color: var(--ambh-border-hover);
	color: inherit;
}

/* Responsive */
@media (max-width: 768px) {
	.ambassador-account {
		padding: 1rem 0.5rem;
	}

	.ambassador-account__nav-list {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.ambassador-account__nav-link {
		padding: 0.75rem 1rem;
		white-space: nowrap;
	}

	.ambassador-account__content {
		padding: 1.5rem 1rem;
	}
}
