/* Dependent Post Select as radio buttons / checkboxes. */
.jfb-pfa-choices {
	display: flex;
	flex-direction: column;
	gap: var(--jfb-pfa-gap, 0.5em);
}

.jfb-pfa-choices--horizontal {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
}

.jfb-pfa-choices > .jet-form-builder__field-wrap {
	margin: 0;
}

/* Space between the radio button / checkbox and its text. */
.jfb-pfa-choices .jet-form-builder__field-label {
	display: inline-flex;
	align-items: center;
	gap: var(--jfb-pfa-label-gap, 0.4em);
}

.jfb-pfa-choices .jet-form-builder__field-label > input {
	margin: 0;
}

.jfb-pfa-choices__message:empty {
	display: none;
}

.jfb-pfa-is-loading {
	opacity: 0.6;
	transition: opacity 0.15s ease;
}

.jfb-pfa-post-content__thumbnail img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-bottom: 1em;
}

.jfb-pfa-post-content__title {
	margin: 0 0 0.5em;
}

/* Theme styles such as `h3 { display: block }` must not reveal a hidden empty field. */
.jfb-pfa-post-field[hidden] {
	display: none !important;
}

/* Visually hidden, still read by screen readers. */
.jfb-pfa-screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.jfb-pfa-post-field__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.jfb-pfa-post-content__empty {
	opacity: 0.7;
	font-style: italic;
}
