.shelf-scout {
    --shelf-scout-primary-blue: #14396a;
    --primary-blue: var(--shelf-scout-primary-blue);
    position: relative;
    width: 404px;
    max-width: calc(100vw - 32px);
    min-height: 64px;
    padding: 10px 12px;
    background: var(--primary-yellow, #FFCD01);
    box-sizing: border-box;
}

.woocommerce__navigation__top-navigation__search:has(.shelf-scout) {
    max-width: 404px;
}

.shelf-scout__form {
    position: relative;
    display: flex;
    align-items: center;
    width: 380px;
    max-width: 100%;
    height: 48px;
    background: transparent;
    border-radius: 3px;
    box-shadow: none;
    box-sizing: border-box;
    transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.shelf-scout__form:hover,
.shelf-scout__form:focus-within {
    background: #fff;
    box-shadow: 0 1px 0 rgba(20, 57, 106, 0.08);
}

.shelf-scout__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    height: 48px;
    color: var(--shelf-scout-primary-blue);
    pointer-events: none;
}

.shelf-scout__icon-svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.shelf-scout__input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 14px 0 0;
    color: #263238;
    font-size: 16px;
    line-height: 48px;
    background: transparent;
    border: 0;
    outline: 0;
    box-shadow: none;
    box-sizing: border-box;
}

.shelf-scout__input::placeholder {
    color: #667085;
    opacity: 1;
}

.shelf-scout__input:focus {
    outline: 0;
    box-shadow: none;
}

.shelf-scout__button {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shelf-scout__dropdown {
    position: absolute;
    top: calc(100% - 10px);
    left: 12px;
    right: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: 0;
    z-index: 9999;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.shelf-scout__results {
    background: #fff;
}

.shelf-scout__result {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 76px;
    padding: 14px 12px;
    text-decoration: none;
    color: #172033;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    box-sizing: border-box;
}

.shelf-scout__result:last-child {
    border-bottom: 0;
}

.shelf-scout__result:hover,
.shelf-scout__result.is-active {
    background: #fff8db;
}

.shelf-scout__thumbnail {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin-top: 2px;
    object-fit: cover;
    border-radius: 3px;
    background: #f3f4f6;
}

.shelf-scout__meta {
    min-width: 0;
}

.shelf-scout__title {
    color: var(--primary-blue);
    font-family: Rubik, sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 16.5px;
}

.shelf-scout__sku {
    margin-top: 2px;
    font-family: Rubik, sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: #646970;
}

.shelf-scout__price {
    margin-top: 3px;
    font-family: Rubik, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 16.8px;
    color: #1d4f91;
}

/* Section headers (Categories / Articles / Products) — match nurme.eu FiboSearch headline (12px/500). */
.shelf-scout__section-title {
    padding: 10px 12px 4px;
    font-family: Rubik, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 13.2px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a94a6;
    background: #fff;
}

/* Category / article rows — lighter than product rows (no thumbnail). */
.shelf-scout__result--term,
.shelf-scout__result--article {
    min-height: 0;
    padding: 9px 12px;
    align-items: center;
}

.shelf-scout__result--term .shelf-scout__title,
.shelf-scout__result--article .shelf-scout__title {
    font-size: 15px;
    font-weight: 300;
    line-height: 16.5px;
}

.shelf-scout__count {
    margin-left: 6px;
    font-family: Rubik, sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: #8a94a6;
}

.shelf-scout__status {
    padding: 8px 12px;
    font-size: 13px;
    color: #172033;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
}

.shelf-scout__loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.shelf-scout__loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top-color: var(--shelf-scout-primary-blue);
    border-radius: 50%;
    animation: shelf-scout-spin 0.8s linear infinite;
}

@keyframes shelf-scout-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .shelf-scout {
        max-width: none;
    }
}
