.productfinder-selector__types {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  justify-content: center;
  margin-bottom: 50px;
}

.productfinder-selector__type {
  background: var(--color-lightgrey);
  border-bottom: 4px solid transparent;
  padding: 45px 20px;
  border-radius: 4px;
  text-align: center;
  flex: 1 1 240px;
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease;
  max-width: 300px;
}

.productfinder-selector__type:hover {
  background: #e5e5e5;
}

.productfinder-selector__type--active {
  border-bottom: 4px solid #a30000;
}

.productfinder-selector__icon span {
  font-size: 32px;
  color: #a30000;
  margin-bottom: 10px;
}

.productfinder-selector__name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #1a1a1a;
}

.productfinder-selector__name span {
  font-size: 0.9rem;
  font-weight: normal;
  color: #555;
}

.productfinder-selector__count {
  font-size: 14px;
  font-weight: normal;
  color: #555;
  margin-left: 5px;
}

.product-filters-wrapper {
  display: flex;
  justify-content: center;
  justify-items: center;
  width: 100%;
  margin: 0 auto;
  background-color: var(--color-lightgrey);
}

.filter-group {
  position: relative;
  float: left;
  width: 100%;
  flex-wrap: wrap;
}

.current-labels {
  flex: 0 0 100%;
}

.product-filter-wrapper .filter-group:not(.filter-input):after {
  content: '+';
  position: absolute;
  right: 10px;
  font-size: 24px;
  color: var(--color-red);
  top: 13px;
  z-index: 0;
}

.product-filter-wrapper .filter-group:not(.filter-input):after:hover {
  cursor: pointer;
}

.product-filter-wrapper .filter-group,
.filter-checkbox,
.product-filter-wrapper .filter-button {
  max-width: 320px;
  float: right;
  width: 100%;
  display: flex;
  align-items: center;
}

.product-filter-wrapper>.filter-group:not(:first-child):not(:nth-child(2)),
.product-filter-wrapper .filter-group-row .filter-group,
.product-filter-wrapper .filter-checkbox {
  border-top: 1px solid white;
}

.product-tile__btn-wrapper a {
  margin-top: 10px;
  float: right;
  background: var(--color-red);
  padding: 10px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
}

.product-filter-wrapper .filter-checkbox {
  border-bottom: 1px solid white;
}

.filter-checkbox label {
  margin-right: 10px;
}

html .filter-checkbox input[type="checkbox"] {
  margin-top: -5px;
}

.filter-group h4,
.filter-checkbox h4 {
  cursor: pointer;
  min-height: 40px;
  line-height: 40px;
  padding-left: 16px;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  z-index: 1;
}

.filter-checkbox h4 {
  cursor: none;
}

.product-filter-wrapper button {
  padding: 8px 16px;
  color: var(--color-red);
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  text-align: center;
  line-height: 30px;
  position: relative;
  display: inline-block;
  width: auto;
  transition: all 0.3s ease;
  margin-left: auto;
}

.product-filter-wrapper button:hover {
  background-color: var(--color-white);
}

.product-filter-wrapper .current-labels button {
  background-color: var(--color-red);
  color: var(--color-white);
  padding: 5px 10px;
  margin-right: 10px;
  font-size: .95rem;
  font-weight: normal;
  margin-bottom: 10px;
  min-height: auto;
}

.product-filter-wrapper .current-labels button:hover {
  background-color: var(--color-primary-700);
}

.product-filter-wrapper h4 span {
  color: var(--color-red);
  margin-right: 8px;
  display: inline-block;
}

input[type="checkbox"]:checked {
  background: var(--color-red);
  color: var(--color-white);
}

.product-filter-wrapper .filter-group h4:hover {
  cursor: pointer;
}

.show-hide-labels {
  display: none;
  position: absolute;
  left: 330px;
  background: white;
  width: 100%;
  padding: 20px;
  align-items: center;
  align-content: center;
  z-index: 10;
  top: -10px;
  width: 300px;
  box-shadow: 0 1px 6px 0 rgba(0, 0, 0, .2);
}

.show-hide-labels:before {
  content: "";
  position: absolute;
  transform: rotate(45deg);
  background: var(--color-white);
  width: 18px;
  height: 18px;
  left: -9px;
  top: 16px;
}

.show-hide-labels label {
  display: flex;
  align-items: center;
  font-size: 15px;
  margin: 0;
  font-weight: normal;
  margin-bottom: 10px;
}

.show-hide-labels input {
  margin: 0;
  margin-right: 10px;
}

.product-filter-wrapper {
  width: 30%;
  background: var(--color-shadegrey);
  padding-top: 15px;
}

div#product-results {
  width: 70%;
}

div#product-results>p {
  padding-top: 20px;
  padding-left: 20px;
}

.productfinder__products-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
  padding: 2.5vw;
  background-color: var(--color-lightgrey);
}

.product-tile {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  width: calc(50% - 40px);
  display: flex;
  transition: box-shadow 0.3s ease;
}

.product-tile:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.product-tile__image-wrapper {
  background-color: #f8f8f8;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 165px;
}

.product-tile__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

a.product-image,
a.product-image>div {
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  justify-items: center;
  display: flex;
}

.product-tile__details-wrapper {
  padding: 15px;
  font-size: 14px;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

html .product-tile__details-wrapper .product-tile__details-productType {
  background-color: var(--color-lightgrey);
  color: var(--color-text-darkgrey);
  font-size: 10px;
  padding: 6px 10px;
  border-radius: 50px;
  position: relative;
  line-height: 1;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: auto !important;
  display: inline;
}

.product-tile__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111;
  margin-bottom: 3px;
}

.product-tile__specs {
  font-size: 13px;
  line-height: 1.4;
  color: #555;
  margin-bottom: 10px;
  margin-top: 10px;
}

.product-tile__button-wrapper {
  margin-top: auto;
  text-align: right;
}

.product-tile__button-wrapper a {
  background-color: var(--color-red, #d00000);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
}

.product-tile__button-wrapper a:hover {
  background-color: #a30000;
}

.show-hide-labels span {
  display: none;
}

@media screen and (max-width: 992px) {
    span.res-count {
      color: var(--color-red);
      font-weight: bold;
  }
  div#product-results {
    width: 100%;
  }

  .productfinder__products-container {
    justify-content: center;
  }

  .digital-b-contact-before-hero {
    display: none;
  }

  .open-filter-popups-wrapper {
    width: 58px;
    float: right;
    margin-right: 0px;
  }

  .product-filter-wrapper #close-filter-popups {
    position: absolute;
    left: -6px;
    top: -10px;
  }

  .product-filter-wrapper #close-filter-popups span {
    font-size: 40px;
  }

  .site-header {
    z-index: 100;
  }

  .productfinder-selector__types {
    margin-bottom: 0px;
    margin-top: 2px;
    gap: 2px;
  }

  span#current-result-count {
    position: absolute;
    top: 10px;
    right: 5px;
    display: block;
    background: var(--color-red);
    font-size: .7em;
}

  .open-filter-popups-wrapper button {
    position: relative;
    border: none;
    background: red;
    color: white;
    background-color: var(--color-red);
    height: 48px;
    width: 48px;
    padding: 12px;
    line-height: 0;
    float: right;
  }

  .productfinder-selector__type {
    padding: 10px 5px;
    flex: unset;
    width: calc(50% - 2px);
    align-content: center;
    margin-bottom: 0px;
  }

  .productfinder-selector__name {
    font-size: .75rem;
    font-weight: bold;
    color: #1a1a1a;
  }

  .productfinder-selector__name span {
    font-size: 0.62rem;
  }

  .productfinder-selector__icon {
    display: none;
  }

  div#current-result-count-popup {
    text-align: center;
    margin-bottom: 10px;
  }

  .product-filter-wrapper {
    width: 0;
    padding-top: 11px;
    position: fixed;
    z-index: 200;
    top: 0;
    left: 0;
    height: 100%;
    overflow-y: auto;
    opacity: 0;
    transition: width 0.4s ease, opacity 0.4s ease;
  }

  .product-filter-wrapper.active {
    width: 100%;
    opacity: 1;
  }

  .product-filter-wrapper .filter-group,
  .filter-checkbox,
  .product-filter-wrapper .filter-button {
    max-width: 85%;
    float: left;
    width: 100%;
    display: flex;
    align-items: center;
    /* padding-right: 5%; */
    /* padding-left: 5%; */
    margin: 0 7.5%;
    width: 90%;
  }

  .show-hide-labels {
    display: none;
    /* position: absolute; */
    left: 330px;
    background: white;
    width: 100%;
    padding: 20px;
    align-items: center;
    align-content: center;
    z-index: 10;
    top: -10px;
    width: 300px;
    box-shadow: 0 1px 6px 0 rgba(0, 0, 0, .2);
  }

  .show-hide-labels {
    position: relative;
    left: auto;
    width: 100%;
  }

  .show-hide-labels p {
    padding-right: 5px;
  }

  .show-hide-labels span {
    display: block;
    position: absolute;
    top: 7px;
    right: 5px;
    font-size: 32px;
  }
}

@media screen and (max-width: 768px) {
  .product-tile {
    width: 100%;
  }
  .product-tile__btn-wrapper a {
    float: left;
}
}