#fabrications-search-widget {
    width: 90%;
    max-height: 120vh; /* Set maximum height */
    overflow-y: auto; /* Enable vertical scrolling */

    padding: 15px; /* Add padding around the widget */
    box-sizing: border-box; /* Ensure padding is included in width calculation */
    background-color: #f9f9f9; /* Optional: Add background color */
    border: 1px solid #ddd; /* Optional: Add border */
    border-radius: 5px; /* Optional: Add border radius */
}

#fabrications-search-widget fieldset {
    margin-bottom: 1em;
    border: 1px solid #ccc;
    padding: 10px; /* Adjust padding for individual fieldsets */
    box-sizing: border-box;
}

#fabrications-search-widget legend {
    font-weight: bold;
    font-size: 0.9em;
    background-color: #018345;
    border-radius: 8px 8px 8px 8px;
    color: #FFFFFF;
    padding: 4px 8px;
    margin-bottom: 5px;
    cursor: pointer;
}

#fabrications-search-widget label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5em;
    cursor: pointer;
}

#fabrications-search-widget input[type="checkbox"] {
    margin-right: 10px; /* Adds space between the checkbox and text */
}

#fabrications-search-widget button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 0.5em 1em;
    cursor: pointer;
    width: 100%; /* Button fills the widget width */
    border-radius: 5px; /* Optional: Add border radius */
}

#fabrications-search-widget input[type="range"] {
    width: calc(100% - 10px); /* Full width minus padding */
    margin: 5px;
}


.fabrications-search-filter {
    max-height: 300px; /* Set maximum height */
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 10px; /* Optional padding inside the filter box */
    border: 1px solid #ddd; /* Optional border for better visibility */
    background-color: #fff; /* Optional: Background color */
    margin-bottom: 15px; /* Optional: Spacing between filters */
    border-radius: 5px; /* Optional: Rounded corners */
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1); /* Optional: Inner shadow for style */
}

* {
    box-sizing: border-box;
  }
  
  body {
    background: gray;
  }
  
.primary-nav {
    align-items: center;
    height: 50px;
    left: 0px;
    padding: 15px;
    width: 100%;
    margin: 0px;
    background-color: darkgray;
    display: inline;
    position: fixed;
    top: 70px;
    z-index: 3;
    font-weight: bold;
  }
  

  #search-container {
    margin: 0px 10px 15px 0px;
    align-items: center;
    width: 90%;
    max-width: 500px;
    justify-content: left;
  }

  form .no-submit {
    width: 180px;
    align-items: center;
    color: white;
    right: 0;
    display: flex;
    padding: 2px;
    border: 1px solid currentColor;
    border-radius: 5px;
    margin: 0 0;
  }
  
  /*

  input.no-submit {
    border: 1px solid white;
    width: 100%;
    padding: 9px 4px 9px 4px;
    margin-bottom:10px;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/5/55/Magnifying_glass_icon.svg");
    background-size: 13px;
    background-repeat: no-repeat;
    background-position: 10px center;
  }
  
  */

  input[type="search"] {
    border: none;
    background-color: transparent;
    margin: 0;
    padding: 7px 8px 7px 30px;
    font-size: 16px;
    color: inherit;
    border: 1px solid black;
    border-radius: inherit;
  }
  
  input[type="search"]::placeholder {
    color: white;
  }
  
  input[type="search"]:focus {
    box-shadow: 0 0 3px 0 #3f69a8;
    border-color: #3f69a8;
    outline: none;
  }


.fabrications-search-widget fieldset legend {
    font-size: 14px;
    font-weight: bold !important;
    color: #008345;; /* Fabrications green */
    padding: 8px 12px;
    margin-bottom: 15px;
    border-bottom: 2px solid #0073aa; /* Underline effect */
    text-transform: uppercase; /* Make text uppercase */
}

/* 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;
}
 
fieldset legend {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    color: #008345;
    background-color: #FFFFFF;; /* Fabrications green */
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold !important;
    color: #008345;; /* Fabrications green */
    padding: 8px 12px;
    margin-bottom: 15px;
    border-bottom: 2px solid #0073aa; /* Underline effect */
    text-transform: uppercase; /* Make text uppercase */
}



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

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

/* Remove arrow for slider legends */
fieldset.slider-filter legend::after {
    content: none; /* Remove the arrow */
}

/* Initially hide the contents */
fieldset .fabrication-type_filter_box,

 

#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; 
}

.range-slider {
    margin: 20px 0;
}

.range-slider {
    margin: 20px auto;
    height: 300px; /* Adjust height for vertical sliders */
    width: 80%px; /* Adjust width */
}

.slider-values span { /* Style for the min/max values */
    color: #018345;
    font-weight: bold;
    margin: 0 5px; /* Add some spacing */
}

.noUi-target { /* Style for the slider track */
    background: #ccc;
    border-radius: 5px;
    height: 6px;
}

.noUi-connect {
    background: #018345; /* Active range */
}

.noUi-handle {
    width: 8px;
    height: 10px;
    background:  #018345; /* Handle color */
    border: 2px solid #e3e2ad;
    
    cursor: pointer;
}

.status-container {
    display: flex;
    justify-content: center; /* Center the status text */
}

.status-text {
    text-align: center;
    font-size: 0.9em;
    font-weight: 500;
    color: #830137;
}
.noUi-tooltip {
    display: none;
}

.noUi-active .noUi-tooltip {
    display: block;
}

 

.slider-values {
    display: flex;
    color: #018345;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically (if needed) */
    font-weight: bold;
}

.slider-values > * { /* Targets direct children of .slider-values */
    margin: 0 5px; /* Adds some space between values and the "-" */
}

/* Remove custom positioning - jQuery UI will handle centering */
#search-status-popup {
    display: none; /* Hide by default */
    text-align: center;
}

/* Loader animation */
.loader {
    border: 6px solid #ccc;
    border-top: 6px solid #0073aa;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.accordion-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.accordion-controls img {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.accordion-controls img:hover {
    opacity: 0.7;
}

fieldset.slider-filter {
    height: 175px;
    padding-left: 15px;
    padding-right: 15px;
}
/* Exclude sliders from expanding/collapsing */
fieldset.slider-filter legend {
    padding-left: 10px;
    padding-right: 10px;
    pointer-events: none;  
    cursor: default;
}

/* Adjust accordion animations */
fieldset {
    overflow: hidden;
}

fieldset:not(.slider-filter) > *:not(legend, .status-text) {
    display: none;
}
fieldset.open > *:not(legend, .status-text) {
    display: block;
}


#reset-search {
    background-color: #d9534f; /* Red color for reset */
}


/* Exclude sliders from expanding/collapsing */
fieldset.slider-filter legend {
    pointer-events: none; /* Prevent clicks */
    cursor: default;
}

/* Adjust accordion animations */
fieldset {
    overflow: hidden;
}

fieldset:not(.slider-filter) > *:not(legend, .status-text) {
    display: none;
}
fieldset.open > *:not(legend, .status-text) {
    display: block;
}

.search-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.search-controls button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: 0.3s;
}

.search-controls button:hover {
    background-color: #005f8c;
}

.search-controls img {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.search-controls img:hover {
    opacity: 0.7;
}

.noUi-pips { /* Container for all pips */
    display: flex; /* or inline-flex */
    justify-content: space-between; /* Distribute pips evenly */
    width: 100%; /* Ensure it takes full width */
}

.noUi-value { /* Individual pip label */
    font-size: 12px; /* Adjust font size */
    color: #018345; /* Adjust color */
    margin-top: 5px; /* Adjust vertical position */
}

fieldset.slider-filter {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.fabrications-loop-grid {
    min-height: 300px; /* Adjust based on typical height */
    min-width: 100%; /* Ensures full width remains intact */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.e-looop-noting-found-message {
    background-color: blanchedalmond;
    font-size: 50px;
    font-weight: 500;
}

#general-search-fieldset {
    display: block !important;
    visibility: visible !important;
}

#general_search {
    padding-left: 30px; /* Adjust this based on your icon size */
/*    background-image: url("https://upload.wikimedia.org/wikipedia/commons/5/55/Magnifying_glass_icon.svg"); */
    background-repeat: no-repeat;
    background-position: 5px center; /* Adjust position to avoid overlap */
    background-size: 20px; /* Adjust based on the icon */
}

.hidden {
    display: none;
}




/* Fullscreen overlay */
.search-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dim background */
    z-index: 9999; /* Ensure it's above everything */
    justify-content: center;
    align-items: center;
}

/* Modal content centered */
.search-modal-content {
    position: absolute;
    background: white;
    font-family: Arial, sans-serif;
    top: 10%; /* Moves it to the upper half of the viewport */
    left: 50%;
    transform: translate(-50%, 0); 
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 80%;
     
}

/* Ensure visibility */
.search-modal-overlay.visible {
    display: flex; /* Show when needed */
}


 
/* Style for the summary list */
#search-summary {
    list-style-type: none;
    padding: 0;
}

/* Style for category and characteristics lists */
#search-summary ul {
    margin: 5px 0 10px 25px;  /* Indent sub-items */
    padding-left: 0;
}

/* Style for comma-separated lists (colors, plies) */
.search-summary-inline {
    display: block;
    margin-left: 25px; /* Indent */
}

 
.search-modal-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.search-modal-content ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
}

.search-modal-content ul li {
    margin-bottom: 5px;
}


/* Fullscreen no-results-modal overlay */
.no-results-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dim background */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Show no-results-modal */
.no-results-modal-overlay.visible {
    display: flex;
}

/* No-results-modal content */
.no-results-modal-content {
    position: absolute;
    top: 10%; /* Moves it to the upper half of the viewport */
    left: 50%;
    transform: translate(-50%, 0); 
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 80%;
    text-align: center;
}

/* No-results-modal button */
.no-results-modal-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

.no-results-modal-button:hover {
    background: #0056b3;
}
