.cpap__blog-article {
  &.page-width {
    padding: 0;
  }

  /* 👇 These are all styles injected from the Bloggy Shopify app and therefore can not utilize the BEM naming convention. */
  #bloggy--article {
    max-width: 688px;
    padding: 0 20px;
    margin: 0 auto !important;
    margin-top: 48px !important;
    color: var(--cpap-text-text-gray);

    @media (max-width: 992px) {
      margin-top: 32px !important;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      color: var(--cpap-primary-soft-black);
    }

    br {
      display: none;
    }

    .padding_vertical--small {
      padding: 24px !important;
    }

    .bggle_text {
      border-radius: 16px;
    }

    .bggle--block {
      margin-bottom: 40px !important;

      h1 {
        font: 500 var(--cpap-typography-font-xl);
      }

      p {
        font-weight: 400;
        font-size: 17px;
        line-height: 26px;
        color: var(--cpap-text-text-gray);
        margin-bottom: 24px !important;

        &:last-child {
          margin-bottom: 0 !important;
        }

        a {
          font-weight: 500;
          text-decoration: underline !important;
        }

        &.cpap-h3 {
          color: var(--cpap-primary-soft-black);
          font: 500 var(--cpap-typography-font-xl);
        }

        &.cpap-h1 {
          font: 500 var(--cpap-typography-font-xl);
        }
      }
      a {
        &:visited {
          color: var(--cpap-primary-soft-black) !important;
        }
      }
      h3,
      h1 {
        color: var(--cpap-primary-soft-black);
        font: 500 var(--cpap-typography-font-xl);
        margin-bottom: 24px;
      }
      ul {
        padding-left: 14px !important;
        margin: 24px 0;

        &:last-child {
          margin-bottom: 0;
        }
        li {
          font-weight: 400;
          font-size: 17px;
          line-height: 26px;
        }
      }
      ol {
        padding: 0 !important;
        padding-left: 14px !important;
        list-style-type: inside !important;
        margin: 24px 0;

        &:last-child {
          margin-bottom: 0;
        }
        li {
          font-weight: 400;
          font-size: 17px;
          line-height: 26px;
        }
      }
      img {
        &.fr-fic {
          margin: 0 !important;
        }
      }
      table {
        margin: 0;
        padding: 0;
        border: none;

        th,
        td {
          color: var(--cpap-primary-soft-black);
          font-weight: 400;
          font-size: 14px;
          line-height: 17px;
          text-align: center;
          padding: 19.5px;
        }

        tr {
          border-bottom: 1px solid rgba(46, 46, 46, 0.2);
        }
        th {
          &:first-child {
            border-right: 1px solid rgba(46, 46, 46, 0.2);
          }
        }
        thead {
          background: var(--cpap-primary-beige);
          th {
            font-weight: 500;
            background: var(--cpap-primary-beige);
          }
        }
        tbody {
          tr {
            background: var(--cpap-primary-white);
            &:last-child {
              border: none;
              border-color: transparent;
            }
            td {
              &:first-child {
                border-right: 1px solid rgba(46, 46, 46, 0.2);
              }
            }
          }
        }
      }
      .fr-fic.fr-dib {
        width: auto;
        height: auto;
        transform: translate(0, -3px);
        margin-right: 3px !important;
        display: inline-block;
      }
      p {
        u {
          font-weight: 500;
          font-size: 16px;
          line-height: 24px;
          color: var(--cpap-text-text-gray);
        }
      }
    }

    .bggle_code.is-overflow {
      @media (max-width: 992px) {
        margin: 0 -20px;
        padding: 0 20px;
        overflow-x: auto;
        &.not-overflow {
          overflow-x: inherit;
          margin: 0;
          padding: 0;
          .table-box {
            overflow: inherit;
            min-width: inherit;
            border: none;
          }
          .table-left-heading {
            min-width: inherit;
            margin-right: -20px;
            border: 1px solid var(--cpap-stroke-gray);
            border-radius: 0;

            border-radius: 16px 0 0 16px;
            overflow: hidden;
          }
        }
      }
    }
    .table-box {
      border: 1px solid var(--cpap-stroke-gray);
      border-radius: 16px;
      overflow: hidden;
      @media (max-width: 992px) {
        min-width: 648px;

        &::-webkit-scrollbar {
          width: 100%;
          height: 2px;
          background-color: rgba(255, 96, 10, 0.2);

          border-radius: 10px;
          display: none;
        }
        &::-webkit-scrollbar-track {
          display: none;
        }
        &::-webkit-scrollbar-thumb {
          background-color: #ff600a;
          border-radius: 10px;
          height: 2px;
          display: none;
        }
      }
    }
    .table-left-heading {
      display: flex;
      min-width: 648px;
      table {
        min-width: auto;
      }
      .table1 {
        width: 25%;
        float: left;
        @media (max-width: 992px) {
          width: 162px;
        }

        th,
        td {
          font-weight: 500;
          background: var(--cpap-primary-beige);
        }
      }
      .table2 {
        width: 75%;
        overflow: auto;
        @media (max-width: 992px) {
          width: calc(100% - 162px);
        }
        table {
          width: 100%;
          @media (max-width: 992px) {
            width: max-content;
          }
          thead {
            background: none;
          }
          th {
            background: none;
            font-weight: 400;
            @media (max-width: 992px) {
              min-width: 162px;
              background: var(--cpap-primary-white);
            }
          }
        }
      }
    }
    .fact-checked {
      text-align: center;
      position: relative;
      padding-bottom: 15px;
      a {
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
        display: inline-block;
        padding-left: 32px;
        position: relative;
        &:before {
          content: '';
          width: 24px;
          height: 24px;
          background-image: url('./Search-Icon.svg');
          background-repeat: no-repeat;
          background-size: contain;
          background-position: center;
          position: absolute;
          top: 50%;
          left: 0;
          transform: translate(0, -50%);
          z-index: 1;
        }
        &:hover {
          @media (min-width: 768.5px) {
            opacity: 0.7;
          }
          & + .fact-checked-text {
            opacity: 1;
            visibility: visible;
          }
        }
        &:active {
          opacity: 0.7;
        }
        span {
          text-decoration: underline;
        }
      }
      .fact-checked-text {
        background: var(--cpap-primary-beige);
        padding: 8px 16px;
        border-radius: 16px;
        top: 100%;
        left: 50%;
        width: 255px;
        z-index: 1;
        transform: translate(-50%, 0);
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s;
        position: absolute;
        &:before {
          content: '';
          width: 15px;
          height: 15px;
          background-image: url('./Polygon-3.svg');
          background-repeat: no-repeat;
          background-size: contain;
          background-position: center;
          position: absolute;
          top: -11px;
          left: 50%;
          transform: translate(-50%, 0);
          z-index: 1;
        }
        p {
          font-weight: 500;
          font-size: 14px;
          line-height: 17px;
          color: var(--cpap-primary-soft-black);
          margin: 0;
        }
      }
    }
    .bggle_author {
      padding-top: 32px;

      display: flex;
      column-gap: inherit;
      + .bggle_author {
        border-top: 1px solid var(--cpap-stroke-gray);
      }
      .bggle_image--container {
        width: 64px !important;
        position: static !important;
        height: auto !important;
        display: block !important;
        img {
          width: 100% !important;
          height: 64px !important;
          border-radius: 50% !important;
          object-fit: cover !important;
        }
      }
      .bggle_text--container {
        width: calc(100% - 64px) !important;
        padding-left: 32px !important;
        display: block !important;
        p {
          color: var(--cpap-primary-soft-black);
          font: 500 var(--cpap-typography-font-md) !important;
          margin-bottom: 8px !important;
        }
        div {
          p {
            color: var(--cpap-text-text-gray);
            &:last-child {
              margin-bottom: 0 !important;
            }
          }
        }
      }
    }
    .bggle_table-of-content {
      padding: 24px !important;
      background: var(--cpap-primary-beige) !important;
      border-radius: 16px !important;
      border: 1px solid var(--cpap-stroke-gray) !important;

      details[open] {
        summary {
          &:before {
            transform: translate(0, -50%) rotate(-90deg);
          }
        }
      }
      details {
        summary {
          padding-left: 28px;
          position: relative;
          cursor: pointer;
          &: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: 16px;
            position: absolute;
            top: 50%;
            left: 0;
            transform: translate(0, -50%) rotate(90deg);
            z-index: 1;
            pointer-events: none;
            color: var(--cpap-primary-soft-black);
            transition: all 0.2s;
          }
          svg {
            display: none;
          }
          p {
            font: 500 var(--cpap-typography-font-lg);
            color: var(--cpap-primary-soft-black);
            margin: 0;
          }
        }
        .fd--column {
          padding: 0 !important;
          a {
            margin-bottom: 24px !important;
            &:first-child {
              margin-top: 24px;
            }
            &:last-child {
              margin-bottom: 0 !important;
            }
          }
        }
        a {
          font-size: 14px;
          line-height: 17px;
          transition: all 0.2s;
          padding: 0 !important;
          color: var(--cpap-primary-soft-black);
          &:hover {
            @media (min-width: 768.5px) {
              opacity: 0.7;
            }
          }
          &:active {
            opacity: 0.7;
          }
        }
      }
    }
    .bggle--key-takeaways {
      background: #394e67 !important;
      border-radius: 16px !important;
      padding: 24px !important;
      @media (max-width: 992px) {
        padding: 16px !important;
      }
      h3 {
        text-align: center !important;
        font: 500 var(--cpap-typography-font-xl);
        color: var(--cpap-primary-white) !important;
        margin-bottom: 16px !important;
      }
      .key-takeaways-box {
        border-radius: 16px !important;
        background: #bff1fc !important;
        padding: 24px !important;
        ul {
          margin: 0;
          padding: 0;
          @media (max-width: 992px) {
            padding-left: 24px !important;
          }
          li {
            color: #394e67;
            font: 500 var(--cpap-typography-font-md);
            margin: 0;
          }
        }
      }
    }
    .bggle_image {
      img {
        border-radius: 8px;
        margin-bottom: 0px;
        display: block;
      }
      .bggle_image-source {
        font-weight: 400;
        font-size: 14px;
        line-height: 17px;
        color: var(--cpap-primary-soft-black);
        margin-top: 16px;
        font-style: normal;
      }
    }
    .bggle_button {
      a {
        color: var(--cpap-primary-soft-black) !important;
        font-weight: 700 !important;
        font-size: 14px !important;
        line-height: 17px !important;
        padding: 9px 24px !important;
        background: var(--cpap-primary-white) !important;
        border-radius: 28px !important;
        &:hover {
          @media (min-width: 768.5px) {
            background: var(--cpap-overlay-utility-orange) !important;
            border-color: var(--cpap-primary-orange) !important;
            color: var(--cpap-primary-soft-black) !important;
          }
        }
        &:active {
          background: var(--cpap-overlay-utility-orange) !important;
          border-color: var(--cpap-primary-orange) !important;
          color: var(--cpap-primary-soft-black) !important;
        }
      }
    }
    .bggle_text-with-image,
    .bggle_text-with-video {
      padding: 24px 24px 24px 40px !important;
      display: flex;
      gap: 0 !important;
      justify-content: space-between;
      @media (max-width: 768px) {
        display: block !important;
        text-align: center;
        padding: 24px 20px 88px 20px !important;
        position: relative;
      }
      h3 {
        color: #394e67;
        margin-bottom: 16px;
      }
      p {
        color: #394e67;
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 16px !important;
        &:last-child {
          margin-bottom: 0;
        }
      }
      .bggle_button {
        margin-top: 24px !important;
        @media (max-width: 768px) {
          position: absolute;
          bottom: 24px;
          left: 0;
          width: 100%;
          text-align: center;
          padding: 0 40px;
        }
        a {
          padding: 11.5px 16px !important;
          border: none !important;
          min-width: 100px !important;
          text-align: center;
          @media (max-width: 768px) {
            width: 100%;
            display: block;
          }
        }
      }
      .bggle_text--container {
        width: calc(50% - 10px);
        max-width: 256px;
        @media (max-width: 768px) {
          width: 100%;
          max-width: 100%;
          margin-bottom: 24px;
        }
      }
      .bggle_image--container {
        width: calc(50% - 10px);
        max-width: 256px;
        position: static !important;
        @media (max-width: 768px) {
          width: 100%;
          max-width: 100%;
          padding: 0 20px;
        }
        img {
          border-radius: 8px;
          @media (max-width: 768px) {
            width: 100% !important;
          }
        }
      }
    }
    .bggle_text-with-video {
      .bggle_text--container {
        padding-top: 71px;
        img {
          margin-bottom: 1px !important;
        }
        p {
          margin: 0 !important;
        }
        .bggle-font {
          margin-bottom: 16px !important;
        }
        .bggle_button {
          margin-top: 40px !important;
        }
      }
      .bggle_image--container {
        position: static;
        video {
          height: 100%;
          border-radius: 8px;
          object-fit: cover;
        }
      }
    }

    .bggle_double-column {
      padding: 0 !important;
      background: none !important;
      column-gap: 16px !important;
      @media (max-width: 767px) {
        column-gap: 12px !important;
      }
      & > div {
        background: var(--cpap-primary-beige);
        border-radius: 8px;
        padding: 24px;
        @media (max-width: 992px) {
          padding: 16px;
        }
        h1 {
          display: flex;
          align-items: center;
          margin-bottom: 16px;
          @media (max-width: 992px) {
            margin-bottom: 24px;
          }
          img.fr-fic {
            width: 20px;
            display: inline-block;
            margin: 0 !important;
            margin-left: 12px !important;
          }
        }
        ul {
          margin: 0 !important;

          padding: 0 !important;
          padding-left: 22px !important;
          li {
            margin: 0 !important;

            color: var(--cpap-primary-soft-black);
            position: relative;
            font: var(--cpap-typography-font-s-bold);
            margin-bottom: 16px !important;
            &:last-child {
              margin-bottom: 0;
            }
          }
        }
      }
    }
    .bggle_double-images {
      gap: 16px !important;
      & > div {
        width: calc(50% - 8px) !important;
      }
      img {
        border-radius: 8px;
      }
    }
    .bggle_social {
      margin: 0 -8px;

      .flex {
        @media (max-width: 768px) {
          margin-bottom: -16px;
        }
      }

      .bggle_button {
        padding: 0 8px !important;
        width: 25% !important;
        display: block !important;
        margin: 0;
        @media (max-width: 768px) {
          width: 50% !important;
          margin-bottom: 16px;
        }
        .bggle_button-link {
          margin: 0 !important;
          padding: 8px 16px !important;
          color: var(--cpap-primary-white) !important;
          font-weight: 500 !important;
          font-size: 18px !important;
          line-height: 24px !important;
          border-radius: 8px !important;
          min-height: 48px;
          @media (max-width: 768px) {
            justify-content: center;
          }
          span {
            margin-left: 16px !important;
          }
          &.facebook {
            background: #0e74de !important;
            svg {
              width: 16px !important;
              height: auto !important;
            }
          }
          &.pinterest {
            background: #db0221 !important;
            svg {
              width: 24.78px !important;
              height: auto !important;
            }
          }
          &.twitter {
            background: #1d99e5 !important;
            svg {
              width: 32px !important;
              height: auto !important;
            }
          }
          &.email {
            background: #989898 !important;
            svg {
              width: 32px !important;
              height: auto !important;
            }
          }
          &:hover {
            @media (min-width: 768.5px) {
              opacity: 0.7;
            }
          }
          &:active {
            opacity: 0.7;
          }
        }
      }
    }
    .bggle_product-slider {
      .bggle_product-container {
        padding-right: 24px !important;
        @media (max-width: 768px) {
          padding-right: 19px !important;
        }
        .bloggle_product--img {
          margin-bottom: 16px !important;
        }
        .bloggle_product--infos {
          margin-bottom: 16px !important;
          .bloggle_product--title {
            color: var(--cpap-primary-soft-black) !important;
            font-size: 14px !important;
            line-height: 17px !important;
            font-weight: 500 !important;
            margin-bottom: 16px !important;
          }
          .jc--center {
            .bggle--compare {
              color: var(--cpap-primary-soft-black) !important;
              font-size: 14px !important;
              line-height: 17px !important;
              font-weight: 500 !important;
              margin: 0 !important;
              margin-right: 4px !important;
              text-decoration: none !important;
            }
            .bggle--price {
              color: var(--cpap-text-text-gray) !important;
              font-size: 14px !important;
              line-height: 17px !important;
              font-weight: 400 !important;
              margin: 0 !important;
              text-decoration: line-through !important;
            }
          }
        }
        .btn {
          font-weight: 700 !important;
          font-size: 18px !important;
          line-height: 24px !important;
          padding: 16px !important;
          text-align: center !important;
          color: var(--cpap-primary-white) !important;
          width: 100%;
          background: var(--cpap-primary-orange) !important;
          &:hover {
            @media (min-width: 768.5px) {
              background: var(--cpap-overlay-utility-orange) !important;
              color: var(--cpap-primary-soft-black) !important;
            }
          }
          &:active {
            background: var(--cpap-overlay-utility-orange) !important;
            color: var(--cpap-primary-soft-black) !important;
          }
        }
      }
    }
    .tns-nav {
      button {
        width: 12px !important;
        height: 12px !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        margin: 0 4px !important;
        min-width: initial !important;
        max-height: initial !important;
        background: #ffefe6 !important;
        &.tns-nav-active {
          background: var(--cpap-primary-orange) !important;
        }
      }
    }
  }
}
