/* Full Text Search — inline widget */

.fts-search-widget {
    position: relative;
    max-width: 600px;
    width: 100%;
}

.fts-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.fts-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.fts-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    display: none; /* shown by JS when results arrive */
}

.fts-results:not(:empty) {
    display: block;
}

.fts-result-item {
    display: flex;
    flex-direction: column;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}

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

.fts-result-item:hover,
.fts-result-item:focus {
    background: #f6f6f6;
}

.fts-result-item__title {
    font-weight: 600;
    font-size: 0.95rem;
}

.fts-result-item__type {
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
    text-transform: capitalize;
}

.fts-no-results {
    padding: 0.75rem;
    color: #888;
    font-size: 0.9rem;
}

.fts-loading {
    padding: 0.75rem;
    color: #888;
    font-size: 0.9rem;
}
