.modal.search-modal {
    position: static;
    width: auto;
    height: auto;
    z-index: initial;
    background: initial;
}

.search-modal > .modal__content {
    display: table;
    left: 0;
    right: -20px;
    top: 3px;
    transform: initial;
    width: 100%;
    height: auto;
    padding: 15px 20px 0;
    box-sizing: border-box;
}

.search-modal > .modal__content > .modal__close-button {
    display: table-cell;
    position: static;
    width: auto;
    min-width: auto;
    height: auto;
    min-height: auto;
    vertical-align: middle;
    padding: 0;
    background-color: transparent;
    border: 0;
}

.search-modal > .modal__content > .modal__close-button svg {
    fill: #000000;
    opacity: .54;
}

.search-modal > .modal__content > .modal__body {
    display: table-cell;
    padding-left: 20px;
    width: 100%;
    vertical-align: middle;
}

.search-modal > .modal__content > .modal__body > div {
    display: table;
    border-bottom: 2px solid #E6CAC7;
}

.search-modal > .modal__content > .modal__body > div > * + * {
    padding-left: 20px;
}

.search-modal > .modal__content > .modal__body > div > * {
    display: table-cell;
}

.search-modal > .modal__content > .modal__body > div > .modal__search-field {
    width: 100%;
    vertical-align: middle;
}

.search-modal > .modal__content > .modal__body > div > .modal__search-field > input {
    font-family: proxima-nova,sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    width: 100%;
    border: 0;
    color: #0C0C0C;
}

.search-modal > .modal__content > .modal__body > div > .modal__search-field > input::-webkit-input-placeholder {
    font-family: proxima-nova,sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
}

.search-modal > .modal__content > .modal__body > div > .modal__search-field > input:-moz-placeholder {
    font-family: proxima-nova,sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
}

.search-modal > .modal__content > .modal__body > div > .modal__search-button {
    width: auto;
    min-width: auto;
    height: auto;
    min-height: auto;
    vertical-align: middle;
    padding: 0;
    background-color: transparent;
    border: 0;
}

.search-modal > .modal__content > .modal__body > div > .modal__search-button svg {
    fill: var(--jbjs-color);
}

.search-modal > .modal__content > .modal__footer {
    position: absolute;
    background: white;
    left: 0;
    top: 100%;
    width: 100%;
    padding: 0 20px 15px;
    box-sizing: border-box;
    box-shadow: 0px 5px 6px rgba(0, 0, 0, .19);
}

.search-modal > .modal__content > .modal__footer > .modal__search-controls {
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
}

.search-modal > .modal__content > .modal__footer > .modal__search-controls > .modal__search-exact > label {
    margin-left: 2px;
    color: #0C0C0C;
    opacity: 0.54;
}

.search-modal > .modal__content > .modal__footer > .modal__search-controls > .modal__search-exact > label::before {
    margin-right: 22px;
    border-color: #808080;
}

.search-modal > .modal__content > .modal__footer > .modal__search-controls > .modal__search-exact > input:checked + label::after {
    background-color: #808080;
}


.search-modal > .modal__content > .modal__footer > .modal__search-controls > .modal__search-exact > input:disabled + label::before {
    background-color: #C0C0C0;
}

.search-modal > .modal__content > .modal__footer > .modal__search-controls > .modal__advanced-search {
    color: #0C0C0C;
    opacity: 0.54;
    text-decoration: underline;
    cursor: pointer;
}

.search-modal > .modal__content > .modal__footer > .modal__search-autocomplete > .autocomplete-suggestions {
    position: static !important;
    margin: 0 !important;
    width: 100% !important;
    border: 0 !important;
    box-shadow: initial !important;
}

.search-modal > .modal__content > .modal__footer > .modal__search-autocomplete > .autocomplete-suggestions > :first-child {
    margin-top: 8px;
}

.search-modal > .modal__content > .modal__footer > .modal__search-autocomplete > .autocomplete-suggestions > .autocomplete-suggestion {
    margin-left: 44px;
    margin-top: 12px;
    padding: 0;
    font-family: proxima-nova,sans-serif;
    font-size: 16px !important;
    font-weight: 400;
    font-style: normal;
    line-height: 24px;
    color: #000000;
}

.search-modal > .modal__content > .modal__footer > .modal__search-autocomplete > .autocomplete-suggestions > .autocomplete-suggestion:first-child {
    margin-top: 16px;
}

.search-modal > .modal__shadow {
    display: block;
    background-color: transparent;
}

.modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 100001;
    width: 200px;
    height: 200px;
    padding: 2em 1em 1em;
    visibility: hidden;
    opacity: 0;
    transition: .3s all; /* if change time, change timeout of focusing query input in search.js as well*/
    background-color: white;
}

.modal--active > .modal__content {
    visibility: visible;
    opacity: 1;
}

.modal__close-button {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 12px;
    height: 12px;
    fill: black;
    cursor: pointer;
}

.modal__shadow {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 100000;
    visibility: hidden;
    opacity: 0;
    transition: .3s all;
}

.modal--active > .modal__shadow {
    visibility: visible;
    opacity: 1;
}

.check-box > input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.check-box > label {
    position: relative;
    vertical-align: middle;
    user-select: none;
    font-family: proxima-nova,sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
}

.check-box > label::before {
    content: '';
    display: inline-block;
    margin-top: -2px;
    margin-right: 0.5em;
    width: 1em;
    height: 1em;
    border: 2px solid #000000;
    border-radius: 0.25em;
    vertical-align: middle;
}

.check-box > input:checked + label::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0.25em;
    left: 0.25em;
    width: 0.75em;
    height: 0.75em;
    border-radius: 0.125em;
    background-color: #000000;
}

.link > a {
    color: #000000;
    text-decoration: none;
}

.search-recent-block {
    margin: 0;
    padding: 0;
}

.search-recent-block > li {
    position: relative;
    margin-top: 12px;
    list-style: none;
    overflow: hidden;
}

.search-recent-block > li:first-child {
    margin-top: 16px;
}

.search-recent-block > li > * {
    display: inline-block;
    vertical-align: middle;
    line-height: 24px;
    width: 100%;
    margin-left: 44px;
    box-sizing: border-box;
}

.search-recent-block > li > .icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    width: auto;
}

.search-recent-block > li > .icon > svg {
    fill: rgba(0, 0, 0, .54);
}

.search-recent-block > li > :last-child {
    color: var(--jbjs-color);
}

.search-recent-block > li:hover > :last-child {
    background: #f0f0f0;
    cursor: pointer;
}