/**
 * Styling for controls the plugin adds that have no theme equivalent:
 * the result count, the clear link and the show-more button.
 *
 * Loaded even when styles="no", because these elements do not exist in the
 * theme and would otherwise fall back to raw browser defaults.
 *
 * Colour comes from the theme by default. Override these two on .efs-wrap
 * (or any ancestor) to set them explicitly:
 *
 *   .efs-wrap { --efs-muted: #6b6b6b; --efs-control: #1d1d1d; }
 */

.efs-wrap {
	/* Inherit the theme's own text colour, so contrast holds on any
	   background, light or dark. */
	--efs-muted: currentColor;
	--efs-control: currentColor;
}

/* The count and the clear control are siblings here on purpose. Nesting the
   control inside the dimmed text would compound their opacities and force a
   control to be fainter than its own label. */
.efs-resultbar {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.75em;
}

.efs-resultbar .efs-status {
	margin: 10px 0;
}

/* Secondary text, dimmed rather than recoloured: opacity keeps its contrast
   proportional to the theme's own text, so it stays readable on a light or
   a dark background. Against #282829 with light theme text this lands
   around 10:1. A hardcoded grey here was invisible on dark backgrounds. */
.efs-status {
	color: var(--efs-muted);
	opacity: 0.8;
	margin: 10px 0;
}

.efs-clear {
	padding: 0;
	font: inherit;
	font-size: 0.9em;
	color: var(--efs-control);
	background: none;
	border: 0;
	border-bottom: 1px solid;
	cursor: pointer;
	opacity: 0.85;
}

.efs-clear:hover,
.efs-clear:focus {
	opacity: 1;
}

.efs-more {
	margin: 1.5rem 0 0;
	text-align: center;
}

.efs-more-btn {
	cursor: pointer;
	padding: 0.7rem 1.6rem;
	font: inherit;
	color: var(--efs-control);
	border: 1px solid;
	background: none;
	border-radius: 2px;
}

.efs-more-btn:hover,
.efs-more-btn:focus {
	opacity: 0.8;
}

.efs-more-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}
