/**
 * Native blog archive search.
 */

.tntech-blog-search {
	max-width: 44rem;
	margin: 0 auto 2rem;
}

.tntech-blog-search__field {
	position: relative;
	display: flex;
	align-items: stretch;
	overflow: hidden;
	border: 1px solid #d1d5db;
	border-radius: 9999px;
	background: #fff;
	box-shadow: 0 4px 16px rgb(0 0 0 / 8%);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tntech-blog-search__field:focus-within {
	border-color: #f4b811;
	box-shadow: 0 0 0 3px rgb(244 184 17 / 20%);
}

.tntech-blog-search__field > i {
	display: flex;
	width: 3rem;
	flex: 0 0 3rem;
	align-items: center;
	justify-content: center;
	color: #6c757d;
}

.tntech-blog-search__field input {
	width: 100%;
	min-width: 0;
	padding: 0.8rem 0.5rem;
	border: 0;
	outline: 0;
	background: transparent;
	color: #212529;
}

.tntech-blog-search__field button {
	flex: 0 0 auto;
	padding: 0.75rem 1.5rem;
	border: 0;
	background: #f4b811;
	color: #212529;
	font-weight: 700;
	cursor: pointer;
}

.tntech-blog-search__field button:hover {
	background: #c99609;
}

.tntech-blog-search__status {
	min-height: 1.25rem;
	margin: 0.5rem 1rem 0;
	color: #6c757d;
	font-size: 0.875rem;
	text-align: center;
}

[data-blog-search-results] {
	transition: opacity 0.2s ease;
}

[data-blog-search-results].is-loading {
	opacity: 0.45;
	pointer-events: none;
}

.tntech-blog-search-empty {
	grid-column: 1 / -1;
	padding: 2.5rem 1rem;
	border-radius: 1rem;
	background: #fff;
	color: #6c757d;
	text-align: center;
	box-shadow: 0 4px 16px rgb(0 0 0 / 8%);
}

.tntech-blog-card__placeholder {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	background: #f5f4f0;
	color: #936e07;
	font-size: 2.5rem;
}

.tntech-blog-search-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.tntech-blog-search-pagination button {
	display: inline-flex;
	min-width: 2.5rem;
	height: 2.5rem;
	align-items: center;
	justify-content: center;
	padding: 0 0.75rem;
	border: 0;
	border-radius: 9999px;
	background: #fff;
	color: #212529;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
}

.tntech-blog-search-pagination button:hover,
.tntech-blog-search-pagination button.is-current {
	background: #f4b811;
}

@media (max-width: 639px) {
	.tntech-blog-search__field button {
		padding-right: 1rem;
		padding-left: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tntech-blog-search__field,
	[data-blog-search-results] {
		transition: none;
	}
}
