.family-search {
    position: relative;
    width: 100%;
    z-index: 25;
}

.family-search__field {
    position: relative;
    display: flex;
    align-items: center;
}

.family-search__input {
    width: 100%;
    height: 40px;
    padding: 0 36px 0 38px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #111827;
    transition: border-color .2s ease, background .2s ease;
}

.family-search__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #9ca3af;
    pointer-events: none;
}

.family-search__input::placeholder {
    color: #9ca3af;
}

.family-search__input:focus {
    outline: none;
    background: #fff;
    border-color: #111827;
}

.family-search__clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.family-search__clear:hover,
.family-search__clear:focus-visible {
    color: #1f1f1f;
}

.family-search__listbox {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    max-height: 320px;
    overflow-y: auto;
}

.family-search__option {
    list-style: none;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
}

.family-search__option:hover,
.family-search__option.is-active {
    background: #f3f3f3;
}

.family-search__option--empty {
    color: #9ca3af;
    font-weight: 400;
    cursor: default;
}

.family-search__option--empty:hover {
    background: transparent;
    color: #9ca3af;
}
