// .sp-smart-team-pro-tab-panel {
.sp-smart-team-toggle {
	// Brand any residual focus ring instead of WP's default blue.
	--wp-admin-theme-color: #2b5f47;
	--wp-admin-theme-color-darker-10: #234e3a;
	--wp-admin-theme-color-darker-20: #1c3d2d;

	.components-flex {
		flex-direction: row-reverse;
	}

	.components-toggle-control__label {
		margin-bottom: 0px;
		font-size: 13px;
		font-weight: 400;
		// text-transform: capitalize;
		color: #2f2f2f;
	}

	// Core's switch is 32x16 (thumb inset 2px, travel 16px); the design is 36x18,
	// so the wrapper, thumb inset and travel must all scale with the track.
	.components-form-toggle {
		height: 18px;
	}

	.components-form-toggle .components-form-toggle__track {
		width: 36px;
		height: 18px;
		border-radius: 9px;
		background: #bbb;
		border-color: #bbb;
	}

	.components-form-toggle .components-form-toggle__thumb {
		top: 3px;
		left: 3px;
		box-shadow: none;
	}

	.components-form-toggle.is-checked .components-form-toggle__thumb {
		transform: translateX(18px);
	}

	.components-form-toggle.is-checked .components-form-toggle__track {
		background: var(--sp-smart-team-primary-2-600) !important;
		border-color: var(--sp-smart-team-primary-2-600);
	}

	.components-form-toggle.is-checked .components-form-toggle__thumb {
		background: #fff;
		border-color: #fff;
	}

	.components-form-toggle .components-form-toggle__thumb {
		background: #fff;
		border-color: #fff;
	}

	// Remove WP's default accent focus ring/outline on the switch.
	.components-form-toggle__input:focus + .components-form-toggle__track,
	.components-form-toggle.is-focused .components-form-toggle__track {
		box-shadow: none !important;
	}

	.components-form-toggle__input:focus,
	.components-form-toggle__input:focus-visible {
		outline: none !important;
		box-shadow: none !important;
	}

	&.updated-toggle {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 4px;
		border: 1px solid #eee;
		border-radius: 4px;

		.sp-smart-team-toggle-left {
			display: flex;
			align-items: center;

			svg {
				margin: -4px;
			}

			span {
				margin-left: 7px;
				margin-bottom: 0px;
				font-size: 13px;
				font-weight: 400;
				line-height: 20px;
				text-transform: capitalize;
				color: #1e1e1e;
				font-family: Inter, sans-serif;
			}
		}

		.components-base-control .components-base-control__field {
			padding: 0;
		}
	}

	// Pro-locked toggle (Figma: Smart Team / Toggle & Title, node 728:205398):
	// grey label + green "(Pro)" at the same 13/20 regular, an off switch at
	// 60% opacity that can't be clicked, focused or turned on.
	&.is-pro {
		.components-toggle-control__label {
			display: inline-flex;
			align-items: center;
			gap: 4px;
			line-height: 20px;
			color: #757575;
		}

		.sp-smart-team-pro-tag {
			margin-left: 0;
			font-size: 13px;
			font-weight: 400;
			line-height: 20px;
		}

		.components-form-toggle {
			opacity: 0.6;
			pointer-events: none;
			cursor: default;
		}
	}
}

// }

.sp-smart-team-panel-pb {
	padding-bottom: 16px;
}

.sp-smart-team-toggle-flip {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}