/* AddSearch styling */
#global-autocomplete-container .addsearch-autocomplete,
#searchresults-container .addsearch-searchresults {
    padding-top: 10px;
    position: relative;

    .number-of-results {
        font-size: 1.5em;
        margin-bottom: 0;

        @media(max-width:767px) {
            font-size: 1em;
        }
    }

    .addsearch-autocomplete-close {
        display: none;
        font-size: 1em;

        @media(max-width:767px) {
            display: block;
        }
    }

    h3.adds-title,
    ul.adds-suggestions-container li {
        color: #000 !important;
    }

    .adds-hits-main-wrapper {
        padding: 0;

        h3.adds-title {
            margin-left: 15px;
        }

        .adds-hit {
            padding: 0 1em 0 1em;

            .adds-category-wrapper {

                order: 2;

                &.list {
                    display: none;
                }

                span:nth-of-type(2)::before {
                    content: "by";
                    font-weight: bold;
                    display: inline-block;
                    margin-left: 3px;
                    color: #000;
                }
            }

            .adds-category.pubdate {
                order: 1;
                color: #000;

            }

            .adds-category.author {
                order: 2;
                color: rgb(193, 5, 150);
            }

            .adds-category.pubdate,
            .adds-category.author {
                font-family: "Open Sans", sans-serif !important;
                font-size: 14px;
                letter-spacing: 0;
                font-weight: bold;
            }

            .adds-hit-wrapper {
                border: 0 none;
                padding-top: 0;
                position: relative;

                &:hover {
                    background-color: #fff;
                }

                .adds-hit-bottom {
                    padding-top: 30px;

                    @media(max-width:767px) {
                        position: relative;
                    }
                }

                @media(max-width:767px) {
                    flex-direction: column !important;
                }
            }

            .adds-hit-top {
                margin-right: 1em !important;
                width: 200px;
                max-width: 200px;
                min-width: 200px;
                height: 100%;

                @media(max-width:767px) {
                    margin: 0 0 1em !important;
                    width: 100%;
                    max-width: 100%;
                    min-width: 100%;
                    max-height: 300px;
                    height: fit-content;
                }
            }

            .adds-hit-title {
                order: 2;

                a {
                    font-weight: 500;
                    font-size: 28px;
                    line-height: 30px;
                    margin: 0 0 5px 0;
                    color: #389cc5;
                    font-family: "Open Sans", sans-serif !important;
                }
            }

            .adds-highlight {
                order: 2;
                font-size: 1rem;
                margin-bottom: .5rem;
                padding-bottom: 0;

                > p {
                    margin-bottom: 0;
                }
            }

            .adds-main-image {

                img {
                    width: 150px;
                    object-fit: none;
                    height: auto;
                }

                @media(max-width:767px) {
                    img {
                        object-fit: contain;
                        width: 100%;
                        height: 100%;
                    }

                    &:before {
                        display: block;
                        content: "";
                        width: 100%;
                        padding-top: 56.25%;
                    }
                }
            }

        } /* end .adds-hit */
    } /* end .adds-hits-main-wrapper */
} /* end #global-autocomplete-container .addsearch-autocomplete */

@media(max-width: 991px){
    .adds-filters-group .adds-label {
        font-size: 14px;
        display: flex;
        flex-direction: row;
        align-items: center;
        height: auto;
    }
}

.adds-components button:after {
    content: '';
    margin: 0;
}

#global-searchfield-container .addsearch-searchfield button,
#searchfield-container .addsearch-searchfield button {
    background: rgb(56, 156, 197) !important;

    &:hover {
        background: #236194 !important;
    }
}

.adds-filters-group .adds-label {
    margin-bottom: 0;
    font-size: 14px;
    
    br {
        display: none;
    }
}

/* pagination */
#pagination-container {

    .addsearch-pagination {
        justify-content: center;

         button {
            font-size: 1.5rem;
            border: 1px solid #000;
            padding: 6px 12px;
            font-weight: normal;
            background-color: #138c45 !important;
            color: #fff !important;

            &[data-active="true"] {
                background-color: #367D57 !important;
                border: 0 none;
            }

            @media(max-width:767px) {
                min-width: 24px;
            }
        }
    }
}

#addsearch-modal {
    @media(max-width: 767px) {
        .modal-dialog {
            margin: 30px auto;
        }
    }
}

a.addsearch-link {
    font-size:18px;
    color: #fff;
    cursor: pointer;
}


.pdfprnt-buttons:has(+ .adds-components) {
    display: none;
}

.content:has(#searchfield-container) {
    padding-top: 0 !important;
}

#addsearch-custom-date-range span + br {
    display: none;
}

#addsearch-start-date + br,
#addsearch-end-date + br {
    display: none;
}