.sls-wrapper {
    position: relative;
    max-width: 400px;
}
 

.sls-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    max-height: 350px;
    overflow-y: auto;
}

.sls-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sls-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.sls-item:hover {
    background: #f1f3f4;
}

.sls-thumb {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    background: #e0e0e0;
}

.sls-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sls-text {
    flex: 1;
    min-width: 0;
}

.sls-title {
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 2px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.sls-meta {
    font-size: 11px;
    color: #5f6368;
    margin-bottom: 2px;
}

.sls-excerpt {
    font-size: 12px;
    color: #5f6368;
    line-height: 1.3;
}




/* Wrapper for icon + input */
.sls-input-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Search icon inside box */
.sls-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #777;
    pointer-events: none;
    opacity: 0.7;
}

/* Input box */
.sls-input {
    width: 100%;
    padding: 10px 10px 10px 60px; /* ← space for icon */
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.sls-input:focus {
    border-color: #4285f4;
    box-shadow: 0 0 2px rgba(66,133,244,0.4);
}