/**
 * Elementor Taxonomy Filter Dropdown Styles
 */

.e-filter-dropdown-wrapper {
	position: relative;
	display: inline-block;
	width: 100%;
	margin-bottom: 20px;
}

/* Use CSS mask for icon color control */
.e-filter-dropdown-wrapper::after {
	content: '';
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	background-color: var(--dropdown-icon-color, #666666);
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	pointer-events: none;
	transition: background-color 0.3s ease;
	z-index: 1;
}

.e-filter-dropdown-wrapper:hover::after {
	background-color: var(--dropdown-icon-color-hover, #333333);
}

.e-filter-dropdown-wrapper:focus-within::after {
	background-color: var(--dropdown-icon-color-focus, #0073aa);
}

.e-filter-dropdown {
	width: 100%;
	min-width: 200px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	/* Default styles - will be overridden by Elementor controls */
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: #333;
	background-color: #fff;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	/* Icon will be handled by ::after pseudo-element */
	background-image: none;
	padding-right: 45px;
}

.e-filter-dropdown:hover {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.e-filter-dropdown:focus {
	outline: none;
	/* Focus styles will be set by Elementor controls */
}


.e-filter-dropdown:active {
	transform: translateY(1px);
}

.e-filter-dropdown:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	background-color: #f5f5f5;
}

.e-filter-dropdown option {
	padding: 12px 16px;
	font-size: 16px;
	line-height: 1.5;
	color: #333;
	background-color: #fff;
}

.e-filter-dropdown option:hover {
	background-color: #f0f0f0;
}

.e-filter-dropdown option:checked {
	background-color: #0073aa;
	color: #fff;
	font-weight: 500;
}

.e-filter-dropdown option:disabled {
	color: #999;
	cursor: not-allowed;
}


/* RTL Support */
.elementor-rtl .e-filter-dropdown {
	background-position: left 14px center;
	padding-left: 45px;
	padding-right: 16px;
}

.elementor-rtl .e-filter-dropdown-wrapper::after {
	right: auto;
	left: 14px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
	.e-filter-dropdown {
		font-size: 15px;
		padding: 11px 42px 11px 15px;
	}
}

@media (max-width: 768px) {
	.e-filter-dropdown-wrapper {
		margin-bottom: 15px;
	}

	.e-filter-dropdown {
		font-size: 14px;
		padding: 10px 38px 10px 14px;
		border-width: 1.5px;
	}

	.e-filter-dropdown-wrapper::after {
		right: 12px;
		width: 14px;
		height: 14px;
	}

	.elementor-rtl .e-filter-dropdown {
		padding-left: 38px;
		padding-right: 14px;
	}

	.elementor-rtl .e-filter-dropdown-wrapper::after {
		left: 12px;
	}
}

@media (max-width: 480px) {
	.e-filter-dropdown {
		font-size: 14px;
		padding: 9px 35px 9px 12px;
	}

	.e-filter-dropdown-wrapper::after {
		right: 10px;
	}

	.elementor-rtl .e-filter-dropdown {
		padding-left: 35px;
		padding-right: 12px;
	}

	.elementor-rtl .e-filter-dropdown-wrapper::after {
		left: 10px;
	}
}

/* Dark mode support (if theme supports it) */
@media (prefers-color-scheme: dark) {
	.e-filter-dropdown {
		background-color: #2a2a2a;
		color: #e0e0e0;
		border-color: #444;
	}

	.e-filter-dropdown:hover {
		border-color: #666;
		background-color: #333;
	}

	.e-filter-dropdown:focus {
		border-color: #0073aa;
		background-color: #333;
	}

	.e-filter-dropdown option {
		background-color: #2a2a2a;
		color: #e0e0e0;
	}

	.e-filter-dropdown option:hover {
		background-color: #333;
	}

	.e-filter-dropdown option:checked {
		background-color: #0073aa;
		color: #fff;
	}
}

/* Loading state (if needed for async operations) */
.e-filter-dropdown-wrapper.loading .e-filter-dropdown {
	opacity: 0.7;
	cursor: wait;
	pointer-events: none;
}

.e-filter-dropdown-wrapper.loading::after {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from {
		transform: translateY(-50%) rotate(0deg);
	}
	to {
		transform: translateY(-50%) rotate(360deg);
	}
}

/* Accessibility improvements */
.e-filter-dropdown:focus-visible {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

/* Print styles */
@media print {
	.e-filter-dropdown-wrapper {
		display: none;
	}
}

