.search-panel__results p {
    margin-bottom: 1rem
}

.searchbox {
    margin-bottom: 2rem
}

.pagination {
    margin: 2rem auto;
    text-align: center
}

.ais-Hits-item {
    padding: 0
}

.ais-Hits-item article {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.5;
    margin: 16px 0
}

.ais-Hits-item img {
    max-height: 125px;
    width: 150px;
    padding: 16px;
    object-fit: contain
}

.ais-Hits-list a {
    text-decoration: none;
    color: #000;
    width: 100%
}

.ais-SearchBox-submit {
    display: block;
    border: 1px solid #ccc;
    position: absolute;
    right: 2px !important;
    top: 50%;
    transform: translateY(-50%);
    padding: .25rem .5rem
}

.ais-Hits-item h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 8px 0
}

.ais-Hits-item p {
    margin: 4px 0
}

.ais-Hits-item article>div {
    margin-right: 16px
}

.ais-Hits-item .meta {
    font-size: 1.2rem;
    color: #333
}

.ais-Hits-item {
    box-shadow: none;
    border-bottom: 1px solid #ccc;
    font-size: 1.2rem;
    line-height: 1.5
}

.ais-SearchBox-form {
    height: 32px;
    font-size: 16px;
}

.search-panel .ais-SearchBox-form:before {
    height: 16px;
    width: 16px;
    left: 8px;
    margin-top: 0;
    transform: translateY(-50%);
    top: 50%;
}

.ais-SearchBox-input {
    padding-left: 32px;
    font-size: 14px !important;
    box-shadow: none
}

.ais-SearchBox-submit {
    font-size: 16px;
    padding: 4px 8px;
    right: 0
}

.no-results,
.ais-Hits--empty+.no-results+.pagination {
    display: none
}

.ais-Hits--empty~.no-results {
    display: block
}

.silly-ghost {
    float: inline-end
}

@media screen and (max-width: 640px) {
    .silly-ghost {
        width: 100px;
        height: auto
    }

    .hide-on-mobile {
        display: none
    }
}

#close-search-modal {
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    background: #fff;
    border: none
}

#close-search-modal svg {
    width: 16px;
    height: 16px;
    margin: 8px
}

h2.search-header {
    font-size: 18px;
    padding-top: 16px;
    margin-top: 16px;
    margin-bottom: 16px
}

body:has(#searchModal[open]) {
    overflow: hidden
}

.ais-SearchBox-reset {
    height: 0;
    width: 0;
    display: none
}