/* Lite AJAX Blog Search — v1.0.4 */
.labs-dropdown{
  z-index: 9999;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  border-radius: 8px;
  margin-top: 0;
  overflow: hidden;
  max-height: 70vh;
  overflow-y: auto;
}

.labs-item{
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.labs-item:last-child{ border-bottom: none; }
.labs-item[aria-selected="true"]{ background: rgba(0,0,0,.04); }

.labs-item img{
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  background: #f4f4f4;
}

.labs-meta{ display:flex; flex-direction:column; min-width: 0; }
.labs-title{ font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.labs-excerpt { font-size: 12px; color: #666; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Positioning context for common containers (Gutenberg block included) */
.search-form, form[role="search"], .wp-block-search { position: relative; }

/* Show spinner inside the search field when loading (cover Gutenberg + generic) */
.search-form input[type="search"].labs-loading,
form[role="search"] input[type="search"].labs-loading,
input.wp-block-search__input.labs-loading,
input[name="s"].labs-loading,
input[type="search"].labs-loading,
input.search-field.labs-loading {
  background-image: url("data:image/gif;base64,R0lGODlhEAAQAPQAAP///wAAAMbGxi4uLjAwMHFxcY6OjsnJydbW1qmpqR8fH8PDw+Pj48fHx6ioqMnJyYKCgqurq3FxcdHR0f///wAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAUALAAAAAAQABAAAAVVoCQcZGmeSgQDEdJxQqWqQFhC5ZtGg5mYwGk8nQvBzjD0iQ6k0o4Kxg1Y3QHkFjQhGvQYxgWJ9wYFhJgLkqg3w2gEJkBkgHh0GBAQAOw==") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 16px 16px !important;
  padding-right: 32px !important; /* space for spinner */
}
