.tsffe-intro {
	max-width: 60em;
	font-size: 14px;
}

.tsffe-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: flex-start;
}

.tsffe-form {
	flex: 1 1 460px;
	min-width: 380px;
}

.tsffe-preview-wrap {
	flex: 1 1 420px;
	min-width: 360px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 16px 20px;
	position: sticky;
	top: 40px;
}

.tsffe-step {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 12px 20px 18px;
	margin-bottom: 16px;
}

.tsffe-step legend {
	font-weight: 600;
	font-size: 15px;
	padding: 0 6px;
}

.tsffe-step label {
	display: inline-block;
	font-weight: 600;
	margin-bottom: 4px;
}

.tsffe-step input[type="text"],
.tsffe-step input[type="url"],
.tsffe-step input[type="email"],
.tsffe-step textarea,
.tsffe-step select {
	display: block;
}

.tsffe-question {
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f1;
}

.tsffe-question .tsffe-q-label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.tsffe-question label {
	font-weight: 400;
	margin-right: 16px;
	display: inline-block;
}

.tsffe-confirm-full {
	margin-top: 12px;
	padding: 10px 12px;
	background: #fcf9e8;
	border: 1px solid #dba617;
	border-radius: 4px;
}

.tsffe-confirm-full label {
	font-weight: 400;
}

.tsffe-error {
	display: block;
	color: #d63638;
	font-size: 13px;
	margin-top: 4px;
}

.tsffe-actions {
	margin-top: 8px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.tsffe-publish-result {
	font-weight: 600;
}

.tsffe-preview {
	font-size: 14px;
	line-height: 1.6;
}

.tsffe-preview h2 {
	font-size: 20px;
}

.tsffe-preview h3 {
	font-size: 16px;
	margin-top: 1.2em;
}

.tsffe-preview h4 {
	font-size: 14px;
	margin-bottom: 0.2em;
}

.tsffe-statement .tsffe-disclaimer {
	margin-top: 1.5em;
	padding-top: 1em;
	border-top: 1px solid #dcdcde;
	color: #50575e;
}

/* WP admin's `.button { display: inline-block }` outweighs the browser's
   default `[hidden] { display: none }`, so the step buttons ignored their
   `hidden` attribute (e.g. "Next" still shown on the final step). */
.tsffe-actions .button[hidden] {
	display: none;
}
