/* ==========================================================================
   Upbeat Taxonomy Filter – Base Styles
   Designed to be overridden via Elementor style controls.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Form wrapper
   -------------------------------------------------------------------------- */
.utf-filter-form {
	width: 100%;
}

/* --------------------------------------------------------------------------
   Bar: single flex row on desktop
   -------------------------------------------------------------------------- */
.utf-filter-bar {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 12px;
	width: 100%;
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */
.utf-search-wrap {
	display: flex;
	align-items: center;
	flex: 1 1 0;
	min-width: 160px;
	gap: 8px;
	background: #1a1a1a;
	border: 1px solid #333;
	border-radius: 4px;
	padding: 10px 14px;
	box-sizing: border-box;
}

.utf-search-icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	color: #888;
	pointer-events: none;
}

.utf-search-input {
	flex: 1;
	background: transparent;
	border: none;
	outline: none;
	color: #fff;
	font-size: 14px;
	line-height: 1;
	min-width: 0;
	-webkit-appearance: none;
	appearance: none;
}

.utf-search-input::placeholder {
	color: #888;
}

/* Remove native clear button in IE/Edge */
.utf-search-input::-ms-clear,
.utf-search-input::-webkit-search-cancel-button {
	display: none;
}

/* --------------------------------------------------------------------------
   Taxonomy dropdowns
   -------------------------------------------------------------------------- */
.utf-taxonomy-wrap {
	position: relative;
	display: flex;
	align-items: center;
	background: #1a1a1a;
	border: 1px solid #333;
	border-radius: 4px;
	padding: 10px 32px 10px 14px;
	box-sizing: border-box;
	flex-shrink: 0;
}

.utf-taxonomy-select {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: none;
	outline: none;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	padding: 0;
	min-width: 80px;
	width: 100%;
}

.utf-taxonomy-select option {
	background: #1a1a1a;
	color: #fff;
}

.utf-taxonomy-arrow {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 14px;
	height: 14px;
	color: #888;
	pointer-events: none;
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Count + Order row
   -------------------------------------------------------------------------- */
.utf-count-order-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Count
   -------------------------------------------------------------------------- */
.utf-count {
	font-size: 14px;
	color: #fff;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Order dropdown (mirrors taxonomy wrap)
   -------------------------------------------------------------------------- */
.utf-order-wrap {
	position: relative;
	display: flex;
	align-items: center;
	background: #1a1a1a;
	border: 1px solid #333;
	border-radius: 4px;
	padding: 10px 32px 10px 14px;
	box-sizing: border-box;
}

.utf-order-select {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: none;
	outline: none;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	padding: 0;
	min-width: 60px;
}

.utf-order-select option {
	background: #1a1a1a;
	color: #fff;
}

/* --------------------------------------------------------------------------
   Responsive – Mobile: stack vertically, count+order share a line
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.utf-filter-bar {
		flex-wrap: wrap;
		flex-direction: column;
	}

	.utf-search-wrap {
		flex: 1 1 100%;
		width: 100%;
		min-width: 0;
	}

	.utf-taxonomy-wrap {
		width: 100%;
		flex-shrink: 1;
	}

	.utf-taxonomy-select {
		min-width: 0;
		width: 100%;
	}

	.utf-count-order-wrap {
		width: 100%;
		justify-content: space-between;
	}
}

/* --------------------------------------------------------------------------
   Elementor editor – basic visibility
   -------------------------------------------------------------------------- */
.elementor-editor-active .utf-filter-form {
	pointer-events: none;
}
