/**
 * Homepage Keywords - front-end filter styles.
 * Kept intentionally light so the active theme keeps control of typography.
 */

.hpk-filter-wrap {
	clear: both;
	margin: 0 0 2rem;
}

.hpk-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin: 0;
	padding: 0.9rem 1rem;
	border: 1px solid rgba(0, 0, 0, 0.14);
	background: rgba(0, 0, 0, 0.025);
	box-sizing: border-box;
}

.hpk-filter *,
.hpk-filter *::before,
.hpk-filter *::after {
	box-sizing: border-box;
}

.hpk-filter__label {
	font-weight: 600;
	line-height: 1.3;
}

.hpk-filter__select {
	min-width: 15rem;
	max-width: 100%;
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid #767676;
	border-radius: 2px;
	background: #fff;
	color: #111;
	font: inherit;
	line-height: 1.3;
}

.hpk-filter__submit {
	min-height: 2.75rem;
	padding: 0.5rem 1.1rem;
	border: 1px solid currentColor;
	border-radius: 2px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
}

.hpk-filter__submit:hover,
.hpk-filter__submit:focus-visible {
	background: rgba(0, 0, 0, 0.06);
}

.hpk-filter__clear {
	margin-left: 0.15rem;
	font-size: 0.9em;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.hpk-filter__status {
	margin: 0.6rem 0 0;
	font-size: 0.9em;
	line-height: 1.45;
}

.hpk-filter__select:focus-visible,
.hpk-filter__submit:focus-visible,
.hpk-filter__clear:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.hpk-filter__label,
	.hpk-filter__select,
	.hpk-filter__submit {
		width: 100%;
	}

	.hpk-filter__submit {
		margin-top: 0.15rem;
	}
}
