/* Adjust the height to fit all items */
.fabrication-type_filter_box.asp_sett_scroll,
.fabrication_color_filter_box.asp_sett_scroll {
    max-height: none !important; /* Remove the height limit */
    overflow: visible !important; /* Remove scrolling */
}
/* Set up a two-column layout for checkbox groups */
.fabrication-type_filter_box,
.fabrication_color_filter_box {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Create two equal-width columns */
    gap: 10px; /* Add spacing between items */
}

/* Ensure each checkbox option fits nicely */
.fabrication-type_filter_box .asp_option,
.fabrication_color_filter_box .asp_option {
    display: flex;
    align-items: center;
}
.asp_filter_tax legend,
.asp_custom_f legend {
    font-size: 18px;
    font-weight: bold !important;
    color: #008345;; /* Mulhern green */
    padding: 8px 12px;
    margin-bottom: 15px;
    border-bottom: 2px solid #0073aa; /* Underline effect */
    text-transform: uppercase; /* Make text uppercase */
}

/* Style for the legend as accordion trigger */
fieldset legend {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Arrow indicators */
fieldset legend::after {
    content: "▼"; /* Down arrow */
    font-size: 14px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

/* Rotating the arrow when active */
fieldset.open legend::after {
    transform: rotate(180deg); /* Arrow pointing up */
}

/* Initially hide the contents */
fieldset .fabrication-type_filter_box,
fieldset .nominal_oag_filter_box,
fieldset .fabrication_color_filter_box {
    display: none;
    padding: 10px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    background-color: #fff;
}

#custom-dropdown { 
    position: relative; 
    width: 430px; 
    font-family: Nunito Sans; 
}

#typeahead-input { 
    width: 80%; 
    padding: 10px; 
    margin-bottom: 5px; 
    border: 1px solid #ccc; 
}

#dropdown-options {
    display: none; /* Start hidden */
    flex-direction: column;
    position: absolute; 
    width: 80%;
    background: white; 
    border: 1px solid #ccc; 
    max-height: 300px; 
    overflow-y: auto; 
    z-index: 10;
}

.dropdown-option { 
    display: flex; 
    align-items: center;
    padding: 4px 8px; 
    cursor: pointer; 
}

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

.part-number { 
    background-color: #e0e0e0; 
    padding: 2px 5px;
    border-radius: 4px;
    margin-right: 10px;
    white-space: nowrap; /* Prevents text wrapping */
}

.description { 
    background-color: transparent; 
}