/* No longer wrapping the input in a new div — anchor to NOVA's own
   existing .search-wrapper/#search ancestor instead. A reference plugin
   on this shop confirms this exact pattern. */
#search,
.search-wrapper {
    position: relative;
}

.burg-fastfind-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 70vh;
    overflow-y: auto;
}

.burg-fastfind-list {
    display: flex;
    flex-direction: column;
}

.burg-fastfind-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f2f2f2;
}

.burg-fastfind-item:last-child {
    border-bottom: none;
}

.burg-fastfind-item:hover,
.burg-fastfind-item.is-active {
    background: #f7f7f7;
}

.burg-fastfind-thumb {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fafafa;
    border-radius: 4px;
}

.burg-fastfind-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.burg-fastfind-name {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.burg-fastfind-name mark,
.burg-fastfind-sku mark {
    background: #fff2a8;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

.burg-fastfind-sku {
    font-size: 0.75rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.burg-fastfind-meta {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: #666;
}

.burg-fastfind-price {
    font-weight: 600;
    color: #111;
}

.burg-fastfind-viewall {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid #f2f2f2;
}

.burg-fastfind-empty {
    padding: 14px 12px;
    color: #888;
    font-size: 0.85rem;
}

/* Mobile: same absolute positioning as desktop (reliable, anchored to
   the actual input via the wrapper) — just remove rounded corners and
   let it stretch full-bleed for a more usable width on a phone. */
@media (max-width: 576px) {
    .burg-fastfind-panel {
        left: -8px;
        right: -8px;
        border-radius: 0;
        max-height: 60vh;
    }
}

/* Search icon blended into the input, matching the theme's existing
   border color so it reads as one unified field rather than a separate
   boxed button. #search is NOVA's own wrapper id (theme markup, not
   ours) — scoping to it avoids affecting other input-groups on the
   site. No gap/margin overrides needed here anymore — those were only
   compensating for spacing issues introduced by wrapping the input in a
   new div, which we no longer do. */
#search .input-group .input-group-append {
    margin-left: 0;
}

#search .input-group .input-group-append .btn {
    border: 1px solid #ced4da;
    border-left: none;
    background: transparent;
    box-shadow: none;
}

#search .input-group .input-group-append .btn:hover,
#search .input-group .input-group-append .btn:focus,
#search .input-group .input-group-append .btn:active {
    background: transparent;
    box-shadow: none;
    border-color: #ced4da;
}

#search #search-header:focus,
#search .input-group .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

#search .input-group:focus-within .form-control,
#search .input-group:focus-within .input-group-append .btn {
    border-color: #999;
}

/* NOVA's native "clear text" (×) button already positions itself
   correctly on its own (right: 52px; bottom: 8px; flex-centered,
   confirmed via inspecting it without this plugin active) — no
   override needed here. An earlier version added one using a different
   positioning approach (top/transform) that conflicted with NOVA's own
   bottom-based centering rather than fixing anything.
