/* =============================================================
   dxw3 Quick Search Mini
   All selectors are scoped to .dxw3-quick-search-mini so they
   never collide with the full search.
============================================================= */

.dxw3-quick-search-mini {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* ---- Type toggle ------------------------------------------ */

.dxw3-qsm-type-toggle {
	display: flex;
	gap: 0;
}

.dxw3-qsm-type-btn {
	flex: 1;
	padding: 0.6rem 1.2rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	background: #f0f0f0;
	color: #333;
	border: 1px solid #ccc;
	transition: background 0.15s, color 0.15s;
}

.dxw3-qsm-type-btn:first-child {
	border-radius: 4px 0 0 4px;
}

.dxw3-qsm-type-btn:last-child {
	border-radius: 0 4px 4px 0;
	border-left: none;
}

.dxw3-qsm-type-btn--active,
.dxw3-qsm-type-btn:hover {
	background: #222;
	color: #fff;
	border-color: #222;
}

/* ---- Fields row ------------------------------------------- */

.dxw3-qsm-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.dxw3-qsm-field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	flex: 1 1 140px;
}

.dxw3-qsm-label {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #555;
}

.dxw3-qsm-select {
	width: 100%;
	padding: 0.5rem 0.75rem;
	font-size: 1rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	appearance: auto;
}

.dxw3-qsm-select:focus {
	outline: 2px solid #222;
	outline-offset: 1px;
}

/* ---- Footer row ------------------------------------------- */

.dxw3-qsm-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.dxw3-qsm-count {
	font-size: 0.9rem;
	color: #555;
}

.dxw3-qsm-submit {
	padding: 0.65rem 1.8rem;
	font-size: 1rem;
	font-weight: 700;
	background: #222;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.15s;
}

.dxw3-qsm-submit:hover {
	background: #444;
}

/* ---- Loading state ---------------------------------------- */

.dxw3-quick-search-mini.dxw3-qsm-loading .dxw3-qsm-submit {
	opacity: 0.6;
	cursor: wait;
}

.dxw3-quick-search-mini.dxw3-qsm-loading .dxw3-qsm-select {
	opacity: 0.6;
	pointer-events: none;
}

/* ---- Responsive ------------------------------------------- */

@media ( max-width: 600px ) {
	.dxw3-qsm-field {
		flex-basis: calc( 50% - 0.75rem );
	}

	.dxw3-qsm-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.dxw3-qsm-submit {
		text-align: center;
	}
}
