/**
 * Mixcar Plugins - Dropdown Display Fix
 * This file overrides any theme CSS that might hide the dropdown
 */

/* Force dropdown to be visible */
.mixcar-search-select {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative !important;
	z-index: 9999 !important;
	width: 100% !important;
	height: auto !important;
	min-height: 44px !important;
	background-color: #ffffff !important;
	color: #333 !important;
	border: 2px solid transparent !important;
	border-radius: 6px !important;
	padding: 14px 40px 14px 16px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	cursor: pointer !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') !important;
	background-repeat: no-repeat !important;
	background-position: right 10px center !important;
	background-size: 24px !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
	transition: all 0.3s ease !important;
}

/* Hover state */
.mixcar-search-select:hover {
	border-color: #0066cc !important;
	box-shadow: 0 4px 16px rgba(0, 102, 204, 0.2) !important;
}

/* Focus state */
.mixcar-search-select:focus {
	outline: 2px solid #1bc744 !important;
	outline-offset: 2px !important;
	border-color: #1bc744 !important;
	box-shadow: 0 4px 16px rgba(27, 199, 68, 0.3) !important;
}

/* Options styling */
.mixcar-search-select option {
	display: block !important;
	padding: 12px 10px !important;
	margin: 0 !important;
	background-color: #ffffff !important;
	color: #333 !important;
	line-height: 1.5 !important;
	min-height: 40px !important;
	white-space: normal !important;
	word-wrap: break-word !important;
}

/* Hover option */
.mixcar-search-select option:hover {
	background-color: #f0f0f0 !important;
	color: #333 !important;
}

/* Checked/selected option */
.mixcar-search-select option:checked {
	background: linear-gradient(#1bc744, #1bc744) !important;
	background-color: #1bc744 !important;
	color: #ffffff !important;
	font-weight: 600 !important;
}

/* Disabled state */
.mixcar-search-select:disabled {
	opacity: 0.6 !important;
	cursor: not-allowed !important;
	background-color: #f5f5f5 !important;
}

/* Search field container */
.mixcar-search-field {
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	z-index: 100 !important;
}

/* Search fields container */
.mixcar-search-fields {
	position: relative !important;
	z-index: 100 !important;
}

/* Search form */
.mixcar-search-form {
	position: relative !important;
	z-index: 100 !important;
}

/* Search wrapper */
.mixcar-search-wrapper {
	overflow: visible !important;
	position: relative !important;
	z-index: 100 !important;
}

/* Remove any overflow hidden from parent containers */
.mixcar-search-wrapper * {
	overflow: visible !important;
}

/* Ensure select is not clipped */
.mixcar-search-field select {
	clip: auto !important;
	clip-path: none !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
	.mixcar-search-select {
		min-height: 44px !important;
		padding: 12px 40px 12px 14px !important;
		font-size: 14px !important;
	}
	
	.mixcar-search-select option {
		padding: 10px 8px !important;
		min-height: 36px !important;
	}
}

@media (max-width: 480px) {
	.mixcar-search-select {
		min-height: 40px !important;
		padding: 10px 36px 10px 12px !important;
		font-size: 13px !important;
	}
	
	.mixcar-search-select option {
		padding: 8px 6px !important;
		min-height: 32px !important;
	}
}
