#documentation-search,
.documentation-search {
    position: relative;
    max-width: 760px;
    margin: 0 auto 32px;
    color: #082639;
}

#documentation-search *,
.documentation-search * {
    box-sizing: border-box;
}

.documentation-search__label {
    display: block;
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #1d2659;
}

.documentation-search__field {
    position: relative;
}

.documentation-search__field::before {
    position: absolute;
    top: 50%;
    left: 17px;
    width: 17px;
    height: 17px;
    content: "";
    border: 2px solid #6c7485;
    border-radius: 50%;
    transform: translateY(-55%);
    pointer-events: none;
}

.documentation-search__field::after {
    position: absolute;
    top: 50%;
    left: 31px;
    width: 8px;
    height: 2px;
    content: "";
    background: #6c7485;
    border-radius: 2px;
    transform: translateY(7px) rotate(45deg);
    pointer-events: none;
}

#documentation-search-input,
.documentation-search__input {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 14px 48px 14px 48px;
    font-size: 16px;
    line-height: 1.4;
    color: #082639;
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    outline: none;
    box-shadow: 0 8px 22px rgba(29, 38, 89, .08);
    transition: border-color .2s ease, box-shadow .2s ease;
}

#documentation-search-input:focus,
.documentation-search__input:focus {
    border-color: #0b86c4;
    box-shadow: 0 0 0 3px rgba(11, 134, 196, .16), 0 8px 22px rgba(29, 38, 89, .08);
}

.documentation-search__clear {
    position: absolute;
    top: 50%;
    right: 10px;
    display: none;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 24px;
    line-height: 30px;
    color: #697386;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
}

.documentation-search__clear:hover,
.documentation-search__clear:focus {
    color: #082639;
    background: #f1f5f9;
    outline: none;
}

.documentation-search.has-query .documentation-search__clear {
    display: block;
}

#documentation-search-results,
.documentation-search__results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 9999;
    display: none;
    width: 100%;
    max-height: min(520px, 72vh);
    overflow: auto;
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(8, 38, 57, .16);
}

.documentation-search.is-open #documentation-search-results,
.documentation-search.is-open .documentation-search__results,
#documentation-search.is-open #documentation-search-results {
    display: block;
}

.documentation-search__status {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.45;
    color: #5f6b7a;
}

.documentation-search__list {
    padding: 6px;
    margin: 0;
    list-style: none !important;
}

.documentation-search__item {
    padding: 0 !important;
    margin: 0;
    list-style: none !important;
}

.documentation-search__list .documentation-search__item::before,
.documentation-search__list .documentation-search__item::after,
#documentation-search-results .documentation-search__item::before,
#documentation-search-results .documentation-search__item::after {
    display: none !important;
    content: none !important;
}

.documentation-search__result {
    display: block;
    width: 100%;
    padding: 13px 14px;
    color: inherit;
    text-align: left;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 7px;
}

.documentation-search__result:hover,
.documentation-search__result:focus,
.documentation-search__result.is-active {
    background: #eef7fc;
    outline: none;
}

.documentation-search__title {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #0b6cb7;
}

.documentation-search__meta {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: #687385;
    text-transform: uppercase;
}

.documentation-search__excerpt {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    color: #263342;
}

.documentation-search mark {
    padding: 0 2px;
    color: inherit;
    background: #fff2a8;
    border-radius: 3px;
}

.documentation-search__footer {
    padding: 10px 14px 12px;
    font-size: 12px;
    line-height: 1.35;
    color: #687385;
    border-top: 1px solid #edf1f5;
}

@media (max-width: 767px) {
    #documentation-search,
    .documentation-search {
        max-width: none;
        margin-bottom: 24px;
    }

    #documentation-search-results,
    .documentation-search__results {
        position: fixed;
        top: auto;
        right: 14px;
        bottom: 14px;
        left: 14px;
        width: auto;
        max-height: 62vh;
    }
}
