.custom-tabs {
  width: 100%;
  padding: 50px 40px;

  .hidden {
    display: none!important;
  }

  #toggle-ingredients {
    margin: 32px auto 0;
    text-align: center;
  }

  @media screen and (max-width: 999px) {
    padding: 40px 0;
  }

  .custom-tabs__container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin: 0 auto;

    @media screen and (max-width: 999px) {
     gap: 40px;
    }
  }

  .custom-tabs__header {
    position: relative;

    @media screen and (max-width: 999px) {
      width: 100%;
      margin: 0 auto;
    }

    .current-tab {
      display: none;
      font-family: var(--heading-font-family), sans-serif;
      font-size: 24px;
      font-style: normal;
      font-weight: 500;
      line-height: 130%; /* 31.2px */
      padding: 15px;
      border: 2px solid #AAB7B8;

      &:hover,
      &.active {
        background-color: #fff;
      }

      @media screen and (max-width: 999px) {
        display: none;
      }
    }
    .custom-tabs__header--inner {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 15px;
      border-bottom: 2px solid var(--Grey, #AAB7B8);

      @media screen and (max-width: 999px) {
        gap: 0;
      }
    }
  }

  .custom-tabs__button {
    position: relative;
    width: calc(100% / 3 - 20px);
    padding: 24px;
    text-align: center;
    color: var(--Blue, #1A2A49);
    font-family: var(--heading-font-family), sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%; /* 31.2px */
    cursor: pointer;

    &.active,
    &:hover {
      &::after {
        content: '';
        display: block;
        border-bottom: 2px solid #1A2A49;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
      }
    }

    @media screen and (max-width: 700px) {
      font-size: 14px;
      width: 100%;
      padding: 16px 0;
      text-align: center;
    }

    @media screen and (max-width: 999px) and (min-width: 701px) {
      font-size: 20px;
    }
  }

  .custom-tabs__tab {
    display: none;
    flex-direction: column;
    padding: 40px 0;

    &.active {
      display: flex;
    }

    @media screen and (max-width: 999px) {
      padding: 0;
    }
  }

  .custom-tabs__tab-title {
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 32px;
    text-align: left;

    @media screen and (max-width: 999px) {
      text-align: center;

      &::after {
        left: 50%;
        transform: translateX(-50%);
      }
    }

    &.text-center {
      text-align: center;

      &::after {
        left: 50%;
        transform: translateX(-50%);
      }
    }

    &::after {
      content: '';
      display: block;
      position: absolute;
      left: 0;
      bottom: 0;
      border-bottom: 1px solid #656E7F;
      width: 256px;

      @media screen and (max-width: 999px) {
        left: 50%;
        transform: translateX(-50%);
      }
    }
  }

  .ingredients-icons {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 100px;

    @media screen and (max-width: 999px) {
      margin-bottom: 60px;
      justify-content: center;
      gap: 16px;
    }

    .ingredients-icons--item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
      width: calc(100% / var(--icons-size) - 32px);

      @media screen and (max-width: 999px) {
        width: 29%;
      }

      img {
        @media screen and (max-width: 700px) {
          max-width: 36px;
          max-height: 36px;
        }
      }

      span {
        color: var(--Blue, #1A2A49);
        text-align: center;
        font-family: "HankenGrotesk-Bold";
        font-size: 18px;
        font-style: normal;
        font-weight: 500;
        line-height: 130%; /* 31.2px */

        @media screen and (max-width: 999px) {
          font-size: 16px;
        }

        @media screen and (max-width: 641px) {
          gap: 10px;
          font-size: 14px;
        }
      }
    }
  }

  .ingredients-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 48px;

    @media screen and (max-width: 1024px) {
      grid-template-columns: minmax(0,1fr);
      gap: 20px;
    }

    .ingredients-list-item--content {
      grid-area: 1 / 1 / 2 / 3;
      padding: 24px;
      background: white;
    }

    .ingredients-list-item {
      display: flex;
      flex-direction: row;
      align-items: center;
      background-color: #fff;
      border-radius: 30px;
      overflow: hidden;
      padding: 40px;
      gap: 16px;

      @media screen and (max-width: 999px) {
        padding: 24px 16px;
        gap: 12px;
        border-radius: 20px;
      }

      .ingredients-list-item--text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        background-color: #fff;

        @media screen and (max-width: 999px) {
          padding: 16px;
        }

        h4 {
          color: var(--Blue, #1A2A49);
          font-family: "HankenGrotesk-Bold";
          font-size: 24px;
          font-style: normal;
          font-weight: 500;
          line-height: 130%; /* 41.6px */
          margin-bottom: 12px;
  
          @media screen and (max-width: 999px) {
            font-size: 20px;
          }
        }
        span {
          display: block;
          color: var(--Grey, #767F92);
          font-family: "HankenGrotesk-Bold";
          font-size: 18px;
          font-style: normal;
          font-weight: 500;
          line-height: 130%; /* 31.2px */
          margin-bottom: 12px;

          @media screen and (max-width: 999px) {
            font-size: 16px;
          }
        }
  
        div {
          color: var(--Blue, #1A2A49);
          font-family: Inter;
          font-size: 16px;
          font-style: normal;
          font-weight: 400;
          line-height: 150%; /* 30px */
          padding-right: 56px;

          @media screen and (max-width: 641px) {
            font-size: 14px;
            padding-right: 0;
          }
        }
      }

      .ingredients-list-item--image {
        flex-shrink: 0;
        position: relative;
        width: 144px;
        height: 144px;

        @media screen and (max-width: 641px) {
          width: 80px;
          height: 80px;
        }

        img {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          object-fit: cover;
          object-position: center;
        }
      }
    }
  }

  .suplement-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;

    @media screen and (max-width: 999px) {
      flex-direction: column;
      gap: 20px;
    }

    .suplement-image {
      position: relative;
      width: 100%;
      height: 680px;
      max-width: 622px;
      border-radius: 30px;
      overflow: hidden;
  
      @media screen and (max-width: 999px) {
        max-width: 100%;
        height: 450px;
      }
  
      &::before {
        content: '';
        display: block;
        padding-top: 82%;
      }
  
      img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
      }
    }

    .suplement-text {
      width: 100%;
      max-width: 100%;
  
      @media screen and (max-width: 999px) {
        max-width: 100%;
      }
    }

    .suplement-accordions {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .suplement-accordions-item {
      background-color: #FFFFFF;
      border-radius: 20px;
      overflow: hidden;
  
      .minus {
        display: none;
      }
  
      &.active {
        .suplement-accordions-item--title {
          background-color: #FFFFFF;
          transition: 0.25s linear;
        }
  
        .plus {
          display: none;
        }
  
        .minus {
          display: flex;
        }
      }
  
      .suplement-accordions-item--title {
        display: flex;
        flex-direction: row;
        gap: 20px;
        align-items: center;
        justify-content: space-between;
        padding: 16px 32px 16px 40px;
        cursor: pointer;
        transition: 0.25s linear;

        @media screen and (max-width: 900px) {
          padding: 12px 12px 12px 16px;
        }
  
        &:hover {
          background-color: #FFFFFF;
          transition: 0.25s linear;
        }
  
        span {
          color: var(--Blue, #1A2A49);
          /* Titles/H3 */
          font-family: var(--heading-font-family), sans-serif;
          font-size: 24px;
          font-style: normal;
          font-weight: 500;
          line-height: 130%; /* 31.2px */
  
          @media screen and (max-width: 900px) {
            font-size: 20px;
          }
        }
  
        div {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 72px;
          height: 72px;
          padding: 20px;
          background-color: #1A2A49;
          transition: 0.25s linear;
          border-radius: 12px;
        }
      }
  
      .suplement-accordions-item--body {
        padding: 5px 100px 20px 40px;

          @media screen and (max-width: 900px) {
            padding: 12px 12px 12px 16px;
          }
  
        .suplement-accordions-item--body-inner {
          margin-top: -10px;
          color: var(--Blue, #1A2A49);
          font-size: 16px;
          font-style: normal;
          font-weight: 400;
          line-height: 150%; /* 24px */

          @media screen and (max-width: 900px) {
            margin-top: 0;
          }

          th,
          td {
            padding: 10px 10px 10px 0 !important;
            vertical-align: top;
          }
        }
      }
    }
  }

  .science-container {
    display: flex;
    flex-direction: column;
    gap: 32px;

    .science-accordions {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .science-accordions-item {
      background-color: #FFFFFF;
      border-radius: 20px;
      overflow: hidden;

      .minus {
        display: none;
      }

      &.active {
        .suplement-accordions-item--title {
          background-color: #FFFFFF;
          transition: 0.25s linear;
        }

        .plus {
          display: none;
        }

        .minus {
          display: flex;
        }
      }

      .science-accordions-item--text-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
      }

      .science-accordions-item--title {
        display: flex;
        flex-direction: row;
        gap: 20px;
        align-items: center;
        justify-content: space-between;
        padding: 48px 72px;
        cursor: pointer;
        transition: 0.25s linear;

        @media screen and (max-width: 900px) {
          padding: 24px 16px;
          gap: 16px;
          align-items: flex-start;
        }

        &:hover {
          background-color: #FFFFFF;
          transition: 0.25s linear;
        }

        span {
          color: var(--Blue, #1A2A49);
          /* Titles/H3 */
          font-family: var(--heading-font-family), sans-serif;
          font-size: 24px;
          font-style: normal;
          font-weight: 500;
          line-height: 130%; /* 31.2px */

          @media screen and (max-width: 900px) {
            font-size: 20px;
          }
        }

        .science-accordions-item--icon {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 72px;
          height: 72px;
          padding: 20px;
          background-color: #1A2A49;
          transition: 0.25s linear;
          border-radius: 12px;
        }
      }

      .body-lg {
        max-width: 900px;
      }

      .science-accordions-item--body {
        padding: 0 64px 64px 64px;

        @media screen and (max-width: 900px) {
          padding: 0 16px 16px 16px;
        }

        .science-accordions-item--body-inner {
          margin-top: -10px;
          color: var(--Blue, #1A2A49);
          font-size: 16px;
          font-style: normal;
          font-weight: 400;
          line-height: 150%; /* 24px */

          @media screen and (max-width: 900px) {
            margin-top: 0;
          }

          .h3 {
            margin-bottom: 24px;

            @media screen and (max-width: 900px) {
              margin-bottom: 12px;
            }
          }

          ul {
            list-style: inside;
          }

          p {
            margin-bottom: 24px;

            @media screen and (max-width: 900px) {
              margin-bottom: 12px;
            }
          }

          tbody tr+tr>*, thead+tbody tr>* {
            border-top-width: 0;
          }

          @media (max-width: 1024px) {
            table, tbody, tr, td {
              display: block;
              width: 100%;
            }

            td {
              box-sizing: border-box;
              width: 100%!important;
              margin-bottom: 10px;
            }

            td img {
              width: 100%!important;
              height: auto;
            }
          }
        }
      }
    }
  }
}