/* 🚧 WIP 🚧: BEM naming convention needs to be completed for these styles */
.cpap__plp-product.cpap__blog-product-carousel {
  width: 100%;
  max-width: 1148px;
  margin: 0 auto;
  padding: 32px 80px 64px 80px;
  overflow: hidden;

  &:not(.swiper-initialized) {
    .product-content {
      gap: 8rem;
    }
  }

  @media (max-width: 768px) {
    padding: 36px 10px 60px 10px;
  }
  .product-content {
    width: 100% !important;
    position: relative;
    margin-bottom: 0;
    border-radius: 16px;
    .product-grid {
      box-shadow: 0px -4px 55px rgba(0, 0, 0, 0.08);
      .product-card-box-box {
        margin: 0;
        padding: 0;
        @media (max-width: 992px) {
          border: 1px solid var(--cpap-stroke-gray);
        }
        .left-rail {
          padding: 27px;
          display: flex;
          align-items: center;
          .cpap__product-badges {
            top: 8px;
            left: 12px;
            @media (max-width: 992px) {
              display: block !important;
              left: 6px;
              top: 1px;
            }
          }
        }
        .middle-rail {
          padding: 53px 12px 32px 12px;
          @media (max-width: 992px) {
            padding: 0 24px;
          }
          .cpap__blogs-list__key-features {
            @media (max-width: 992px) {
              margin-bottom: 24px;
            }
            .box {
              margin-bottom: 8px;
            }
            span {
              &:before {
                @media (max-width: 992px) {
                  display: none;
                }
              }
            }
            .key-features-box {
              @media (max-width: 992px) {
                display: block !important;
              }
            }
          }
        }
        .right-rail {
          padding: 90px 32px 32px 30px;

          @media (max-width: 992px) {
            padding: 0 24px;
          }
          .cpap__buy-buttons-row button {
            width: 100%;
            text-align: center;
            span {
              justify-content: center;
            }
          }
        }
        .price-row {
          margin-bottom: 11px;
          text-align: center;
          @media (max-width: 992px) {
            margin-bottom: 8px;
          }
          .price__container {
            display: block;
          }
          @media (max-width: 992px) {
            margin-bottom: 8px;
          }
          span {
            font-size: 18px !important;
            letter-spacing: normal !important;
            line-height: 24px !important;
            margin-right: 0 !important;
            s.price-item.price-item--regular {
              font-size: 14px !important;
              line-height: 17px !important;
              color: var(--cpap-text-text-gray);
              margin-left: 8px;
            }
          }
          .price--on-sale .price__sale {
            margin-bottom: 0;
          }
        }
        &:hover {
          .product-img {
            .cpap__blogs-list__background-image {
              @media (min-width: 768.5px) {
                transform: scale(1.05);
              }
            }
          }
        }
        &:active {
          .product-img {
            .cpap__blogs-list__background-image {
              transform: scale(1.05);
            }
          }
        }
        .product-img {
          transform: translateZ(0px);
          border-radius: 8px;
          overflow: hidden;
          margin-bottom: 32px;
          @media (max-width: 768px) {
            border-radius: 5.27px;
            margin-bottom: 24px;
          }
          .cpap__blogs-list__background-image {
            background-repeat: no-repeat;
            background-position: center;
            background-size: cover;
            padding-top: calc((237 / 421) * 100%);
            transition: all 0.2s;
          }
        }
      }
    }
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;

    @media (min-width: 769px) {
      display: block;
    }
  }

  .swiper-button-next {
    right: 22px !important;
  }

  .swiper-button-prev {
    left: 22px !important;
  }

  .swiper-pagination {
    bottom: 40px !important;
  }
}
