/* 
###
BACKSTAGE 5.1 CSS > SEARCH OVERLAY
###
*/
#search {
    box-sizing: border-box;
    padding: 15px 20px;
    overflow-y: auto;
    display: block;
    z-index: 9;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    max-width: 500px;
    height: 100%;
    background-color: #f2eee7;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    padding: 30px 30px;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 600ms cubic-bezier(0.76, 0, 0.24, 1);    
}
#search.active {
    transform: translateX(0);
}

#search::-webkit-scrollbar { width: 18px; }
#search::-webkit-scrollbar-track { background-color: transparent; }
#search::-webkit-scrollbar-thumb { border-radius: 20px; border: 6px solid transparent; cursor: grab; background-color: rgb(24 45 54 / 50%); background-clip: content-box; }
#search::-webkit-scrollbar-thumb:hover { opacity: 0.5; }

#search input {
    display: block;
    width: calc(100%);
    box-sizing: border-box;
    font-size: inherit;
    font-family: inherit;
    border: 0;
    appearance: none;
    background-color: #fff;
    padding: 10px 15px;
    margin-bottom: 30px;
}
#search ul.list {
    line-height: 1.5;
}
#search ul.list li {
    border-bottom: 1px solid rgb(18 42 51 / 10%);
}
#search ul.list li a {
    display: block;
    color: var(--main);
    margin: 20px 0;
}
#search ul.list li a:hover {
    color: var(--primarycta);
}
#search ul.list li strong {
    display: block;
}
#search ul.list li span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (max-width: 1100px) {
        
    #search {
        left: 0; right: auto;
        width: 90%;
        transform: translateX(-100%);
    }

}
