/**
 * Blog search box ([ecomt_blog_search], WP\Blog_Search).
 *
 * Sits above the category list on the blog index, the category archives and
 * the search results. Same borders, radius and DM Mono label as the category
 * tags (tag.css) so the two read as one block.
 */

.ecomt-blog-search {
	--ecomt-search-ink: #051323;
	--ecomt-search-muted: #6d7c8c;
	--ecomt-search-border: #cfd4da;
	--ecomt-search-green: #6be5a0;
	margin-bottom: 1.5rem;
}

.ecomt-blog-search__label {
	display: block;
	margin-bottom: 0.6em;
	color: var(--ecomt-search-muted);
	font-family: "DM Mono", monospace;
	font-size: 0.9rem;
	line-height: 1.2;
	text-transform: uppercase;
}

.ecomt-blog-search__field {
	display: flex;
	max-width: 640px;
	align-items: stretch;
	border: 1px solid var(--ecomt-search-border);
	border-radius: 8px;
	background-color: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ecomt-blog-search__field:focus-within {
	border-color: var(--ecomt-search-ink);
	box-shadow: 0 0 0 3px rgba(107, 229, 160, 0.45);
}

.ecomt-blog-search .ecomt-blog-search__input {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0.75em 1em;
	border: 0;
	border-radius: 8px 0 0 8px;
	background: transparent;
	box-shadow: none;
	color: var(--ecomt-search-ink);
	font-size: 1rem;
	line-height: 1.4;
}

.ecomt-blog-search .ecomt-blog-search__input:focus {
	outline: none;
	box-shadow: none;
}

.ecomt-blog-search .ecomt-blog-search__submit {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 3.25em;
	margin: 4px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background-color: var(--ecomt-search-ink);
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ecomt-blog-search .ecomt-blog-search__submit:hover,
.ecomt-blog-search .ecomt-blog-search__submit:focus-visible {
	background-color: var(--ecomt-search-green);
	color: var(--ecomt-search-ink);
}

.ecomt-blog-search .ecomt-blog-search__summary {
	margin: 0.75em 0 0;
	color: var(--ecomt-search-muted);
	font-size: 0.95rem;
}

/* Blog search with no results: the summary above already says so, in the
   page's language, so Kadence's generic "nothing matched" notice goes. */
.ecomt-blog-search-results.search-no-results .site-main > .error {
	display: none;
}
