.search-results .brand-tabs.search-tabs {
    display: flex;
    justify-content: space-between;
    margin: 0 0 25px;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    box-shadow: inset 0 -1px rgba(0, 0, 0, 0.1);
}

.search-results .brand-tabs .tablinks-group {
    display: flex;
}

.search-results .brand-tabs button.tablinks,
.search-results .brand-tabs a.tablinks {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #666;
    display: inline-flex;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    padding: 8px 16px;
    text-decoration: none;
    white-space: nowrap;
}

.search-results .brand-tabs .has-docs button.tablinks:hover,
.search-results .brand-tabs .has-docs a.tablinks:hover {
    border-bottom: 2px solid #438bca;
    color: #333;
    cursor: pointer;
}

.search-results .brand-tabs button.tablinks.active,
.search-results .brand-tabs a.tablinks.active {
    border-bottom: 2px solid #438bca;
    color: #333;
}

.search-results .search-tabs .tab-count {
    color: #777;
    font-size: 12px;
    margin-left: 4px;
}

.search .search-entry.type-products .search-thumbnail-box img,
.search-results .search-entry.type-products .search-thumbnail-box img {
    width: 100%;
    height: 220px;
    object-fit: contain;
}

.search .search-highlight,
.search-results .search-highlight {
    background-color: #fff2a8;
    border-radius: 2px;
    color: inherit;
    padding: 0 2px;
}

.search .search-entry.search-firm-entry,
.search-results .search-entry.search-firm-entry {
    white-space: normal;
}

.search .search-entry.search-firm-entry .search-entry-info,
.search-results .search-entry.search-firm-entry .search-entry-info {
    display: block;
    width: 100%;
}

.search .search-entry.search-firm-entry .search-entry-info:before,
.search-results .search-entry.search-firm-entry .search-entry-info:before {
    content: 'Firm';
    color: #fff;
    background-color: #438bca;
    font-weight: 700;
    padding: 1px 10px;
    border-radius: 3px;
    font-size: 11px;
    margin-bottom: 10px;
    display: inline-block;
    line-height: 16px;
}

.search .search-entry.type-products .search-entry-info:before,
.search-results .search-entry.type-products .search-entry-info:before {
    content: 'Product';
    color: #fff;
    background-color: #438bca;
    font-weight: 700;
    padding: 1px 10px;
    border-radius: 3px;
    font-size: 11px;
    margin-bottom: 10px;
    display: inline-block;
    line-height: 16px;
}

.search .search-product-brand,
.search-results .search-product-brand {
    color: #555;
    font-weight: 600;
    margin-bottom: 6px;
}

.search-results .search-tab-pagination {
    clear: both;
}

@media screen and (max-width: 767px) {
    .search-results .search-tabs {
        margin-bottom: 20px;
    }

    .search-results .brand-tabs a.tablinks,
    .search-results .brand-tabs button.tablinks {
        padding: 8px 12px;
    }
}
