.btw-ls-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 480px;
}

.btw-ls-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    background: #fff;
    color: #1d2327;
}

.btw-ls-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.btw-ls-results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    z-index: 9999;
    max-height: 360px;
    overflow-y: auto;
}

.btw-ls-results--open { display: block; }

.btw-ls-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f0f0;
}

.btw-ls-item:last-child { border-bottom: none; }
/* Parent-Themes setzen oft a:visited { color: inherit } bzw. eigene Linkfarben -
   die Treffer behalten in jedem Zustand ihre Farbe. */
.btw-ls-item:link,
.btw-ls-item:visited,
.btw-ls-item:hover,
.btw-ls-item:focus,
.btw-ls-item:active { color: inherit; text-decoration: none; }
.btw-ls-all:link,
.btw-ls-all:visited,
.btw-ls-all:hover,
.btw-ls-all:focus,
.btw-ls-all:active { color: #2271b1; }
.btw-ls-item:hover,
.btw-ls-item--active { background: #f0f6fc; }

.btw-ls-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.btw-ls-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.btw-ls-title {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1d2327;
}

.btw-ls-excerpt {
    font-size: 12px;
    color: #646970;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btw-ls-date { font-size: 11px; color: #999; }

/* Preis (WooCommerce, Feld "Preis") */
.btw-ls-price {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}

.btw-ls-price del {
    margin-right: 4px;
    font-weight: 400;
    color: #8c8f94;
}

.btw-ls-price ins { text-decoration: none; }

/* Hervorgehobener Suchbegriff (Option "Suchbegriff hervorheben").
   Auch fuer btw_ls_highlight() auf der Ergebnisseite. */
.btw_ls_mark {
    padding: 0;
    background: #fff3b0;
    color: inherit;
    font-weight: inherit;
    border-radius: 2px;
}

.btw-ls-type {
    font-size: 11px;
    background: #f0f0f1;
    color: #646970;
    padding: 2px 7px;
    border-radius: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.btw-ls-no-results {
    padding: 14px;
    text-align: center;
    font-size: 13px;
    color: #646970;
}

/* Gruppen-Überschrift (Anzeige "Nach Post-Type gruppieren") */
.btw-ls-group {
    padding: 8px 14px 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #646970;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

/* Fusszeile: "Alle Ergebnisse anzeigen" */
.btw-ls-all {
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #2271b1;
}

/* Nur für Screenreader – Statusmeldung mit der Trefferzahl.
   Eigene Klasse, damit das Plugin nicht auf .screen-reader-text des Themes
   angewiesen ist (WordPress-Core-Definition, hier dupliziert). */
.btw-ls-status {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
