/* BS Woo Extend - Hero search bar (rem-based) */

.search-bar {
    display: flex;
    max-width: 31.25rem;
    margin: 0;
    height: 2.5rem;
    position: relative;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    padding: 0.2rem;
    background: #fff;
}

.search-bar *,
.search-bar *::before,
.search-bar *::after {
    box-sizing: border-box;
}

.search-bar .search-icon {
    flex: 0 0 auto;
    width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}
.search-bar .search-icon svg {
    width: 1rem;
    height: 1rem;
}

.search-bar input[type="text"],
.search-bar input.search-field {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0.5rem 0.75rem 0.5rem 0rem;
    border: none;
    outline: none;
    font-size: 0.875rem;
    color: var(--text);
}

.search-bar .search-btn {
    background-color: var(--accent);
    border: none;
    padding: 0.625rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.386rem;
}
.search-bar .search-btn:hover {
    background-color: var(--accent);
}

.search-bar .search-btn svg {
    width: 1rem;
    height: 1rem;
}

.search-bar input.search-field::placeholder {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.5rem;
    color: accent#ffffff;
}

.search-bar .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    z-index: 100;
    max-height: 18.75rem;
    overflow-y: auto;
    display: none;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.search-bar .search-results p {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #666666;
    margin-bottom: 0.5rem;
    padding: 0.625rem;
}

.search-bar .search-results ul {
    padding: 0;
    margin: 0;
}

.search-bar .search-results ul li {
    padding: 0.625rem;
    list-style-type: none;
}

.search-bar .search-results ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--text);
}

.search-bar .search-results ul li a img {
    width: 1.625rem;
    height: 1.625rem;
}

@media screen and (max-width: 480px) {
    .search-bar {
        flex-wrap: wrap;
        border: none;
        height: auto;
        box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    }

    .search-bar input[type="text"],
    .search-bar input.search-field {
        width: calc(100% - 2.386rem);
        border: none;
    }
}
/* Keep the original magnifier in place and restore it when the request settles. */
.search-bar.is-searching .search-icon { position: relative; }
.search-bar.is-searching .search-icon svg { visibility: hidden; }
.search-bar.is-searching .search-icon::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--line, #e6e6e6);
    border-top-color: var(--accent, #f78d1e);
    border-radius: 50%;
    animation: bs-search-spin .7s linear infinite;
}
.bs-store .search-bar.is-searching .search-icon { display: flex; }
@keyframes bs-search-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .search-bar.is-searching .search-icon::after { animation-duration: 1.8s; }
}

.woocommerce-product-search .search-status {
    display: block;
    padding: .75rem;
    font-size: .8125rem;
    line-height: 1.5;
    color: var(--muted, #667085);
}

