// stylelint-disable max-nesting-depth, selector-max-compound-selectors
.search-header {
    padding-top: 70px;
    background: #e0ebef url('img/search-bg.jpg') top center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;

    .provider-brand {
        height: 140px;
        background-position-x: right;
    }

    .branding-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 15px;
        margin-bottom: 15px;

        .provider-container {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            width: 100%;
        }

        .provider-text-container {
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            align-items: center;
            width: 100%;

            .share-logo {
                width: 46px;
                height: 22px;
                background: url('img/share-logo-icon.png') no-repeat;
                display: inline-block;
                background-size: contain;
                vertical-align: middle;
            }
        }
    }

    .search-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 15px;
        margin-bottom: 15px;

        .input {
            width: 60%;
        }

        .lucene-button {
            width: 40px;
        }

        .search-button {
            width: 75px;
        }
    }

    .relevance-container {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        margin-top: 10px;
        margin-bottom: 10px;
        padding-right: 40px;
    }

    &.mobile {
        padding-top: 0;

        .search-container {
            justify-content: flex-start;
        }

        .relevance-container {
            padding-right: 0;
        }
    }
}

.search-main-container {
    padding: 50px;
    background-color: #fbfbfb;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #dedede;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;

    .active-filter-container {
        width: calc(40% - 10px);
        margin-right: 10px;

        .active-filter {
            min-height: 20px;
            padding: 10px;
            background-color: #f5f5f5;
            border: 1px solid #e3e3e3;
            box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
        }
    }

    .search-result-container {
        width: calc(60% - 10px);
        margin-left: 10px;
    }

    &.mobile {
        flex-direction: column;
        padding: 10px;

        .search-result-container,
        .active-filter-container {
            width: 100%;
            margin: 0;
        }
    }
}


.provider-description-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    padding-top: 10px;

    .provider-description {
        width: 60%;
        text-align: left;
    }    

    &.mobile {
        .provider-description {
            width: 100%;
        }    
    }
}

.sort-by-option-list {
    background-color: #efefef;
    left: auto;

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

    li:hover {
        background-color: #d9d9d9;
    }

    .list-option {
        cursor: pointer;
        color: #000;
        text-decoration: none;

        &:focus {
            outline: none;
        }
    }
}

.lead {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .lead {
        font-size: 21px;
    }
}

.input-group-btn {
    position: relative;
    font-size: 0;
    white-space: nowrap;
    width: 1%;
    vertical-align: middle;
}

.btn {
    display: inline-block;
    margin-bottom: 0;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 2px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857;
    user-select: none;
    vertical-align: middle;
}

.btn-default {
    background-color: $bg-light;
    color: $color-text-black;
    border-color: $color-border-gray;
}

.btn-default:focus,
.btn-default.focus {
    color: $color-text-black;
    background-color: #e6e6e6;
    border-color: #8c8c8c;
}

.btn-default:hover {
    color: $color-text-black;
    background-color: #e6e6e6;
    border-color: #adadad;
}

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

.p-v-md {
    padding-top: 15px;
    padding-bottom: 15px;
}

.pull-right {
    float: right !important;
}

.text-right {
    text-align: right;
}
