:root {
    --dropdown-border-color: #aaa;
    --color-black: #000;
    --color-white: #fff;
    --dropdown-bg-color: var(--color-white);
    --selected-term-bg: var(--e-global-color-secondary, #010249);
    --selected-term-color: var(--color-white);
    --selected-term-hover-bg: var(--color-white);
    --selected-term-hover-color: var(--e-global-color-secondary, #010249);
    --page-number-bg: var(--color-white);
    --page-number-border: #0000003b;
    --page-number-hover-bg: rgba(0, 0, 0, 0.12);
    --page-number-current-bg: rgba(0, 0, 0, 0.08);
    --loading-bg: var(--color-white);
    --card-shadow: rgb(214, 214, 214);
    --card-bg: var(--color-white);
    --card-border: rgb(235, 235, 235);
    --text-primary: rgba(0, 0, 0, 0.87);
    --text-secondary: rgb(56, 56, 56);
    --text-muted: rgb(137, 137, 137);
    --filter-mobile-bg: var(--color-white);
}

.checkbox-dropdown {
    width: 220px;
    border: 1px solid var(--dropdown-border-color);
    padding: 10px;
    position: relative;
    user-select: none;
}

/* Display CSS arrow to the right of the dropdown text */
.checkbox-dropdown:after {
    content:'';
    height: 0;
    position: absolute;
    width: 0;
    border: 6px solid transparent;
    border-top-color: var(--color-black);
    top: 50%;
    right: 10px;
    margin-top: -3px;
}

/* Reverse the CSS arrow when the dropdown is active */
.checkbox-dropdown.is-active:after {
    border-bottom-color: var(--color-black);
    border-top-color: var(--color-white);
    margin-top: -9px;
}

.checkbox-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%; /* align the dropdown right below the dropdown text */
    border: inherit;
    border-top: none;
    left: -1px; /* align the dropdown to the left */
    right: -1px; /* align the dropdown to the right */
    opacity: 0; /* hide the dropdown */
    max-height: 200px; /* limit the height of the dropdown */
    overflow-y: auto; /* add vertical scrollbar if the content exceeds max-height */
    background-color: var(--dropdown-bg-color);
    pointer-events: none; /* avoid mouse click events inside the dropdown */
}
.is-active .checkbox-dropdown-list {
    opacity: 1; /* display the dropdown */
    pointer-events: auto; /* make sure that the user still can select checkboxes */
    z-index: 999;
    background: var(--dropdown-bg-color);
}

.checkbox-dropdown-list li label {
    display: block;
    padding: 10px;
}
.al-post-filter__filters {
    display: flex;
    align-items: center;
    gap: 20px;
}

.al-post-filter__results {
    margin-top: 20px;
    gap: 8px;
    display: flex;
    flex-wrap: wrap;
}
.al-post-filter__item {
    flex: 0 0  calc(33.333% - 8px);
    box-sizing: border-box;
    max-width: calc(33.333% - 8px);
}
.al-post-filter__info,.al-selected-terms {
    display: flex;
    gap: 10px;
    flex-wrap:wrap;
    align-items:center;
    font-size:12px;
}

.al-selected-terms .al-selected-term{
    background: var(--selected-term-bg);
    padding:2px 10px;
    border-radius:50px;
    color: var(--selected-term-color);
    border:2px solid;
    display: flex;
    align-items: center;
    gap: 3px;
    transition:all .3s ease-in-out;
    box-shadow:0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12); 
}
.al-selected-terms .al-selected-term:hover{
    background: var(--selected-term-hover-bg);
    color: var(--selected-term-hover-color);
}
.al-selected-terms .al-selected-term:hover span.al-remove-term{
    color: var(--selected-term-hover-color);
}
.al-post-filter__pagination{
    width:100%;
    text-align:center;
    margin-top: 16px;
}
/*  */
/* Start custom CSS */
.page-numbers:not(.dots) {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--page-number-bg);
    border-radius: 50%;
    font-size: 14px !important;
    border: 1px solid var(--page-number-border);
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1), background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.page-numbers.current {
    background-color: var(--page-number-current-bg);
}

span.page-numbers.prev, span.page-numbers.next {
    opacity: .38
}

.page-numbers:not(.dots):hover {
    background-color: var(--page-number-hover-bg);
}

/* End custom CSS */

span.al-remove-term {
    width: 12px;
    height: 12px;
    display: inline-flex;
    border-radius: 50%;
    border: 1px solid;
    font-size: 10px;
    font-weight: 600;
    align-items: center;
    color: var(--selected-term-color);
    justify-content: center;
    cursor:pointer
}

div#al-post-result {
    position:relative;
    border-top: 4px solid var(--e-global-color-primary, #010249);
}
div#al-post-result.loading:before{
    content:"";
    left:0;
    top:0;
    position:absolute;
    z-index:5;
    background: var(--loading-bg);
    width: 100%;
    height: 100%;
    opacity:.3;
    animation: loading-opacity 2s ease-in-out infinite;
}

@keyframes loading-opacity {
    0%{
        opacity:.3;
    }
    50% {
        opacity:.7;
    }
}
.al-post-filter__item--wrapper {
    color: var(--text-primary);
    box-shadow: var(--card-shadow) 2px 2px 7px;
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: 0% 0% no-repeat padding-box padding-box var(--card-bg);
    border-width: 1px;
    border-style: solid;
    border-color: var(--card-border);
    border-image: initial;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.al-post-filter__item--body {
    padding:16px;
    margin-bottom:auto
}
.al-post-filter__item--tag {
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin-bottom: 5px;
} 
.al-post-filter__item--title{
    margin: 0px 0px 0.35em;
    font-size: 1rem;
    line-height: 1.33;

}
.al-post-filter__item--title a{
    font-weight:bold;
    color: var(--text-secondary);
}

.al-post-filter__item--date{
    margin: 0px;
    font-size: 12px;
    line-height: 1.33;
    color: var(--text-muted);
}
.al-post-filter__item--thumbnail {
    display:block;
    object-fit:contain;
    object-position:center;
    max-height: 230px;
    margin: auto;
}
.al-post-filter__item--brand {
    margin: 0px 0px 14px;
    font-size: 12px;
    line-height: 1.46;
    display: block;
    font-weight: bold;
    color: var(--text-secondary);
}

.al-post-filter__item--download_link svg{
    height: 14px;
    float:right
}
.al-post-filter-toggle {
    border: none;
    padding: 0;
    display: inline-flex;
    background: var(--filter-mobile-bg) !important;
}

.al-post-filter__filters--mobile {
    display: none;
    justify-content: space-between;
    align-items: center;
}

@media screen and (max-width: 1024px) {
    .al-post-filter__item {
        flex: 0 0  calc(50% - 8px);
        box-sizing: border-box;
        max-width: calc(50% - 8px);
    }
}
@media screen and (max-width: 768px) {
    .al-post-filter__item {
        flex: 0 0  100%;
        box-sizing: border-box;
        max-width: 100%;
    }
    .al-post-filter__filters--mobile{
        display:flex
    }
    .al-post-filter-item:first-child{
        display:none
    }
    .al-post-filter__filters {
        opacity: 0;
        position: absolute;
        z-index: -2;
        right: 0;
        padding: 16px;
        flex-direction: column;
        color: var(--text-primary);
        box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px;
        background: var(--filter-mobile-bg);
        border-radius: 4px;
    }

    .al-post-filter__filters.active {
        opacity:1;
        z-index: 9;
        right: 0;
    }
}