.phpdocumentor-search-results {
    backdrop-filter: blur(5px);
    background: var(--popover-background-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    opacity: 1;
    pointer-events: all;

    transition: opacity .3s, background .3s;
}

.phpdocumentor-search-results--hidden {
    background: transparent;
    backdrop-filter: blur(0);
    opacity: 0;
    pointer-events: none;
}

.phpdocumentor-search-results__dialog {
    width: 100%;
    background: white;
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

.phpdocumentor-search-results__body {
    overflow: auto;
}

.phpdocumentor-search-results__header {
    padding: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    background: var(--primary-color-darken);
    color: white;
    align-items: center;
}

.phpdocumentor-search-results__close {
    font-size: var(--text-xl);
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.phpdocumentor  .phpdocumentor-search-results__title {
    font-size: var(--text-xl);
    margin-bottom: 0;
}

.phpdocumentor-search-results__entries {
    list-style: none;
    padding: 0 var(--spacing-lg);
    margin: 0;
}

.phpdocumentor-search-results__entry {
    border-bottom: 1px solid var(--table-separator-color);
    padding: var(--spacing-sm) 0;
    text-align: left;
}

.phpdocumentor-search-results__entry a {
    display: block;
}

.phpdocumentor-search-results__entry small {
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    color: var(--primary-color-darker);
    display: block;
    word-break: break-word;
}

.phpdocumentor-search-results__entry h3 {
    font-size: var(--text-lg);
    margin: 0;
}

@media (min-width: {{ breakpoints['md'] }}) {
    .phpdocumentor-search-results {
        padding: 0 var(--spacing-lg);
    }

    .phpdocumentor-search-results__entry h3 {
        font-size: var(--text-xxl);
    }

    .phpdocumentor-search-results__dialog {
        margin: var(--spacing-xl) auto;
        max-width: 40rem;
        background: white;
        border: 1px solid silver;
        box-shadow: 0 2px 5px silver;
        max-height: 40rem;
        border-radius: 3px;
    }
}
