/* Filter Controls */
.collections-filter-wrapper {
    margin-bottom: 20px;
    width: 100%;
}

.collections-filter-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.filter-group {
    flex: 1;
    min-width: 0;
    position: relative;
}

.filter-group-label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.filter-group-reset {
    flex: 0 0 auto;
    min-width: auto;
}

.search-by-label {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    line-height: 24px;
}

/* Enhanced Select Styles */
.enhanced-select-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
    padding: 8px 35px 8px 12px;
    font-size: 14px;
    line-height: 24px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    color: #333;
    transition: border-color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.enhanced-select-wrapper:hover {
    border-color: #999;
}

/* Disabled State */
.enhanced-select-wrapper.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f5f5f5;
    pointer-events: none;
}

.enhanced-select-wrapper.disabled:hover {
    border-color: #ddd;
}

.enhanced-select-wrapper.disabled .clear-button,
.enhanced-select-wrapper.disabled::before {
    opacity: 0.4;
}

/* Down Arrow Icon */
.enhanced-select-wrapper::before {
    content: '';
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.enhanced-select-wrapper.has-value::before {
    display: none;
}

/* Clear Button (X) */
.enhanced-select-wrapper .clear-button {
    display: none;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: none !important;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

/* Remove any hover background effects */
.enhanced-select-wrapper .clear-button:hover,
.enhanced-select-wrapper .clear-button:focus,
.enhanced-select-wrapper .clear-button:active {
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.enhanced-select-wrapper .clear-button::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M7.5 6l3.5-3.5-1.5-1.5L6 4.5 2.5 1 1 2.5 4.5 6 1 9.5 2.5 11 6 7.5 9.5 11 11 9.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.enhanced-select-wrapper.has-value .clear-button {
    display: block;
}

.enhanced-select-wrapper .clear-button:hover {
    opacity: 1;
}

.enhanced-select-wrapper .select-text {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.enhanced-select-wrapper .filter-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    pointer-events: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    z-index: -1;
}

.enhanced-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.enhanced-select-wrapper.active .enhanced-select-dropdown {
    display: block;
}

.enhanced-select-search {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
}

.enhanced-select-search .search-input {
    width: 100%;
    padding: 4px 6px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 18px;
}

.enhanced-select-search .search-input:focus {
    outline: none;
    border-color: #999;
}

.enhanced-select-options {
    max-height: 450px;
    overflow-y: auto;
    padding: 4px 0;
}

.enhanced-select-option {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.enhanced-select-option:hover {
    background-color: #f5f5f5;
}

.enhanced-select-option .option-text {
    font-size: 14px;
    line-height: 20px;
    color: #333;
}

/* Regular Select Styles */
.filter-select {
    width: 100%;
    height: 40px;
    padding: 8px 35px 8px 12px;
    font-size: 14px;
    line-height: 24px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    color: #333;
    transition: border-color 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #999;
}

/* Reset Button */
.reset-button {
    height: 40px;
    padding: 0 20px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    white-space: nowrap;
    min-width: 100px;
}

.reset-button:hover {
    background-color: #e8e8e8;
}