/* Native field grouping and status feedback. Primitive visuals compile from components/ui/. */

.sgui-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.sgui-field > span {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--wp--custom--ui--muted-foreground);
}

textarea.sgui-control {
	resize: vertical;
	min-height: 7rem;
}

/* .sgui-notice */
.sgui-notice { margin: 1rem 0 0; }

.sgui-notice.is-ok {
	background: color-mix(in srgb, var(--wp--custom--status--ok) 12%, #fff);
	color: var(--wp--custom--status--ok-text);
}

.sgui-notice.is-err, .sgui-notice.is-error {
	background: color-mix(in srgb, var(--wp--custom--status--err) 10%, #fff);
	color: var(--wp--custom--status--err-text);
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.sgui-notice.is-err::before, .sgui-notice.is-error::before {
	content: "!";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	border-radius: 999px;
	background: var(--wp--custom--status--err);
	color: #fff;
	font-weight: 600;
	font-size: 0.8rem;
}

.sgui-notice[hidden] {
	display: none;
}
