/* "Join the Movement" widget — [wcn_join_widget]
 * Reuses the theme's existing .wcn-form / .wcn-btn / .wcn-card
 * styles and CSS variables (see header.php :root) for everything
 * except the tab switcher, which nothing else in the theme has yet.
 */

.wcn-join-widget {
	max-width: 480px;
	margin: 0 auto;
	background: var(--white);
	padding: 32px;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	border: 1px solid var(--line);
}

.wcn-join-widget-header {
	text-align: center;
	margin-bottom: 20px;
}

.wcn-join-tabs {
	display: flex;
	background: var(--line);
	padding: 4px;
	border-radius: 8px;
	margin-bottom: 20px;
	gap: 4px;
}

.wcn-join-tab {
	flex: 1;
	padding: 10px;
	border: none;
	background: transparent;
	font-family: inherit;
	font-weight: 700;
	font-size: 13px;
	color: var(--muted);
	border-radius: 6px;
	cursor: pointer;
}

.wcn-join-tab.active {
	background: var(--white);
	color: var(--blue);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wcn-join-panel {
	display: none;
}

.wcn-join-panel.active {
	display: flex;
}

.wcn-join-feedback {
	margin-bottom: 16px;
}

.wcn-join-referral-note {
	text-align: center;
	background: var(--line);
	color: var(--color-text);
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	margin: 16px 0 0;
}

.wcn-join-widget select:disabled {
	background: var(--line);
	cursor: not-allowed;
	opacity: 0.7;
}

.wcn-join-widget-loggedin {
	max-width: 480px;
	margin: 0 auto;
	text-align: center;
}

.wcn-join-loggedin-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 16px;
}
