@media(min-width:1024px) {
    form#docs-search-form:not(.search-open) .algolia-autocomplete {
        width: 100%;
    }
}

input[type=search]::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

input[type=search]::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

body.modal-search {
    overflow: hidden!important;
}

#docs-panel form+span {
    position: fixed;
    width: 0;
    height: 0;
    top: 0;
    left: 0;
    background: transparent;
    z-index: 1000;
}

#docs-panel form.search-open+span {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    transition: background-color .3s ease;
}

form.search-open span.algolia-autocomplete {
    position: fixed!important;
    top: 6px;
    left: calc(50% - 410px);
    width: 820px;
    z-index: 1001;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0px 20px 32px rgba(96, 97, 112, 0.24), 0px 2px 8px rgba(40, 41, 61, 0.08);
    transition: background-color .3s ease;
}

@media(min-width:1024px) {
    #docs-search-form:not(.search-open) span.algolia-autocomplete.algolia-autocomplete-right {
        width: 100%;
    }
}

#clear-search {
    font-size: 0;
}

form.search-open #clear-search {
    width: 13px;
    height: 13px;
    position: absolute;
    top: 22px;
    left: calc(50% + 365px);
    z-index: 1003;
    background: url(../svg/search-close.svg) no-repeat;
    background-size: 100% 100%;
    cursor: pointer;
}

#clear-search:hover {
    filter: brightness(0.8);
}

form.search-open span.algolia-autocomplete #docs-search {
    z-index: 1002;
    padding: 15px 60px;
    background-position: 22px 14px;
}

span#algolia-autocomplete-listbox-0 {
    margin-top: -8px;
    width: 100%;
    max-width: 100%;
    border-radius: 0 0 8px 8px;
    max-height: calc(100vh - 70px);
    overflow-y: hidden;
    z-index: 1001!important;
    background: #fff;
    transition: background-color 0.3s ease;
}

span#algolia-autocomplete-listbox-0:before {
    content: "";
    position: absolute;
    width: calc(100% - 24px);
    height: 1px;
    background: #e4e4eb;
    top: 10px;
    z-index: 1002;
    right: inherit;
    left: 12px;
    transform: none;
    border: 0;
}

span#algolia-autocomplete-listbox-0:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 52px;
    background: #fafafc url(../svg/search-bottom.svg) no-repeat 0;
    background-position: 30px center;
    bottom: 0;
    z-index: 1002;
    left: 0;
    transition: background-color 0.3s ease;
}

.ds-dataset-1 {
    overflow-y: auto!important;
    max-height: calc(100vh - 140px);
    width: calc(100% - 9px);
    margin: 15px 0 52px;
    border: 0!important;
    scroll-behavior: smooth;
}

.ds-dataset-1::-webkit-scrollbar {
    width: 5px;
}

.ds-dataset-1 {
    scrollbar-width: thin;
}

.ds-dataset-1::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px #ccddff;
    border-radius: 2px;
}

.ds-dataset-1::-webkit-scrollbar-thumb {
    background: #6698ff;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.ds-dataset-1::-webkit-scrollbar-thumb:hover {
    background: #3f7eff;
}

.algolia-autocomplete .algolia-docsearch-suggestion--category-header {
    font-family: "Nunito Sans"!important;
    font-weight: normal;
    color: var(--regular)!important;
    font-size: 16px!important;
    line-height: 22px!important;
    margin: 10px 0 0!important;
    padding: 0!important;
    border: 0!important;
}

.algolia-autocomplete .algolia-docsearch-suggestion--wrapper {
    display: flex;
    flex-flow: column;
    justify-content: left;
}

.algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column {
    display: none!important;
}

.algolia-autocomplete .algolia-docsearch-suggestion--title {
    width: 100%;
    text-align: left;
    font-family: "Nunito Sans";
    font-size: 12px;
    color: #8f90a6;
    padding: 0;
}

.algolia-autocomplete .algolia-docsearch-suggestion--content {
    padding: 0!important;
    width: 100%!important;
}

.algolia-autocomplete .algolia-docsearch-suggestion--content:before {
    display: none!important;
}

.algolia-autocomplete .algolia-docsearch-suggestion--title,
.algolia-autocomplete .algolia-docsearch-suggestion--content * {
    font-family: "Nunito Sans"!important;
    font-weight: normal!important;
    font-size: 14px!important;
    line-height: 24px!important;
    color: var(--regular)!important;
}

.algolia-autocomplete .algolia-docsearch-suggestion--highlight {
    color: #3e7bfa!important;
    background: transparent!important;
}

.algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--highlight,
.algolia-autocomplete .algolia-docsearch-suggestion--category-header .algolia-autocomplete .algolia-docsearch-suggestion--highlight {
    color: var(--regular)!important;
    box-shadow: none!important;
}

.algolia-autocomplete .ds-dropdown-menu .ds-suggestion.ds-cursor .algolia-docsearch-suggestion.suggestion-layout-simple,
.algolia-autocomplete .ds-dropdown-menu .ds-suggestion.ds-cursor .algolia-docsearch-suggestion:not(.suggestion-layout-simple) .algolia-docsearch-suggestion--content {
    background: transparent!important;
}

.ds-dropdown-menu.mouse-freeze .ds-suggestions {
    position: relative;
}

.ds-dropdown-menu.mouse-freeze .ds-suggestions:before {
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    background: transparent;
    display: block;
    position: absolute;
}

.ds-suggestion {
    border-radius: 5px;
    overflow: hidden;
}

a.algolia-docsearch-suggestion {
    transition: all 0.1s ease!important;
    border-radius: 5px!important;
    padding: 0 12px;
}

.ds-suggestion.ds-cursor a {
    background: #3e7bfa!important;
}

.algolia-autocomplete .ds-suggestion.ds-cursor .algolia-docsearch-suggestion--title,
.algolia-autocomplete .ds-suggestion.ds-cursor .algolia-docsearch-suggestion--content *,
.ds-suggestion.ds-cursor .algolia-docsearch-suggestion--category-header,
.ds-suggestion.ds-cursor .algolia-docsearch-suggestion--title,
.ds-suggestion.ds-cursor .algolia-docsearch-suggestion--highlight {
    color: #fff!important;
}

.algolia-docsearch-suggestion.algolia-docsearch-suggestion__main.algolia-docsearch-suggestion__secondary .algolia-docsearch-suggestion--category-header {
    order: -1;
}

.algolia-autocomplete .algolia-docsearch-suggestion {
    display: flex!important;
    flex-flow: column wrap;
    padding: 0 12px 7px!important;
}

.algolia-autocomplete .algolia-docsearch-suggestion,
.algolia-autocomplete .algolia-docsearch-suggestion:before,
.algolia-autocomplete .algolia-docsearch-suggestion *,
.algolia-autocomplete .algolia-docsearch-suggestion *:after{
    transition: none!important;
}

.algolia-autocomplete .algolia-docsearch-suggestion:before,
.algolia-docsearch-suggestion--title:after {
    content: attr(data-breadcrumb);
    display: block;
    order: 0;
    font-size: 12px;
    line-height: 20px;
    color: #8f90a6;
    font-family: "Nunito Sans";
    letter-spacing: 0.3px;
    font-weight: normal;
    padding-top:1px;
}

.algolia-docsearch-suggestion.has-childtext:before {
    display:none;
}

.algolia-docsearch-suggestion.algolia-docsearch-suggestion__main.algolia-docsearch-suggestion__secondary .algolia-docsearch-suggestion--wrapper {
    order: 1;
    padding-top: 0!important;
}

.algolia-docsearch-suggestion.algolia-docsearch-suggestion__secondary:not(.algolia-docsearch-suggestion__main)
 .algolia-docsearch-suggestion--wrapper {
    order: 0;
}

.algolia-docsearch-suggestion:not(.algolia-docsearch-suggestion__secondary):not(.algolia-docsearch-suggestion__main)
 .algolia-docsearch-suggestion--wrapper {
    order: 1;
    padding-top: 0!important;
}

.algolia-autocomplete .ds-cursor .algolia-docsearch-suggestion:before,
.algolia-autocomplete .ds-cursor .algolia-docsearch-suggestion--title:after {
    color: #fff;
}

.algolia-autocomplete .algolia-docsearch-suggestion:not(.has-childtext) .algolia-docsearch-suggestion--title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;  
}

.algolia-autocomplete .algolia-docsearch-suggestion.has-childtext .algolia-docsearch-suggestion--title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media(max-width:1023px) {
    body:not(.modal-search) #docs-panel input[type=search] {
        display: none;
    }
    body.modal-search form span.algolia-autocomplete {
        width: calc(100% - 40px);
        left: 20px;
        z-index: 1002;
        background-position: 22px 14px;
        position: fixed!important;
        top: 6px;
        z-index: 1001;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 20px 32px rgba(96, 97, 112, .24), 0 2px 8px rgba(40, 41, 61, .08);
    }
    body.modal-search form.search-open #clear-search,
    body.modal-search form #clear-search {
        width: 13px;
        height: 13px;
        position: absolute;
        top: 22px;
        left: inherit;
        right: 40px;
        z-index: 1003;
        background: url(../svg/search-close.svg) no-repeat;
        background-size: 100% 100%;
        cursor: pointer;
    }
    body.modal-search #docs-panel form+span {
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, .15);
        transition: background-color .3s ease;
    }
    .algolia-autocomplete.algolia-autocomplete-right .ds-dropdown-menu {
        left: 0!important;
        min-width: 100%;
    }
}

@media(max-width:767px){
    .algolia-autocomplete .algolia-docsearch-suggestion:not(.has-childtext) .algolia-docsearch-suggestion--title{
        -webkit-line-clamp: 2;
    }
}

@media(max-width:479px){
    .algolia-autocomplete .algolia-docsearch-suggestion:not(.has-childtext) .algolia-docsearch-suggestion--title{
        -webkit-line-clamp: 3;
    }
}
