/**
 * EditorsTools forms. Inherits the theme's fonts and colours; sets layout,
 * readable focus and error states only.
 */
.wkf {
	margin: 1.5em 0;
	max-width: 40rem;
}

.wkf__form {
	display: grid;
	gap: 1em;
}

.wkf__field {
	display: grid;
	gap: .35em;
}

.wkf__label {
	font-weight: 600;
}

.wkf__req {
	color: #b91c1c;
}

.wkf__input {
	width: 100%;
	min-height: 44px;
	padding: .6em .8em;
	border: 1px solid #8c8f94;
	border-radius: 6px;
	font: inherit;
	color: inherit;
	background: #fff;
	box-sizing: border-box;
}

textarea.wkf__input {
	min-height: 8em;
	resize: vertical;
}

.wkf__input:focus-visible,
.wkf__check input:focus-visible,
.wkf__submit:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 2px;
}

.wkf__input[aria-invalid="true"] {
	border-color: #b91c1c;
	box-shadow: 0 0 0 1px #b91c1c;
}

.wkf__check {
	display: flex;
	align-items: flex-start;
	gap: .6em;
	cursor: pointer;
}

.wkf__check input {
	width: 1.15em;
	height: 1.15em;
	margin-top: .2em;
	flex-shrink: 0;
}

.wkf__error {
	margin: 0;
	color: #b91c1c;
	font-size: .92em;
}

.wkf__error[hidden] {
	display: none;
}

.wkf__submit {
	justify-self: start;
	min-height: 44px;
	padding: .65em 1.4em;
	border: 0;
	border-radius: 6px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	background: #1d2327;
	color: #fff;
}

.wkf__submit:disabled {
	opacity: .6;
	cursor: progress;
}

.wkf__status:empty {
	display: none;
}

.wkf__status,
.wkf__notice {
	margin: 0;
	padding: .75em 1em;
	border-radius: 6px;
	background: #f0f6fc;
}

.wkf__form[data-state="success"] .wkf__status,
.wkf__notice.is-success {
	background: #ecfdf3;
	color: #14532d;
}

.wkf__form[data-state="error"] .wkf__status,
.wkf__notice.is-error {
	background: #fef2f2;
	color: #7f1d1d;
}

.wkf__notice:focus {
	outline: 3px solid currentColor;
	outline-offset: 2px;
}

.wkf__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
