#app header {
    position: sticky;
    top: -2px;
    z-index: 999;
    background: var(--white);
    padding: 1.75rem .425rem;
    -webkit-transition: padding .25s ease-in-out, box-shadow .25s ease-in-out;
    transition: padding .25s ease-in-out, box-shadow .25s ease-in-out;

    #brand {
        .header-title {
            color: var(--primary-text);
            font-size: 1.125rem;
            transition: font-size .25s ease-in-out;

            @media screen and (max-width: 765px) {
                & {
                    display: none;
                }
            }
        }
        img {
            interpolate-size: allow-keywords;
            width: 250px;
            transition: width .2s ease;
        }

    }

    &.sticky {
        padding: 0 .425rem;
        -webkit-box-shadow: 0 3px 8px 0 rgb(0 0 0 / 12%);
        box-shadow: 0 3px 8px 0 rgb(0 0 0 / 12%);

        @media screen and (max-width: 576px) {
            padding-bottom: 0.425rem;
        }

        .tool-menu {
            .nav-item {
                font-size: 1.125rem;
            }

            .dropdown-menu {
                margin-top: .425rem;
            }
        }

        #brand {
            img {
                width: 50%;
            }

            .header-title {
                font-size: .8rem;
            }
        }
    }

    .tool-menu {
        .nav-item {
            padding: 0;
            margin: 0;
        }

        .dropdown {
            border: 0;
        }

        .dropdown-menu {
            border-top-left-radius: 0;
            border-top-right-radius: 0;
            border-top: 0;
            margin-top: calc(1.75rem + 1px);
            left: .9375rem !important;
            min-width: 13.125rem;

            @media screen and (max-width: 991px) {
                & {
                    margin-top: 0;
                }
            }
        }

        .nav-link {
            position: relative;
            color: var(--primary-text);
            font-size: 1.75rem;
            padding: .5rem 0;

            @media screen and (max-width: 765px) {
                & {
                    font-size: 1.125rem;
                }
            }

            span {
                font-size: 10px;
                white-space: nowrap;
                display: block;
                font-family: Montserrat, sans-serif;
                font-weight: 400;

                @media screen and (max-width: 765px) {
                    & {
                        position: absolute;
                        width: 1px;
                        height: 1px;
                        padding: 0;
                        margin: -1px;
                        overflow: hidden;
                        clip: rect(0, 0, 0, 0);
                        white-space: nowrap;
                        border: 0;
                    }
                }
            }
        }
    }
}


.search {
    @media screen and (max-width: 991px) {
        #primarySearchInput {
            font-size: .875rem;
            line-height: .875rem;
        }

        button[type=submit] {
            font-size: .75rem;
            line-height: .875rem;
        }
    }

    @media screen and (max-width: 575px) {
        .input-group {
            margin-top: .625rem;
        }
    }

    #primarySearchInput {
        font-size: 1.125rem;
        background: #f7f7f7;
        border: 1px solid var(--primary-text-darker);
        padding: .535rem;
        appearance: none;
        height: auto;
        border-top-right-radius: unset;
        border-bottom-right-radius: unset;
    }

    .search-wrap {
        position: relative;
        -webkit-box-flex: 1;
        flex: 1 1 auto;
        width: 1%;

        .ddown-wrap {
            position: absolute;
            width: 100%;
            left: 0;
            top: 100%;
            z-index: 1999;
            font-size: .875rem;
            background-color: var(--white);
            border: 1px solid var(--primary-text);
            border-bottom-left-radius: .25rem;
            border-bottom-right-radius: .25rem;
            padding-block: .5rem;
            border-top: 0 !important;
            -webkit-box-shadow: 0 16px 16px 0 rgb(0 0 0 / 20%);
            box-shadow: 0 16px 16px 0 rgb(0 0 0 / 20%);
            max-height: 80vh;
            overflow-x: auto;

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

            label {
                font-weight: 500;
                color: var(--gray-darker);
                padding-left: .625rem;
                margin-bottom: 0;
            }

            li.search-result {
                padding-left: 1.125rem;
                display: flex;
                justify-content: space-between;

                a {
                    display: inline-flex;
                    align-items: center;
                    color: var(--primary-text);
                    text-decoration: none;
                    padding: .3125rem 0;

                    &:hover {
                        transition: color .25s ease-in-out;
                        color: var(--primary-text-darker);
                    }

                    div {
                        display: flex;
                        flex-direction: column;
                        justify-content: space-around;
                        padding-left: 0.625rem;
                    }

                    i {
                        color: var(--gray-lighter);
                        font-size: 1.5rem;
                        padding-left: .25rem;
                        width: 2rem;
                        vertical-align: middle;

                    }

                    img {
                        height: 2rem;
                        width: 2rem;
                        object-fit: cover;
                    }

                    p {
                        display: inline;
                        margin: 0;
                    }

                    strong {
                        font-weight: 500;
                        color: var(--gray-darker);
                    }

                    .result-legend {
                        font-weight: 200;
                        font-size: .75rem;
                        line-height: .75rem;
                        color: var(--gray);
                        margin-bottom: 0;
                    }
                }

                button {
                    padding: 0;
                    margin-right: .35rem;
                    color: var(--gray-lighter);
                    font-size: 1.5em;
                    vertical-align: middle;
                    transition: color .25s ease-in-out;

                    &:hover {
                        color: var(--gray-darker);
                    }
                }
            }
        }
    }
}
