body.search .facetwp-input-wrap{
    display: block;
}

body.search .search-bar input[type="text"]{
    width: 100%;
    max-width: 1032px;
    border-radius: 100px;
    border: 0;

    font-family: Gotham;
    font-size: 18px;
    font-style: normal;
    font-weight: 350;
    line-height: normal;

    padding: 17px 34px;
}

body.search .search-submit{
    display: none;
}

body.search .search-field:focus{
    outline: none;
}

#search-results{
    background: #fff;
    color: #000;
    border-top-left-radius: 40px;
    margin-top: 17px;
    padding-top: 42px;
    padding-bottom: 90px;
}

#search-results .results-header{
    display: flex;
    max-width: 1032px;
    width: 100%;
    justify-content: space-between;
    margin: 0 auto 33px;
}

#search-results .results-header .col-left{
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

#search-results .results-header h2{
    font-family: Flaviotte;
    font-size: 36px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
}

#search-results .results-header .results-count{
    font-family: Gotham;
    font-size: 16px;
    font-style: normal;
    font-weight: 350;
    line-height: normal;
}

#search-results .results-header .facetwp-facet{
    margin: 0;
}

#search-results .results-header select:focus{
    outline: none;
}

#search-results .results-grid{
    width: 100%;
    max-width: 1032px;
    margin: 0 auto;
    display: flex;
    gap: 86px 18px;
    flex-wrap: wrap;
    text-align: left;
}

#search-results .results-grid .featured-card{
    width: 244px;
    flex-grow: 0;
    flex-shrink: 0;
}

#search-results .results-grid .featured-card .image-container{
    width: 244px;
    height: 326px;
}

#search-results .featured-card h3{
    color: black;
}

#search-results .pagination{
    max-width: 1032px;
    width: 100%;
    margin: 75px auto 0;
    border-top: 1px solid;
}

#search-results .facetwp-pager{
    display: flex;
    font-family: Gotham;
    font-size: 16px;
    font-style: normal;
    font-weight: 325;
    line-height: normal;
    justify-content: center;
    gap: 20px;
    align-items: center;
    margin-top: 25px;
}

#search-results .pagination a{
    color: #000;
    text-decoration: none;
}

#search-results .pagination a.active{
    color: #F66639;
}

#search-results .prev, #search-results .next{
    text-indent: -9999%;
    width: 32px;
    height: 32px;
    display: inline-block;
}

#search-results .prev:before{
    width: 32px;
    height: 32px;
    background: url(/wp-content/themes/wpadc_archive/images/carbon_prev-outline.svg);
    content: '';
    text-indent: 0;
    float: left;
}

#search-results .next:before{
    width: 32px;
    height: 32px;
    background: url(/wp-content/themes/wpadc_archive/images/carbon_next-outline.svg);
    content: '';
    text-indent: 0;
    float: left;
}


/* FILTERS */
.search-filters{
    display: flex;
    flex-direction: column;
    max-width: 1032px;
    width: 100%;
    margin: 20px auto;
    gap: 17px;
    color: #fff;
}

.search-filters .facetwp-selections ul{
    display: flex;
    gap: 14px;

}

.search-filters .facetwp-selection-label{
    display: none;
}

.search-filters .facetwp-selections .facetwp-selection-value{
    filter: brightness(0) saturate(100%) invert(100%) sepia(23%) saturate(0%) hue-rotate(340deg) brightness(112%) contrast(101%);
    margin: 0;
    font-family: Gotham;
    font-size: 11px;
    font-style: normal;
    font-weight: 325;
    line-height: 13px; /* 118.182% */
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.search-filters .filter-row{
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.search-filters .filter-row > div{
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.search-filters .facetwp-facet{
    margin: 0;
}

.facetwp-facet select{
    cursor: pointer;
    padding: 12px 17px;
    border-radius: 20px;
    background-color: #3E3739;
    color: #fff;
    font-family: Gotham;
    border: 0;
}

.facetwp-facet select, .facetwp-facet select::picker(select) {
  appearance: base-select;
}

.facetwp-facet select::picker-icon{
    appearance: base-select;
}

.facetwp-facet select::picker(select){
    border: 0;
    border-radius: 5px;
    background: var(--Darker-Gray, #3E3739);
    box-shadow: -5px 5px 3px 0px rgba(0, 0, 0, 0.25);
    margin-top: 4px;
    padding: 3px;
}

.facetwp-facet option{
    color: #fff;
    padding: 8px 4px;
    border-radius: 3px;
}

.facetwp-facet option:hover{
    background-color: #6741F5;
}

.search-filters button{
    cursor: pointer;
    color: #FFF;
    font-family: Gotham;
    font-size: 11px;
    font-style: normal;
    font-weight: 325;
    line-height: 13px; /* 118.182% */
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    background-color: transparent;
    border: 0;
}

@media screen and (max-width: 768px) {
    .search-filters .filter-row{
        flex-direction: column;
        gap: 1rem;
    }

    body.search .search-form{
        padding: 20px;
    }

    .search-filters{
        padding: 0 20px;
    }

    #search-results{
        padding-left: 20px;
        padding-right: 20px;
    }

    #search-results .results-header{
        flex-direction: column;
        gap: 20px;
    }

    #search-results .results-header .col-left{
        flex-direction: column;
        align-items: flex-start;
    }
    
    #search-results .results-header .col-right{        
        text-align: right;
    }

    #search-results .results-grid{
        flex-direction: column;
        flex-wrap: nowrap;
    }

    #search-results .results-grid .featured-card{
        width: 100%;
    }

    #search-results .results-grid .featured-card .image-container{
        width: 100%;
        text-align: center;
    }
}