/*
 * 0.27.0: the editor of the Appearance screen on a public page (the online
 * tool of magnetic-stars.com). The styles of the editor come from
 * admin/assets/admin.css; here, what the administration of WordPress
 * usually gives (descriptions, form tables, sizes of the fields, hidden
 * labels) and the layout of the page, inside .mgst-ap-tool only.
 */

.mgst-ap-tool {
	--mgst-tool-text: #1d2327;
	--mgst-tool-muted: #50575e;
	--mgst-tool-line: #c3c4c7;
	--mgst-tool-bg: #ffffff;
	box-sizing: border-box;
	color: var(--mgst-tool-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 auto;
	max-width: 1400px;
	width: 100%;
}

.mgst-ap-tool *,
.mgst-ap-tool *::before,
.mgst-ap-tool *::after {
	box-sizing: border-box;
}

.mgst-ap-tool .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.mgst-ap-tool .mgst-card {
	background: var(--mgst-tool-bg);
	border: 1px solid var(--mgst-tool-line);
	border-radius: 8px;
	padding: 20px;
}

.mgst-ap-tool h3 {
	font-size: 1.3em;
	margin: 0 0 8px;
}

.mgst-ap-tool h4 {
	font-size: 1.05em;
	margin: 18px 0 8px;
}

.mgst-ap-tool p {
	margin: 0 0 10px;
}

.mgst-ap-tool .description {
	color: var(--mgst-tool-muted);
	font-size: 13px;
}

.mgst-ap-tool .form-table {
	border-collapse: collapse;
	margin: 0 0 12px;
	width: 100%;
}

.mgst-ap-tool .form-table th,
.mgst-ap-tool .form-table td {
	padding: 8px 10px 8px 0;
	text-align: left;
	vertical-align: middle;
}

.mgst-ap-tool .form-table th {
	font-weight: 600;
	width: 38%;
}

.mgst-ap-tool input[type="text"],
.mgst-ap-tool input[type="number"],
.mgst-ap-tool input[type="url"],
.mgst-ap-tool select,
.mgst-ap-tool textarea {
	background: #fff;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	color: var(--mgst-tool-text);
	font: inherit;
	font-size: 14px;
	line-height: 2;
	min-height: 32px;
	padding: 0 8px;
}

.mgst-ap-tool textarea {
	line-height: 1.5;
	padding: 6px 8px;
}

.mgst-ap-tool .small-text {
	width: 70px;
}

.mgst-ap-tool .regular-text {
	max-width: 100%;
	width: 25em;
}

.mgst-ap-tool .large-text {
	width: 100%;
}

.mgst-ap-tool textarea[disabled] {
	background: #f6f7f7;
	cursor: not-allowed;
}

.mgst-ap-tool .button {
	min-height: 44px;
}

.mgst-ap-tool .button-small,
.mgst-ap-tool .mgst-ap__seg .button {
	min-height: 36px;
}

.mgst-ap-tool fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

/* The CSS tab: greyed, PRO (answer 7 A of Vincent). */
.mgst-ap-tool .mgst-ap__tool-pro {
	color: var(--mgst-tool-muted);
}

.mgst-ap__sector label {
	font-weight: 600;
	margin-right: 6px;
}

/* No bar of the administration above the sticky preview. */
.mgst-ap-tool .mgst-ap__preview {
	top: 16px;
}

/* 0.28.0 (answer 2 A of Vincent): the whole width of the screen, the
   preview wider than the settings; the stage of 1 100 pixels made smaller
   when the place is narrower (appearance.js). */
.mgst-ap-tool .mgst-ap__settings {
	flex: 0 1 560px;
	max-width: 600px;
}

.mgst-ap-tool .mgst-ap__preview {
	flex: 1 1 620px;
}

.mgst-ap-tool .mgst-ap__frame.is-scaled {
	min-height: 0;
}

.mgst-ap-tool .mgst-ap__frame.is-scaled .mgst-ap__iframe {
	max-width: none;
	transform-origin: 0 0;
}

/* Phone: the settings one under the other, the preview above them. */
@media screen and (max-width: 782px) {
	.mgst-ap-tool .mgst-card {
		padding: 14px;
	}

	.mgst-ap-tool .mgst-ap__preview {
		order: -1;
		width: 100%;
	}

	.mgst-ap-tool .mgst-ap__settings {
		max-width: 100%;
	}

	.mgst-ap-tool .form-table th,
	.mgst-ap-tool .form-table td {
		display: block;
		padding: 4px 0;
		width: 100%;
	}

	.mgst-ap-tool .regular-text {
		width: 100%;
	}
}
