.nakla-search-suggest {
    position: absolute;
    z-index: 9999;
    display: none;
    max-height: 70vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.nakla-search-suggest.is-open {
    display: block;
}

.nakla-search-suggest__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f0f0;
}

.nakla-search-suggest__item:last-of-type {
    border-bottom: none;
}

.nakla-search-suggest__item:hover,
.nakla-search-suggest__item.is-active {
    background: #f7f7f7;
}

.nakla-search-suggest__item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    flex: 0 0 auto;
}

.nakla-search-suggest__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.nakla-search-suggest__title {
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nakla-search-suggest__author,
.nakla-search-suggest__narrator {
    font-size: 12px;
    color: #777;
}

.nakla-search-suggest__price {
    flex: 0 0 auto;
    font-size: 13px;
    white-space: nowrap;
}

/* Tablet range: dropdown is squeezed by the header layout, so the price
   used to force the title/author column below a readable width. Wrap it
   onto its own line instead of shrinking the left column. */
@media (min-width: 768px) and (max-width: 1140px) {
    .nakla-search-suggest__item {
        flex-wrap: wrap;
    }

    .nakla-search-suggest__price {
        white-space: normal;
        flex: 1 1 100%;
        text-align: left !important;
    }

    .nakla-search-suggest__price * {
        text-align: left;
    }
}

.nakla-search-suggest__text {
    padding: 12px;
    font-size: 14px;
    color: #777;
}

.nakla-search-suggest__view-all {
    display: block;
    padding: 10px 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: #fafafa;
    color: inherit;
}

.nakla-search-suggest__view-all:hover {
    background: #f0f0f0;
}
