/* HIP taxonomy facet pilot. Gated by html.hip-pilot. */

html.hip-pilot {
    overflow-x: hidden;
}

html.hip-pilot .hip-context-card {
    display: block;
    margin: 0 0 16px 0;
    padding: 12px 14px;
    background: #f4f8fb;
    border: 1px solid #d5e4ef;
    border-radius: 4px;
}

html.hip-pilot .hip-context-card strong {
    display: block;
    color: #08255d;
    font-size: 15px;
    line-height: 1.3;
    margin: 0 0 4px 0;
}

html.hip-pilot .hip-context-card .hip-context-total {
    display: block;
    color: #334155;
    font-size: 14px;
}

html.hip-pilot .hip-active-chips {
    margin: 0 0 14px 0;
}

html.hip-pilot .hip-owner-chip {
    background: #08255d;
    border-color: #08255d;
}

html.hip-pilot .hip-owner-chip .filter-label {
    color: #fff;
}

html.hip-pilot .hip-mobile-filters {
    display: none;
    margin: 0 0 16px 0;
    max-width: 100%;
}

html.hip-pilot .hip-mobile-filters summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid #d5e4ef;
    border-radius: 4px;
    background: #fff;
    color: #08255d;
    font-size: 14px;
    font-weight: 700;
}

html.hip-pilot .hip-mobile-filters summary::-webkit-details-marker {
    display: none;
}

html.hip-pilot .hip-mobile-filters summary::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 10px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #08255d;
}

html.hip-pilot .hip-mobile-filters[open] summary::after {
    transform: rotate(180deg);
}

html.hip-pilot .hip-mobile-filters-body {
    margin-top: 10px;
    max-width: 100%;
}

html.hip-pilot .hip-facet-rail,
html.hip-pilot .hip-facet-rail a,
html.hip-pilot .search-results-header,
html.hip-pilot .active-filters {
    max-width: 100%;
    box-sizing: border-box;
}

html.hip-pilot .hip-facet-rail a {
    word-break: break-word;
}

html.hip-pilot .hip-facet-rail a.acrnt em::before,
html.hip-pilot .sidebar #topi a.acrnt em::before,
html.hip-pilot .sidebar [id$="topi"] a.acrnt em::before {
    content: "✓";
    display: inline-block;
    margin-right: 4px;
    font-weight: 700;
    color: #111;
}

@media (max-width: 991px) {
    html.hip-pilot .hip-mobile-filters {
        display: block;
    }

    html.hip-pilot aside.sidebar.right-sidebar,
    html.hip-pilot.search-page aside.sidebar.right-sidebar,
    html.advantage-page.hip-pilot aside.sidebar.right-sidebar,
    html.hip-pilot .search-page aside.sidebar.right-sidebar {
        display: none !important;
    }

    html.hip-pilot article.col-md-9,
    html.hip-pilot.search-page article.col-md-9 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
}

@media (max-width: 390px) {
    html.hip-pilot,
    html.hip-pilot body,
    html.hip-pilot .container,
    html.hip-pilot .row,
    html.hip-pilot article.col-md-9,
    html.hip-pilot .hip-mobile-filters,
    html.hip-pilot .property-list {
        max-width: 100%;
        overflow-x: hidden;
    }
}
