.brandslab-search-container {
    position: relative;
    min-height: 100vh;
}

.brandslab-search-header {
    position: relative;
    margin-bottom: 64px;
    margin-top:32px;
}

.header-foreground-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.search-header-title-background {
    font-family: 'Figtree', sans-serif;
    font-weight: 800;
    font-size: 94px;
    line-height: 1.2;
    margin: 0;
    position: absolute;
    transform: translate(480px,70px);
    color: #1D1D1B;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
}

.search-header-image {
    max-width: 720px;
    position: relative;
    overflow: hidden;
    img{
        border-radius: 15px;
        height: 350px;
        object-fit: cover;
    }
}

.search-header-title-foreground {
    font-family: 'Figtree', sans-serif;
    font-weight: 800;
    font-size: 94px;
    line-height: 1.2;
    margin: 0;
    position: absolute;
    transform: translate(480px,70px);
    color: white;
    top: 0;
    left: 0;
    width: 100%;
}



.right-side-entry-content{
    display: flex;
    justify-content: end;
    align-items: end;
    margin-bottom:76px;
}

.search-header-content {
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1D1D1B;
    max-width: 400px;
}

.search-header-content p {
    margin: 0 0 16px 0;
}

.search-header-content p:last-child {
    margin-bottom: 0;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #B6B6B6 !important;
    border-radius: 0px 5px 0px 5px !important;
    min-height: 50px !important;
    padding: 6px 40px 6px 12px !important;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0 !important;
    margin: 0 !important;
}
.select2-container--default .select2-search__field{
    margin:0!important;
}
.select2-search.select2-search--inline{
    display: flex;
}
.select2-search.select2-search--inline textarea::placeholder{
    font-size: 14px!important;
    font-family: 'Figtree', sans-serif !important;
    color:#1D1D1B;
}
.select2-selection.select2-selection--multiple{
    background-image: url('data:image/svg+xml,<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3 4.5L6 7.5L9 4.5" stroke="%231D1D1B" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: 96%;
    background-color: transparent;

}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: #1D1D1B !important;
    font-family: 'Figtree', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 0 !important;
    margin: 4px 8px 0 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    display: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__arrow {
    display: block !important;
    height: 48px !important;
    position: absolute !important;
    right: 15px !important;
    top: 1px !important;
    width: 20px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__arrow b {
    border: none !important;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMgNC41TDYgNy41TDkgNC41IiBzdHJva2U9IiMxRDFEMUIiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHE2Zz4=') no-repeat center !important;
    background-size: 12px 12px !important;
    height: 12px !important;
    width: 12px !important;
    margin: 0 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.select2-dropdown {
    border-radius: 0px 5px 0px 5px !important;
    background: #FFFFFF !important;
    position: relative !important;
    border:1px solid #B6B6B6;
}
.select2-selection[aria-expanded="true"]{
    border-radius: 0!important;
}
.select2-dropdown::before {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--color-white-01);
    z-index: 1;
    rotate: 45deg;
    border-left: 1px solid #B6B6B6;
    border-bottom: 1px solid #B6B6B6;
}


.select2-container--default .select2-results__options {
    max-height: 200px !important;
}

.select2-container--default .select2-results__option {
    padding: 12px 16px !important;
    font-family: 'Figtree', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1D1D1B !important;
    background-color: transparent !important;
    border-bottom: 1px solid #F0F0F0 !important;
}

.select2-container--default .select2-results__option:last-child {
    border-bottom: none !important;
}

.select2-container--default .select2-results__option--highlighted {
    background-color: #F5F5F5 !important;
    color: #1D1D1B !important;
}

.select2-container--default .select2-results__option--selected {
    background-color: #E8E8E8 !important;
    color: #1D1D1B !important;
    font-weight: 600 !important;
}

.select2-container--default .select2-results__option[aria-disabled=true] {
    color: #B6B6B6 !important;
    background-color: #F9F9F9 !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 12px 16px !important;
    border: none !important;
    border-bottom: 1px solid #B6B6B6 !important;
    border-radius: 0 !important;
    font-family: 'Figtree', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1D1D1B !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    outline: none !important;
    border-bottom-color: #1D1D1B !important;
}

.search-bar-container {
    position: relative;
    margin-bottom: 64px;
    overflow: hidden;
    &::before{
        content: "";
        position: absolute;
        top: -10px;
        left: -10px;
        width: 20px;
        height: 20px;
        background: var(--color-white-01);
        z-index: 1;
        rotate: 45deg;
        border-right: 1px solid #1d1d1b;
    }
    &::after{
        content: "";
        position: absolute;
        bottom: -10px;
        right: -10px;
        width: 20px;
        height: 20px;
        background: var(--color-white-01);
        z-index: 1;
        rotate: 45deg;
        border-left: 1px solid #1d1d1b;
    }
}

#brandslab-search-input {
    width: 100%;
    height: 50px;
    padding: 20px 16px;
    border: 1px solid #1D1D1B;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1D1D1B;
    outline: none;
    box-sizing: border-box;
    position: relative;
    border-radius: 5px;

}

#brandslab-search-input::placeholder {
    color: #1D1D1B;
    font-weight: 500;
}

#brandslab-search-input:focus {
    border-color: #1D1D1B;
}
#brandslab-search-container textarea{
    min-height:unset;
}

.search-button {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 34px;
    height: 34px;
    background: #1D1D1B;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    &::before{
        content: "";
        position: absolute;
        top: -6px;
        left: -6px;
        width: 11px;
        height: 11px;
        background: var(--color-white-01);
        z-index: 1;
        rotate: 45deg;
    }
    &::after{
        content: "";
        position: absolute;
        bottom: -6px;
        right: -6px;
        width: 11px;
        height: 11px;
        background: var(--color-white-01);
        z-index: 1;
        rotate: 45deg;
    }
}

.search-button:hover {
    background: #333;
}

.filters-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    flex-wrap:wrap;

}

.filters-title {
    font-family: 'Figtree', sans-serif;
    font-weight: 800;
    font-size: 24px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #1D1D1B;
    margin-bottom: 20px;
    margin-top: 0;
}


.filters-container .filters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    justify-content: start;
}

.filter-group {
    position: relative;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    height: max-content;
    &::before{
        content: "";
        position: absolute;
        top: -10px;
        left: -10px;
        width: 20px;
        height: 20px;
        background: var(--color-white-01);
        z-index: 1;
        rotate: 45deg;
        border-right: 1px solid #B6B6B6;
    }
    &::after{
        content: "";
        position: absolute;
        bottom: -10px;
        right: -10px;
        width: 20px;
        height: 20px;
        background: var(--color-white-01);
        z-index: 1;
        rotate: 45deg;
        border-left: 1px solid #B6B6B6;
    }
}

.filter-title {
    display: none;
}

.brandslab-filter-select {
    width: 100%;
    height: 50px;
    border: 1px solid #B6B6B6;
    border-radius: 0px 5px 0px 5px;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1D1D1B;
    padding: 16px 40px 16px 20px;
    background: transparent;
    appearance: none;
    cursor: pointer;
}


.filter-section-header {
    display: flex;
    align-items: center;
    gap: 56px;
    margin-bottom: 20px;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1D1D1B;
}


.active-filters-container {
    margin-bottom: 30px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    display: flex;
    gap:24px;
    flex-wrap: wrap;
}

.active-filters-container p {
    font-size:14px;
    font-weight: 500;
    height: fit-content;
    line-height: 100%;
}

.built-in-container{
    display: flex;
    align-items: center;
}
.active-filters-container .separator{
    width: 1px;
    height: 17px;
    margin:0 24px;
    background-image: linear-gradient(
            to bottom,
            rgba(210, 210, 210, 0) 0%,
            rgba(210, 210, 210, 1) 50%,
            rgba(210, 210, 210, 0) 100%
    );
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    color: #1D1D1B;
    padding: 9px 16px;
    border-radius: 5px;
    font-family: 'Figtree', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    gap: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;

    svg.background{
        position: absolute;
        left: 0;
        top:0;
        width: 100%;
        height: 100%;
        z-index: -1;
    }
}
.active-filter-tag .bolder{
    font-weight: 800;
}


.remove-filter {
    background: none;
    border: none;
    color: #1D1D1B;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    margin-left: 0;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-all-button {
    background: none;
    color: #1D1D1B;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 4px;
    height: fit-content;
}

.clear-all-button:hover {
    color: #666;
}

.instructions-section,
.warranties-section {
    margin-bottom: 40px;
}

.instructions-black-bar,
.warranties-black-bar {
    width: 100%;
    height: 50px;
    background: #1D1D1B;
    border-radius: 0px 5px 0px 5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 32px;
    box-sizing: border-box;
    cursor: pointer;
    transition: background-color 0.3s ease;
    overflow: hidden;
    &::before{
        content: "";
        position: absolute;
        top: -10px;
        left: -10px;
        width: 20px;
        height: 20px;
        background: var(--color-white-01);
        z-index: 1;
        rotate: 45deg;
        border-right: 1px solid #1d1d1b;
    }
    &::after{
        content: "";
        position: absolute;
        bottom: -10px;
        right: -10px;
        width: 20px;
        height: 20px;
        background: var(--color-white-01);
        z-index: 1;
        rotate: 45deg;
        border-left: 1px solid #1d1d1b;
    }
}


.section-title {
    font-family: 'Figtree', sans-serif;
    font-weight: 800;
    font-size: 24px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #FFFFFF;
}

.section-arrow {
    width: 34px;
    height: 34px;
    background-repeat: no-repeat;
    background-position: center;
    background-color:white;
    padding:8px;
    border-radius: 5px;
    position: relative;
    &::before{
        content: "";
        position: absolute;
        top: -6px;
        left: -6px;
        width: 12px;
        height: 12px;
        background: #1D1D1B;
        z-index: 1;
        rotate: 45deg;
    }
    &::after{
        content: "";
        position: absolute;
        bottom: -6px;
        right: -6px;
        width: 12px;
        height: 12px;
        background: #1D1D1B;
        z-index: 1;
        rotate: 45deg;
    }
    svg{
        transition: transform 0.3s ease;
    }
}

.section-arrow.expanded svg {
    transform: rotate(180deg);
}

.instructions-content,
.warranties-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    max-height: 2000px;
}

.instructions-content.collapsed,
.warranties-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
}

.instructions-content {
    padding-top: 32px;
}

.warranties-content {
    padding-top: 32px;
}

.warranty-placeholder {
    text-align: center;
    padding: 40px 20px;
    font-family: 'Figtree', sans-serif;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.results-container {
    margin-top: 60px;
}

.results-header {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    margin-bottom: 30px;
    padding-bottom: 0;
    border-bottom: none;
    gap: 24px;
}

.results-header h3 {
    margin: 0;
    font-family: 'Figtree', sans-serif;
    font-weight: 800;
    font-size: 24px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #1D1D1B;
}

.results-count {
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #1D1D1B;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.results-table thead {
    display: none;
}

.results-table tbody {
    display: block;
}

.results-table tbody tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: none;
    background: linear-gradient(90deg, transparent 0%, #D2D2D2 49.52%, transparent 100%);
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: bottom;
}

.results-table tbody tr:last-child {
    background: none;
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.results-table td {
    display: block;
    padding: 0;
    border: none;
    vertical-align: top;
    margin-bottom: 0;
}

.result-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.result-download {
    text-align: right;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.result-name {
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.2;
    color: #1D1D1B;
    text-decoration: underline;
}

.instuctions-notice{
    font-weight: 500;
    font-size: 14px;
    color:#1d1d1b;
    line-height: 100%;
    margin-bottom: 32px;
}

.result-filename {
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    color: #1D1D1B;
    margin-bottom: 8px;
}

.result-download {
    text-align: left;
    width: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-icon {
    width: 24px;
    height: 24px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.download-icon:hover {
    transform: scale(1.1);
}

.no-file-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
    opacity: 0.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ccc;
    border-radius: 50%;
    color: white;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    font-family: 'Figtree', sans-serif;
    color: #1D1D1B;
    font-size: 16px;
    font-weight: 500;
    background: transparent;
    border-radius: 0;
}

.search-loader {
    text-align: center;
    padding: 40px 20px;
}

.search-loader p {
    font-family: 'Figtree', sans-serif;
    color: #1D1D1B;
    font-size: 14px;
    font-weight: 500;
    margin: 10px 0 0 0;
}

.loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1D1D1B;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pagination-container {
    margin-top: 60px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #1D1D1B;
    text-decoration: none;
    color: #1D1D1B;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

.pagination a:hover {
    background: #1D1D1B;
    color: white;
}

.pagination .current {
    background: #1D1D1B;
    color: white;
    border-color: #1D1D1B;
}
.entry-separator{
    height: 1px;
    background-image: linear-gradient(
            to right,
            transparent 0%,
            #D2D2D2 50%,
            transparent 100%
    );
    width: 100%;
    margin-bottom: 64px;
}
@media (max-width: 1200px) {
    .brandslab-search-header,.entry-separator{
        margin-bottom: 48px;
    }
    .header-foreground-wrapper{
        flex-direction: column;
        img{
            width: 100%;
        }

    }
    .search-header-title-background,.search-header-title-foreground{
        font-size: 48px;
        transform:translate(0,321px)
    }
    .right-side-entry-content{
        justify-content: start;
        align-items: start;
        max-width: unset;
        margin-top:49px;
        margin-bottom: 0;
    }
    .search-header-content{
        max-width: unset;
    }
    .brandslab-search-container {
        padding: 48px 0;
    }
    
    .filters-container .filters-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .brandslab-search-container {
        padding: 24px 0;
    }
    
    .filters-container .filters-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .search-bar-container {
        display: flex;
        flex-direction: column;
        margin-bottom: 48px;
    }
    
    #brandslab-search-input {
        padding: 16px 20px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .results-table tbody tr {
        align-items: flex-start;
        justify-content: space-between;
    }


    .result-info {
        width: 100%;
    }
    

    .result-name {
        font-size: 20px;
    }
    
    .result-filename {
        font-size: 12px;
    }
    
    .instructions-black-bar,
    .warranties-black-bar {
        padding: 0 16px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .result-name {
        font-size: 18px;
    }
    
    .active-filter-tag {
        font-size: 11px;
        padding: 6px 12px;
    }
}
