.dwqa-search {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid rgba(31, 49, 81, 0.3);
    border-radius: 2px;
    background-color: #fffdfb;
    height: 40px;
    margin: 0;
}

.header-links .dwqa-search {
    position: relative;
    margin-left: 2px;
}

.full-page-form-wrapper .dwqa-search {
    margin-left: 12px;
    position: unset;
}

.dwqa-search input {
    flex: 1;
    outline: 0;
    border: 0;
    height: 40px;
    font-size: 0.875rem;
    color: black;
    background-color: inherit;
    border-top: inherit;
    border-bottom: inherit;
    border-radius: inherit;
    -webkit-appearance: none;
}

.dwqa-search input::-webkit-input-placeholder {
    color: rgba(31, 49, 81, 0.6);
    font-size: 14px;
    letter-spacing: -.2px;
}

.full-page-form-wrapper .dwqa-search span {
    left: 60px;
}

.header-links .dwqa-search input {
    padding: 0 16px;
}

.full-page-form-wrapper .dwqa-search input {
    padding: 0 12px;
    width: 100%;
}

.dwqa-search button {
    padding: 4px 12px 0 8px;
    border-radius: 2px;
    background-color: #fffdfb;
    height: 40px;
    width: 44px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border: 0;
    border-top: inherit;
    border-bottom: inherit;
}

.search-placeholder {
    color: rgba(31, 49, 81, 0.6);
    font-size: 14px;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    opacity: .8;
    pointer-events: none;
    position: absolute;
    transition: opacity 1s;
    z-index: 2;
}

.search-placeholder.disappear {
    opacity: 0;
}

.full-page-search .dwqa-search button {
    justify-content: center;
    width: 40px;
}

.dwqa-search button svg {
    height: 18px;
    width: 18px;
}

.dwqa-search button g {
    fill: rgb(153, 153, 153);
}

.dwqa-search input:focus + button g {
    fill: #3e89fa;
}

.dwqa-search input.ui-autocomplete-loading + button {
    display: none;
}

.dwqa-search > svg {
    height: 40px;
    width: 44px;
    display: none;
}

.dwqa-search > svg circle {
    fill: #3e89fa;
}

.dwqa-search input.ui-autocomplete-loading ~ svg {
    display: block;
}

.dwqa-autocomplete {
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: white;
    position: absolute !important;
    right: 0;
    left: 0 !important;
    z-index: 9999;
    overflow-y: auto;
    width: 100% !important;
}

[data-app="true"] .dwqa-autocomplete {
    box-shadow: 0 20px 60px 0 rgba(0,0,0,.2);
    border-radius: 4px;
    top: 40px !important;
}

.header-links .dwqa-autocomplete {
    top: 100% !important;
    border: 1px solid #d4d4d5;
    border-radius: 0 0 2px 2px;
    box-shadow: -1px 1px 4px 0 rgba(117,138,172,.12);

}

.full-page-form-wrapper .dwqa-autocomplete {
    top: calc(100% + 2px) !important;
    border-radius: 0;
    box-shadow: -1px 1px 4px 0 rgba(117,138,172,.12);
    max-height: 90vh;
    margin-top: 0;
    border: 0;
    padding-bottom: 150px;
}

.dwqa-search .dwqa-autocomplete li {
    padding: 10px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    margin: 0;
}

.dwqa-search .dwqa-autocomplete li .post-date-searches {
    font-size: 0.875em;
}

.dwqa-search .dwqa-autocomplete .dwqa-text-highlight {
    font-weight: bold;
    left: 0;
}

.dwqa-search .dwqa-autocomplete li.ui-state-focus,
.dwqa-search .dwqa-autocomplete li:hover {
    background: #f0f0f0;
}

.dwqa-search .dwqa-autocomplete li:last-child {
    border-bottom: 0;
}
