.flow-ew-wizard {
	$wizard-gray: #f0f0f1;

	&.components-modal__frame {
		background: $wizard-gray;
		max-width: 560px;
		overflow: hidden;
		padding: 0;
	}

	.components-modal__header {
		background: $wizard-gray;
		border-bottom: 0;
		margin: 0;
		padding: 16px 24px 12px;
	}

	.components-modal__content {
		background: $wizard-gray;
		// Keep WP's top offset so content clears the absolute-positioned header.
		margin: 72px 0 0;
		overflow-x: hidden;
		padding: 0;
	}

	&__body {
		background: $wizard-gray;
		box-sizing: border-box;
		max-width: 100%;
		overflow-x: hidden;
		padding: 4px 24px 20px;
	}

	&__lead {
		color: #50575e;
		margin: 0 0 16px;
	}

	&__progress {
		align-items: center;
		display: flex;
		gap: 6px;
		margin-bottom: 18px;

		&-dot {
			background-color: #dcdcde;
			border-radius: 50%;
			flex-shrink: 0;
			height: 8px;
			width: 8px;

			&.is-current {
				background-color: var( --wp-admin-theme-color, #2271b1 );
				box-shadow: 0 0 0 3px rgba( 34, 113, 177, 0.18 );
			}

			&.is-done {
				background-color: var( --wp-admin-theme-color, #2271b1 );
				opacity: 0.55;
			}
		}

		&-label {
			color: #757575;
			flex-shrink: 0;
			font-size: 12px;
			margin-left: auto;
		}
	}

	&__step {
		min-height: 220px;
		min-width: 0;
	}

	&__step-title {
		font-size: 16px;
		font-weight: 600;
		margin: 0 0 6px;
	}

	&__step-desc {
		color: #50575e;
		font-size: 13px;
		margin: 0 0 14px;
	}

	&__option {
		align-items: flex-start;
		background: $wizard-gray;
		border: 1px solid #dcdcde;
		border-radius: 6px;
		box-sizing: border-box;
		cursor: pointer;
		display: flex;
		gap: 10px;
		margin-bottom: 10px;
		max-width: 100%;
		padding: 12px 14px;
		transition: border-color 0.12s ease, background-color 0.12s ease;

		&:hover {
			border-color: #c3c4c7;
		}

		&.is-selected {
			background-color: #eff2fe;
			border-color: var( --wp-admin-theme-color, #2271b1 );
		}

		input[ type='radio' ] {
			flex-shrink: 0;
			margin: 4px 0 0;

			&:focus {
				box-shadow: none;
				outline: none;
			}
		}

		> div {
			min-width: 0;
		}

		strong {
			display: block;
			font-size: 14px;
			margin-bottom: 2px;
		}

		u {
			text-decoration: underline;
		}
	}

	&__select-all {
		display: inline-block;
		font-size: 12px;
		margin-bottom: 8px;
		text-decoration: none;

		&:hover {
			text-decoration: underline;
		}
	}

	&__check-list {
		display: flex;
		flex-direction: column;
		gap: 6px;
		margin-top: 4px;
		min-width: 0;

		.components-base-control,
		.components-checkbox-control {
			max-width: 100%;
		}

		.components-checkbox-control__input[ type='checkbox' ]:focus {
			box-shadow: none;
			outline: none;
		}

		.components-checkbox-control__label {
			overflow-wrap: anywhere;
		}
	}

	&__check-list--roles {
		.flow-ew-wizard__roles-divider {
			border-top: 1px solid #dcdcde;
			margin: 10px 0 12px;
		}

		.components-checkbox-control__help,
		.components-base-control__help {
			color: #8c8f94;
			margin-left: 0;
			margin-top: 8px;
		}
	}

	&__notice.components-notice {
		margin: 12px 0 0;
	}

	&__actions {
		align-items: center;
		background: #ffffff;
		border-top: 1px solid #dcdcde;
		box-sizing: border-box;
		display: flex;
		gap: 8px;
		justify-content: space-between;
		margin: 0;
		max-width: 100%;
		padding: 16px 24px 20px;
	}

	&__actions-right {
		display: flex;
		flex-shrink: 0;
		gap: 8px;
	}

	&__skip {
		color: #757575;
	}

	&__toast {
		background-color: #1d2327;
		border-radius: 4px;
		bottom: 24px;
		box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.18 );
		color: #ffffff;
		font-size: 13px;
		padding: 12px 16px;
		position: fixed;
		right: 24px;
		z-index: 100000;
	}
}
