.ewpf {
	box-sizing: border-box;
}

.ewpf *,
.ewpf *::before,
.ewpf *::after {
	box-sizing: inherit;
}

.ewpf__form {
	display: grid;
	gap: 1rem;
}

.ewpf__mobile-toggle {
	display: none;
	width: 100%;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.ewpf__mobile-toggle[hidden] {
	display: none !important;
}

.ewpf--mobile .ewpf__mobile-toggle:not([hidden]) {
	display: flex;
}

.ewpf__form[hidden] {
	display: none !important;
}

.ewpf__heading {
	margin: 0;
}

.ewpf__fields {
	display: grid;
	gap: 1rem;
}

.ewpf__group {
	display: grid;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	gap: 0.5rem;
}

.ewpf__group-label {
	font-weight: 600;
}

.ewpf__search,
.ewpf__select {
	width: 100%;
	max-width: 100%;
}

.ewpf__choices {
	display: grid;
	gap: 0.5rem;
}

.ewpf__choice {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ewpf__count {
	margin-inline-start: auto;
}

.ewpf__fields:empty,
.ewpf__actions:empty {
	display: none;
}

.ewpf__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.ewpf__button {
	cursor: pointer;
}

.ewpf__button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.ewpf__editor-notice {
	padding: 0.75rem 1rem;
	border: 1px dashed currentColor;
	border-radius: 4px;
	font-size: 0.875rem;
}

.ewpf__editor-notice[data-state='connected'] {
	border-style: solid;
}

.ewpf[data-ewpf-state='error'] .ewpf__status,
.ewpf[data-ewpf-state='missing'] .ewpf__status,
.ewpf[data-ewpf-state='ambiguous'] .ewpf__status,
.ewpf[data-ewpf-state='selector-only'] .ewpf__status {
	position: static !important;
	width: auto !important;
	height: auto !important;
	margin: 0;
	padding: 0.75rem;
	overflow: visible;
	clip: auto !important;
	clip-path: none;
	white-space: normal !important;
	border: 1px solid currentColor;
}

.ewpf-target--loading {
	pointer-events: none;
	opacity: 0.55;
	transition: opacity 160ms ease;
}

@media (prefers-reduced-motion: reduce) {
	.ewpf-target--loading {
		transition: none;
	}
}
