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

.how-to-migrate {
	@include onboarding-block-margin;
	max-width: 620px;

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

	@media ( max-width: $break-small ) {
		.step-container__header {
			margin-bottom: 16px;

			.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;
	}

	.how-to-migrate__list {
		text-align: center;

		.flow-question {
			max-width: none;
			width: 100%;
		}
	}

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

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

	.how-to-migrate__description {
		color: var(--studio-gray-60);
	}

	.how-to-migrate__loader {
		display: block;
		margin: 0 auto;
	}
}

.how-to-migrate__experiment-expectations {
	padding: 0 0 60px;

	@include break-large {
		padding: 0;
	}

	.action-buttons__next {
		display: block;
		margin: auto;
		width: 50%;
	}

	.how-to-migrate__process-details {
		margin: 40px auto 0;
		max-width: 350px;

		&-title {
			color: var(--studio-gray-100);
			font-size: 1.25rem;
			font-weight: 500;
			margin-bottom: 0.5rem;
			text-align: center;
		}

		&-list {
			background-color: #f6f7f7;
			font-size: 0.75rem;
			list-style: none;
			margin: 0;
			padding: 2rem;

			&-item {
				display: flex;
				gap: 0.5rem;
				margin-bottom: 1rem;

				&:last-child {
					margin-bottom: 0;
				}
			}
		}

		&-icon {
			background-color: #dcdcde;
			border: 2px solid #dcdcde;
			border-radius: 4px;
			display: flex;
			fill: var(--studio-gray-70);
			flex: 0 0 24px;
			padding: 4px;
		}

		&-description {
			color: var(--studio-black);
			line-height: 1.66666667;
		}
	}
}
