/* 🚧 WIP 🚧: BEM naming convention and cleaner nesting needs to be completed for these styles */
@media (min-width: 992.5px) {
  .cpap__plp-product
    .product-content
    .product-grid.style-is-grid
    .product-card-box-box
    .left-rail
    .cpap__product-badges,
  .template-search
    .template-search
    .product-grid-container
    .product-grid.style-is-grid
    .product-card-box-box
    .left-rail
    .cpap__product-badges {
    top: 10px;
  }
}

@media (max-width: 992px) {
  .cpap__plp-product
    .product-content
    .product-grid
    .product-card-box-box
    .left-rail
    .cpap__product-badges {
    left: initial !important;
    right: 0;
  }
}

.cpap__plp-product .product-content {
  .facet-filters__sort + .icon-caret {
    right: 3px;
  }
  .facets {
    padding: 0;
    .facet-filters {
      padding: 0;
      border: 1px solid var(--cpap-stroke-gray);
      border-radius: 8px;
      position: relative;
      min-width: 202px;
      padding: 18.5px 15px;

      * {
        font-size: 14px !important;
        line-height: 17px !important;
        font-family: var(--cpap-typography-font-family);
        font-weight: 500;
      }
      h2 {
        margin: 0;
        color: var(--cpap-text-text-gray);
        margin-right: 5px;
      }

      select {
        width: 100%;
        height: 100%;
        color: var(--cpap-primary-soft-black);
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        transition: all 0.2s;

        padding-right: 15px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        &:hover {
          @media (min-width: 768.5px) {
            opacity: 0.7;
          }
        }

        &:active {
          opacity: 0.7;
        }
      }
    }
    .product-count-vertical {
      display: none;
    }
  }

  .facets-container {
    padding: 0;
    margin-top: -16px;
    .facets__form-vertical {
      width: 100%;
    }
    .active-facets-vertical-filter {
      display: none !important;
      @media (max-width: 749px) {
        display: block !important;
      }
    }
    details {
      display: none !important;
      @media (max-width: 749px) {
        display: block !important;
      }
    }
    facet-remove {
      margin-bottom: 16px;
    }
  }
  @media (max-width: 749px) {
    .facets-container {
      display: none;
    }
  }
}

.cpap__plp-product .filter-sidebar {
  @media (max-width: 749px) {
    .facets-container {
      display: block;
    }
  }
}

.cpap__plp-product {
  margin-top: 120px;
  @media (max-width: 749px) {
    margin-top: 40px;
  }

  .cpap__plp-product__sleep-journey-link {
    &:hover {
      .cpap__plp-product__sleep-journey-icon {
        @media (min-width: 768.5px) {
          color: var(--cpap-primary-white);
          background: var(--cpap-primary-orange);
          border-color: var(--cpap-primary-orange);
        }
      }
    }
  }

  .cpap__plp-product__sleep-journey-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cpap-stroke-gray);

    transition: all 0.2s;
    border-radius: 50%;

    &:after {
      content: '\e909';
      font-size: 12px;
    }
  }

  .gradient {
    padding: 0;
  }
  .caption-large {
    letter-spacing: normal;
  }
  .facets__price .field {
    &:before,
    &:after {
      display: none;
    }
    input {
      color: var(--cpap-text-text-gray);
      font: var(--cpap-typography-font-s-bold);
      line-height: 24px;
      border: 1px solid var(--cpap-stroke-gray);
      border-radius: 8px;
      padding: 15px;
      width: 100%;
      height: auto;
      &:focus {
        & + label {
          top: 1px;
          transform: scale(0.8);
        }
      }
      &.active {
        & + label {
          top: 1px;
          transform: scale(0.8);
        }
      }
    }
    label {
      color: var(--cpap-text-text-gray);
      font: var(--cpap-typography-font-s-bold);
      line-height: 24px;
      top: 16px;
      left: 15px;

      transition: all 0.2s;
    }
  }
  .facets-wrapper {
    padding-right: 0 !important;
    .facets-container {
      padding: 0;
      .facets__form-vertical {
        width: 100%;
        .active-facets {
          border-bottom: 1px solid var(--cpap-stroke-gray);
          margin-bottom: 16px;
          @media (max-width: 749px) {
            display: none !important;
          }
          h2 {
            font-family: var(--cpap-typography-font-family);
            font: 500 var(--cpap-typography-font-md);
            color: var(--cpap-primary-soft-black) !important;
            margin-bottom: 16px;
          }
          facet-remove {
            &.active-facets__button-wrapper {
              display: block !important;
            }
          }
        }
        details {
          border: none;
          margin-bottom: 16px;
          summary {
            padding: 0 !important;
            font: 500 var(--cpap-typography-font-md);
            color: var(--cpap-primary-soft-black);
            cursor: pointer;
            transition: all 0.2s;
            .facets__selected.no-js-hidden {
              display: none;
            }
            &:focus-visible {
              box-shadow: none;
              outline: 0;
            }
            &:hover {
              @media (min-width: 768.5px) {
                opacity: 0.7;
              }
            }
            &:active {
              opacity: 0.7;
            }
            * {
              text-decoration: none !important;
            }
            svg {
              transition: all 0.2s;
            }
          }
          .parent-display {
            padding: 16px 0 18px 0;
            animation: none !important;
            .visually-hidden {
              display: none;
            }
            .facets-layout-list {
              li {
                padding: 0;
                font: var(--cpap-typography-font-s-bold);
                color: var(--cpap-text-text-gray);
                margin-bottom: 16px;
                &:before {
                  display: none;
                }
                &:last-child {
                  margin-bottom: 0;
                }
                * {
                  text-decoration: none !important;
                }
                label {
                  padding: 0;
                  margin: 0;
                  flex-grow: initial;
                  transition: all 0.2s;
                  &:hover {
                    @media (min-width: 768.5px) {
                      .facet-checkbox__text {
                        &:before {
                          border-color: var(--cpap-primary-orange);
                        }
                      }
                    }
                  }
                  &:active {
                    .facet-checkbox__text {
                      &:before {
                        border-color: var(--cpap-primary-orange);
                      }
                    }
                  }
                  .facet-checkbox__text {
                    display: block;
                    position: relative;
                    padding-left: 22px;
                    &:before {
                      content: '';
                      width: 16px;
                      height: 16px;
                      border: 1px solid var(--cpap-text-text-gray);
                      border-radius: 4px;
                      position: absolute;
                      top: 50%;
                      left: 0;
                      transform: translate(0, -50%);
                      z-index: 1;
                    }
                    &:after {
                      content: '';
                      background-image: url('./Checkmark-3.svg');
                      width: 10px;
                      height: 8px;
                      position: absolute;
                      top: 50%;
                      left: 3px;
                      transform: translate(0, -50%);
                      z-index: 1;
                      opacity: 0;
                    }
                  }

                  span {
                    color: var(--cpap-text-text-gray);
                  }
                  input[type='checkbox']:checked {
                    & + svg {
                      & + svg {
                        & + .facet-checkbox__text {
                          color: var(--cpap-primary-soft-black);
                          &:after {
                            opacity: 1;
                          }
                          &:before {
                            border-color: var(--cpap-primary-orange);
                          }
                        }
                      }
                    }
                  }
                }
                input {
                  display: none;
                }
                .facet-checkbox > svg {
                  margin-right: 6px;
                  border-radius: 4px;
                  display: none !important;
                }
              }
            }
          }
        }
        .active-facets__button-wrapper {
          margin: 0;
          padding: 0;
          text-align: left;
          display: block;
          margin-top: 24px;
          a {
            font: var(--cpap-typography-font-s-bold);
            color: var(--cpap-text-text-gray);
            padding: 0;
            text-decoration: underline;
            &:hover {
              @media (min-width: 768.5px) {
                opacity: 0.7;
              }
            }
            &:active {
              opacity: 0.7;
            }
            span {
              font: var(--cpap-typography-font-s-bold);
              color: var(--cpap-text-text-gray);
            }
          }
        }
      }
    }
  }
  .active-facets__button {
    padding: 0;
    margin: 0;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
    &:hover {
      @media (min-width: 768.5px) {
        .active-facets__button-inner {
          border-color: var(--cpap-accent-plum);
        }
      }
    }
    &:active {
      .active-facets__button-inner {
        border-color: var(--cpap-accent-plum);
      }
    }
    .active-facets__button-inner {
      border: none;
      box-shadow: none;
      display: flex;
      align-items: center;
      font: var(--cpap-typography-font-md);
      color: var(--cpap-primary-soft-black);
      letter-spacing: normal;
      padding: 7px 15px;
      border: 1px solid transparent;
      background: rgba(46, 46, 46, 0.05);
      border-radius: 1000px;
      &:after {
        content: '';
        width: 20px;
        height: 20px;
        background-image: url('./Close.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        margin-left: 10px;
        display: inline-block;
        position: static;
        box-shadow: none;
      }
      svg {
        margin: 0;
        margin-left: 10px;
        background: var(--cpap-primary-white);
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        display: none;
        path {
          width: 7px;
          height: 7px;
          display: block;
        }
      }
    }
    .visually-hidden {
      display: none;
    }
  }

  @media (max-width: 749px) {
    .mobile-facets {
      padding-top: 34px;
      padding-bottom: 40px;
      background: var(--cpap-primary-white);
    }
    .mobile-facets__main {
      display: block !important;
    }
    .mobile-facets__footer,
    .mobile-facets__header {
      position: static;
    }
    .js .mobile-facets .submenu-open {
      visibility: visible !important;
    }
    .facets-container {
      padding: 0;
      width: 100%;
      display: block;
      margin-bottom: 20px;
    }
    .active-facets,
    .product-count {
      display: none !important;
    }
    .mobile-facets__wrapper {
      .mobile-facets__disclosure {
        width: 100%;
        summary {
          border: 1px solid var(--cpap-stroke-gray);
          border-radius: 28px;
          padding: 10.5px 10px;

          width: 100%;
          &:before {
            display: none !important;
          }
          .mobile-facets__open {
            justify-content: center;
            padding: 0;
          }
          span {
            font-weight: 500;
            font-size: 14px;
            line-height: 17px;
            color: var(--cpap-primary-soft-black);
            letter-spacing: 0;
            margin: 0;
          }
          svg {
            display: none;
          }
          .mobile-facets__open {
            &:before {
              content: '';
              display: block;
              width: 13px;
              height: 12px;
              background-image: url('./Filter-Icon.svg');
              background-repeat: no-repeat;
              background-position: center;
              background-size: contain;
              margin-right: 10px;
            }
          }
        }
      }
    }
    @media (max-width: 749px) {
      .mobile-facets__details {
        width: 100%;
      }
      .mobile-facets__summary {
        width: 100%;
        display: block;
        border: 1px solid var(--cpap-stroke-gray);
        padding: 4.5px 15px;
        border-radius: 8px;
        margin-bottom: 32px;
        .mobile-facets__sort {
          justify-content: flex-start;
          * {
            font-size: 14px !important;
            line-height: 17px !important;
            font-family: var(--cpap-typography-font-family);
            font-weight: 500;
            color: var(--cpap-primary-soft-black);
          }
          h2 {
            margin: 0;
            color: var(--cpap-text-text-gray);
          }
          label {
            width: 51px;
          }
          .select {
            width: calc(100% - 51px);
          }
          select {
            width: 100%;
            padding: 0;
            margin: 0;
            color: var(--cpap-primary-soft-black);
            border: none !important;
            outline: none !important;
            box-shadow: none !important;
            padding-right: 10px;
          }
        }
      }
      .filter-title-row {
        display: flex;
        justify-content: space-between;
        width: 100%;
        align-items: flex-end;
        h2 {
          color: var(--cpap-primary-soft-black);
          font: 500 var(--cpap-typography-font-md);
        }
        p {
          color: var(--cpap-text-text-gray);
          font: var(--cpap-typography-font-s-bold);
          font-weight: 400;
        }
      }
    }
    facet-filters-form {
      .mobile-facets__inner {
        width: 100%;
        max-width: 100%;
        border: none;
        padding: 0 20px;
        .mobile-facets__header {
          padding: 0;
          border: none;
          text-align: left;
          h2 {
            color: var(--cpap-primary-soft-black);
            font: 500 var(--cpap-typography-font-xl);
          }
          .mobile-facets__count {
            display: none;
            @media (max-width: 749px) {
              display: block;
            }
          }

          .mobile-facets__header-inner {
            @media (max-width: 749px) {
              display: flex;
              flex-wrap: wrap;
              justify-content: space-between;
              .mobile-facets__heading {
                width: 100%;
                margin-bottom: 30px;
              }
              .small-hide {
                width: auto;
                display: block !important;
                font-size: 16px;
                line-height: 24px;
                margin-bottom: 0;
              }
              .mobile-facets__count {
                flex-grow: initial;
              }
            }
          }
        }
        .mobile-facets__main {
          padding: 0;
          padding-top: 16px;
          display: flex;
          flex-wrap: wrap;
          visibility: visible;
          border-top: 1px solid var(--cpap-stroke-gray);
          margin-top: 16px;
          .mobile-facets__details {
            order: 1;
            width: 100%;
            .mobile-facets__footer {
              display: none;
            }
          }
          details.mobile-facets__details {
            order: 2;
            width: 100%;
            margin-bottom: 16px;
            summary.mobile-facets__summary {
              margin: 0;
              padding: 0;
              margin: 0;
              position: relative;
              border: none;
              &:before {
                content: '';
                content: '\e909';
                font-family: 'icomoon' !important;
                speak: never;
                font-style: normal;
                font-weight: normal;
                font-variant: normal;
                text-transform: none;
                line-height: 1;
                -webkit-font-smoothing: antialiased;
                -moz-osx-font-smoothing: grayscale;
                color: inherit;
                font-size: 12px;
                transition: transform 0.2s;
                z-index: 1;
                transform: translate(0, -50%) rotate(90deg);
                display: inline-block;
                position: absolute;
                top: 50%;
                right: 0;
              }
              span {
                font-size: 16px;
                line-height: 24px;
              }
            }
            .mobile-facets__info {
              padding: 16px 0 18px;
              margin: 0;
            }
            .facets__price {
              padding: 0;
              font: var(--cpap-typography-font-s-bold);
            }
          }
          details.mobile-facets__details[open] {
            summary.mobile-facets__summary {
              &:before {
                transform: translate(0, -50%) rotate(-90deg);
              }
            }
          }
          .mobile-facets__submenu {
            position: static;
            visibility: visible;
            transform: none;
            .mobile-facets__close-button {
              display: none;
            }
            svg {
              display: none;
            }
            span {
              background-color: transparent !important;
            }
            ul {
              list-style: none;
              padding: 0;
              margin: 0;
              padding: 16px 0 16px 0;
              li {
                padding: 0;
                font: var(--cpap-typography-font-s-bold);
                color: var(--cpap-text-text-gray);
                margin-bottom: 16px;
                &:before {
                  display: none;
                }
                &:last-child {
                  margin-bottom: 0;
                }
                * {
                  text-decoration: none !important;
                }
                label {
                  padding: 0;
                  margin: 0;
                  transition: all 0.2s;
                  &:hover {
                    @media (min-width: 768.5px) {
                      opacity: 0.7;
                    }
                  }
                  &:active {
                    opacity: 0.7;
                  }
                  .facet-checkbox__text {
                    display: block;
                    position: relative;
                    padding-left: 22px;
                    &:before {
                      content: '';
                      width: 16px;
                      height: 16px;
                      border: 1px solid var(--cpap-text-text-gray);
                      border-radius: 4px;
                      position: absolute;
                      top: 50%;
                      left: 0;
                      transform: translate(0, -50%);
                      z-index: 1;
                    }
                    &:after {
                      content: '';
                      background-image: url('./Checkmark-3.svg');
                      width: 10px;
                      height: 8px;
                      position: absolute;
                      top: 50%;
                      left: 3px;
                      transform: translate(0, -50%);
                      z-index: 1;
                      opacity: 0;
                    }
                  }

                  span {
                    color: var(--cpap-text-text-gray);
                  }
                  input[type='checkbox']:checked {
                    & + span {
                      & + svg {
                        & + svg {
                          & + .facet-checkbox__text {
                            color: var(--cpap-primary-soft-black);
                            &:after {
                              opacity: 1;
                            }
                            &:before {
                              border-color: var(--cpap-primary-orange);
                            }
                          }
                        }
                      }
                    }
                  }
                }
                input {
                  display: none;
                }
                .facet-checkbox > svg {
                  margin-right: 6px;
                  border-radius: 4px;
                  display: none !important;
                }
              }
            }
          }
          .mobile-facets__footer {
            order: 3;
            width: 100%;
            border: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-wrap: wrap;
            margin-top: 36px;
            button {
              width: 100%;
              order: 1;
              display: inline-block;
              text-align: center;
              font: 700 var(--cpap-typography-font-lg);
              color: var(--cpap-primary-white);
              background: var(--cpap-primary-orange);
              border: 1px solid var(--cpap-primary-orange);
              border-radius: 28px;
              transition: all 0.2s;
              min-width: 250px;
              margin-bottom: 16px;
              padding: 15px 23px;
              &:hover {
                @media (min-width: 768.5px) {
                  background: var(--cpap-overlay-utility-orange);
                  color: var(--cpap-primary-soft-black);
                }
              }
              &:active {
                background: var(--cpap-overlay-utility-orange);
                color: var(--cpap-primary-soft-black);
              }
              &:after {
                display: none !important;
              }
            }
            .mobile-facets__clear-wrapper {
              order: 2;
              width: 100%;
              a {
                font: var(--cpap-typography-font-s-bold);
                color: var(--cpap-text-text-gray);
                text-decoration: underline;
                text-underline-offset: inherit;
              }
            }
          }
        }
      }
    }
    .close-filter-btn {
      position: absolute;
      top: -3px;
      right: 0;

      width: 40px;
      height: 40px;
      display: block;
      background: var(--cpap-primary-white);
      border-radius: 50%;
      box-shadow: 0px -4.44444px 73.3333px rgba(0, 0, 0, 0.08);

      &:before,
      &:after {
        content: '';
        width: 9px;
        height: 1px;
        background: var(--cpap-primary-soft-black);
        position: absolute;
        top: 50%;
        left: 50%;
      }
      &:before {
        transform: translate(-50%, -50%) rotate(45deg);
      }
      &:after {
        transform: translate(-50%, -50%) rotate(-45deg);
      }
    }
  }
}

.cpap__plp-product .product-content .product-grid .product-card .right-rail {
  .product-vars {
    margin-top: 24px;
    .product-option {
      margin-bottom: 24px;
      position: relative;
      @media (max-width: 992px) {
        margin-bottom: 16px;
      }
      &:before {
        content: '\e909';
        font-size: 12px;
        transition: transform 0.2s;
        z-index: 1;
        transform: rotate(90deg);
        display: inline-block;
        pointer-events: none;
        position: absolute;
        bottom: 22px;
        right: 21px;
      }
      .cpap__plp-product__selection-label-container {
        margin-bottom: 8px;
        label {
          font: var(--cpap-typography-font-s-bold);
          color: var(--cpap-primary-soft-black);
          display: block;
          margin-bottom: 8px;
        }
        .error-tips {
          transition: all 0.2s;
          opacity: 0;
          visibility: hidden;
          display: none;
          &.is-show {
            opacity: 1;
            visibility: visible;
            display: block;
          }
          p {
            font: var(--cpap-typography-font-s-bold);
            color: rgba(205, 56, 36, 1);
            margin: 0;
            display: block;
            margin-bottom: 8px;
          }
        }
      }
      select {
        color: var(--cpap-text-text-gray);
        font: var(--cpap-typography-font-s-bold);
        line-height: 24px;
        border: 1px solid var(--cpap-stroke-gray);
        border-radius: 8px;
        padding: 15px 35px 15px 15px;
        width: 100%;
        option {
          &:first-child {
            display: none;
          }
        }
      }
    }
  }
  .price-row {
    text-align: center;
    margin-bottom: 12px;
    div {
      margin: 0 !important;
    }
    span {
      margin: 0 !important;
      font: 500 var(--cpap-typography-font-lg);
      color: var(--cpap-primary-soft-black);
    }
    .price-item.price-item--sale.price-item--last {
      margin-right: 6px !important;
    }
  }
  .cpap__buy-buttons-row {
    position: relative;
    .cpap__buy-buttons__select-option-button {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 2;
    }
    &.cpap__buy-buttons-column--visible {
      .cpap__buy-buttons__select-option-button {
        opacity: 0;
        visibility: hidden;
      }
    }
    button {
      color: var(--cpap-primary-white);
      font: 700 var(--cpap-typography-font-lg);
      border: 1px solid var(--cpap-primary-orange);
      border-radius: 28px;
      letter-spacing: 0;
      height: auto;
      padding: 15px;
      display: block;
      width: 100%;
      text-align: center;
      transition: all 0.2s;
      margin: 0;
      background: var(--cpap-primary-orange);
      &:hover {
        @media (min-width: 768.5px) {
          background: var(--cpap-overlay-utility-orange);
          border-color: var(--cpap-primary-orange);
          color: var(--cpap-primary-soft-black);
        }
      }
      &:active {
        background: var(--cpap-overlay-utility-orange);
        border-color: var(--cpap-primary-orange);
        color: var(--cpap-primary-soft-black);
      }
      &:before,
      &:after {
        box-shadow: none !important;
      }
      .loading__spinner {
        display: none !important;
      }
      &.out-of-stock {
        cursor: no-drop;
        background: var(--cpap-primary-white);
        color: var(--cpap-primary-soft-black);
        &:hover {
          @media (min-width: 768.5px) {
            background: var(--cpap-overlay-utility-orange);
          }
        }
        &:active {
          background: var(--cpap-overlay-utility-orange);
        }
      }
      span {
        display: block;
      }
    }
  }
}

.cpap__plp-product {
  margin-bottom: 120px;
  @media (max-width: 768px) {
    margin-bottom: 72px;
  }

  .cpap__video-light-box-data {
    display: none;

    video {
      display: none;
    }
  }

  .key-features {
    column-count: 2;
    column-gap: 0;
    margin-top: 29px;
    @media (max-width: 992px) {
      display: block;
      column-count: inherit;
      margin-top: 26px;
    }
    span {
      display: block;
      font: 500 var(--cpap-typography-font-md);
      color: var(--cpap-primary-soft-black);
      margin-bottom: 18px;
    }

    .box {
      break-inside: avoid;
      font: var(--cpap-typography-font-s-bold);
      color: var(--cpap-text-text-gray);
      margin-bottom: 10.5px;
      padding-left: 28px;
      position: relative;
      @media (max-width: 992px) {
        margin-bottom: 17px;
      }
      &:before {
        content: '';
        width: 20px;
        height: 20px;
        background-image: url('./Checkmark.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translate(0, -50%);
      }
    }
  }

  .cpap__plp-product__watch-video-button {
    position: relative;
    display: inline-block;
    font: var(--cpap-typography-font-s-bold-bolder);
    padding: 10.5px 16px 10.5px 36px;
    background: rgba(46, 46, 46, 0.2);
    border-radius: 28px;
    color: var(--cpap-primary-white);

    &:before {
      content: '';
      width: 20px;
      height: 20px;
      background-image: url('./Media-Controls.svg');
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
      position: absolute;
      top: 50%;
      left: 8px;
      transform: translate(0, -50%);
      z-index: 1;
    }
  }

  .inner-video-box {
    transform: translateZ(0px);

    .inner-video-box-box {
      transform: translateZ(0px);
      display: block;
      border-radius: 8px;
      overflow: hidden;
      position: relative;

      .video-active {
        transition: all 0.2s;
        padding-top: calc((627 / 421) * 100%);

        @media (max-width: 768px) {
          padding-top: calc((344 / 256) * 100%);
        }
      }
      .video-active {
        position: relative;
        video,
        iframe {
          position: absolute;
          top: 0;
          left: 0;
          z-index: 1;
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
      .text-box {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 203px;
        display: flex;
        align-items: flex-end;
        flex-wrap: wrap;
        z-index: 1;
        overflow: hidden;
        &:before {
          width: 100%;
          height: 100%;
          content: '';
          background: linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.0056338) 99.99%,
            rgba(217, 217, 217, 0) 100%
          );
          position: absolute;
          top: 0;
          left: 0;
          z-index: 1;
          @media (max-width: 768px) {
            display: none;
          }
        }
        &:after {
          content: '';
          width: 100%;
          height: 100%;
          background: var(--cpap-primary-white);
          opacity: 0;
          position: absolute;
          top: 0;
          left: 0;
          z-index: 3;
          pointer-events: none;
        }
        .text-and-link {
          padding: 34px 32px;
          position: relative;
          z-index: 2;
          transition: all 0.2s;
          @media (max-width: 768px) {
            padding: 16px;
          }
          p {
            font: 500 var(--cpap-typography-font-lg);
            color: var(--cpap-primary-white);
            margin-bottom: 17px;
            max-width: 267px;
            transition: all 0.2s;

            @media (max-width: 768px) {
              font-size: 17.71px;
              line-height: 23.6px;
              margin-bottom: 15px;
            }
          }
        }
      }
    }
  }

  .inner-video-box .inner-video-box-box .video-active {
    height: 100%;
    padding-top: calc((292 / 248) * 100%);
    @media (max-width: 992px) {
      padding-top: calc((344 / 256) * 100%);
    }
  }
  .container {
    display: flex;
    @media (max-width: 992px) {
      display: block;
    }
  }

  .filter-sidebar {
    width: 344px;
    padding-right: 31px;
    @media (max-width: 1300px) {
      width: 250px;
      padding-right: 20px;
    }
    @media (max-width: 992px) {
      width: 100%;
      padding-right: 0;
      margin-bottom: 20px;
    }
    & > h2 {
      color: var(--cpap-primary-soft-black);
      display: none;
      font: 500 var(--cpap-typography-font-xl);
      margin-bottom: 16px;
      @media (max-width: 749px) {
        display: block;
      }
    }
    .active-facets {
      facet-remove {
        display: none !important;
      }
      .title-row {
        width: 100%;
        display: flex;
        justify-content: space-between;
        .product-count-vertical {
          opacity: 1;
          span,
          h2 {
            font-weight: 400;
            color: var(--cpap-text-text-gray);
            letter-spacing: 0 !important;
            font-size: 14px;
          }
        }
      }
    }
  }
  .product-content {
    width: calc(100% - 344px) !important;
    @media (max-width: 1300px) {
      width: calc(100% - 250px) !important;
    }
    @media (max-width: 992px) {
      width: 100% !important;
    }
    .grid-heading {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 24px;
      @media (max-width: 749px) {
        margin-bottom: 16px;
        display: none;
      }
      h2 {
        color: var(--cpap-primary-soft-black);
        font: 500 var(--cpap-typography-font-xl);
        margin-bottom: 0;
      }
      .list-and-sort {
        display: flex;
        align-items: center;
        @media (max-width: 749px) {
          display: none;
        }
        .list-or-grid {
          display: flex;
          gap: 11px;
          margin-right: 28px;
          @media (max-width: 992px) {
            display: none !important;
          }
          .list,
          .grid {
            transition: all 0.2s;
            &:before {
              font-size: 24px;
              color: var(--cpap-text-text-gray);
              transition: all 0.2s;
              cursor: pointer;
            }

            &.active {
              &:before {
                color: var(--cpap-primary-soft-black);
              }
            }
            &:hover {
              @media (min-width: 768.5px) {
                opacity: 0.7;
              }
            }
            &:active {
              opacity: 0.7;
            }
          }
          .list {
            &:before {
              content: '\e900';
            }
          }
          .grid {
            &:before {
              content: '\e901';
            }
          }
        }
      }
      .facet-filters__sort + .icon-caret {
        right: 3px;
      }
    }

    .collection {
      margin-top: 15px;
      @media (max-width: 992px) {
        margin-top: 0;
      }
    }
    .product-grid {
      row-gap: 0;
      transition: all 0.4s;
      @media (max-width: 992px) {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
      }
      .product-card {
        width: 100%;
        @media (max-width: 992px) {
          width: calc(50% - 20px);
        }
        @media (max-width: 600px) {
          width: 100%;
        }
      }
      .product-card-box-box {
        border-radius: 16px;
        border: 1px solid var(--cpap-stroke-gray);
        margin-bottom: 24px;
        padding: 24px;
        display: flex;
        width: 100%;
        justify-content: space-between;
        position: relative;
        transition: border-color 0.2s;
        cursor: pointer;
        @media (max-width: 1300px) {
          padding: 24px 15px;
        }
        @media (max-width: 992px) {
          display: block;
          padding: 10px 16px 24px 16px;
        }
        @media (max-width: 600px) {
          border: none;
          background: none;
          margin-bottom: 16px;
        }
        &:hover {
          @media (min-width: 768.5px) {
            border-color: var(--cpap-primary-orange);
          }
        }
        &:active {
          border-color: var(--cpap-primary-orange);
        }
        .left-rail {
          width: 283px;
          padding: 55px 27px 76px 27px;
          position: relative;
          @media (max-width: 1300px) {
            width: 183px;
          }
          @media (max-width: 992px) {
            width: 100%;
            padding: 22px 10px 20px 10px;
            display: flex;
            justify-content: center;
            img {
              max-width: 233px;
              margin: 0 auto;
            }
          }
          .product-img {
            width: 100%;
          }
        }
        .middle-rail {
          width: calc(100% - 458px);
          padding: 0 20px;
          max-width: 394px;
          @media (max-width: 1300px) {
            width: calc(100% - 383px);
          }
          @media (max-width: 992px) {
            width: 100%;
            padding: 0;
            max-width: 100%;
          }
          h3 {
            color: var(--cpap-primary-soft-black);
            font: 500 var(--cpap-typography-font-lg);
            margin-bottom: 16px;
            @media (max-width: 992px) {
              font: var(--cpap-typography-font-s-bold);
              margin-bottom: 8px;
            }
          }
          .cpap__brand-badge {
            margin-bottom: 8px;
            @media (max-width: 768px) {
              padding-left: 0;
              .cpap__brand-badge__checkmark-icon {
                display: none !important;
              }
            }
          }
          .price-row {
            display: none;
            font: var(--cpap-typography-font-s-bold);
            color: var(--cpap-primary-soft-black);
            margin-bottom: 16px;
            @media (max-width: 992px) {
              display: block;
            }
            * {
              font: var(--cpap-typography-font-s-bold);
              color: var(--cpap-primary-soft-black);
            }
            s {
              color: var(--cpap-text-text-gray);
            }
            .cpap__price-overrides__discount-tag-container {
              display: none;
            }
            .price__sale {
              @media (max-width: 992px) {
                margin-bottom: 0;
              }
            }
          }
          .key-features {
            margin-top: 24px;

            column-count: initial;
            @media (max-width: 992px) {
              margin-top: 16px;
              margin-bottom: 16px;
            }
            span {
              margin-bottom: 0;
              @media (max-width: 992px) {
                cursor: pointer;
                position: relative;
                &:before {
                  content: '\e909';
                  font-family: 'icomoon' !important;
                  speak: never;
                  font-style: normal;
                  font-weight: normal;
                  font-variant: normal;
                  text-transform: none;
                  line-height: 1;
                  -webkit-font-smoothing: antialiased;
                  -moz-osx-font-smoothing: grayscale;
                  color: inherit;
                  font-size: 12px;
                  position: absolute;
                  top: 50%;
                  right: 0;
                  transform: translate(0%, -50%) rotate(90deg);
                  transition: all 0.2s;
                  color: var(--cpap-primary-soft-black);
                }
                &.is-active {
                  &:before {
                    transform: translate(0%, -50%) rotate(270deg);
                  }

                  + .key-features-box {
                    padding-top: 16px;
                    max-height: 500px;
                  }
                }
              }
            }
            .key-features-box {
              padding-top: 16px;

              @media (max-width: 992px) {
                max-height: 0;
                padding-top: 0;
                overflow: hidden;
                transition: max-height 0.3s ease, padding-top 0.3s ease;
              }
            }

            .box {
              margin-bottom: 15px;
              @media (max-width: 992px) {
                margin-bottom: 12px;
              }
            }
          }
        }
        .right-rail {
          width: 225px;
          padding-left: 25px;
          border-left: 1px solid var(--cpap-primary-beige);
          @media (max-width: 992px) {
            width: 100%;
            padding-left: 0;
            border: none;
          }
          .selling-points {
            padding-bottom: 1px;
            margin-bottom: 24px;
            position: relative;
            @media (max-width: 992px) {
              display: none;
            }
            &:before {
              content: '';
              width: calc(100% - 21px);
              height: 1px;
              background: var(--cpap-primary-beige);
              position: absolute;
              bottom: 0;
              left: 50%;
              transform: translate(-50%, 0);
            }
            p {
              color: var(--cpap-primary-soft-black);
              padding: 24px 24px 24px 40px;
              margin-bottom: 0;
              border-bottom: 1px solid var(--cpap-stroke-gray);
              position: relative;
              @media (max-width: 992px) {
                padding: 16px 16px 16px 42px;
                font: var(--cpap-typography-font-s-bold);
                &:first-child {
                  border-top: 1px solid var(--cpap-stroke-gray);
                  padding: 17px 16px 18px 42px;
                }
              }
              img {
                content: '';
                width: 28px;
                height: auto;
                background-repeat: no-repeat;
                background-position: center;
                background-size: contain;
                position: absolute;
                top: 50%;
                left: -2px;
                transform: translate(0, -50%);
                @media (max-width: 992px) {
                  width: 20px;
                  height: auto;
                  left: 4px;
                }
              }

              &:last-child {
                border: none;
              }
            }
            p {
              font: var(--cpap-typography-font-s-bold);
              color: var(--cpap-text-text-gray);
              padding: 0;
              padding-left: 34px;
              margin-bottom: 26px;
              border: none;
              img {
                width: 22px;
                height: auto;
                left: 0;
              }
            }
          }
          .price-row {
            @media (max-width: 992px) {
              display: none !important;
            }
            .cpap__price-overrides__discount-tag-container {
              display: none;
            }
          }
        }
        .compare {
          position: absolute;
          bottom: 20px;
          left: 24px;
          @media (max-width: 992px) {
            position: static;
            img {
              max-width: 85px;
            }
          }
        }
      }
      .snack-card {
        width: 100%;
        margin-bottom: 24px;
        @media (max-width: 992px) {
          width: calc(50% - 20px);
          margin-bottom: 16px;
        }
        @media (max-width: 600px) {
          width: 100%;
        }
      }
      .snack-card-box {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;

        background: var(--cpap-primary-beige);
        border-radius: 16px;
        overflow: hidden;
        padding: 32px 39.5px;
        position: relative;
        @media (max-width: 992px) {
          display: block;
          height: 100%;
        }
        @media (max-width: 600px) {
          height: auto;
          padding: 40px;
        }
        &:before {
          content: '';
          width: 100%;
          height: 20px;
          position: absolute;
          bottom: 0;
          left: 0;
          z-index: 1;
          background: linear-gradient(90deg, #aeff92 27.15%, #bff1fc 70.37%);
          opacity: 0.8;
          filter: blur(30px);
        }
        .snack-card-title {
          width: calc(100% - 248px);
          padding-right: 30px;
          max-width: 617px;
          padding-top: 20px;
          text-align: center;
          position: relative;
          z-index: 2;
          @media (max-width: 992px) {
            width: 100%;
            padding: 0;
          }
          @media (max-width: 600px) {
            text-align: left;
          }
          &.style-2 {
            padding-right: 14px;
            max-width: 676px;
            padding-top: 0;
            padding-bottom: 14px;
            h3,
            p {
              max-width: 365px;
            }
          }
          h3,
          p {
            color: var(--cpap-primary-soft-black);
            font: 500 var(--cpap-typography-font-xl);
            max-width: 337px;
            margin: 0 auto;
            margin-bottom: 20px;
            @media (max-width: 600px) {
              margin-bottom: 86px;
            }
          }
        }
        .inner-video-box {
          width: 248px;
          position: relative;
          z-index: 2;
          @media (max-width: 992px) {
            width: 100%;
            max-width: 300px;
            margin: 0 auto;
          }
          .inner-video-box-box {
            .text-box {
              height: 100%;
              &:before {
                display: none;
              }
              .text-and-link {
                padding: 26px 9px;
                @media (max-width: 600px) {
                  padding: 16px;
                }
                p {
                  color: var(--cpap-primary-white);
                  opacity: 0;
                  visibility: hidden;
                  @media (max-width: 600px) {
                    display: none !important;
                  }
                }
              }
            }
          }
        }
        .snack-card-testimonials {
          max-width: 421px;
          margin: 0 auto;
          text-align: center;
          padding: 30px 0;
          @media (max-width: 600px) {
            margin: -40px;
            padding: 32px 24px;
            text-align: left;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            .testimonials-title {
              margin-bottom: 122px;
              span {
                margin-bottom: 16px;
              }
            }
            .testimonials-attribution {
              display: flex !important;
              align-items: center !important;
              .attribution-img {
                width: 46px !important;
                transform: translate(0, 5px) !important;
              }
              .attribution-text {
                width: calc(100% - 46px) !important;
                padding-left: 17px !important;
                span {
                  font-family: var(--cpap-typography-font-family) !important;
                  margin-bottom: -2px !important;
                  font-weight: 500;
                }
              }
            }
          }
          .testimonials-title {
            span {
              display: block;
              font: 500 var(--cpap-typography-font-lg);
              color: var(--cpap-primary-soft-black);
              margin-bottom: 8px;
              @media (max-width: 600px) {
                margin-bottom: 16px;
              }
            }
            p {
              display: block;
              font: 500 var(--cpap-typography-font-xl);
              color: var(--cpap-primary-soft-black);
              margin-bottom: 8px;
            }
          }
          .testimonials-attribution {
            .attribution-img {
              width: 70px;
              margin: 0 auto;
              margin-bottom: 4px;
              position: relative;
              &:before {
                content: '';
                width: 100%;
                height: 100%;
                position: absolute;
                top: 2px;
                left: 2px;
                z-index: 1;
                background: linear-gradient(90deg, #aeff92 27.15%, #bff1fc 70.37%);
                filter: blur(2.16501px);
                transform: rotate(90deg);
                border-radius: 50%;
              }
              img {
                border-radius: 50%;
                position: relative;
                z-index: 1;
              }
            }
            .attribution-text {
              span {
                display: block;
                font: 700 var(--cpap-typography-font-lg);
                color: var(--cpap-primary-soft-black);
                margin-bottom: 4px;
                @media (max-width: 992px) {
                  font-weight: 500;
                }
              }
              p {
                font: 500 var(--cpap-typography-font-lg);
                color: var(--cpap-primary-soft-black);
                margin-bottom: 0px;
              }
            }
          }
        }
      }
      .sleep-journey-home-box {
        width: 100%;
        margin-top: 32px;
        position: relative;
        &:before {
          content: '';
          width: 100%;
          height: 100%;
          z-index: 1;
          position: absolute;
          top: 0;
          left: 0;
          z-index: 1;
          background: linear-gradient(90deg, #aeff92 27.15%, #bff1fc 70.37%);
          filter: blur(16px);
          @media (max-width: 768px) {
            background: linear-gradient(0deg, #aeff92 27.15%, #bff1fc 70.37%);
          }
        }
        .sleep-journey-home-box-box {
          background: var(--cpap-primary-white);
          border: 1px solid var(--cpap-stroke-gray);
          border-radius: 8px;
          position: relative;
          z-index: 2;
          display: flex;
          @media (max-width: 1200px) {
            display: block;
          }
          .sleep-title {
            width: 29.8%;
            padding: 14px 19px 13px 23px;

            @media (max-width: 1200px) {
              width: 100%;
              padding: 20px;
            }

            h3 {
              color: var(--cpap-primary-soft-black);
              font: 500 var(--cpap-typography-font-xl);
              margin-bottom: 8px;
              @media (max-width: 768px) {
                margin-bottom: -1px;
              }
            }
            p {
              font: var(--cpap-typography-font-s-bold);
              color: var(--cpap-primary-soft-black);
              margin-bottom: 0px;
            }
          }
          .sleep-content {
            width: 70.2%;
            display: flex;
            flex-wrap: wrap;

            @media (max-width: 1200px) {
              width: 100%;
            }
            @media (max-width: 768px) {
              display: block;
              padding: 0 22px 0 21px;
            }
            .sleep-box {
              width: 25%;
              position: relative;
              @media (max-width: 768px) {
                border-top: 1px solid var(--cpap-stroke-gray);
                width: 100% !important;
                &:before {
                  display: none;
                }
                &:last-child {
                  border-bottom: 1px solid var(--cpap-stroke-gray);
                }
              }
              &:before {
                content: '';
                width: 1px;
                height: calc(100% - 29px);
                background: var(--cpap-stroke-gray);
                position: absolute;
                top: 15px;
                left: 0;
                z-index: 1;
              }
              &:last-child {
                display: none;
                width: 21.2%;
                @media (max-width: 600px) {
                  display: block;
                }
                &:before {
                  height: 100%;
                  top: 0;
                }
                a {
                  @media (max-width: 768px) {
                    text-align: center;
                    max-width: 142px;
                    margin: 0 auto;
                    padding: 23px 0px 80px 0px;
                    i,
                    span {
                      top: initial;
                      right: initial;
                      bottom: 22px;
                      left: 50%;
                      transform: translate(-50%, 0);
                    }
                  }
                }
              }
              a {
                display: block;
                align-items: center;
                height: 100%;
                padding: 23px 16px 75px 16px;
                text-align: center;
                color: var(--cpap-primary-soft-black);
                font: var(--cpap-typography-font-s-bold);
                position: relative;
                @media (max-width: 1200px) {
                  padding: 23px 8px 75px 8px;
                }
                @media (max-width: 768px) {
                  text-align: left;
                  padding: 25px 50px 25px 0;
                }
                i,
                span {
                  position: absolute;
                  bottom: 22px;
                  left: 50%;
                  transform: translate(-50%, 0);
                  @media (max-width: 768px) {
                    bottom: initial;
                    top: 50%;
                    left: initial;
                    right: 0;
                    transform: translate(0, -50%);
                  }
                }
                br {
                  @media (max-width: 768px) {
                    display: none;
                  }
                }

                &:hover {
                  @media (min-width: 768.5px) {
                    background: var(--cpap-primary-beige);
                    .btn {
                      background: var(--cpap-overlay-utility-orange);
                    }
                  }
                }
                &:active {
                  background: var(--cpap-primary-beige);
                  .btn {
                    background: var(--cpap-overlay-utility-orange);
                  }
                }
              }
            }
          }
        }
      }
      &.is-active {
        opacity: 0;
        transform: translate(0, 40px);
      }
      &.style-is-grid {
        @media (min-width: 992.5px) {
          display: flex;
          flex-wrap: wrap;
          gap: 0 32px;
          .product-card {
            width: calc(33.3333% - 22px);

            margin-bottom: 24px;
            &:hover {
              @media (min-width: 768.5px) {
                position: relative;
                z-index: 4;
              }
            }
            &:active {
              position: relative;
              z-index: 4;
            }
          }
          .product-card-box {
            overflow: hidden;
            height: 483px;
            &:hover {
              @media (min-width: 768.5px) {
                overflow: initial;
              }
            }
            &:active {
              overflow: initial;
            }
          }
          .snack-card {
            width: calc(33.3333% - 22px);
            margin-bottom: 0;
          }

          .product-card-box-box {
            display: block;
            border-radius: 8px;
            border: none;
            margin-bottom: 0;
            padding: 16px 24px 16px 24px;
            &:hover {
              @media (min-width: 768.5px) {
                background: var(--cpap-primary-white);
                box-shadow: 0 0px 66px rgba(0, 0, 0, 0.08);
                position: relative;
                z-index: 3;
                .right-rail {
                  opacity: 1;
                  visibility: visible;
                }
              }
            }
            &:active {
              background: var(--cpap-primary-white);
              box-shadow: 0 0px 66px rgba(0, 0, 0, 0.08);
              position: relative;
              z-index: 3;
              .right-rail {
                opacity: 1;
                visibility: visible;
              }
            }
            .left-rail {
              width: 100%;
              padding: 33px 14px 16px 14px;
              .cpap__product-badges {
                left: -8px;
              }
            }
            .middle-rail {
              width: 100%;
              max-width: 100%;
              padding: 0;
              h3 {
                color: var(--cpap-primary-soft-black);
                font: var(--cpap-typography-font-s-bold);
                margin-bottom: 8px !important;
              }
              .cpap__brand-badge {
                padding-left: 0;
                .cpap__brand-badge__checkmark-icon {
                  display: none;
                }
              }
              .price-row {
                display: block;
              }
              .key-features {
                display: none;
              }
            }
            .right-rail {
              width: 100%;
              padding-left: 0;
              border: none;
              opacity: 0;
              visibility: hidden;
              transition: all 0.2s;
              min-height: 113px;
              .right-rail-box {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
              }
              .selling-points {
                display: none;
              }
              .price-row {
                display: none;
              }
            }
            .compare {
              position: static;
              img {
                max-width: 85px;
              }
            }
          }
          .snack-card-box {
            padding: 0;
            display: block;
            border-radius: 8px;
            height: calc(100% - 34px);
            margin: 0;
            .snack-card-title {
              display: none;
            }
            .inner-video-box {
              width: 100%;
              height: 100%;
              .inner-video-box-box,
              .inner-video-box-box {
                .text-box {
                  &:before {
                    display: block;
                  }
                  .text-and-link {
                    padding: 19px 16px;
                    p {
                      max-width: 190px;
                      opacity: 1;
                      visibility: visible;
                    }
                  }
                }
              }
            }
            .snack-card-testimonials {
              height: 100%;
              text-align: left;
              padding: 18px 22px;
              display: flex;
              flex-direction: column;
              justify-content: space-between;
              .testimonials-title {
                span {
                  margin-bottom: 16px;
                }
              }
              .testimonials-attribution {
                display: flex;
                align-items: center;
                .attribution-img {
                  width: 46px;
                  transform: translate(0, 5px);
                }
                .attribution-text {
                  width: calc(100% - 46px);
                  padding-left: 17px;
                  span {
                    font-family: var(--cpap-typography-font-family);
                    font-weight: 500;
                    margin-bottom: -2px;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

.cpap__plp-product .product-content .product-grid.style-is-grid .product-card-box-box .middle-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  .yotpo {
    order: 1;
    margin: 0;
  }
  .cpap__brand-badge {
    order: 2;
    margin: 0;
  }
  h3 {
    order: 3;
    margin: 0;
  }
  .price-row {
    order: 4;
    margin: 0;
  }
}
