.product-listing .selection-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

@media (width <= 1024px) {
    .product-listing .selection-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (width <= 768px) {
    .product-listing .selection-wrapper {
        grid-template-columns: 1fr;
        place-items: center;
    }

    .product-listing .selection-wrapper .selection-item:nth-child(1) > label {
        justify-content: flex-start;
        margin-right: 1.8rem;
    }
}

.product-listing .selection-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
    position: relative;
}

.product-listing .selection-item label {
    margin-right: 10px;
    font-weight: normal;
    color: var(--black);
}

.product-listing .selection-item .wrap {
    display: inline-flex;
    align-items: center;
    flex-grow: 1;
    max-width: 200px;
    position: relative;
}

.product-listing .selection-item select {
    width: 100%;
    padding: 1rem 35px 1rem 15px;
    background-color: var(--white);
    color: var(--product-listing-item-select-color, var(--brand-color-primary-2));
    appearance: none;
    border: none;
    box-shadow: 0 0 6px rgba(0 0 0 / 25%);
    font-weight: bold;
    font-size: var(--body-font-size-m);
    cursor: pointer;
}

.product-listing .selection-item option {
  font-weight: bold;
}

@media (width <= 768px) {
    .product-listing .selection-item select {
        width: 12.5rem;
    }
}

.product-listing .selection-item .wrap::after {
    content: "\e313";
    font-family: "Material Icons", sans-serif;
    color: var(--product-listing-item-select-color, var(--brand-color-primary-2));
    position: absolute;
    font-size: 1.5rem;
    right: 1rem;
    top: 0.4rem;
    width: 10%;
    height: 100%;
    pointer-events: none;
}

.product-listing .series-wrapper {
    text-align: center;
}

.product-listing .series-cards-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    isolation: isolate;
}

.product-listing .series-wrapper > p {
  color: var(--product-listing-text-color, var(--text-color));
}

@media (width <= 975px) {
    .product-listing .series-cards-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, max(275px, 100%/4)), 1fr));
        row-gap: 43px;
    }
}

.product-listing .series-cards-wrapper .card {
    flex: 0 1 calc(33.333% - 20px);
    box-sizing: border-box;
    box-shadow: 0 2px 4px 0 rgba(0 0 0 / 30%);
    isolation: isolate;
    background-color: var(--white);
    z-index: 0;
}

.product-listing .series-cards-wrapper .card:hover {
    cursor: pointer;
    box-shadow: 0 12px 24px 0 rgba(0 0 0 / 16%);
    z-index: 1;
}

.product-listing .series-cards-wrapper .card .card-subtitle {
  margin: 1rem 0;
  font-size: 1rem;
  font-weight: 400;
}

.product-listing .series-cards-wrapper .card .card-subtitle a {
  color: var(--product-listing-subtitle-color, var(--brand-color-primary-1));
}

.product-listing .series-cards-wrapper .card:hover .card-subtitle {
    text-decoration: underline;
}

.product-listing .series-cards-wrapper .card .card-content-wrapper {
    padding: .75rem 2rem;
    background: var(--white);
}

.product-listing .series-cards-wrapper .card .card-image-wrapper {
    background-size: cover;
    background-position: center;
    position: relative;
    height: 10.5rem;
    display: flex;
    justify-content: center;
    align-items: end;
}

.product-listing .series-cards-wrapper .card .card-image-wrapper .product-overlay {
    position: absolute;
    bottom: 10px;
    right: calc(50% - 45px);
    transform: translateX(50%);
    height: 50px;
    width: 50px;
}

.product-listing .series-cards-wrapper .card .card-tips-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.product-listing .series-cards-wrapper .card .card-tips-button {
    padding: 0 1rem;
    cursor: default;
    box-sizing: content-box;
    height: 40px;
    width: 40px;
}

.product-listing .series-cards-wrapper .card .card-tips-button:not(.card-tips-button:first-child) {
    border-left: 1px solid var(--dark-color);
}

.product-listing .series-cards-wrapper .card .card-tips-text-wrapper {
    position: absolute;
    display: none;
    background: black;
    color: var(--white);
    width: 250px;
    font-size: .9rem;
    padding: 5px 8px;
    z-index: 3;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    transform: translate(-50%, -100%);
    isolation: isolate;
}

.product-listing .series-cards-wrapper .card .card-tips-text-wrapper.invert-tooltip::after {
  top: -10px;
  border-bottom: 10px solid black;
  border-top: 0;
}

.product-listing .series-cards-wrapper .card .card-tips-text-wrapper::after {
    /* triangle caret at bottom of tool tip, aligns with text */
    position: absolute;
    bottom: -10px;
    left: var(--tooltip-shift-left, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid black;
    content: '';
}

.product-listing .series-cards-wrapper .card .card-attributes-wrapper {
    padding: 0 30px;
}

.product-listing .series-cards-wrapper .card .card-attributes-wrapper ul {
    font-family: 'work sans', sans-serif;
    list-style: none;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-listing .series-cards-wrapper .card .card-attributes-wrapper li .card-attribute-title {
    font-weight: 700;
    color: var(--card-attribute-title-color, var(--brand-color-primary-2));
}

.product-listing .series-cards-wrapper .card .card-text {
    color: var(--text-color);
    font-family: work-sans, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: normal;
    margin: 1rem 0;
}

.product-listing .series-cards-wrapper .card .card-title {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.product-listing .series-cards-wrapper .card .card-title::after {
    content: "\e409";
    font-family: "Material Icons", sans-serif;
    color: var(--brand-color-primary-1);
    position: relative;
    font-size: 1.5rem;
    left: 1rem;
    top: 5px;
    z-index: 1;
    width: 10%;
    height: 100%;
    pointer-events: none;
}

.product-listing .series-cards-wrapper .card .card-title a {
    color: var(--product-listing-title-color, var(--brand-color-primary-1));
    font-weight: 700;
}

.product-listing .series-cards-wrapper .card .compare-checkbox {
    top: 5px;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    right: 5px;
    position: absolute;
    cursor: pointer;
}

.product-listing .series-cards-wrapper .card .compare-checkbox label {
    padding: 6px;
    display: block;
    margin: 0;
    color: var(--compare-button-color, var(--brand-color-primary-1));
    font-size: .8rem;
    cursor: pointer;
    width: 120px;
    user-select: none;
}

.product-listing .series-cards-wrapper .card .compare-checkbox label::before,
.product-listing .series-cards-wrapper .card .compare-checkbox label::after {
    pointer-events: none;
    user-select: none;
}

/* checkbox */
.product-listing .series-cards-wrapper .card .compare-checkbox label::before {
  background-color: var(--white);
  border: 1px solid var(--compare-button-border-color, var(--brand-color-primary-1));
  box-sizing: border-box;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  border-radius: 2px;
  top: 0;
  right: 0;
  position: absolute;
  display: block;
  content: "";
  pointer-events: none;
  z-index: 1;
  transition: background-color .15s ease-in-out, border-color .15s ease-in-out, border-width .15s ease-in-out;
}

/* checkmark */
.product-listing .series-cards-wrapper .card .compare-checkbox label::after {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 2rem;
  position: absolute;
  top: 0;
  right: 0;
  background: 50%/50% 50% no-repeat;
  z-index: 2;
  transition: background-color .15s ease-in-out, border-color .15s ease-in-out, border-width .15s ease-in-out;
}

.product-listing .series-cards-wrapper .card .compare-checkbox:hover label::before {
  border-width: 2px;
  border-color: var(--compare-button-border-hover-color, var(--brand-color-primary-1));
}

.product-listing .series-cards-wrapper .card .compare-checkbox input:checked ~ label::after {
    background-color: var(--brand-color-primary-1);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
}

.product-listing .series-cards-wrapper .card .compare-checkbox input {
    z-index: 1;
    opacity: 0;
    width: 35px;
    height: 36px;
    cursor: pointer;
    top: 2px;
    left: auto;
    position: absolute;
    right: 0;
}

.product-listing .series-cards-wrapper .card .compare-checkbox input:disabled {
  color: var(--dark-color);
  cursor: not-allowed;
}

.product-listing .series-cards-wrapper .card .compare-checkbox input:disabled~label::before {
  background-color: #e9ecef;
  border-color: #d8d8d8;
  border-width: 2px;
}

.product-listing .series-cards-wrapper .card .rebate-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    color: var(--reabate-button-color, var(--brand-color-primary-1));
    font-weight: 700;
}

.product-listing .series-cards-wrapper .card .rebate-button:hover {
    text-decoration: underline;
}

.product-listing .series-cards-wrapper .card .rebate-button::before {
    content: "";
    background-color: var(--highlight-color);
    mask-image: url('../../icons/icon-rebates.svg');
    position: relative;
    width: 31px;
    height: 28px;
    display: inline-block;
    margin-right: 5px;
    top: 1px;
}

.product-listing .series-cards-wrapper .card .card-dealer-wrapper {
    margin-bottom: 1rem;
}

.product-listing .series-cards-wrapper .card .product-image {
    height: 144px;
}

.compare-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--brand-color-primary-2);
  z-index: 1000;
}

.compare-banner .compare-wrapper {
  width: var(--content-fixed-width);
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: first baseline;
  align-items: center;
}

.product-listing .modal .table-compare button {
  border: none;
  color: white;
  text-transform: uppercase;
  font-size: var(--body-font-size-m);
  background: var(--brand-color-primary-2);
  padding: .75rem 2rem;
  border-radius: 2px;
  cursor: pointer;
}

.compare-banner .compare-wrapper .compare-buttons {
  flex: 0 0 25%;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.compare-banner .compare-wrapper .compare-buttons button,
.compare-banner .compare-wrapper .compare-buttons button[disabled]:hover {
  background: none;
  border: 1px solid var(--white);
  color: var(--white);
  border-radius: 2px;
  padding: 5px 10px;
  transition: background-color 0.3s, color 0.3s;
}

.compare-banner .compare-wrapper .compare-buttons button:hover {
  background: var(--white);
  color: var(--brand-color-primary-2);
  transition: background-color 0.3s, color 0.3s;
}

.product-listing .modal .table-compare button:hover {
  background: var(--back-to-top-button-hover);
}

.compare-banner .compare-wrapper .compare-product-list {
  flex: 0 0 75%;
  display: flex;
  gap: 20px;
}



.compare-banner .compare-wrapper .compare-product {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 5px;
  background: white;
  font-size: var(--body-font-size-l);
  max-width: 271px;
}

.compare-banner .compare-wrapper .compare-product .compare-product-img {
  flex: 0 0 25%;
}

.product-listing .modal .table-compare img {
  max-width: 10rem;
  width: 100%;
}

.compare-banner .compare-wrapper .compare-product .compare-product-img img {
  aspect-ratio: 1;
  object-fit: contain;
}

.compare-banner .compare-wrapper .compare-product .compare-product-title {
  flex: 0 0 60%;
  text-align: left;
  font-weight: 700;
}

.compare-banner .compare-wrapper .compare-product .compare-product-title a {
  color: var(--compare-title-link-color , var(--link-color));
}

.compare-banner .compare-wrapper .compare-product .compare-product-title a:hover {
  color: var(--compare-title-link-hover-color , var(--link-color));
}

.compare-banner .compare-wrapper .compare-product .compare-product-close {
  position: relative;
  right: 1rem;
  flex: 0 0 15%;
  font-family: "Material Icons", sans-serif;
  font-size: var(--body-font-size-xl);
  font-weight: 700;
  color: #888;
  cursor: pointer;
}

.product-listing .modal .table-compare {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  color: var(--compare-table-text-color, #151515);
}

.product-listing .modal .table-compare tr:not(:first-of-type) {
  vertical-align: top;
}

.product-listing .modal .table-compare td {
  padding: 0.25rem 0.5rem;
}

.product-listing .modal .table-compare th,
.product-listing .modal .table-compare td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  font-size: var(--body-font-size-xm);
}

.product-listing .modal .table-compare th:first-of-type {
  width: 25%;
}

.product-listing .modal .table-compare tr:has(th:nth-child(4)) > th:first-of-type {
  width: auto;
}

.product-listing .modal .table-compare td:first-child {
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  font-size: var(--body-font-size-xm);
  font-weight: 700;
}

.product-listing .modal .table-compare td:last-child {
  padding: 0.5rem 1rem 0.5rem 0.5rem;
}

.product-listing .modal .table-compare th div {
  font-size: var(--body-font-size-l);
  font-weight: 700;
  padding-bottom: 24px;
  color: var(--compare-title-color, var(--brand-color-primary-1));
}

.product-listing .modal dialog[open]::backdrop {
  background: rgb(0 0 0 / 50%);
}

.product-listing .modal dialog::backdrop {
  background: rgb(0 0 0 / 50%);
}

@media (width <= 1330px) {
  .compare-product-list:has(.compare-product:nth-child(3)) > .compare-product {
    max-width: 230px;
  }
}



@media (width <= 1140px) {
    .compare-banner .compare-wrapper .compare-product-list {
      gap: 15px;
      display: none;
    }

    .compare-banner .compare-wrapper .compare-product {
      max-width: 230px;
    }

    .compare-banner .compare-wrapper {
      width: 100%;
    }

    .compare-banner .compare-wrapper .compare-buttons {
      flex: 0 0 100%;
      justify-content: center;
    }
}


@media (width <= 768px) {
  .product-listing .modal .table-compare button {
    width: 100%;
    padding: 1rem 2rem;
  }

  .compare-banner .compare-wrapper .compare-product {
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
  }

  .compare-banner .compare-wrapper .compare-product .compare-product-img,
  .compare-banner .compare-wrapper .compare-product .compare-product-title {
    flex: 0 0 100%;
  }

  .compare-banner .compare-wrapper .compare-product .compare-product-close {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: var(--body-font-size-l);
  }
}

@media (width <= 767px) {
  .product-listing .modal .table-compare {
      display: block;
  }

  .product-listing .modal .table-compare tr {
      display: flex;
      flex-wrap: wrap;
      box-sizing: border-box;
      width: 100%;
  }

  .product-listing .modal .table-compare tr td:first-child {
      display: block;
      font-weight: bold;
      text-align: center;
      padding: 0.5rem;
      border: 1px solid #ccc;
      width: 100%;
  }

  .product-listing .modal .table-compare tr td:not(:first-child) {
      font-size: .875rem;
      text-align: left;
      padding: 0.5rem 1rem;
      border-top: 1px solid #dee2e6;
      flex: 1;
  }

  .product-listing .modal .table-compare th {
      position: relative;
      padding: 1rem;
      text-align: center;
      vertical-align: middle;
      flex: 1;
  }

  .product-listing .modal .table-compare tr:first-child th:first-child{
    display: none;
  }

  .product-listing .modal .table-compare th span {
      display: block;
      font-weight: bold;
      margin-top: 0.5rem;
  }
}
