.woocommerce-MyAccount-content {
	--theme-color-extra_bg_color: #666;

	table th {
		padding: 5px 10px !important;
		text-align: left;
	}
}

.wcmamtx_upload_div {
	display: none;
}

.invited-members-table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
}

.invited-members-table th,
.invited-members-table td {
	padding: 10px;
	text-align: left;
	border-bottom: 1px solid #ddd;
}

.invited-members-table th {
	background-color: #f5f5f5;
	font-weight: bold;
}

.referral-status {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 0.9em;
}

.status-active {
	background-color: #e8f5e9;
	color: #2e7d32;
}

.status-pending {
	background-color: #fff3e0;
	color: #ef6c00;
}

.membership-sections {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	margin-top: 30px;
}

.membership-profile {
	max-width: 100%;
	margin: 0 auto 5rem;

	label {
		font-weight: bold;
		margin-right: 0.5rem;
	}

	table {
		width: 100%;
	}

	h3:not(:first-of-type) {
		margin-top: 2rem;
	}
}

.membership-info {
	/*padding: 20px;*/
	border-radius: 5px;
	margin-bottom: 30px;
}

.membership-levels {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 15px;
}

.membership-leaderboards {
	margin-bottom: 30px;
}

.ns-leaderboard-summary {
	margin-top: 12px;
}

.ns-leaderboard-summary-title {
	font-weight: 600;
	color: #0c2e57;
	margin-bottom: 12px;
}

.ns-leaderboard-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
}

.ns-leaderboard-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-shadow: 0 6px 14px rgba(12, 46, 87, 0.06);
}

.ns-leaderboard-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.ns-badge-national {
	background: #eaf0ff;
	color: #2f4aa3;
}

.ns-badge-regional {
	background: #e7f6ef;
	color: #1a7f5a;
}

.ns-badge-municipal {
	background: #fff3e0;
	color: #c77610;
}

.ns-leaderboard-position {
	font-size: 24px;
	font-weight: 700;
	color: #0c2e57;
}

.ns-leaderboard-card .button {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.ns-leaderboard-panel {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 16px;
	margin-top: 16px;
	box-shadow: 0 6px 16px rgba(12, 46, 87, 0.05);
}

.ns-leaderboard-panel__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.ns-leaderboard-view {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	background: #f2f4f7;
	border-radius: 999px;
}

.ns-leaderboard-view .button {
	border: none;
	background: transparent;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	color: #475467;
}

.ns-leaderboard-view .button.is-active {
	background: #0c2e57;
	color: #fff;
}

.ns-leaderboard-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}

.ns-leaderboard-table th,
.ns-leaderboard-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #eee;
	text-align: left;
}

.ns-leaderboard-table tr.is-current {
	background: #eef3fb;
	font-weight: 600;
}

.ns-leaderboard-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.ns-leaderboard-item {
	display: grid;
	grid-template-columns: 60px minmax(0, 1fr) 90px;
	gap: 10px;
	align-items: center;
	padding: 10px 12px;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	background: #fff;
}

.ns-leaderboard-item.is-current {
	border-color: #0c2e57;
	background: #eef3fb;
	font-weight: 600;
}

.ns-leaderboard-rank {
	color: #0c2e57;
	font-weight: 600;
}

.ns-leaderboard-points {
	text-align: right;
	font-weight: 600;
	color: #0c2e57;
}

.ns-leaderboard-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.ns-page-btn {
	border: 1px solid #e5e5e5;
	background: #fff;
	color: #475467;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 12px;
	cursor: pointer;
}

.ns-page-btn.is-active {
	background: #0c2e57;
	color: #fff;
	border-color: #0c2e57;
}

.ns-page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.ns-page-ellipsis {
	color: #98a2b3;
	padding: 0 4px;
}

.level,
.levelachieved {
	background: #666;
	padding: 10px;
	border-radius: 5px;
	display: flex;
	flex-direction: column;
	align-items: center;
	opacity: 0.7;
	flex-basis: 6rem;
	font-weight: 400;
	color: #fff;

	.level-name {
		font-weight: 500;
	}

	.points-required {
		font-size: 0.9em;
	}
}

.levelachieved {
	background: #0c2e57;
	color: white;
	opacity: 1;
	font-weight: 600;

	&.current-achieved-level {
		background-color: #28a745;
		color: white;
	}
}

.next-level {
	color: #28a745;
	font-style: italic;
}

.invited-members,
.actions-history {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 5px;

	ul,
	ul > li {
		font-size: 14px;
	}
}

.wprc-copy-link .copy-ref-link-input {
	padding-left: 0 !important;
	font-size: 14px !important;
}

div.invited-members .wprc-copy-link label {
	display: contents;

	.copy-ref-link-input {
		padding-left: 8px !important;
	}
}

.ns-invite-friend {
	margin-top: 12px;
}

.ns-invite-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 24px;
	padding: 24px;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 60%);
}

.ns-invite-hero--single {
	grid-template-columns: 1fr;
}

.ns-invite-kicker {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #667085;
	font-weight: 600;
	margin-bottom: 6px;
}

.ns-invite-hero h2 {
	margin: 4px 0 10px;
	color: #0c2e57;
}

.ns-invite-points {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 14px;
}

.ns-invite-point-card {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 12px 14px;
	min-width: 180px;
	box-shadow: 0 4px 10px rgba(12, 46, 87, 0.06);
}

.ns-invite-point {
	font-size: 20px;
	font-weight: 700;
	color: #0c2e57;
}

.ns-invite-point-label {
	font-size: 13px;
	color: #475467;
	line-height: 1.2;
}

.ns-invite-hero__card {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ns-invite-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 16px;
	box-shadow: 0 6px 18px rgba(12, 46, 87, 0.08);
}

.ns-invite-card__title {
	font-weight: 600;
	color: #0c2e57;
	margin-bottom: 8px;
}

.ns-invite-link {
	margin-top: 6px;
}

.ns-invite-link input,
.ns-invite-link .copy-ref-link-input {
	width: 100%;
	border: 1px solid #d0d5dd;
	background: #f8fafc;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 13px;
}

.ns-invite-link a {
	display: block;
	padding: 10px 12px;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	background: #f8fafc;
	color: #0c2e57;
	text-decoration: none;
	word-break: break-all;
	font-size: 13px;
}

.ns-invite-link a:hover {
	text-decoration: underline;
}

.ns-invite-card__hint {
	margin-top: 10px;
	font-size: 13px;
	color: #667085;
}

.ns-invite-count {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #0c2e57;
	color: #fff;
	border-radius: 10px;
	padding: 10px 14px;
}

.ns-invite-count__label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.8;
}

.ns-invite-count__value {
	font-size: 18px;
	font-weight: 700;
}

.ns-invite-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 24px;
	margin-top: 24px;
	align-items: start;
}

.ns-invite-single .ns-invite-list,
.ns-invite-single .ns-invite-text {
	margin-top: 24px;
}

.ns-invite-text h3 {
	margin-bottom: 12px;
	color: #0c2e57;
}

.ns-invite-steps {
	display: grid;
	gap: 14px;
}

.ns-invite-step {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 12px 14px;
}

.ns-step-number {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #0c2e57;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
}

.ns-step-body h4 {
	margin: 0 0 4px;
	font-size: 15px;
}

.ns-step-body p {
	margin: 0;
	color: #475467;
}

.ns-invite-note {
	margin-top: 16px;
	background: #f8f9fa;
	border-left: 3px solid #0c2e57;
	padding: 10px 12px;
	border-radius: 8px;
	color: #0c2e57;
}

.ns-invite-list {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 16px;
	box-shadow: 0 6px 16px rgba(12, 46, 87, 0.06);
}

.ns-invite-list__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.ns-invite-list__header h3 {
	margin: 0;
	color: #0c2e57;
}

.ns-invite-list__count {
	background: #e9f0fb;
	color: #0c2e57;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
}

.ns-invite-empty {
	color: #667085;
	margin-top: 6px;
}

.ns-invite-friend .invited-members-table {
	margin: 0;
}

.ns-invite-friend .invited-members-table th {
	background-color: #f2f4f7;
}

.ns-invite-friend .referral-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 90px;
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

@media (max-width: 992px) {
	.ns-invite-hero,
	.ns-invite-layout {
		grid-template-columns: 1fr;
	}

	.ns-invite-hero {
		padding: 18px;
	}
}

@media (max-width: 768px) {
	.ns-invite-point-card {
		width: 100%;
	}
}

@media (max-width: 720px) {
	.ns-invite-friend .invited-members-table,
	.ns-invite-friend .invited-members-table thead,
	.ns-invite-friend .invited-members-table tbody,
	.ns-invite-friend .invited-members-table th,
	.ns-invite-friend .invited-members-table td,
	.ns-invite-friend .invited-members-table tr {
		display: block;
		width: 100%;
	}

	.ns-invite-friend .invited-members-table thead {
		display: none;
	}

	.ns-invite-friend .invited-members-table tr {
		border: 1px solid #e5e5e5;
		border-radius: 12px;
		padding: 12px 14px;
		margin-bottom: 12px;
		background: #fff;
		box-shadow: 0 6px 14px rgba(12, 46, 87, 0.06);
	}

	.ns-invite-friend .invited-members-table td {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		padding: 8px 0;
		border-bottom: 1px dashed #e5e5e5;
	}

	.ns-invite-friend .invited-members-table td:last-child {
		border-bottom: 0;
	}

	.ns-invite-friend .invited-members-table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: #0c2e57;
	}
}

/* Account details styling to match registration UX */
.woocommerce-account .ns-account-details {
	margin-top: 24px;
	padding: clamp(18px, 2.2vw, 28px);
	border: 1px solid #e3e7ee;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(12, 46, 87, 0.08);
}

.woocommerce-account .ns-account-details legend {
	padding: 0 6px;
	font-weight: 700;
	color: #0c2e57;
	font-size: 1.1rem;
}

.woocommerce-account .ns-account-details .form-row {
	margin: 0 0 16px;
}

.woocommerce-account .ns-account-details label {
	font-weight: 600;
	color: #0c2e57;
}

.woocommerce-account .ns-account-details label .required {
	color: #e53935;
	margin-left: 4px;
}

.woocommerce-account .ns-account-details input[type="text"],
.woocommerce-account .ns-account-details input[type="email"],
.woocommerce-account .ns-account-details input[type="tel"],
.woocommerce-account .ns-account-details input[type="number"],
.woocommerce-account .ns-account-details input[type="date"],
.woocommerce-account .ns-account-details textarea {
	background: #f9fbfe;
	border: 1px solid #d7dde5;
	border-radius: 10px;
	padding: 11px 12px;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.woocommerce-account .ns-account-details input[type="text"]:focus,
.woocommerce-account .ns-account-details input[type="email"]:focus,
.woocommerce-account .ns-account-details input[type="tel"]:focus,
.woocommerce-account .ns-account-details input[type="number"]:focus,
.woocommerce-account .ns-account-details input[type="date"]:focus,
.woocommerce-account .ns-account-details textarea:focus {
	outline: none;
	background: #fff;
	border-color: #0c2e57;
	box-shadow: 0 0 0 3px rgba(12, 46, 87, 0.15);
}

.woocommerce-account .ns-account-details .form-row input[type="radio"] {
	margin-right: 6px;
}

.woocommerce-account .ns-account-details .form-row-first,
.woocommerce-account .ns-account-details .form-row-last {
	float: none;
	width: calc(50% - 12px);
	display: inline-block;
	vertical-align: top;
}

.woocommerce-account .ns-account-details .form-row-first {
	margin-right: 24px;
}

.woocommerce-account .ns-account-details .form-row-wide {
	width: 100%;
	display: block;
}

@media (max-width: 768px) {
	.woocommerce-account .ns-account-details .form-row-first,
	.woocommerce-account .ns-account-details .form-row-last {
		width: 100%;
		margin-right: 0;
		display: block;
	}
}

/* Debug card resend panel */
.ns-debug-card-panel {
	margin-top: 12px;
	padding: 12px 14px;
	border: 1px dashed #c7d2e7;
	border-radius: 10px;
	background: #f7f9fc;
}

.ns-debug-card-panel label {
	display: block;
	font-weight: 600;
	color: #0c2e57;
	margin-bottom: 6px;
}

.ns-debug-card-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.ns-debug-card-actions input[type="number"] {
	width: 120px;
	padding: 8px 10px;
	border: 1px solid #d7dde5;
	border-radius: 8px;
	background: #fff;
}

.ns-debug-card-status {
	margin-top: 8px;
	font-size: 0.95rem;
	color: #0c2e57;
}

.ns-debug-card-status.is-error {
	color: #b42318;
}

.ns-debug-card-status.is-success {
	color: #10722b;
}

@media (max-width: 520px) {
	.ns-debug-card-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ns-debug-card-actions input[type="number"] {
		width: 100%;
	}
}

/* Membership card preview */
.ns-membership-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.ns-membership-card-preview h3 {
	margin-top: 0;
}

.ns-card-preview-btn {
	width: 100%;
	border: 1px solid #e3e7ee;
	border-radius: 12px;
	padding: 12px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(12, 46, 87, 0.08);
}

.ns-card-preview-btn img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.ns-card-preview-btn span {
	font-size: 12px;
	color: #475467;
}

.ns-card-preview-empty {
	color: #667085;
	font-size: 0.95rem;
}

.ns-card-modal {
	position: fixed;
	inset: 0;
	background: rgba(8, 15, 30, 0.7);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: 20px;
}

.ns-card-modal.is-open {
	display: flex;
}

.ns-card-modal__content {
	background: #fff;
	border-radius: 16px;
	padding: 16px;
	max-width: 900px;
	width: 100%;
	max-height: 90vh;
	position: relative;
	box-shadow: 0 24px 60px rgba(8, 15, 30, 0.25);
}

.ns-card-modal__content img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 10px;
}

.ns-card-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #f4f7fb;
	color: #0c2e57;
	font-size: 22px;
	cursor: pointer;
}

body.ns-card-modal-open {
	overflow: hidden;
}

@media (max-width: 900px) {
	.ns-membership-grid {
		grid-template-columns: 1fr;
	}
}

/* Registration password toggle: keep button visible and aligned near the field */
.ns-registration-form .ns-password-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ns-registration-form .ns-password-wrapper > input[type='password'],
.ns-registration-form .ns-password-wrapper > input[type='text'] {
	flex: 1 1 auto;
	min-width: 0;
}

.ns-registration-form .ns-password-wrapper > .ns-toggle-password {
	position: static !important;
	transform: none !important;
	margin: 0 !important;
	width: auto !important;
	min-width: 76px !important;
	padding: 7px 10px !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	border: 1px solid #0c2e57 !important;
	background: #f0f4f8 !important;
	color: #0c2e57 !important;
	font-size: 12px !important;
	text-transform: none !important;
	visibility: visible !important;
	opacity: 1 !important;
}
