﻿/* Variables */

:root {
    --input-width: 965px;
}

/* Layout */
/*
body {
    max-width: 1000px;
    margin: 20px auto;
    font-family: Helvetica, Arial, sans-serif;
}

header {
    margin: 30px 0 30px 0;
}

main {
    display: flex;
    margin-top: 10px;
}

#left-column {
    flex-basis: 30%;
}

#right-column {
    flex-basis: 70%;
    display: flex;
    flex-direction: column;
}
*/

/* Searchbox */
#searchbox div.ais-SearchBox {
    width: 100%;
    max-width: 100%;
}

#searchbox input.ais-SearchBox-input {
    width: var(--input-width);
    border-bottom: #eee solid 4px;
    box-shadow: none;
    font-size: 1.3em;
    font-weight: 500;
    border: 1px solid #818285;
    border-radius: 8px;
    padding: 14px;
    font-size: 20px;
    line-height: 26px;
    color: #3C3C3C;
    width: 100%;
    max-width: 100%;
}

    #searchbox input.ais-SearchBox-input::placeholder {
        color: #ccc;
    }

#searchbox .ais-SearchBox-submit {
    position: relative;
    bottom: 30px;
    outline: none;
}

#searchbox .ais-SearchBox-submitIcon {
    height: 18px;
    width: 18px;
}

#searchbox .ais-SearchBox-reset {
    position: relative;
    bottom: 42px;
    left: var(--input-width);
    outline: none;    
}

#searchbox .ais-SearchBox-resetIcon {
    height: 14px;
    width: 14px;
}

.ais-SearchBox-input:focus {
    outline: none;
}

/* Hits */
.hit-title {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

    .hit-title > .conetent-type {
        display: flex;
        margin-top: 5px;
        height: 16px;
        font-weight: normal;
        border: 1px solid grey;
        padding: 2px 6px;
        border-radius: 250px;
        font-size: 0.9em;
        align-items: center;
    }

main h4 {
    font-size: 1em;
    color: #222;
    margin-top: 4px;
    margin-bottom: 4px;
    line-height: 1.5;
}

mark {
    background-color: #dfe2ee;
}

.ais-Hits-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-top: 1px solid #E6E6E6;
    padding: 23px 0;
    margin-top: 5px;
}

    .ais-Hits-item img {
        object-fit: contain;
        width: 80px;
        min-width: 80px;
        max-height: 80px;
        margin-right: 25px;
    }

.ais-HitsPerPage-select, .ais-SortBy-select {
    padding: 10px;
    border-radius: 5px;
}

div.content {
    display: flex;
    flex-direction: column;
    max-width: 750px;
}

p {
    margin: 0;
    color: #3C3C3C;
    text-align: justify;
    font-size: 18px;
    line-height: 22px;
    line-height: 1.3;
}

/* Widgets */
/* Widgets - general */
h5.filter-title {
    font-size: 1.05em;
    font-weight: bold;
    border: none;
    margin-top: 0;
    margin-bottom: 5px;
    text-transform: capitalize;
    background: #0070cc;
    color: #FFFFFF;
    padding: 3px 10px;
}

h5.searchlabel-title {
    font-size: 1.5em;
    font-weight: bold;
    border: none;
    margin-top: 56px;
    margin-bottom: 5px;
    text-transform: capitalize;
    color: #3a4570;
}

.filter-container {
    display: flex;
    justify-content: end;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

#pagination {
    flex: 1 1 auto;
}

#hits-per-page, #sort-by {
    margin: 10px 0 30px 0;
}

.filter-container h5.searchlabel-title {
    margin: 10px 10px 30px 30px;
}

#left-column .ais-root {
    margin-bottom: 20px;
}

.filter-widgets:not(:last-child) {
    border-bottom: #eee solid 3px;
    margin-right: 30px;
    margin-bottom: 20px;
}

.ais-RefinementList-item,
.ais-HierarchicalMenu-item,
.ais-Menu-item {
    margin-bottom: 7px;
}

.ais-RefinementList-item--selected,
.ais-HierarchicalMenu-item--selected > div > a,
.ais-Menu-item--selected {
    font-weight: bold;
}

.ais-RefinementList-label,
.ais-HierarchicalMenu-link,
.ais-Menu-link {
    font-family: 'Noto Sans', sans-serif;
    font-size: 24px;
    line-height: 31px;
    font-weight: 700;
    color: #222;
    cursor: pointer;
    text-decoration: none;
}

.ais-HierarchicalMenu-item--selected .ais-HierarchicalMenu-link:after {
    content: "\2212";
    display: inline-block;
    float: right;
    font-size: 36px;
}

.ais-HierarchicalMenu-link:after {
    content: "\002B";
    display: inline-block;
    float: right;
    font-size: 30px;
}

.ais-HierarchicalMenu-link .ais-HierarchicalMenu-label {
    color: #222;
}

.ais-HierarchicalMenu-count, .ais-Hits-item a, .hit-title > .conetent-type {
    display: none;
}

.ais-Hits-item .hit-title a {
    display: block;
    color: #0070cc !important;
    text-decoration: none;
    font-style: normal;
    font-size: 26px;
    line-height: 32px;
    font-weight: 700;
}

.ais-Hits-item .hit-title h4 {
    display: block;
    color: #0070cc !important;
    font-style: normal;
    font-weight: 700;
}

span.ais-RefinementList-count,
.ais-HierarchicalMenu-count,
.ais-Menu-count {
    margin-left: 5px;
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    line-height: 19px;
    color: #FFF;
    background-color: #0070CC;
    border-radius: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 23px;
    min-width: 23px;
    font-weight: 600;
}

.ais-HierarchicalMenu-list {
    padding: 0 5px;
}

.ais-HierarchicalMenu .ais-HierarchicalMenu-list--child .ais-HierarchicalMenu-link {
    font-family: 'Noto Sans', sans-serif;
    font-size: 18px;
    line-height: 21px;
    font-weight: 700;
}
/* Widget - RefinementList */
.ais-RefinementList-checkbox {
    margin-left: 0;
}

.ais-RefinementList input[type="search"] {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #c4c8d8;
    font-size: 1em;
    box-shadow: none;
    padding-left: 16px;
    width: 100%;
    margin: 5px 0;
}

    .ais-RefinementList input[type="search"]::placeholder {
        color: #c4c8d8;
    }

.ais-RefinementList-searchBox .ais-SearchBox-form > .ais-SearchBox-submit {
    position: absolute;
    bottom: 13px;
    right: 15px;
    color: #0070cc;
    outline: none;
}

.ais-SearchBox-submit svg {
    color: #0070cc;
    fill: #0070cc;
    stroke: #0070cc;
    stroke-width: 2px;
}

.ais-RefinementList-searchBox .ais-SearchBox-form > .ais-SearchBox-reset {
    display: none;
}

/* Widget - HierarchicalMenu */
.ais-HierarchicalMenu-item--selected > div {
    margin-top: 5px;
}

    .ais-HierarchicalMenu-item--selected > div > a::after {
        margin-left: 5px;
    }

/* Widget - RangeInput */
.ais-RangeInput-submit,
.ais-RangeInput-submit:hover {
    background-color: #dfe2ee;
    color: #3a4570;
    padding: 0.2rem 0.6rem;
    font-size: 1em;
    margin-left: 5px;
    border-radius: 15px;
    border: none;
    cursor: pointer;
}

    .ais-RangeInput-submit:focus {
        outline: none;
    }

.ais-RangeInput-input--min,
.ais-RangeInput-input--max {
    width: 70px;
    min-width: 70px;
    font-size: 1em;
}

.ais-RangeInput-separator {
    margin: 0 5px;
}

/* Widget - Pagination */
#pagination {
    align-self: center;
}

.ais-Pagination-link {
    padding: 0.3rem 0.6rem;
    margin-right: 16px;
    color: #3c3c3c;
    display: inline-block;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease-out;
    text-decoration: none;
    font-weight: 100;
    vertical-align: initial;
    font-size: 40px;
    line-height: 24px;
    cursor: pointer
}

.ais-Pagination-link {
    color: #3a4570;
}

.ais-Pagination-item--nextPage .ais-Pagination-link:hover {
    color: #0070CC;
    background: transparent;
}

.ais-Pagination-item--disabled {
    display: none;
}

.ais-Pagination-item.ais-Pagination-item--lastPage,
.ais-Pagination-item.ais-Pagination-item--firstPage {
    display: none;
}

.ais-Pagination-item.ais-Pagination-item--page a, .ais-Pagination-item.ais-Pagination-item--page a:hover {
    background-color: #F4F4F4;
    border-color: #F4F4F4;
    color: #3c3c3c;
    width: 44px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    line-height: 31px;
    font-weight: 700;
    margin-right: 16px;
}

.ais-Pagination-item--selected a,
.ais-Pagination-item--selected a:hover {
    
    background: #0070CC;
    border: 1px solid #0070CC;
    color: #FFFFFF;
}

/* Widget - ClearRefinements */
.ais-ClearRefinements-button {
    border: none;
    outline: none;
    border-radius: 0;
    font-size: 1em;
    margin-bottom: 15px;
    width: 100%;
    font-family: 'Noto Sans', sans-serif;
    font-size: 24px;
    line-height: 16px;
    font-weight: 500;
    color: #0070cc;
    text-decoration: underline;
    text-align: right;
    width: auto;
    margin: 0;
    padding: 0;
    float: right;
}

    .ais-ClearRefinements-button:hover, .ais-ClearRefinements-button:focus {
        outline: 1px solid #0070cc;
    }

.ais-ClearRefinements-button--disabled {
    display: none;
}

#clear-all {
    border: none;
    margin-bottom: 0px;
}

.ais-HierarchicalMenu-count, .ais-Hits-item a, .hit-title > .conetent-type {
    display: none;
}

.ais-Pagination-item.ais-Pagination-item--lastPage,
.ais-Pagination-item.ais-Pagination-item--firstPage {
    display: none;
}

/* Widget - Stats */
.ais-Stats {
    text-align: right;
    margin-top: 2px;
    font-size: 0.8em;
}
