
.algolia-autocomplete {
    position: relative;
}

.algolia-autocomplete,
.algolia-autocomplete * {
    box-sizing: border-box;
    font-family: 'Geologica', var(--font-secondary), sans-serif;
}

.aa-dropdown-menu {
    margin-top: 8px;
    max-height: 460px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d9e4ec;
    border-radius:0 0 18px 18px!important;
    box-shadow: 0 15px 35px rgba(11, 34, 65, 0.15);
    z-index: 100001 !important;
}

.aa-dropdown-menu::-webkit-scrollbar {
    width: 7px;
}

.aa-dropdown-menu::-webkit-scrollbar-thumb {
    background: #c8d5df;
    border-radius: 10px;
}

.aa-suggestion {
    cursor: pointer;
}

.suggestion-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    color: inherit;
    text-decoration: none;
    border-top: 1px solid #e2e7eb;
    transition: background-color 0.2s ease;
}

.aa-suggestion:first-child .suggestion-link,
.aa-dataset > .suggestion-link:first-child {
    border-top: 0;
}

.aa-suggestion:hover .suggestion-link,
.aa-suggestion:focus .suggestion-link,
.aa-cursor .suggestion-link,
.suggestion-link:hover,
.suggestion-link:focus {
    background: #eaf5fb;
    outline: none;
}

.suggestion-post-thumbnail,
.suggestion-user-thumbnail {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
}

.suggestion-post-attributes {
    flex: 1 1 auto;
    min-width: 0;
}

.suggestion-post-title {
    display: block;
    color: #013877;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
    padding: 15px 0 5px 0;
}

.suggestion-post-content {
    display: -webkit-box;
    overflow: hidden;
    color: #6c7a89;
    font-size: 0.9rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

.suggestion-post-title em,
.suggestion-post-content em {
    padding: 1px 3px;
    background: #dbeafe;
    border-radius: 3px;
    color: #013877;
    font-style: normal;
}

.autocomplete-empty {
    padding: 34px 20px;
    color: #6c7a89;
    font-size: 0.95rem;
    text-align: center;
}

.empty-query {
    color: #0B2241;
    font-weight: 400;
}

.autocomplete-footer {
    padding: 12px 18px;
    border-top: 1px solid #e2e7eb;
    text-align: right;
}

.algolia-powered-by-link {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.algolia-powered-by-link:hover {
    opacity: 1;
}

@media screen and (max-width: 640px) {

    .zp_algolia_search_form {
        flex-direction: column;
    }

    .aa-dropdown-menu {
        max-height: 380px;
        border-radius: 16px;
    }

    .suggestion-link {
        gap: 12px;
        padding: 12px 14px;
    }

    .suggestion-post-thumbnail,
    .suggestion-user-thumbnail {
        width: 48px;
        height: 48px;
    }

    .zp_algolia_search_drawer_title {
        font-size: var(--mob-fs-Max);
    }

    .suggestion-post-title , .zp_algolia_search_input.search-field.aa-input::placeholder {
        font-size: var(--mob-fs-Lo);
    }

    .suggestion-post-content {
        font-size: var(--mob-fs-Lo);
    }
}


