/*
  Books Filter Style
*/

.col-sm {
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 100%;
}

#top .main_color .book-filter {
    background-color: transparent;
    max-width: 187px;
    margin-right: 51px;
    font-family: 'oswald', Helvetica, Arial, sans-serif;
    background-image: url("/wp-content/uploads/2023/04/fleche-vers-le-bas.png");
    border-color: transparent;
}

#top .main_color .image-overlay {
    display: none !important;
}

.noResults {
    text-align: center;
    width: 100%;
    color: #444;
}

#top .main_color .filter-btn {
    font-family: 'oswald', Helvetica, Arial, sans-serif;
    border: 2px solid #8d8c8a;
    background-color: transparent;
    color: #8d8c8a;
    height: 40px;
    padding: 2px;
    letter-spacing: 1px;
    width: 84px;
    cursor: not-allowed;
    font-size: 16px;
}

#top .main_color .filter-container .active {
    border: 2px solid #070606;
    background-color: #070606;
    color: white;
    cursor: pointer;
}

#top .main_color .filter-btn-clickable {
    color: #070606;
    cursor: pointer;
}

#top .main_color .filter-container {
    margin-top: 58px;
    margin-bottom: 40px;
    text-align: right;
}

#top.page-id-8332 .main_color .c-row, #top.page-id-8332 .filter-container {
    width: 100%;
    margin-left: 45px;
}

.book-image-container {
    width: 197px;
    height: 291px;
    margin-bottom: 30px;
}

.book-link {
    position: relative;
    display: block;
    height: 100%;
    width: auto;
    overflow: visible !important;
}

.book-image-container img {
    height: auto;
    max-height: 291px;
    width: auto;
    position: absolute;
    bottom: 0;
    box-shadow: 3px 3px 12px 0px rgba(0, 0, 0, 0.17);
}

.book-description-container {
    width: 197px;
    margin-bottom: 30px;
}

#top .main_color .book-pagination {
    display: block;
    padding: 0;
    margin: auto;
    width: fit-content;
    margin-top: 25px;
}
#top .main_color .book-pagination li {
    display: inline;
}
#top .main_color .book-pagination li.active {
    border: 2px solid rgba(7, 6, 6, 1);
    border-radius: 26px;
    padding: 10px 18px;
    line-height: normal;
}

@media screen and (max-width: 767px) {
    #top .main_color .book-filter, #top .filter-container .d-block {
        max-width: 100%;
    }

    .book-image-container, .book-description-container {
        margin: 0 auto;
        margin-bottom: 30px;
    }

    #top.page-id-8332 .main_color .c-row, #top.page-id-8332 .filter-container {
        margin-left: 0;
    }
}

@media screen and (min-width: 768px) {
    .custom-select {
        max-width: 260px !important;
        margin-right: 51px;
    }
    .book-col {
        width: 50%;
    }
    #top.page-id-8332 .main_color .c-row, #top.page-id-8332 .filter-container {
        margin-left: 0;
    }
    #top .main_color .flex-desktop {
        display: flex;
    }
    #top .main_color .filter-container {
        text-align: left;
    }
    #top .main_color .book-filter {
        -ms-flex-preferred-size: 0;
        flex-basis: 0;
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
        max-width: 260px;
        min-width: auto;
    }

    .book-description-container {
        margin-bottom: 30px;
    }

    .book-image-container, .book-description-container {
        margin: 0 auto;
        margin-bottom: 30px;
    }
}

@media screen and (min-width: 990px) {
    .book-col {
        width: 33.33%;
    }
    .book-image-container {
        width: 197px;
        height: 291px;
        margin: initial;
        margin-bottom: 30px;
    }
    .book-image-container img {
        max-height: 291px;
    }

    .book-description-container {
        width: 197px;
        height: 350px;
        margin: initial;
        margin-bottom: 30px;
    }
}

@media screen and (min-width: 1400px) {
    .book-col {
        width: 25%;
    }

    .book-image-container {
        width: 267px;
        height: 394px;
    }
    .book-image-container img {
        max-height: 394px;
    }

    .book-description-container {
        width: 267px;
    }
}

/* The container must be positioned relative: */
.custom-select {
    position: relative;
    font-family: 'oswald', Helvetica, Arial, sans-serif;
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 100%;
    min-width: auto;
    text-align: left;
    margin-bottom: 20px;
}

.custom-select select {
    display: none; /*hide original SELECT element: */
}

.select-selected {
    background-color: transparent;
}

/* Style the arrow inside the select element: */
.select-selected:after {
    position: absolute;
    content: "";
    top: 10px;
    right: 10px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #000 transparent transparent transparent;
    background-image: url("/wp-content/uploads/2023/04/fleche-vers-le-bas.png");
}

/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
    border-color: transparent transparent #000 transparent;
    top: 5px;
}

/* style the items (options), including the selected item: */
.select-items div,.select-selected {
    color: #000;
    padding: 0px 7px;
    border: 0px;
    border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
    cursor: pointer;
}

/* Style items (options): */
.select-items {
    position: absolute;
    background-color: #fff;
    top: 35px;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 3px 3px 12px 0px rgba(0, 0, 0, 0.17);
    max-height: 597px;
    border: 1px solid #767676 !important;
    overflow: scroll;
}

/* Hide the items when the select box is closed: */
.select-hide {
    display: none;
}

.select-items div:hover, .same-as-selected {
    background-color: dodgerblue;
    color: white !important;
}