.sf-results {
    z-index: 9999;
    // box-shadow: 0 0 5px #aaa;
    border-radius: 0px;
    // border: solid;
    // border-width: 1px 1px 2px;
    overflow: hidden;
    font-size: 0.9rem;
    max-height: 90vh;
    overflow: auto;
}

.sf-more {
    display: block;
    min-height: 1px;
    margin: 3px 0 0px;
    padding: 8px;
    text-align: center;
    font-weight: bold;

    .sf-text {
        text-align: center;
    }

    .sf-small {
        text-align: center;
        font-style: italic;
        font-size: 70%;
    }

    img {
        padding: 10px 0;
    }
}

.sf-val {
    z-index: 9999;
    -overflow-y: auto;

    ul {
        margin: 0;
        list-style: none;
        padding: 0;

        &.sf-main {
            margin: 0;
            list-style: none;
            padding: 0;
        }

        li {

            list-style: none;
            cursor: pointer;
            display: block;
            margin: 0;

            a {
                &:hover {
                    text-decoration: none;
                }

                text-decoration: none;
                display: block;
            }

            &.sf-selected {

                a,
                span {
                    text-decoration: none;
                }
            }

            &.sf-category a {
                padding: 3px 0;
            }

            &.sf-item a {
                display: flex;
                align-items: center;
                padding: 0.4rem 1rem;
                margin-bottom: 1px;
                position: relative;
            }

            &.sf-lnk {
                >a {
                    display: flex;
                    align-items: center;
                    padding: 0.5rem 0.5rem;
                    margin-bottom: 1px;
                    position: relative;
                }

                &.sf-more>a {
                    flex-direction: column;
                    padding: 0;
                }
            }

            &.sf-header {
                padding: 0.4rem 0.5rem;
                font-weight: bold;
                border-bottom: 1px solid #ccc;
                margin-top: 0rem;
                margin-bottom: 0rem;
                cursor: default;
            }

            &.sf-item img {
                display: block;
                height: 50px;
                left: 6px;
                position: absolute;
                width: 50px;
                top: 2px;
            }

            .sf-text {
                font-weight: bold;
                line-height: 1;
            }

            .sf-content {
                display: flex;
                flex-direction: column;
                flex: 1;
            }

            a span {

                &.sf-text,
                &.sf-small {
                    display: block;
                    font-size: 80%;
                    line-height: 1.3;
                }
            }
        }
    }

    .sf-result-container ul {
        margin: 0;
        list-style: none;
        padding: 0;
    }
}

.sf-search .sf-input {
    border: 0 none;
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    width: 90%;
    min-width: 100px;
    margin-left: 2px;
    outline: 0;
}

.sf-result-container {
    max-height: 200px;
    overflow: auto;
    overflow: overlay;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0rem 0px;
}

.sf-search {
    .sf-focused {
        font-style: normal;
    }

    .sf-input:focus {
        border: 0 none;
        outline: none;
        box-shadow: none;
    }
}

.searchsubmit:focus {
    border: 0 none;
    outline: none;
    box-shadow: none;
}

.sf-hidden {
    display: none;
}

.sf-search {
    border-radius: 2px;
    text-align: left;
}

.sf-thumbnail-image {
    min-width: 50px;
    min-height: 50px;
    background-size: contain;
    background-color: #ebebeb;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 50%;
    margin-right: 0.8rem;
}

.sf-search {
    span.sf-block {
        display: flex;
        position: relative;
    }

    .sf-button,
    .searchsubmit {
        background-repeat: no-repeat;
        background-position: 0px 0;
        border: 0 none;
        cursor: pointer;
        padding: 10px;
        width: 34px;
        min-width: 34px;
        box-shadow: 0 0 0 0;
        background-color: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 20%;
        margin: 0;

        >svg {
            height: 20px;
            min-width: 20px;
        }
    }

    .screen-reader-text {
        display: none;
    }
}

.sf-loading {
    background-repeat: no-repeat;
    background-position: center center;
    display: block;
    width: 100%;
    height: 30px;
}

.sf-container {
    &.sf-windows {
        ::-webkit-scrollbar {
            height: 10px;
            overflow: visible;
            width: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background-color: rgba(0, 0, 0, 0.2);
            background-clip: padding-box;
            border: solid transparent;
            border-width: 1px 1px 1px 1px;
            min-height: 28px;
            padding: 100px 0 0;
        }

        ::-webkit-scrollbar-button {
            height: 0;
            width: 0;
        }

        ::-webkit-scrollbar-track {
            background-clip: padding-box;
            border: solid transparent;
            border-width: 0 0 0 4px;
        }

        ::-webkit-scrollbar-corner {
            background: transparent;
        }
    }
}

.sf-result_container {
    max-height: 200px;
    overflow: auto;
    margin-top: 0;
    margin-bottom: 0;
}

.sf-search {
    position: relative;
    display: inline-block;
}

.screen-reader-text {
    display: block;
}

/* WooCommerce styles */

.sf-val ul li.sf-item span {
    &.sf-list a {
        display: inline-block;
        padding: 2px 5px;
        border-radius: 3px;
        margin-bottom: 3px;
        min-height: 0;
        margin-right: 5px;
        min-height: 0;
    }

    &.sf-tags a {
        background: #65A1FA;
        color: #fff;
    }
}

.sf-item.woocommerce {
    .quantity input.qty {
        border-right-width: 1px;
        border-right-style: solid;
    }

    div.quantity {
        width: 44px;
    }

    .product form.cart {
        margin-bottom: 5px;
        margin-top: 5px;
    }
}

.sf-sb-cont {
    position: relative;
}

.sf-sb-top {
    border-width: 0px 10px 10px 10px;
    display: block;
    border-style: solid;
    border-color: #e0e0e0 transparent;
    height: 0;
    width: 0;
    left: 50%;
    position: relative;
    margin-left: -10px;

    &:after {
        border-width: 0px 9px 9px 9px;
        display: block;
        border-style: solid;
        border-color: #ffffff transparent;
        height: 0;
        width: 0;
        left: -9px;
        position: relative;
        margin-left: 0;
        content: "";
        z-index: 1;
        top: 1px;
    }
}