.local-search[hidden] {
    display: none;
}

.local-search {
    align-items: flex-start;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 14vh 20px 40px;
    position: fixed;
    z-index: 3999998;
}

.local-search__backdrop {
    backdrop-filter: blur(7px);
    background: rgba(245, 245, 245, 0.72);
    inset: 0;
    position: fixed;
}

.local-search__dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.2);
    max-height: min(74vh, 760px);
    max-width: 720px;
    overflow: hidden;
    position: relative;
    width: min(720px, 100%);
}

.local-search__form {
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: grid;
    gap: 12px;
    grid-template-columns: 36px 1fr;
    min-height: 72px;
    padding: 0 28px;
}

.local-search__close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #15171a;
    cursor: pointer;
    display: inline-flex;
    font-size: 34px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 36px;
}

.local-search__input {
    border: 0;
    color: #15171a;
    font-size: 2rem;
    font-weight: 450;
    height: 58px;
    outline: 0;
    width: 100%;
}

.local-search__input::placeholder {
    color: rgba(0, 0, 0, 0.38);
}

.local-search__input::-webkit-search-cancel-button {
    display: none;
}

.local-search__body {
    max-height: calc(min(74vh, 760px) - 72px);
    overflow-y: auto;
    padding: 16px 0 20px;
}

.local-search__section-title {
    color: rgba(0, 0, 0, 0.42);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 0;
    padding: 0 40px 8px;
    text-transform: uppercase;
}

.local-search__result {
    color: #15171a;
    display: block;
    padding: 14px 40px 16px;
}

.local-search__result:hover,
.local-search__result:focus {
    background: rgba(0, 0, 0, 0.04);
    opacity: 1;
    outline: none;
}

.local-search__title {
    display: -webkit-box;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.local-search__excerpt {
    color: rgba(0, 0, 0, 0.42);
    display: -webkit-box;
    font-size: 1.55rem;
    line-height: 1.35;
    margin: 6px 0 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.local-search mark {
    background: transparent;
    color: inherit;
    font-weight: 800;
}

.local-search__hint,
.local-search__empty,
.local-search__error {
    color: rgba(0, 0, 0, 0.46);
    font-size: 1.55rem;
    margin: 0;
    padding: 16px 40px;
}

body.local-search-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .local-search {
        padding: 0;
    }

    .local-search__dialog {
        border-radius: 0;
        max-height: 100vh;
        min-height: 100vh;
        width: 100%;
    }

    .local-search__body {
        max-height: calc(100vh - 72px);
    }

    .local-search__form {
        padding: 0 18px;
    }

    .local-search__result,
    .local-search__section-title,
    .local-search__hint,
    .local-search__empty,
    .local-search__error {
        padding-left: 24px;
        padding-right: 24px;
    }
}
