/*------------------------------------*\

    CAT-Related CSS

    Overrides for general CAT pages styling

\*------------------------------------*/


/**
 * New & Used Equipment Family List
 *
 */

.image-card-flex,
.row--flex  {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    padding-top: 10px;
}

/* fixing safari flexbox wrapping issue with bootstrap psuedos */
.image-card-flex:before,
.image-card-flex:after,
.row--flex:before,
.row--flex:after {
    display: none;
}

.image-card-item,
.product-item-block {
    margin-bottom: 28px;
}

.product-item-card__list.family-list {
    width: 100%;
}

.image-card,
.product-item-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    height: 100%;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.11);
    background-color: #fff;
}



.image-card__img-wrap,
.product-item-card__thumb {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px 5px 0 0;
    background-color: #fff;
}

.image-card__img-wrap img,
.product-item-card__thumb img {
    /* border-radius: 5px; */
    object-fit: none;
}

.product-item-card__thumb img {
    height: 100%;
    width: 100%;
    object-fit: cover !important;
}

.product-item__category .image-card__img-wrap img,
.product-item__category .product-item-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-card__details,
.product-item-card__info {
    padding: 0 0;
}

.image-card__title,
.product-item-card__title {
    text-decoration: none;
    -webkit-text-decoration-color: transparent;
            text-decoration-color: transparent;
    padding: 0;
    text-align: center;
    color: #000;
    font-size: 20px;
    /* padding: 16px 10px; */
    /* border-radius: 0 0 5px 5px; */
}



@media (min-width: 1200px) {
    .image-card:hover,
    .product-item-card:hover {
        /* box-shadow: 0 0 10px rgba(10,10,10,0.5); */

    }


    .image-card:hover .image-card__title,
    .product-item-card:hover .product-item-card__title {
        color: #fff;
        background-color: #1C1B19;

    }

    .image-card__title,
    .product-item-card__title {
        padding: 0;
        /* height: 60px; */
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.2em;
    }

}


/**
 * Used Equipment Filters
 *
 */

.family-listing__filters-heading {
    font-size: 30px;
}

.family-listing-content__filters {
    margin-bottom: 40px;
}

.family-listing-content__filters .family-filter__label {
    font-weight: 700;
}

.family-listing-content__filters .facetwp-slider-label {
    color: #939393;
}

.family-listing-content__filters .noUi-handle {
    background: var(--black);
    border: none;
    border-radius: unset;
    top: -6px !important;
}

.family-listing-content__filters .noUi-target {
    background: var(--light-gray);
    border: 1px solid var(--light-gray);
    border-radius: unset;
    height: 9px;
}

.family-listing-content__filters .noUi-connect {
    background: var(--yellow);
}

.family-listing-content__filters .facetwp-type-fselect .fs-label-wrap,
.family-listing-content__filters .facetwp-type-search .facetwp-search,
.family-listing-content__filters .facetwp-sort-select {
    background-color: #FAFAFA;
    width: 100%;
    border: 1px solid #C4C4C4;
    height: 50px;
    padding: 10px 24px 10px 8px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1em;
    color: #C4C4C4;
    font-family: 'Roboto', sans-serif;
    -webkit-appearance:  none;
}

.family-listing-content__filters .facetwp-type-fselect .fs-wrap,
.family-listing-content__filters .facetwp-type-search .facetwp-input-wrap {
    width: 100%;
}

.family-listing-content__filters .facetwp-sort {
    position: relative;
    max-width: 250px;
}

.family-listing-content__filters .facetwp-type-fselect .fs-arrow,
.family-listing-content__filters .facetwp-sort:before {
    width: 13px;
    height: 13px;
    border-top: none;
    border-left: none;
    border-bottom: 3px solid #585858;
    border-right: 3px solid #585858;
    right: 18px;
    top: -4px;
    transform: rotate(45deg);
}

.family-listing-content__filters .facetwp-sort:before {
    content: '';
    position: absolute;
    display: block;
    top: calc(50% - 11px);
    pointer-events: none;
}

.family-listing-content__filters .facetwp-type-fselect .fs-open .fs-arrow {
    transform: rotate(-135deg);
    top: 6px;
}

.family-listing-content__filters .facetwp-facet {
    margin-bottom: 20px;
}

.family-listing-content__filters .facetwp-facet .facetwp-slider-reset {
    display: none;
}

.family-listing-content__filters .family-filter-reset {
    margin-top: 10px;
    padding: 0 12px !important;
    background-color: var(--dark-gray);
    font-size: 12px !important;
    color: #fff;
}

.family-listing-content__filters .family-filter-reset:hover {
    background-color: var(--black);
}

.family-listing-content__filters .family-filter-reset:hover:after {
    display: none;
}

/**
 * Used Equipment Taxonomy Page
 *
 */

@media (min-width: 1200px) {
    .used-family-accordion .fx-accordion__panel__content {
        padding-right: 0;
    }

    .used-family-accordion .listing-content-item-btn {
        padding: 0;
        justify-content: center;
    }

    .family-listing-content__filters .facetwp-facet {
        margin-bottom: 0;
    }
}


/**
 * Used Equipment Details Page
 *
 */

.used-half-half .product-detail__price {
    text-transform: capitalize;
    padding-top: 0;
}

.used-half-half .image-block-right .half-and-half-image img {
    border-radius: unset;
}

.used-half-half .product-detail__intro-text {
    padding-bottom: 30px;
}

.used-cta-bar .cta-bar__btn-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.used-cta-bar .btn {
    margin-top: 20px;
}

@media (min-width: 1200px) {
    .used-half-half .half-and-half-text.left .half-and-half-text__wrapper {
        float: none;
    }

    .used-half-half .half-and-half-text.left {
        padding-left: 0;
        padding-top: 0;
    }

    .used-half-half.image-block-right .half-and-half-image img {
        border-radius: unset;
        height: 100%;
        bottom: 0;
    }

    .used-cta-bar .btn {
        margin-top: 0;
    }
}

/**
 * Used Equipment Search
 *
 */

.search-equipment .family-filters__sort {
    padding-bottom: 45px;
}

.search-equipment__sidebar {
    padding-left: 16px;
    padding-right: 16px;
    border: 1px solid #c4c4c4;
}

.search-equipment__sidebar .facetwp-search {
    min-width: unset !important;
}

.search-equipment__sidebar .search-equipment__heading {
    font-size: 24px;
    font-weight: 400;
    background-color: var(--black);
    padding: 12px 20px;
    margin-bottom: 25px;
}

@media ( min-width:1200px ) {

    .search-equipment .family-listing-content .fx-accordion__panel__toggle {
        width: 410px;
    }

    .search-equipment .family-listing-content .fx-accordion__panel__toggle span {
        word-break: unset;
    }

    .search-equipment .family-listing-content-item,
    .search-equipment .family-listing-content .fx-accordion__panel__content {
        width: unset;
    }

    .search-equipment .family-listing-content-item.listing-item__price {
        width: 30%;
    }

}

/**
 * Compare Tool on CPC Family Pages
 *
 */

.fx-compare-wheeler-container {
    position: fixed;
    width: 100%;
    bottom: 0;
    background-color: rgba(0, 0, 0, .85);
    padding-top: 25px;
    padding-bottom: 25px;
    box-shadow: 0 0 6px rgba( 0, 0, 0, .1 );
    z-index: 99999;
    visibility: visible;
}

.fx-compare-wheeler-container.compare--hide {
    visibility: hidden;
    opacity: 0;
}

.fx-compare-wheeler-container > .container {
    max-width: 1000px;
}

.compare-wheeler__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compare-wheeler__inner {
    display: flex;
    justify-content: flex-end;
}

.compare-bar__heading {
    font-size: 25px;
    padding: 0;
    margin: 0;
    text-transform: none;
    color: white;
}

.compare-bar__item {
    border: 1px solid #D8D8D8;
    padding: 6px 7px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: 120px;
    height: 80px;
    position: relative;
    margin-left: 15px;
    margin-right: 15px;
}

.compare-info__heading {
    padding: 0;
    font-size: 25px;
    color: #000000;
}

.compare-bar__item-empty {
    background-color: black;
    border: 3px dashed gray;
    justify-content: center;
}

.compare-bar__item-empty .compare-info__heading,
.compare-bar__img.compare-empty {
    color: #C9C9C9;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    padding: 0;
}

.compare-bar__item .compare-bar-item__data {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 25px;
    font-weight: 700;
}

.compare-bar--button-wrapper {
    background-color: #fc0;
}

.compare-bar--button-wrapper * {
    color: black !important;
}

.compare__close {
    position: absolute;
    top: -16px;
    right: -16px;
    background: #fc0;
    color: #000000;
    font-size: 30px;
    font-weight: 300;
    padding-left: 1px;
    padding-bottom: 3px;
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.compare-img {
    width: 87px;
}

.active-compare-img {
    background-color: white;
    border: none;
}

.compare-checkbox-wrapper {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  text-transform: none;
  margin-top: .6rem;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.compare-checkbox-wrapper input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */
.compare-checkbox-wrapper:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.compare-checkbox-wrapper input:checked ~ .checkmark {
  background-color: #fc0;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.compare-checkbox-wrapper input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.compare-checkbox-wrapper .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid black;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.compare-clear-all {
    color: white;
    cursor: pointer;
}

.compare-clear-all-close {
    border: 2px solid;
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 100%;
}

.fx-cpc-deactivate {
    pointer-events: none;
    background-color: #C9C9C9 !important;
}

.compare-show-more {
    width: 100%;
    height: 0px;
}

.compare-show-more .show-more-tab {
    padding-top: 0.35rem;
    margin: auto;
    font-size: 1.5rem;
    width: 9rem;
    height: 1.7rem;
    transform: translateY(-52px);
    background-color: rgba(0, 0, 0, .85);
    border-radius: 1rem 1rem 0 0;
    text-align: center;
    color: #C9C9C9;
    font-stretch: ultra-expanded;
    font-family: 'icomoon';
    font-weight: 900;
    cursor: pointer;
}

/* .compare-show-more-active {
    height: min(30vh, 220px);
} */


.compare-show-more-active .show-more-tab {
    font-size: 1.2rem;
    position: relative;
}

.expanded {
    height: 3rem;
    margin-bottom: 1.5rem;
    display: none;
    padding-left: 12px;
    padding-right: 12px;
}

.compare-show-more-active .show-more-tab::after {
    content: "HIDE";
    position: absolute;
    font-size: 15px;
    bottom: -21px;
    left: 41%;
    font-family: 'Roboto Condensed', sans-serif;
}

.compare-show-more-active .expanded{
    display: block;
}

.compare-show-more-active .row .compare-clear-all,
.compare-show-more-active .row .compare-bar--button-wrapper {
    display: none;
}

.compare-show-more-active .compare-wheeler__inner {
    margin: auto;
    padding: 0 !important;
}

.compare-show-more-active .compare-cpc-single-prod-wrap {
    width: 28vw !important;
    max-width: 300px !important;
    height: 12rem;
    position: relative;
}

.compare-show-more-active .compare-bar__heading {
    display: none;
}

.expanded .actions {
    display: flex;
    width: fit-content;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    float: right;
}

.expanded .heading {
    float: left;
    color: white;
    height: 1.5rem;
    font-size: 1.4rem;
    transform: translateY(-15px)
}

.expanded-banner {
    display: none;
    width: 100% !important;
    height: 2rem;
    color: black;
    background-color: #C9C9C9;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.5rem;
    position: absolute;
    bottom: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.compare-show-more-active .expanded-banner {
    display: block;
}

.compare-show-more-active .compare-img {
    transform: translateY(-13px);
}

.compare-image-wrapper {
    overflow: hidden;
}

@media (min-width: 1200px) {

    .compare-bar--title {
        max-width: 218px;
    }

}

@media (min-width: 1366px) {

    .compare-bar--title {
        max-width: 307px;
    }

}

@media (min-width: 1100px) {
    .compare-show-more-active .compare-img {
        transform: translateY(-13px);
        width: 160px;
    }
}

@media (min-width: 850px) {
    .compare-show-more-active .compare-img {
        transform: translateY(-13px);
        width: 130px;
    }
}

@media (max-width: 1254px) {
    .compare-bar__heading {
        display: none;
    }
    
    .compare-cpc-single-prod-wrap {
        width: 200px !important;
    }
}

@media (max-width: 1000px) {
    .compare-cpc-single-prod-wrap {
        width: 170px !important;
    }
}

@media (max-width: 900px) {
    .compare-cpc-single-prod-wrap {
        width: 170px !important;
    }
    
    .compare-show-more-active .compare-cpc-single-prod-wrap {
        width: 26vw !important;
        height: 6.5rem;
    }
    
    .row .compare-clear-all {
        display: none;
    }
}

@media (max-width: 800px) {
    .compare-cpc-single-prod-wrap {
        width: 140px !important;
    }
    
    .compare-show-more-active .compare-cpc-single-prod-wrap {
        width: 24vw !important;
        height: 6rem;
    }
}

@media (max-width: 700px) {
    .compare-cpc-single-prod-wrap {
        width: 110px !important;
    }
    
    .compare-show-more-active .compare-cpc-single-prod-wrap {
        width: 22vw !important;
    }
    
    .compare-show-more-active .compare-img {
        width: 77px;
    }
}

@media (max-width: 600px) {
    .compare-cpc-single-prod-wrap {
        width: 90px !important;
    }
    
    .compare-wheeler__inner {
        margin: auto;
        padding: 0 !important;
    }
}

@media (max-width: 504px) {
    .compare-bar--button-wrapper {
        display: none !important;
    }
    
    .expanded .compare-clear-all {
        display: none;
    }
}

@media (max-width: 400px) {
    .compare-wheeler__wrapper {
        justify-content: center;
    }
}

/* for 360 spins so we can click to open */ 
.linkwrap { position:relative; display:inline-block; }
.blocker { position:absolute; height:100%; width:100%; z-index:1;   }
.linkwrap iframe { z-index: 2; }