.addsearch-facets label {
    cursor: pointer;
    font-size: 14px;
}

.addsearch-facets input {
    margin-right: 8px;
}
#business-line-filter-hidden {
    display: none;
}

.search-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Inter;
}

.sort-wrapper h4 {
    margin: 0;
    font-size: 16px;
    color: #212121;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; 
}
.addsearch-active-filters {
  gap: 12px;

}
.addsearch-active-filters .item {
    display: flex !important;
    border: 1px solid #005E60 !important;  
    border-radius: 200px !important;
    padding:  16px 16px !important;
    max-height: 8px;
    
}
.addsearch-active-filters .item span {
    color: #005e60;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%; /* 24px */
}
.addsearch-active-filters .item button {
    width: 20px !important;
    height: 20px !important;
    color: #005E60;
}

/*Clear button*/
.addsearch-active-filters .item:has(> button[data-clearall="true"]) {
   border: 1px solid #ccc !important;
    border-radius: 200px;
}
.addsearch-active-filters button[data-clearall="true"] {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.75rem;
    letter-spacing: 0;
    color: #737373 !important;
    padding-left: 0;  
    width: auto !important;
    height: auto !important;
    background-color: #f1f1f1;
    font-family: Inter;
}

.addsearch-sortby {
width: 100%;
max-width: 160px;
font-size: 1rem;
border-color: #CCC;
color: var(--ge-neutral-900);
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
/* background: url(/software/modules/custom/ge_addsearch/css/./images/down-arrow.svg) calc(100% - 8px) center no-repeat; */
border-radius: 0.25rem;
/* min-width: 12.125rem; */
}
.facet-dropdown {
    /* position: relative; */
    margin-bottom: 20px;
}
 #searchfield-container input {
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #999;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 24px */
    padding-left: 0 !important;
} 
.addsearch-searchfield input[type=search] {
    min-width: 250px !important;
    border: unset !important;
}

.facet-dropdown-toggle  {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 14px 20px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #999;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 24px */
    font-family: Inter;
}

.facet-dropdown-menu {
    display: none;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 6px;
    z-index: 99;

    /* max-height: 320px; */
    overflow-y: auto;

    padding: 12px;
    max-height: 0;
  overflow: hidden;
  max-height: 0;
  overflow: hidden;

  transition: max-height 0.4s ease,opacity 0.3s ease;

  opacity: 0;
}

.facet-dropdown.active .facet-dropdown-menu {
    display: block;
  opacity: 1;
}

.dropdown-arrow {
    font-size: 18px;
}

/* Optional cleaner checkbox spacing */
.facet-dropdown-menu label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    cursor: pointer;
}
/* Dropdown scroll area */
.facet-dropdown-menu {
    max-height: 240px;
    overflow-y: auto;

    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #999 transparent;
}

/* Chrome / Edge / Safari */
.facet-dropdown-menu::-webkit-scrollbar {
    width: 4px;
}

.facet-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.facet-dropdown-menu::-webkit-scrollbar-thumb {
    background-color: #999;
    border-radius: 20px;
}

.facet-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background-color: #666;
}
/* =========================
   Search Box Styling
========================= */

.search-box-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

/* Force AddSearch input inside sidebar */
#searchfield-container,
#searchfield-container form,
#searchfield-container .addsearch-search {
    width: 100%;
}


.addsearch-searchfield {
    height: 53px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 14px 16px !important;
    background: #fff !important;
    font-size: 16px !important;
    font-family: Inter;
    outline: none;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

/*Focus */
 #searchfield-container input:focus,
.addsearch-searchfield:focus , #searchfield-container input:focus-visible,
.addsearch-searchfield:focus-visible {
    border-color: unset !important;
    border: unset !important;
    outline: unset;
}

/* Placeholder */
#searchfield-container input::placeholder,
.addsearch-searchfield::placeholder {
    color: #999;
    font-size: 15px;
}

.addsearch-searchfield .search-field-wrapper {
    float: none;
    width: 100% !important;
    height: 100%;
    max-width: 270px !important;
}


/* Search icon */
/* .search-box-wrapper*/

.addsearch-searchfield::after { 
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    background-image: url('../icons/search.svg');
    pointer-events: none;
    width: 24px;
    height: 24px;
    z-index: 999;
    margin-right: 10px;
}
#searchfield-container button {
    display: none !important;
}

.h2{
    margin-top: 20px;
        font-weight: 700;
        margin-bottom: 20px;
}
.main-heading {
    margin-bottom: 40px;
}

.main-heading h2 {
    font-family: Inter;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    color: #212121;
}
.results-heading {
    margin-bottom: 15px;
}

.results-heading h2 {
    font-weight: normal;
    color: #005e60;
    margin: 0;
    font-family: "Sons Condensed";
    font-size: 60px;
    font-style: normal;
    font-weight: 800;
    line-height: 90%; /* 54px */
    text-transform: uppercase;
}

.search-wrapper {
    margin-top: 80px;
    margin-bottom: 80px;

}

.addsearch-sortby select {
    display: flex;
    width: 160px;
    height: 40px;
    padding: 0 20px;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    border: 1px solid #ccc;
    color: #737373;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.addsearch-sortby select::after {
   background-image: url('../icons/down-arrow.svg');
}
.dropdown-arrow {
    display: inline-block;
  width: 24px;
  height: 24px; 
  background-image: url('../icons/down-arrow.svg');
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}

/*Search result right section*/
.addsearch-searchresults h3 {
    margin-bottom: 20px;
}
.addsearch-searchresults .hit {
    border-bottom: 1px solid #ccc;
    padding: 0 !important;
    padding-bottom: 20px !important;
}
.addsearch-searchresults .hit h3 {
    color:  #212121;
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 135%; /* 27px */
}

.addsearch-searchresults .hit div {
    /* display: flex;
    flex-direction: row-reverse;
    justify-content: space-between; */
}

.addsearch-searchresults .hit .main-image {
    width: 100% !important;
    max-width: 160px;
    height: auto;
    margin-left: 40px !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    float: right !important;
}
/*category*/
.addsearch-searchresults .hit .category {
    margin-bottom: 0 !important;
}
/*Pagination*/ 
.addsearch-pagination {
  gap: 20px;
}
.addsearch-pagination button[data-active=true] {
    background-color: #C8FF08 !important;
    border-radius: 80px !important;
    color: #212121;
   
}
.addsearch-pagination button {
 border: unset !important;
 font-size: 20px;
font-style: normal;
font-weight: 400;
line-height: 135%; 
color: #737373;
font-family: Inter;
}

.addsearch-pagination button[data-page=next] , .addsearch-pagination button[data-page=next], .addsearch-pagination button[data-page=previous] {
    color: #005E60;
}

.addsearch-pagination button[data-page=next], .addsearch-pagination button[data-page=previous] {
    font-size: 22px !important;
}


/*Only mobile layout */


/* mobile filters */
/*desktop*/
.filter-toggle-btn, .mobile-only {
  display: none;
}

/* .grid-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
} */

.filter-sections-flex {
  display: block;
}
.filter-sections-flex h4 {
  font-size: 16px;
  font-family: Inter;
  color:  #212121;
font-style: normal;
font-weight: 700;
line-height: 150%; /* 27px */
}

/*
   Tablet and mobile layout(Screens < 1024px)
   */
@media screen and  (max-width: 1023px) {

/*for removing padding on smaller devices of global container*/
.path-resources-library .container {
    margin: 0;
    padding: 0 !important;
    max-width: 100%;

}
  
  .grid-container {
    display: flex;
    flex-direction: column;
  }
  .search-wrapper {
    gap: unset;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
  }
  .desktop-only {
    display: none;
  }

   aside {
    padding: 32px 40px;
   }
/* Padding for all containers on tbalet and mobile. */
   .search-toolbar, #results-container , #active-filters-container, #pagination-container {
        padding: 0 32px;
   }

   /*Search field wrapper*/
   .addsearch-searchfield .search-field-wrapper {
    max-width: 100% !important;
   }
   #searchfield-container input {
    max-width: 100%;
   }
   /*full with search field on tablet nad mobile*/
   .filter-sections-flex > section:first-child {
    flex: 1 1 100%;
    max-width: 100%;
    }

    /*search icon on tablet and mobile*/
    #searchfield-container input {
       padding-right: 0 !important;
        margin-right: 0 !important; 
    }
    .addsearch-searchfield::after {
        margin-right: 30px;
    }

  .filter-drawer {
    display: block; 
    width: 100%;
    position: relative; 
    margin-bottom: 0px;
    max-width: 100%;
    padding: 32px 40px;
  }
  .filter-drawer .drawer-header.mobile-only {
    display: flex;
    align-items: center;
    width: 100%;
    height: 40px; 
    max-width: 100%;
    justify-content: space-between;
  }
  
  .filter-drawer .drawer-header.mobile-only h2 {
    margin: 0;
    font-family: Inter;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 135%; 
  }

  /*Filter button for mobile*/
  .filter-toggle-btn {
    display: flex;
    height: 40px;
    padding:  16px 24px;
    justify-content: center;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    border: 2px solid #005E60;
    border-radius: 200px;
    color: #005E60;
    background-color: transparent;
  }

  /* Hide the filters block content by default */
  .filter-drawer .filter-sections-flex {
    display: none;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    margin-top: 15px;
  }

  /* Open State layout rule */
  .filter-drawer.is-open .filter-sections-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 0;
    border: unset;
  }

  .filter-sections-flex > section {
    flex: 1;
    min-width: 250px;
    margin: 0;
  }
}

/*Mobile only */
@media screen and (max-width: 480px) {
    aside {
        padding: 20px;
    }
   /* or Heading and sort */
  .search-toolbar{
    align-items: flex-start;
    margin-bottom: 20px;
    flex-direction: column;
  }
  .filter-drawer .drawer-header.mobile-only {
   
  }
  .filter-drawer {
    margin-bottom: 0;
    padding: 20px;
  }

  .filter-drawer .drawer-header.mobile-only h2 {
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 135%;
    }
    /*padding for all containers on mobile*/
    .search-toolbar, #results-container, .active-filters-container , #pagination-container{
        padding: 0 20px;
   }
   .addsearch-result {
    padding: 20px 0 !important;
    flex-direction: column-reverse;
    gap: 20px !important;
   }
}

/* Result Card */
.addsearch-result {
  background: transparent;
  border: none;
  padding: 32px 0;
  margin-bottom: 0;
  box-shadow: none;
  cursor: default;
  transition: none;
  border-bottom: 1px solid #e0e0e0; /* only separator line */
  gap: 40px;
}

.addsearch-result:first-child {
  padding-top: 40px;
}

/* Content Type */
.result-content-type {
  
  color: #005e60;
  margin-bottom: 4px;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 24px */
}

/* Title */
.addsearch-result-title {
  /* font-size: 16px; */
  font-family: Inter;
  color:  #212121;
font-size: 20px;
font-style: normal;
font-weight: 700;
line-height: 135%; /* 27px */
}

/* .addsearch-result-title:hover {
  color: #0066cc;
  text-decoration: underline;
} */

/* Description */
.addsearch-result-description {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;     /* limits to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Date */
.result-date {
  overflow: hidden;
color: var(--Form-Placeholder, #999);
text-overflow: ellipsis;
white-space: nowrap;
font-family: Inter;
font-size: 16px;
font-style: italic;
font-weight: 400;
line-height: 150%; /* 24px */
}

/* Thumbnail */
.addsearch-result-thumbnail img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}
.addsearch-result-description {
    overflow: hidden;
color:  #737373;
text-overflow: ellipsis;
/* Desktop/P */
font-family: Inter;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 150%; /* 24px */
}