.post-autocomplete {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.post-search-box {
    position: relative;
}

.post-search-input {
    width: 100%;
    height: 56px;

    padding: 0 55px 0 20px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: #fff;

    font-size: 16px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.post-search-input:focus {
    border-color: #222;

    box-shadow:
        0 4px 20px rgba(0,0,0,.08);
}

.post-search-icon {
    position: absolute;

    right: 18px;
    top: 50%;

    transform: translateY(-50%);

    pointer-events: none;

    font-size: 18px;
}

.post-search-results {

    position: absolute;

    top: calc(100% + 8px);

    left: 0;
    right: 0;

    z-index: 9999;

    background: #fff;

    border-radius: 8px;

    box-shadow:
        0 10px 35px rgba(0,0,0,.12);

    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-5px);

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;
}

.post-search-results.is-visible {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}

.post-result {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 12px 15px;

    color: inherit;

    text-decoration: none;

    border-bottom: 1px solid #eee;

    transition:
        background .2s ease;
}

.post-result:last-child {
    border-bottom: none;
}

.post-result:hover {
    background: #f7f7f7;
}

.post-result-image {

    width: 70px;
    height: 55px;

    flex: 0 0 70px;

    overflow: hidden;

    border-radius: 5px;

    background: #eee;
}

.post-result-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.post-result-placeholder {
    width: 100%;
    height: 100%;
    background: #eee;
}

.post-result-content {
    min-width: 0;
}

.post-result-content h3 {

    margin: 0 0 4px;

    font-size: 15px;
    line-height: 1.3;

    font-weight: 600;
}

.post-result-content p {

    margin: 0;

    font-size: 13px;

    line-height: 1.4;

    color: #777;

    display: -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.post-search-loading,
.post-search-empty {

    padding: 20px;

    text-align: center;

    font-size: 14px;

    color: #777;
}

@media (max-width: 767px) {

    .post-search-input {
        height: 50px;
    }

    .post-result {
        padding: 10px;
    }

    .post-result-image {
        width: 60px;
        height: 50px;
        flex-basis: 60px;
    }

    .post-result-content h3 {
        font-size: 14px;
    }

    .post-result-content p {
        font-size: 12px;
    }
}