.ja-megafilter-wrap {position: relative; display: flex;}
.ja-megafilter-wrap.sb-horizontal {flex-wrap: wrap;}
.ja-megafilter-wrap.loading_layer {width: auto;}
.ja-megafilter-wrap, .ja-products-wrapper {min-height: 62.5rem;} /* To ensure this gets loaded with no shifting */
.ja-megafilter-wrap .main-content {padding-left: 0.75rem; padding-right: 0;}
.ja-megafilter-wrap .main-content .mv-ad-box {padding-left: 0; padding-right: 0;} /*fix mediavine ad going off screen*/

/*FILTERS*/
.ja-megafilter-wrap .ja-mg-sidebar {padding: 0;} /* To ensure this gets loaded with no shifting */
.ja-filter-wrapper .filter-content {padding: 0.75rem; font-size: 0.85rem; background-color: transparent;}
.ja-filter-wrapper .filter-content input[type="checkbox"], .ja-filter-wrapper .filter-content input[type="radio"] {margin-bottom: 0;}
.ja-filter-wrapper .filter-content .chosen-container {font-size: 0.75rem;}
.ja-filter-wrapper .filter-content .chosen-choices {display: flex; flex-wrap: wrap;}
.ja-filter-wrapper ol.items .clear-filter.remove:hover:after {color: #C00000;}
.ja-filter-wrapper .filter-content .block-subtitle {display: none;}
.ja-filter-wrapper .filter-content .selected-filters ol {margin: 0;}
.ja-filter-wrapper .filter-content .selected-filters ol li.item {padding: 0.125rem;}
.ja-filter-wrapper .filter-content .input-text {border-radius: 5px; font-size: 0.875rem; padding: 0.5rem;}
.ja-filter-wrapper .filter-actions {padding: 0;}
.ja-filter-wrapper .filter-content .filter-options-title {font-weight: bold; padding: 0; display: inline-block; border-bottom: none;}
.ja-filter-wrapper .filter-content .filter-options-title span {background: none; padding: 0; display: block; width: 100%; padding-right: 20px; font-size: 0.85rem; letter-spacing: normal;}
.ja-filter-wrapper .filter-content .filter-options-title span:after {top: 0; left: auto; right: 0; content: "\f107" }
.ja-filter-wrapper .filter-content .filter-options-title.collapsed span:after {content: "\f106"}
.ja-filter-wrapper .filter-content .filter-field+.filter-field {margin-top: 32px;}
.ja-filter-wrapper .filter-content .filter-field .filter-options-content:has(.ui-slider-horizontal) {margin-right: 1rem !important;}

/*Name Search Bar*/
.ja-filter-wrapper .filter-content .filter-options .filter-field.filter-input:first-child {position: relative; order: 30; /*last*/ width: 100% !important; text-align: center;}
.ja-filter-wrapper .filter-content .filter-options .filter-field.filter-input:first-child label.filter-options-title {display: none;}
.ja-filter-wrapper .filter-content .filter-options .filter-field.filter-input:first-child div.filter-options-content {width: 50%; padding: 0; margin: auto; position: relative; border: none;}
.ja-filter-wrapper .filter-content .filter-options .filter-field.filter-input:first-child div.filter-options-content input {border-radius: 1.5rem; padding: 0.75rem; border-color: #333;}
.ja-filter-wrapper .filter-content .filter-options .filter-field.filter-input:first-child div.filter-options-content:after {font-family: 'Font Awesome 6 Pro'; content: '\f002'; font-weight: 900; position: absolute; right: 0; padding: 0.5rem 0.75rem; font-size: 1.25rem}


@media only screen and (max-width: 768px) {
.ja-megafilter-wrap {padding-top: 1rem;}
.ja-megafilter-wrap, .ja-products-wrapper {flex-wrap: wrap;}
.ja-megafilter-wrap .main-content {padding: 0;}
.com_jamegafilter.collapse-filters .ja-filter-wrapper .filter-content .filter-options .filter-field.filter-input:first-child, .com_jamegafilter.itemid-1418 .ja-filter-wrapper .filter-content .filter-options .filter-field.filter-input:first-child  {position: absolute; top: 0; left: 0; width: 100% !important; text-align: center;}
.com_jamegafilter:not(.collapse-filters, .itemid-1418) .ja-filter-wrapper .filter-content .filter-options .filter-field.filter-input:first-child label.filter-options-title {width: 100%; display: inline-block; text-align: left;}
.com_jamegafilter.collapse-filters .ja-mg-sidebar .sidebar-content {max-height: 23rem; overflow: auto; padding: 0.5rem; border: 1px solid #999; border-radius: 0 0 0.3rem 0.3rem;}
.ja-filter-wrapper .filter-content .filter-options .filter-field.filter-input:first-child div.filter-options-content {width: 100%;}
}


/*SELECTED FILTERS ON TOP*/
.main-content .ja-filter-wrapper .filter-content {position: relative; padding: 0; padding-top: 1rem;}
.main-content .ja-filter-wrapper .filter-content > .filter-current {background-color: transparent;}
.main-content .ja-filter-wrapper .filter-content > .filter-current.empty {display: none;}
.main-content .ja-filter-wrapper .filter-actions {float: right;}
.main-content .ja-filter-wrapper .filter-content .block-subtitle {border-bottom: 0}
.main-content .ja-filter-wrapper ol.items li.item {background-color: #f0f0f0; display: inline-block; padding: 0.375rem; text-transform: uppercase; margin-right: 0.375rem; margin-bottom: 0.375rem;}
.main-content .ja-filter-wrapper ol.items li.item .filter-label {display: block; font-size: 0.75rem;}
.ja-filter-wrapper .filter-actions .clear-all-filter {}

@media only screen and (max-width: 768px) {
.main-content .ja-filter-wrapper .filter-actions {float: left;}
.sb-horizontal .main-content .ja-filter-wrapper .filter-content {position: relative; margin: 0; padding: 0;}
}

/*FILTERS HORIZONTAL*/
.sb-horizontal.ja-mg-sidebar {width: 100%;}
.sb-horizontal.ja-mg-sidebar .filter-options {margin: 0; padding: 0; display: flex; flex-wrap: wrap;}
.sb-horizontal.ja-mg-sidebar .filter-options .filter-field {margin: 0; width: 25%; flex-grow: 1; float: none; display: inline-block;}
.sb-horizontal.ja-mg-sidebar .filter-options .filter-field + .filter-field {margin-top: 0;}
.sb-horizontal.ja-mg-sidebar .filter-options .filter-field .filter-options-content {position: relative; min-height: auto; padding: 0.25rem 0.75rem 0 0; margin: 0; margin-bottom: 1rem; border: 0;}
.sb-horizontal.ja-mg-sidebar .filter-options .filter-field .filter-options-content:not(.filter-dropdown) {height: auto; overflow: visible;}
.sb-horizontal.ja-mg-sidebar .filter-content {margin-top: 1rem; padding: 0;}
.sb-horizontal.ja-mg-sidebar .filter-options .filter-field .filter-options-title {padding: 0;}
.sb-horizontal.ja-mg-sidebar .filter-options .filter-field .filter-options-title span {font-size: 0.75rem; padding: 0;}
.sb-horizontal .ja-filter-wrapper .filter-actions {position: absolute; right: 0; top: 0;}
.com_jamegafilter.sixfilters .sb-horizontal.ja-mg-sidebar .filter-options .filter-field {width: 33.33%;}
.com_jamegafilter.collapse-filters .sb-horizontal.ja-mg-sidebar .filter-options .filter-field {width: 20%;}

/*From Mobile, make these filters directly visible, without the "Open Filter" (except for vehicles db)*/
@media only screen and (max-width: 768px) {
.com_jamegafilter:not(.collapse-filters) .sb-horizontal.ja-mg-sidebar {margin-bottom: 0; height: auto; overflow: visible;}
.com_jamegafilter:not(.collapse-filters) .sb-horizontal.ja-mg-sidebar .sidebar-toggle {display: none;}
.com_jamegafilter.collapse-filters .ja-megafilter-wrap {padding-top: 5rem;}
.sb-horizontal.ja-mg-sidebar .filter-options .filter-field {width: 50% !important; margin-bottom: 1rem;} 
.sb-horizontal.ja-mg-sidebar .filter-content {margin-top: 0; padding: 0;}
.sb-horizontal.ja-mg-sidebar .filter-options .filter-field .filter-options-content {margin: 0;}
.sb-horizontal .ja-filter-wrapper .filter-actions {top: 0.25rem; z-index: 99;}
}

@media only screen and (max-width: 554px) {
.sb-horizontal.ja-mg-sidebar .filter-options .filter-field {width: 100% !important;}
.sb-horizontal.ja-mg-sidebar .filter-options .filter-field .filter-options-content:not(.filter-dropdown) {height: auto;}
.com_jamegafilter.eightfilters .sb-horizontal.ja-mg-sidebar .filter-options > .filter-field:nth-last-child(-n + 3) {display: none;} /*hide last 3*/
}

/*FILTERS - RANGE FIELD TYPE COLORS*/
.ja-filter-wrapper .filter-content .filter-range .filter-options-content .ui-slider-horizontal {background-color: #9e9e9e;}
.ja-filter-wrapper .filter-content .filter-range .filter-options-content .ui-slider-horizontal .ui-slider-range {background-color: #353b41;}

/*TOOLBAR*/
.ja-megafilter-wrap .ja-mg-sidebar .sidebar-toggle {background-color: transparent !important; border: 1px solid #999; border-radius: 0.3rem; color: #2B2B2B;}
.ja-megafilter-wrap .ja-mg-sidebar.open .sidebar-toggle {border-bottom-left-radius: 0; border-bottom-right-radius: 0;}
.ja-megafilter-wrap .ja-mg-sidebar .sidebar-toggle i {vertical-align: initial;}
.ja-toolbar-wrapper.toolbar-top {margin-bottom: 1rem; margin-top: 1rem; position: relative; z-index: 10;}
.products-toolbar span {vertical-align: baseline;}
.products-toolbar select {border-radius: 0.5rem;}
.products-toolbar .orderby-displaynumber {padding: 0; z-index: 2; line-height: 2rem; background-color: transparent;}
.products-toolbar .orderby-displaynumber #toolbar-amount {display: block; position: relative; text-align: center; left: 0; margin: auto; transform: none; -moz-transform: none; -webkit-transform: none; z-index: -1; flex-grow: 1}
.products-toolbar .orderby-displaynumber #toolbar-amount .toolbar-amount-block {display: inline-block; padding: 0 0.375rem;}
.products-toolbar .jamg-layout-chooser span {height: 1.75rem; line-height: 1.75rem;}
.products-toolbar .toolbar-sorter {position: relative;}
.products-toolbar .toolbar-sorter .sorter-label {display: none;}
.products-toolbar .toolbar-sorter .action {background-color: #C00000; width: 2rem; height: 1.75rem; line-height: 1.75rem;}
.products-toolbar .toolbar-sorter .chosen-container-single .chosen-drop {z-index: 10;}
.ja-megafilter-wrap .toolbar-sorter .chosen-container, .ja-megafilter-wrap .toolbar-sorter .sorter-options {width: 11rem !important; max-width: none;}
.products-toolbar .jamg-layout-chooser span.active  {border-color: #C00000; color: #C00000;}
.products-toolbar .pagination-wrap {display: block;}
div.toolbar-top .products-toolbar div.pagination-wrap {display: none;}
.products-toolbar .pagination {display: block; padding: 0; float: none; text-align: center; margin-bottom: 2%; margin-left: 0;}
.products-toolbar .pagination > li {margin: 0; display: inline-block; float: none; padding: 0 1%;}
.products-toolbar .pagination > li > span, .products-toolbar .pagination > li > a {font-weight: normal; background: none; padding: 0.5rem 0; color: inherit;}
.products-toolbar .pagination > li > span:hover, .products-toolbar .pagination > li > a:hover, .products-toolbar .pagination > li > span:focus, .products-toolbar .pagination > li > a:focus, .products-toolbar .pagination > li > span:active, .products-toolbar .pagination > li > a:active {color: inherit;}
.products-toolbar .pagination > li.active > a {border-color: #fe0000;}
.products-toolbar .pagination > li.active > a:hover, .products-toolbar .pagination > li.active > a:focus, .products-toolbar .pagination > li.active > a:active {color: #fe0000;}
.products-toolbar .pagination > li.disabled a {color: #5f6368;}
.products-toolbar .pagination > li.disabled a:hover, .products-toolbar .pagination > li.disabled a:focus, .products-toolbar .pagination > li.disabled a:active {cursor: default; color: #inherit;}
.ja-megafilter-wrap .orderby-displaynumber .limiter-text {display: none;}

@media only screen and (min-width: 769px) {
.ja-megafilter-wrap .sidebar-main:not(.sb-horizontal) {padding-right: 0;}
}

@media only screen and (max-width: 480px) {
.ja-megafilter-wrap .orderby-displaynumber .toolbar-sorter { float: left; margin-bottom: 0;}
.ja-megafilter-wrap .toolbar-sorter .chosen-container, .ja-megafilter-wrap .toolbar-sorter .sorter-options {max-width: 8.25rem;}
.ja-megafilter-wrap .orderby-displaynumber #toolbar-amount {display: block; margin-top: 1rem;}
.ja-megafilter-wrap .orderby-displaynumber .limiter  {float: right !important; width: auto !important; display: none;}
.products-toolbar .pagination > li {margin: 0; display: inline-block; float: none; padding: 0 0; font-size: 0.875rem;}
}

/*ITEMS - GENERAL*/
.ja-products-wrapper .product-items { margin: 0 -0.85%; gap: 0; } 
.ja-products-wrapper .product-item {display: flex; float: none; padding: 3%;}
.ja-products-wrapper .product-item .product-item-name {font-size: 1rem; font-weight: bold; color: #2B2B2B;}
.ja-products-wrapper .product-item-link {display: flex; width: 100%; position: relative; color: #333333; text-decoration: none;}
.ja-products-wrapper .product-item-link :hover .product-item-name {color: #fe0000;}
.ja-products-wrapper .product-item .product-item-info {display: flex; width: 100%; flex-wrap: wrap;}
.ja-products-wrapper .product-item .product-item-info:hover {border-color: #ccc; box-shadow: 0 0 5px rgba(0,0,0,0.2);}
.ja-products-wrapper .product-item .product-item-photo {position: relative; width: 100%; }
.ja-products-wrapper .product-image-photo {display: block;}
.ja-products-wrapper .product-desc p {margin: 0; padding: 0;}
.ja-products-wrapper .product-item .product-item-info .article-info {margin-top: 0; flex-grow: 1;}
.ja-products-wrapper ul.fields-container {margin: 0;}
.ja-products-wrapper li.field-entry {border: none; padding: 0.375rem;}
.ja-products-wrapper li.field-entry .field-label {font-weight: bold;}

@media only screen and (max-width: 768px) {
.ja-products-wrapper .product-item .product-item-name {font-size: 0.875rem;}
.ja-products-wrapper li.field-entry {padding: 0.125rem;}
}

/*ITEMS - GRID VIEW*/
.ja-products-wrapper.grid .product-item .product-item-info {padding: 0; flex-direction: column;}
.ja-products-wrapper.grid .product-item .product-item-info .item-info {padding: 4% 4%;}
.ja-products-wrapper.grid .product-item {margin-bottom: 1rem;}
.ja-products-wrapper.grid .product-item-photo {margin-bottom: 0;}
.grid .product-item li.field-entry {padding: 0.125rem 0; background: none; border: none;}
.ja-products-wrapper.grid li.field-entry .field-label {display: none;}

/*ITEMS - LIST VIEW*/
.ja-products-wrapper.list {padding-top: 3rem; background: #F4F4F4;}
.ja-products-wrapper.list .list.product-items {margin: 0; flex: 0 0 auto;}
.ja-products-wrapper.list .list .product-item {margin-bottom: 0; padding: 0; transform: none !important;}
.ja-products-wrapper.list .list .product-item .product-item-info {display: flex; align-items: center; min-height: auto; gap: 0.75rem; padding: 0.65rem; background: #fff; border: 1px solid #eee; overflow: initial;}
.ja-products-wrapper.list .list .product-item .product-item-info:hover {border-color: #ccc; box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);}
.ja-products-wrapper.list .list .product-item:last-child .product-item-info {padding-bottom: 0.5rem;}
.ja-products-wrapper.list .list .product-item .product-item-info .product-item-photo {float: none; padding: 0; margin: 0; border: none; width: 5rem; position: static;}
.ja-products-wrapper.list .list .product-item .product-item-info.no-image {padding-left: 6.4rem;}
.ja-products-wrapper.list .list .product-item .product-item-info .product-item-photo img {max-width: 100%;}
.ja-products-wrapper.list .list .product-item .product-item-info .item-info, .ja-products-wrapper.list .list .product-item .product-item-info .item-info ul.fields-container {display: flex; flex-grow: 1; min-width: 0; align-items: center; gap: 0.75rem;}
.ja-products-wrapper.list .list .product-item .product-item-info h3.product-item-name {flex-basis: 25%; flex-grow: 0; flex-shrink: 0; font-size: 0.85rem; margin: 0;}
.ja-products-wrapper.list .list .product-item .product-item-info li.field-entry {flex-basis: 25%; flex-grow: 0; flex-shrink: 0; position: relative; padding: 0;}
div.ja-wrapper-fr .ja-products-wrapper.list .list .product-item .product-item-info li.field-entry {flex-basis: 23%;}
.ja-products-wrapper.list .list .product-item .product-item-info li.field-entry:last-child {flex-grow: 1;}
.ja-products-wrapper.list .list .product-item .product-item-info li.field-entry .field-label {width: 100%; position: absolute; top: 50%; margin-top: -3.75rem; color: #777;}
.ja-products-wrapper.list .list .product-item .product-item-info li.field-entry .field-label > span, .ja-products-wrapper.list .list .product-item .product-item-info li.field-entry .field-value > i {display: none;}
.ja-products-wrapper.list .list .product-item:not(:first-of-type) .product-item-info li.field-entry .field-label {display: none;}

@media only screen and (max-width: 768px) {
.ja-products-wrapper.list {overflow-x: auto; overflow-y: hidden; display: flex;}
.ja-products-wrapper.list .list .product-item .product-item-info h3.product-item-name, .ja-products-wrapper.list .list .product-item .product-item-info li.field-entry {flex-basis: 6rem !important; word-break: break-word;}
.ja-products-wrapper.list .list .product-item .product-item-info li.field-entry .field-label {margin-top: -4.75rem;}
.ja-products-wrapper.list .list .product-item .product-item-info .product-item-photo {width: 2.5rem;}
}

/*FIX GRID VIEW RESPONSIVE*/
@media only screen and (max-width: 1199px) {
.ja-megafilter-wrap .main-content .ja-products-wrapper.grid .cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ja-megafilter-wrap .main-content .ja-products-wrapper.grid .cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ja-megafilter-wrap .main-content .ja-products-wrapper.grid .cols-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ja-megafilter-wrap .main-content .ja-products-wrapper.grid .cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.ja-megafilter-wrap .main-content .ja-products-wrapper.grid .cols-10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}

@media only screen and (max-width: 991px) {
.ja-megafilter-wrap .main-content .ja-products-wrapper.grid .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ja-megafilter-wrap .main-content .ja-products-wrapper.grid .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ja-megafilter-wrap .main-content .ja-products-wrapper.grid .cols-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ja-megafilter-wrap .main-content .ja-products-wrapper.grid .cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.ja-megafilter-wrap .main-content .ja-products-wrapper.grid .cols-10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}

@media only screen and (max-width: 768px) {
.ja-megafilter-wrap .main-content .ja-products-wrapper.grid .cols-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ja-megafilter-wrap .main-content .ja-products-wrapper.grid .cols-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ja-megafilter-wrap .main-content .ja-products-wrapper.grid .cols-10 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

}

@media only screen and (max-width: 554px) {
.ja-megafilter-wrap .main-content .ja-products-wrapper.grid  .cols-3, .ja-megafilter-wrap .main-content .ja-products-wrapper.grid  .cols-4, .ja-megafilter-wrap .main-content .ja-products-wrapper.grid .cols-5, .ja-megafilter-wrap .main-content .ja-products-wrapper.grid  .cols-10 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ja-megafilter-wrap .main-content .ja-products-wrapper.grid .cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/*ITEMS - NO METASCORE*/
.item_10569 .metascore-line, .item_11327 .metascore-line {display: none;}

