@import "@wordpress/base-styles/breakpoints";
@import "@wordpress/base-styles/mixins";
@import "@automattic/onboarding/styles/mixins";

.import-or-migrate {
	@include onboarding-block-margin;
	max-width: 502px;

	@media ( min-width: $break-mobile ) {
		margin-left: auto;
		margin-right: auto;
	}

	@media ( max-width: $break-small ) {
		.formatted-header__title {
			padding: 0;
		}

		.formatted-header__subtitle {
			padding: 0;
		}
	}

	.onboarding-title {
		font-size: 2.75rem;
		text-align: center;
	}

	.onboarding-subtitle {
		color: var(--studio-gray-50, #646970);
		font-size: 1rem;
		letter-spacing: -0.32px;
		line-height: 1.5;
		text-align: center;
	}

	.import-or-migrate__list {
		padding-bottom: 108px;
		display: flex;
		flex-direction: column;

		@include break-mobile {
			margin-left: 1em;
			margin-right: 1em;
			padding-bottom: revert;
		}

		.flow-question {
			max-width: none;
			margin: 0 0 18px;
			&__heading {
				flex-wrap: wrap-reverse;
				min-width: min-content;
				white-space: nowrap;
			}
		}
	}

	.import-or-migrate__name {
		color: var(--studio-gray-100);
		font-size: 1.25rem;
		font-weight: 500;
		margin-right: 8px;
	}

	#how-to-migrate-header .formatted-header__subtitle {
		text-align: center;
	}

	.import-or-migrate__description {
		color: var(--studio-gray-60);
	}
}

.import-or-migrate-v2 {
	.import-or-migrate__list {
		display: flex;
		flex-direction: column;

		.flow-question {
			max-width: none;
			margin: 0 0 18px;
		}
	}
}
