.wf-search-field {
    position: relative;
    width: 100%;
}

.wf-search-field__form {
    position: relative;
}

.wf-search-field__input {
    padding-right: 40px;
}

.wf-search-field__input:focus-visible {
    outline: none;
}

.wf-search-field__submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.wf-search-field__submit img {
    display: block;
    width: 15px;
    height: 15px;
}

.wf-search-field__loader {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: wf-search-field-spin 0.65s linear infinite;
    box-sizing: border-box;
    pointer-events: none;
}

.wf-search-field__loader[hidden] {
    display: none !important;
}

.wf-search-field__form.is-search-loading .wf-search-field__submit {
    visibility: hidden;
}

@keyframes wf-search-field-spin {
    to {
        transform: rotate(360deg);
    }
}

.wf-search-suggest-wrap {
    position: relative;
}

.wf-search-suggest-form {
    position: relative;
    line-height: 1.2;
}

.wf-search-suggest-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 70vh;
    overflow-y: auto;
    text-align: left;
}

.wf-search-suggest-panel[hidden] {
    display: none !important;
}

.wf-search-suggest-group + .wf-search-suggest-group {
    border-top: 1px solid #eee;
}

.wf-search-suggest-group-title {
    padding: 8px 12px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
}

.wf-search-suggest-list {
    list-style: none;
    margin: 0;
    padding: 0 0 4px;
}

.wf-search-suggest-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
}

.wf-search-suggest-item a:hover,
.wf-search-suggest-item a:focus {
    background: #f5f5f5;
    outline: none;
}

.wf-search-suggest-thumb {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 3px;
    background: #f0f0f0;
}

.wf-search-suggest-thumb--empty {
    display: inline-block;
}

.wf-search-suggest-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-search-suggest-footer {
    padding: 10px 12px;
    font-size: 13px;
    border-top: 1px solid #eee;
}

.wf-search-suggest-footer a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.wf-search-suggest-footer a:hover {
    text-decoration: underline;
}

.wf-search-suggest-item.is-active a {
    background: #f5f5f5;
}
