/* 🚧 WIP 🚧: BEM naming convention and file organization cleanup need to be completed for these styles */
@keyframes cpap-loading-fade {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
.cpap__product-overview-showcase {
  .cpap__product-overview-showcase__hero h1 {
    margin-bottom: 12px;

    font-size: 170px;
    line-height: 191.01px;

    @media screen and (max-width: 1200px) {
      font-size: 80px;
      line-height: 80px;
    }

    @media screen and (max-width: 374.98px) {
      font-size: 60px;
      line-height: 60px;
    }
  }
  .cpap__product-overview-showcase__hero .product-overview-desc {
    margin-bottom: 20px;
  }
  .cpap__product-overview-showcase__hero .product-overview-desc p {
    max-width: 640px;
    color: var(--cpap-text-text-gray);
    font-size: 16px;
    line-height: 24px;
    margin: 0 auto;
  }
  .cpap__product-overview-showcase__container .cpap__product-overview-showcase__hero {
    z-index: 1;
  }
  .cpap__product-overview-showcase__container::before {
    content: '';
    z-index: -1;
    background: var(
      --New-Angular-3,
      conic-gradient(
        from 130deg at 50% 50%,
        var(--cpap-gradient-warm-1) 26.24999910593033deg,
        var(--cpap-gradient-light-purple) 130.875deg,
        var(--cpap-gradient-light-purple) 213.75deg,
        var(--cpap-gradient-warm-1) 330.0000071525574deg
      )
    );
    filter: blur(100px);
    transform: rotate(180deg);
    flex-shrink: 0;
    position: absolute;
    bottom: -180px;
    left: 0;
    height: 250px;
    width: 110%;
    margin: 0 -5%;
  }
  .cpap__product-overview-showcase__hero .cpap__product-overview-showcase__buttons {
    gap: 8px;
  }
  .cpap__product-overview-showcase__hero .product-overview-main-image {
    min-height: 372px;
    max-width: 702px;
    height: 372px;
    margin-top: -20px;
    margin-bottom: -40px;
    img {
      height: 100%;
    }
  }
  .cpap__product-overview-showcase__hero .product-overview-main h1 sup {
    top: -120px;
    right: 40px;
  }
  .cpap__product-overview-showcase__hero
    .cpap__product-overview-showcase__buttons
    .cpap__theme__button--primary-filled.cpap__theme__button--primary-filled--large {
    padding: 16px 40px;
    min-width: 250px;
    height: 40px;
  }
  .cpap__product-overview-showcase__hero .cpap__product-overview-showcase__reviews-container {
    margin-top: 12px;
    margin-bottom: 27px;
  }
  .cpap__product-overview-showcase__hero
    .cpap__product-overview-showcase__reviews-container
    .product-vendor {
    color: var(--cpap-text-text-gray);
  }
  .cpap__product-overview-showcase__hero {
    .cpap__product-overview-showcase__reviews-container {
      .cpap__product-overview-showcase__yotpo-reviews-container {
        margin-left: 20px;
        .bottomLine {
          a {
            font-size: 14px;
            font-weight: 400;
            line-height: 17px;
            text-decoration-line: underline !important;
            color: #6c6c6c !important;
            margin-left: 4px;
            pointer-events: none;
          }
          .yotpo-stars {
            .yotpo-icon-star {
              padding: 1px;
            }
          }
        }
      }
    }
  }

  .cpap__product-overview-showcase__hero
    .cpap__product-overview-showcase__buttons
    .cpap__theme__button--secondary-outline {
    padding: 9px 15px;
    line-height: 17px;
  }
  .cpap__product-overview-showcase__hero
    .cpap__product-overview-showcase__buttons
    .cpap__theme__button--secondary-outline:hover {
    background: var(--cpap-overlay-utility-orange);
  }
  .cpap__product-overview-showcase__hero
    .cpap__product-overview-showcase__tooltip-inner-container
    .tooltip-section {
    margin-right: 8px;
  }
  .cpap__product-overview-showcase__hero
    .cpap__product-overview-showcase__tooltip-inner-container
    .tooltip-section
    svg {
    width: 16px;
    height: 16px;
  }
  .cpap__product-overview-showcase__hero
    .tooltip-section
    .cpap__product-overview-showcase__tooltip-popover {
    display: none;
    padding: 8px 16px;
    background: var(--cpap-primary-beige);
    border-radius: 16px;
    left: -117px;
    width: 255px;
    top: 35px;
  }
  .cpap__product-overview-showcase__hero
    .tooltip-section
    .cpap__product-overview-showcase__tooltip-popover
    p {
    color: var(--cpap-primary-soft-black);
  }
  .cpap__product-overview-showcase__hero
    .tooltip-section:hover
    .cpap__product-overview-showcase__tooltip-popover {
    display: block;
  }
  .cpap__product-overview-showcase__hero
    .tooltip-section
    .cpap__product-overview-showcase__tooltip-popover::before {
    position: absolute;
    top: -10px;
    left: 50%;
    margin-left: -10px;
    content: '';
    display: block;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--cpap-primary-beige);
  }
  .cpap__product-overview-showcase__hero .cpap__product-overview-showcase__tooltip-container a {
    text-decoration: none;
    color: var(--cpap-text-text-gray);
    font-size: var(--bs-body-font-size);
    line-height: var(--bs-body-line-height-17);
    font-weight: var(--bs-body-font-weight);
  }
  .cpap__product-overview-showcase__prescription-required-cta .prescription-required-wrap {
    background: var(--cpap-primary-beige);
    border-radius: 16px;
    padding: 16px 16px 16px 20px;
    gap: 20px;
  }
  .cpap__product-overview-showcase__prescription-required-cta .prescription-required-contain {
    flex: 1;
  }
  .cpap__product-overview-showcase__prescription-required-cta .prescription-required-contain span {
    margin-right: 12px;
  }
  .cpap__product-overview-showcase__prescription-required-cta .btn-learn-more {
    border: none;
    background: transparent;
  }
  .cpap__product-overview-showcase__prescription-required-cta .btn-learn-more::before {
    content: '';
    position: absolute;
    bottom: -4px;
    height: 1px;
    width: 100%;
    background: var(--cpap-primary-orange);
  }
  @media (max-width: 1200.98px) {
    .cpap__product-overview-showcase__hero .product-overview-main h1 sup {
      top: -60px;
      right: 10px;
    }
    .cpap__product-overview-showcase__hero
      .tooltip-section:hover
      .cpap__product-overview-showcase__tooltip-popover {
      display: none;
    }
    .cpap__product-overview-showcase__hero .product-overview-main-image {
      margin-top: 0;
      margin-bottom: 0;
    }
  }
  @media (max-width: 767.98px) {
    .cpap__product-overview-showcase__hero h1 {
      margin-bottom: 20px;
      margin-left: -7px;
      margin-right: -20px;
    }
    .cpap__product-overview-showcase__hero .buy-now-btn {
      margin-right: 0;
      margin-bottom: 8px;
    }
    .cpap__product-overview-showcase__hero .cpap__product-overview-showcase__reviews-container {
      margin-bottom: 0;
    }
    .tooltip-section .cpap__product-overview-showcase__tooltip-popover,
    .tooltip-section:hover .cpap__product-overview-showcase__tooltip-popover {
      display: none;
    }
    .cpap__product-overview-showcase__prescription-required-cta .prescription-required-wrap {
      padding: 8px 28px 8px 16px;
      gap: 16px;
    }
    .cpap__product-overview-showcase__prescription-required-cta
      .prescription-required-contain
      span {
      font-size: var(--bs-body-font-size) !important;
      line-height: var(--bs-body-line-height-17) !important;
      margin-right: 0;
    }
    .cpap__product-overview-showcase__container
      .cpap__product-overview-showcase__hero.prescription-required-top {
      padding-bottom: 24px;
    }
    .cpap__product-overview-showcase__container:before {
      filter: blur(80px);
      height: 225px;
    }
    .cpap__product-overview-showcase__hero .product-overview-main-image {
      margin-bottom: -15px;
      min-height: auto;
      height: auto;
    }
  }
  @media (max-width: 374.98px) {
    .cpap__product-overview-showcase__hero .product-overview-main h1 sup {
      top: -40px;
      font-size: var(--bs-body-line-height-32);
    }
  }

  .cpap__product-overview-showcase__text-heading {
    font-size: 170px;
    line-height: 191.01px;

    @media screen and (max-width: 1200px) {
      font-size: 80px;
      line-height: 80px;
    }

    @media screen and (max-width: 374.98px) {
      font-size: 60px;
      line-height: 60px;
    }
  }

  .cpap__product-overview-showcase__widened-cta-button {
    display: inline-block;
    padding: 7px 23px;

    &.cpap__flyout-product-showcase-button {
      display: flex;
      align-items: center;
      justify-content: center;

      span {
        font: 700 var(--cpap-typography-font-lg);
        display: inline-block;
        margin-left: 3px;
      }
    }
  }

  .cpap__product-overview-showcase__tag-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
    gap: 2rem;
    margin-bottom: 20px;

    > div {
      max-height: 100%;
      width: 100%;
      max-width: 500px;
    }
  }

  @media (min-width: 768px) {
    .cpap__product-overview-showcase__tag-container {
      flex-wrap: wrap;
      flex-direction: row;
      align-items: stretch;
      gap: 2rem;

      > div {
        width: calc(100% / 2 - 1rem);
        max-width: calc(100% / 2 - 1rem);

        &:nth-child(3) {
          width: calc(100%);
          max-width: calc(100%);

          > div {
            width: 100%;
          }
        }
      }
    }
  }

  @media (min-width: 768px) {
    .cpap__product-overview-showcase__tag-container.cpap__product-overview-showcase__tag-container--has-rx-required-tag {
      justify-content: space-between;
    }
  }

  @media (min-width: 1024px) {
    .cpap__product-overview-showcase__tag-container {
      flex-wrap: nowrap;

      > div {
        width: calc(100% / 3);
        max-width: calc(100% / 3);

        &:nth-child(3) {
          width: calc(100% / 3);
          max-width: calc(100% / 3);

          > div {
            width: 100%;
          }
        }
      }
    }
  }

  .showcase-payment-terms {
    color: var(--bs-body-color);
    font-weight: 600;
    max-width: 500px;
    text-align: center;
    margin: 0 auto;
    margin-top: 2rem;
  }

  .cpap__product-overview-showcase__tag-container shopify-payment-terms {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 500;

    @media (min-width: 768px) {
      font-size: 16px;
    }
  }

  .showcase-payment-terms-tag,
  [data-yotpo-instance-id='730005'],
  .yotpo-product-points-widget {
    background-color: var(--cpap-primary-beige);
    border-radius: 16px;
  }

  [data-yotpo-instance-id='730005']:has(> div + div:not([v-cloak])) > div:first-child {
    display: none;
  }

  .yotpo-product-points-widget--preloader {
    .yotpo-product-points-widget-logged-out-view,
    .yotpo-product-points-widget-logged-in-view {
      animation: cpap-loading-fade 2s infinite;
    }
  }

  .yotpo-product-points-widget,
  .showcase-payment-terms-tag {
    padding: 16px;
    display: flex;
    align-items: center;
  }

  .showcase-payment-terms-tag {
    padding: 1.5rem 2rem 1.5rem 2.5rem;
    color: var(--bs-body-color);
    font-weight: 600;
    text-align: center;
  }
  .yotpo-product-points-widget {
    gap: 12px;
    padding-left: 1rem;
    height: 100%;
  }

  .yotpo-widget-clear {
    margin-left: 0;
    padding-left: 0;
  }

  .yotpo-product-points-widget-potential-earning-points {
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    font-family: 'Rand';
    color: var(--bs-body-color);
    font-weight: 600;
    margin-bottom: 0 !important;
    gap: 2rem;
    align-items: center;
    display: flex;
  }

  .yotpo-product-points-widget-icon {
    background-color: var(--cpap-accent-light-blue);
    padding: 8px;
    border-radius: 8px;
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 99px;

    svg {
      transform: scale(1.35);
    }
  }

  .yotpo-product-points-widget-icon svg {
    fill: var(--bs-body-color);
    width: 1.2em;
    height: 1.2em;
  }

  .yotpo-product-points-widget-logged-out-view,
  .yotpo-product-points-widget-logged-in-view {
    color: var(--bs-body-color);
    font-weight: 500;
    font-family: 'Rand';
    font-size: 14px;

    @media (min-width: 768px) {
      font-size: 16px;
    }
  }

  .yotpo-product-points-widget-points-amount {
    text-decoration: none;
    font-style: normal;
    font-weight: 500;
    font-family: 'Rand';
  }

  .yotpo-product-points-widget-link {
    text-decoration: underline;
    font-weight: 400;
    font-style: normal;
    font-family: 'Rand';
    color: var(--cpap-primary-orange) !important;
  }
}
