/**
 * RFQ for WooCommerce — product search bar and pagination.
 */

.rfq-wc-product-search {
	margin-bottom: 20px;
}

.rfq-wc-search-input {
	width: 100%;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 10px 14px;
	font-size: 14px;
	margin-bottom: 12px;
	box-sizing: border-box;
}

.rfq-wc-search-input:focus {
	outline: none;
	border-color: #14213d;
}

.rfq-wc-product-search-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.rfq-wc-filter-select {
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 8px 12px;
	font-size: 14px;
	background: #ffffff;
	color: #333333;
	min-width: 140px;
}

.rfq-wc-filter-select:focus {
	outline: none;
	border-color: #14213d;
}

/**
 * Select2 styling — matches the plain-select look above. Select2
 * replaces the visible control with its own .select2-container
 * markup (the original <select> stays in the DOM, just hidden), so
 * these rules target that container instead of .rfq-wc-filter-select.
 */
.select2-container {
	min-width: 160px;
}

.select2-container--default .select2-selection--single {
	border: 1px solid #dcdcde;
	border-radius: 4px;
	height: 38px;
	padding: 3px 8px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 28px;
	color: #333333;
	padding-left: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: #555555;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 36px;
}

.select2-container--default.select2-container--focus .select2-selection--single {
	border-color: #14213d;
	outline: none;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
	margin-right: 6px;
}

.select2-dropdown {
	border-color: #dcdcde;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
	background-color: #14213d;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 6px 8px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
	outline: none;
	border-color: #14213d;
}

.rfq-wc-is-loading {
	opacity: 0.5;
	pointer-events: none;
}

.rfq-wc-pagination {
	margin-top: 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.rfq-wc-page-btn {
	border: 1px solid #dcdcde;
	background: #ffffff;
	color: #333333;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
}

.rfq-wc-page-btn:hover:not( :disabled ) {
	border-color: #14213d;
	color: #14213d;
}

.rfq-wc-page-btn.is-active {
	background: #14213d;
	border-color: #14213d;
	color: #ffffff;
}

.rfq-wc-page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.rfq-wc-page-ellipsis {
	padding: 0 4px;
	color: #777777;
}

.rfq-wc-pagination-summary {
	width: 100%;
	margin: 8px 0 0;
	font-size: 12px;
	color: #666666;
}

@media ( max-width: 576px ) {
	.rfq-wc-product-search-filters {
		flex-direction: column;
	}

	.rfq-wc-filter-select {
		width: 100%;
		min-width: 0;
	}

	.select2-container {
		width: 100% !important;
		min-width: 0;
	}

	.rfq-wc-page-numbers {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
	}
}
