.ska__import-export__export-modal {

	@media (min-width: 960px) {
		min-width: 34rem;
	}

	&__loader {
		align-items: center !important;

		& > .components-placeholder__fieldset {
			justify-content: center;
		}
	}

	fieldset {

		legend {
			padding-left: 0;

			h2 {
				margin-top: 0;
			}
		}
	}

	// .components-checkbox-control {

	// 	label {
	// 		cursor: pointer;
	// 	}
	// }

	&__checkbox {

		& > .components-base-control__field {
			margin-bottom: 0;
		}

		& > .components-base-control__help {
			margin-top: 0;
		}

		&__help {
			display: flex;
			flex-direction: row;
			flex-wrap: wrap;
			align-items: baseline;
			gap: 8px;
		}
	}

	&--demo {

		& .exports-list {
			max-height: 50vh;
			overflow-y: scroll;

			& > * {
				min-height: initial;
			}

			h2 {
				margin-top: 0;
			}

			ul {
				list-style-type: disc;
				list-style-position: inside;

				li {
					display: flex;
					flex-direction: row;
					align-items: center;
					gap: 0.25rem;
					margin-top: 0.25rem;
				}
			}
		}
	}
}

.ska__import-export__import-modal {

	h3 {
		margin-top: 0;
		font-size: 14px;
	}

	p {
		margin: 0;
	}

	code {
		justify-self: flex-start;
		border-radius: 2px;
	}

	.ska-components-pre {
		& > pre {
			max-height: 320px;
			overflow: auto;
		}
	}
}

.ska__import-export__auto-importer {

	&__import-button {
		font-size: 1.25rem;
		padding-inline: 2rem;
		padding-block: 1.5rem;
	}

	ul {

		& > li > ul {
			list-style-type: disc;
			list-style-position: inside;
			margin-left: 1rem;
			margin-top: 0.5rem;
			margin-bottom: 1rem;
			font-size: 12px;
			line-height: 1;
		}
	}
}

.ska__import-export__import-demo-modal {

	.components-modal__header + * {
		height: 100%;
	}
}

.ska__import-export__demos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
	column-gap: 1.5rem;
	row-gap: 3rem;
	padding-top: 1rem;
	padding-bottom: 3rem;

	& .ska__import-export__demo {
		border: 1px solid #ddd;
		border-radius: 0.5rem;

		h2 {
			font-size: 1.275rem;
			margin: 0;
			padding: 1rem 1rem;
			text-align: center;
		}

		&__image {
			min-height: max(40rem, 65vh);
			max-height: max(40rem, 65vh);
			overflow: hidden;
			background: #ddd;
			border-block: 1px solid #ddd;

			& > img {
				width: 100%;
			}
		}

		&__actions {
			padding: 1rem 1rem;

			a.is-link {

				&:not(:hover) {
					text-decoration: none;
				}
			}
		}
	}
}

.ska__import-export__demo-import {
	min-height: 100%;

	&__warning {
		margin-bottom: 1rem;

		& > .components-notice__content {
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: space-between;
			gap: 1rem;

			@media (width > 768px) {
				flex-direction: row;
			}

			& p {
				margin-bottom: 0;
			}
		}
	}

	&__content {
		flex-grow: 1;
		display: flex;
		flex-direction: column;
		gap: 1rem;
		margin-bottom: 2rem;

		@media (width > 768px) {
			flex-direction: row;
			justify-content: center;
		}

		&__image {
			max-height: 30rem;
			overflow: hidden;

			@media (width > 768px) {
				flex-basis: 30%;
				width: 100%;
				height: auto;
				max-height: none;
			}

			& > img {
				width: 100%;
				background: #ddd;
				border: 1px solid #ddd;
				border-radius: 2px;
			}
		}

		&__content {

			@media (width > 768px) {
				flex-basis: 70%;
			}

			& > p:first-child {
				margin-top: 0;
			}

			ul {

				& > li > ul {
					list-style-type: disc;
					list-style-position: inside;
					margin-left: 1rem;
					margin-top: 0.5rem;
					margin-bottom: 1rem;
					font-size: 12px;
					line-height: 1;
				}
			}
		}
	}

	&__done {
		flex-grow: 1;
		margin-bottom: 2rem;
	}

	&__footer {
		position: sticky;
		bottom: -2rem;
		background: white;
		margin: -1rem -2rem;
		padding: 1rem 2rem;
		width: calc(100% + 4rem);
		border-top: 1px solid #ddd;

		&__import-button {
			font-size: 1.25rem;
			padding-inline: 2rem !important;
			padding-block: 1.5rem !important;
		}
	}
}
