/*
 * Layout-only base styles. Colors/typography/spacing are intentionally
 * left to the Elementor style controls (see AbstractWidget) — this file
 * only supplies the structure those controls attach to, so the widgets
 * degrade sensibly outside Elementor (shortcode/Gutenberg/plain theme).
 */

.fs-widget {
	display: block;
	max-width: 640px;
}

.fs-form p {
	display: flex;
	flex-direction: column;
	gap: 0.35em;
	margin: 0 0 1em;
}

.fs-field {
	width: 100%;
	box-sizing: border-box;
}

.fs-button {
	cursor: pointer;
	border: none;
	display: inline-block;
}

.fs-button:disabled {
	opacity: 0.6;
	cursor: progress;
}

.fs-result-card {
	margin-top: 1.5em;
}

.fs-result-card[hidden] {
	display: none;
}

.fs-figures {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.4em 1em;
	margin: 0 0 1em;
}

.fs-figures dt {
	font-weight: 500;
	opacity: 0.75;
}

.fs-figures dd {
	margin: 0;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.fs-disclosure {
	font-size: 0.85em;
	opacity: 0.7;
	margin: 0 0 0.5em;
}

.fs-notes {
	font-size: 0.85em;
	opacity: 0.85;
	margin: 0;
	padding-left: 1.2em;
}

.fs-error {
	color: #d63637;
	font-weight: 500;
}

@media (max-width: 480px) {
	.fs-figures {
		grid-template-columns: 1fr;
	}

	.fs-figures dd {
		text-align: left;
		margin-bottom: 0.5em;
	}
}
