* {
    font-family: 'Open Sans', Arial, sans serif;
}
header div.search {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: block;
    padding: 0;
    background: rgba(0, 0, 0, 0.7);    
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}
header div.search.hidden {
    display: none;
}

.b-search-input {
    position: fixed;
    top: 10px;
    right: 180px;
    z-index: 20;
    width: calc(100% - 595px);
    height: 34px;
    padding: 0 36px 0 12px;
    background-color: #fbfbfb;
    background-image: url('https://smartindexes.com/img/search.svg');
    background-size: 28px 28px;
    background-position: 99.5% 3px;
    background-repeat: no-repeat;
    border: 1px solid #111;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 300;
    text-align: left;
    color: #111;
    opacity: 1;
}
.knowledgeBase.search.opened .b-search-input {
    top: 22px;    
    width: calc(100% - 597px);
}
.b-search-li {
    list-style: none;
    margin: 5px 0;
}
.searchResults.header {
    position: fixed;
    top: 48px;
    right: 181px;
    z-index: 20;
    display: block;
    width: calc(100% - 561px);
    height: 28px;
    padding-top: 6px;
    padding-left: 12px;
    background-color: #f5f4f4;
    border: 1px solid #f5f4f4;
    border-radius: 4px 4px 0 0;
    font-size: 14px;
    font-weight: 300;
}
ul#searchResults {
    position: fixed;
    top: 70px;
    right: 181px;
    z-index: 20;
    display: none;
    width: calc(100% - 571px);
    height: fit-content;
    padding: 12px;
    background: #fff;
    box-shadow: none;
    border-radius: 0 0 4px 4px;
    list-style: none;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.75em;
}
@media (min-width: 960px) {
    ul#searchResults {
        max-height: 340px;
        overflow-x: hidden;
        overflow-y: scroll;
    }
}
ul#searchResults li {
    margin: 0 0 10px 0;
}
ul#searchResults li:last-child {
    margin: 0;
}
ul#searchResults li a {
    color: #111;
    text-decoration: none;
}
ul#searchResults li a:hover,
ul#searchResults li a:target {
    color: #2680c7;
}
button.backContent {
    position: fixed;
    top: 10px;
    right: 20px;
    display: inline-block;
    width: 134px;
    height: 36px;
    padding: 7px 12px 8px 12px;
    background: transparent;
    border-radius: 4px;
    border: 1px solid #b4b4b4;
    font-size: 14px;
    font-weight: 33;
    color: #fff;
    cursor: pointer;
}
button.backContent:hover,
button.backContent:target {
    background: green;
    border: 1px solid green;
    color: #fff;
}

hidden  { 
    display:none !important; 
    pointer-events:none !important; 
}
.opened  {
    display:block !important;
    pointer-events:auto !important;
}
div.search.opened {
  display:flex !important;
}
.knowledgeBase.search.opened .backContent {
    top: 22px;    
    border: 1px solid #000;
    color: #000;
    opacity: 1;
}
.knowledgeBase.search.opened .searchResults.header,
.knowledgeBase.search.opened ul#searchResults {
    right: 180px;
}
#mobileMenu.opened {
  display:block !important;
}
.search.opened div#message, 
.search.opened .loading {
position: fixed;
    top: 48px;
    left: 366px;
    right: 180px;
    z-index: 20;
    width: fit-content;
    height: 26px;
    padding: 6px 12px 4px;
    background-color: #ffffff;
    border: 1px solid #ededed;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 300;
    line-height: 24px;
}
.knowledgeBase.search.opened div#message, 
.knowledgeBase.search.opened .loading {
    position: fixed;
    top: 58px;
}
.knowledgeBase.search.opened .searchResults.header {
    position: fixed;
    top: 58px;
}
.knowledgeBase.search.opened ul#searchResults {
    top: 80px;
}
.b-search-input:focus {
    outline: none;
}
.b-search-input.noFocusOutline:focus {
    outline: none;
}
.b-search-input:focus-visible {
    outline: 2px solid #2680c7;
}
@media (max-width: 768px) {
    .b-search-input {
        position: fixed;
        top: 60px;
        right: 20px;
        z-index: 20;
        width: calc(100% - 90px);
        height: 36px;
        background-color: #f5f4f4;
        border: 1px solid #f5f4f4;
        font-size: 14px;        
    }
    .searchResults.header {
        position: fixed;
        top: 100px;
        left: 20px;
        right: 20px;
        z-index: 20;
        display: block;
        width: calc(100% - 54px);
        height: 26px;
        padding-top: 4px;
        padding-left: 12px;
        padding-bottom: 0;
        background-color: #efefef;
        border: 1px solid #ededed;
        border-radius: 4px 4px 0 0;
        font-size: 14px;
        font-weight: 300;
    }
    ul#searchResults {
        position: fixed;
        top: 118px;
        left: 20px;
        right: 20px;
        z-index: 20;
        display: none;
        width: calc(100% - 52px);
        min-height: 360px !important;
        height: 360px !important;
        max-height: 360px !important;
        padding: 10px 0 10px 12px;
        background: #fff;
        box-shadow: none;
        border-radius: 0 0 4px 4px;
        list-style: none;
        font-size: 14px;
        font-weight: 300;
        line-height: 1.75em;
        overflow-x: hidden;
        overflow-y: scroll;
    }
    ul#searchResults li {
        width: calc(100% - 10px);
        margin: 0 0 10px 0;
    }
    ul#searchResults li a {
        font-size: 14px;
        color: #111;
        text-decoration: none;
    }
    body .search.opened div#message, 
    body .search.opened .loading {
        position: fixed;
        top: 98px;
        left: 20px;
        z-index: 30;
        min-width: 180px;
        width: fit-content;
        height: 28px;
        padding: 5px 12px 1px 12px;
        border-radius: 4px;
        line-height: 24px;
    }
}