.ffwoo-search-form {
    position: relative;
    width: min(100%, 400px);
}

.ffwoo-search-box {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 42px;
    border: 1px solid #d9dee7;
    border-radius: 99px;
    background: #fff;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.ffwoo-search-box:focus-within {
    border-color: var(--ffwoo-primary, #055cce);
    box-shadow: 0 0 0 2px rgba(5, 92, 206, .08);
}

.ffwoo-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0 !important;
    box-shadow: none !important;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    background: transparent;
    color: #1f2937;
}

.ffwoo-search-input:focus {
    outline: none;
}

.ffwoo-search-submit {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    border: 0;
    border-left: 1px solid #d9dee7;
    border-radius: 0;
    padding: 0;
    min-height: 40px;
    background: var(--ffwoo-primary, #055cce);
    color: #fff;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    transition: filter .18s ease;
}

.ffwoo-search-submit::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
    transform: translate(-58%, -58%);
}

.ffwoo-search-submit::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transform: translate(2px, 5px) rotate(45deg);
    transform-origin: left center;
}

.ffwoo-search-submit:hover,
.ffwoo-search-submit:focus {
    filter: brightness(.95);
    outline: none;
}

.ffwoo-search-suggestions {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    border: 1px solid #d9dee7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .12);
    overflow: hidden;
}

.ffwoo-search-suggestions[hidden] {
    display: none;
}

.ffwoo-search-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #efefef;
}

.ffwoo-search-suggestion:last-child {
    border-bottom: 0;
}

.ffwoo-search-suggestion:hover,
.ffwoo-search-suggestion.is-active,
.ffwoo-search-suggestion:focus {
    background: #f4f7fb;
    outline: none;
}

.ffwoo-search-thumb {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #f6f6f6;
    overflow: hidden;
}

.ffwoo-search-thumb img,
.ffwoo-search-thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ffwoo-search-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ffwoo-search-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
}

.ffwoo-search-sku {
    font-size: 12px;
    color: #777;
}

.ffwoo-search-empty {
    padding: 11px 12px;
    font-size: 13px;
    color: #777;
}

@media (max-width: 480px) {
    .ffwoo-search-form {
        width: 100%;
    }

    .ffwoo-search-submit {
        width: 42px;
    }
}
