/* TBB Search Autocomplete dropdown */
.tbb-ac-panel {
    position: absolute;
    z-index: 100000;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.05);
    max-height: 420px;
    overflow-y: auto;
    padding: 6px;
    box-sizing: border-box;
    font-family: inherit;
    color: #111;
}

.tbb-ac-panel[hidden] {
    display: none !important;
}

.tbb-ac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none !important;
    color: #111 !important;
    transition: background 0.15s ease;
    cursor: pointer;
}

.tbb-ac-item + .tbb-ac-item {
    margin-top: 2px;
}

.tbb-ac-item:hover,
.tbb-ac-item.is-active,
.tbb-ac-item:focus-visible {
    background: #f3f4f6;
    outline: none;
}

.tbb-ac-thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
    display: block;
}

.tbb-ac-thumb img,
.tbb-ac-thumb-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.tbb-ac-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #111;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tbb-ac-title mark {
    background: transparent;
    color: #d14e4e;
    font-weight: 800;
}

.tbb-ac-empty {
    padding: 14px 14px;
    color: #6a6a6a;
    font-size: 14px;
    text-align: center;
}

.tbb-ac-empty--loading {
    color: #9a9a9a;
}

/* Phones: anchor to input width but allow scrolling */
@media (max-width: 767px) {
    .tbb-ac-panel {
        max-height: 60vh;
        border-radius: 10px;
    }
    .tbb-ac-thumb {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }
    .tbb-ac-title {
        font-size: 13px;
    }
}
