/* Help Center search dropdown (help-center-search.js), styled after the documentation's DocSearch dialog. */

.banner__search .input-group__dropdown--search.dropdown {
    max-width: 100%;
    margin-top: 8px;
    padding: 0;
    overflow: hidden;
    background: #f5f6f7;
    border-radius: 8px;
    box-shadow: 0 10px 40px -8px rgba(30, 45, 70, 0.35), 0 0 0 1px rgba(30, 45, 70, 0.06);
    text-align: left;
    /* The generic dropdown fade (fadeInUp) let the tiles below show through while it ran. */
    animation: none;
    opacity: 1;
    transform: none;
}

.banner__search .input-group__dropdown--search .dropdown__menu.help-center-search {
    max-height: min(60vh, 520px);
    padding: 0 12px 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
}

.help-search__group {
    position: sticky;
    top: 0;
    z-index: 1;
    margin: 0;
    padding: 12px 4px 6px;
    background: #f5f6f7;
    color: #3a87f2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.help-search__hit {
    margin: 0 0 4px;
}

.help-search__hit-link {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 12px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 3px 0 #d4d9e1;
    color: #31363b;
    text-decoration: none;
    transition: none;
}

.help-search__hit-link:hover,
.help-search__hit-link:focus {
    color: #31363b;
    text-decoration: none;
}

.help-search__hit-icon,
.help-search__hit-action {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    color: #969faf;
}

.help-search__hit-icon {
    margin-right: 12px;
}

.help-search__hit-action {
    margin-left: 8px;
    visibility: hidden;
}

.help-search__hit-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 8px 0;
}

.help-search__hit-title {
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.help-search__hit-path {
    overflow: hidden;
    margin-top: 2px;
    color: #6b7380;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.help-search__hit-sep {
    margin: 0 2px;
    opacity: 0.7;
}

.help-search__hit mark {
    padding: 0;
    background: none;
    color: #3a87f2;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.help-search__hit.is-selected .help-search__hit-link {
    background: #3a87f2;
    box-shadow: none;
}

.help-search__hit.is-selected .help-search__hit-link,
.help-search__hit.is-selected .help-search__hit-path,
.help-search__hit.is-selected .help-search__hit-icon,
.help-search__hit.is-selected .help-search__hit-action,
.help-search__hit.is-selected mark {
    color: #ffffff;
}

.help-search__hit.is-selected .help-search__hit-action {
    visibility: visible;
}

.help-search__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px 24px;
    color: #6b7380;
    font-size: 14px;
    text-align: center;
}

.help-search__empty img {
    max-width: 120px;
    margin-bottom: 12px;
}

.help-search__footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #ffffff;
    box-shadow: 0 -1px 0 0 #e0e3e8, 0 -3px 6px 0 rgba(69, 98, 155, 0.12);
    color: #6b7380;
    font-size: 12px;
}

.help-search__footer a {
    color: #6b7380;
    font-weight: 600;
}

.help-search__footer a:hover {
    color: #3a87f2;
}

.help-search__keys kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    margin: 0 2px;
    padding: 0 4px;
    background: linear-gradient(-225deg, #d5dbe4, #f8f8f8);
    border-radius: 2px;
    box-shadow: inset 0 -2px 0 0 #cdcde6, inset 0 0 1px 1px #ffffff, 0 1px 2px 1px rgba(30, 35, 90, 0.4);
    color: #969faf;
    font-family: inherit;
    font-size: 11px;
}

.help-search__keys kbd + kbd {
    margin-left: 0;
}

@media (max-width: 575px) {
    .help-search__keys {
        display: none;
    }

    .help-search__footer {
        justify-content: flex-end;
    }
}
