.ingredients-page,
.products-page {
  margin: 64px 0;
}

.ingredients-page .h1 span {
  color: #039855;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.ingredients-container,
.products-container {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 32px 0;
}

.ingredients-container {
  padding-top: 48px;
  margin-top: 68px;
  border-top: 1px solid #d0d5dd;
}

.ingredients-page .metrics__card-info,
.products-page .metrics__card-info {
  padding: 0;
  margin-top: 24px;
}

.ingredients-page .metrics__card,
.products-page .metrics__card {
  padding: 16px;
  background-color: #f9fafb;
  height: 100%;
  cursor: pointer;
}

.ingredients-page .metrics__tab-content__item,
.products-page .metrics__tab-content__item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ingredients-page .metrics__tab-content__item p,
.products-page .metrics__tab-content__item p {
  margin-bottom: 8px;
}

.ingredients-page .evidence-quality-garth,
.products-page .evidence-quality-garth {
  position: absolute;
  top: 24px;
  right: 38px;
  cursor: pointer;
  display: block;
}

.ingredients-page .metrics__tab-header__item img,
.products-page .metrics__tab-header__item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  background-color: transparent;
  border-radius: 0px;
  display: inline-block;
}

.ingredients-page .metrics__tab-header__item,
.products-page .metrics__tab-header__item {
  font-family: 'Lato';
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: initial;
}

.ingredients-page .metrics__tab-header {
  flex-wrap: wrap;
}

.hair-loss-type__box {
  display: flex;
  gap: 6px;
  width: 100%;
}

.ingredients-page .metrics__card>img,
.products-page .metrics__card>img {
  display: inline-block;
  height: 240px;
  object-fit: contain;
  border-radius: 6px;
  background-color: #fff;
}

.products-page .metrics__tab-header .h3 {
  margin-left: auto;
  font-family: 'Lato';
  font-size: 22px;
  line-height: 24px;
}

.products-page .metrics__tab-header .h3 span {
  font-family: 'Open Sans';
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #667085;
}

.products-page .metrics__tab-content__item .content__item-hover {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  margin-top: 16px;
  margin-bottom: 16px;
  border-radius: 6px;
  transition: all 200ms linear;
  padding: 8px 0px;
}

.products-page .content__item-hover:hover {
  background-color: #ff7c32;
  padding: 8px 12px;
}

.products-page .content__item-hover:hover h5 span,
.products-page .content__item-hover:hover h5 {
  color: #fff;
}

.products-page .content__item-hover svg {
  transition: all 200ms linear;
  min-width: 32px;
}

.products-page .content__item-hover:hover svg {
  transform: rotate(45deg);
}

.products-page .content__item-hover:hover svg path {
  stroke: #fff;
}

.products-page .metrics__tab-content,
.ingredients-page .metrics__tab-content {
  height: 100%;
}

.products-page .metrics__graph.rp,
.ingredients-page .metrics__graph.rp {
  margin-top: auto;
}

.products-page .metrics__tab-content__item .content__item-hover span {
  color: #98a2b3;
  font-family: 'Open Sans';
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  display: block;
}

.ingredients-popup,
.product-popup {
  position: fixed;
  max-width: 918px;
  height: 80vh;
  width: calc(100% - 32px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  z-index: 41;
  display: none;
  overflow: hidden;
  border-radius: 6px;
}

.product-popup {
  padding: 24px 14px 24px 24px;
  width: calc(100vw - 128px);
  max-width: 1300px;
  height: calc(100vh - 128px);
  z-index: 40;
}

.ingredients-popup__close-modal {
  top: 15px;
  left: 15px;
  width: 20px;
  cursor: pointer;
  height: 20px;
  position: absolute;
  z-index: 4;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-popup__close-modal {
  position: absolute;
  cursor: pointer;
  right: 24px;
  top: 24px;
  transition: transform 0.2s linear;
  transform: rotate(0);
  z-index: 1;
  padding: 10px;
}

.ingredients-popup__close-modal:hover,
.product-popup__close-modal:hover {
  transform: rotate(90deg);
}

.ingredients-popup__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ingredients-popup__item+.ingredients-popup__item {
  padding-top: 24px;
  border-top: 1px solid #dddcdc;
  margin-top: 24px;
}

.ingredients-popup__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.ingredients-popup__image img {
  max-width: 100%;
}

.ingredients-popup__image {
  margin-left: -254px;
  width: calc(100% - 274px);
}

.ingredients-popup__content {
  width: 516px;
  overflow-y: auto;
  align-self: flex-start;
  height: 100%;
  padding: 56px 32px 56px 0;
}

.mechanisms {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mechanisms-item {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid #fff;
  background: #173851;
  color: #fff;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.mechanisms-item svg {
  margin-right: 4px;
}

.ingredients-popup__item>a {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: 'Open Sans';
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  color: #66947d;
  text-decoration: underline;
}

.ingredients-popup__item a:hover {
  text-decoration: none;
}

.ingredients-popup__item a img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.ingredients-popup__item ul li,
.ingredients-popup__item ul {
  list-style: inherit;
}

.ingredients-popup__item ul {
  padding-left: 25px;
}

.ingredients-popup__item ul li {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: #41617e;
  margin: 0;
}

.ingredients-popup__item .metrics__graph,
.ingredients-popup__item .evidence-quality-garth {
  border-radius: 4px;
  background: #f9f9f9;
  padding: 16px;
  margin: 0;
  height: 112px;
  gap: 8px;
  color: #1a4360;
  font-size: 18px;
  font-weight: 400;
  line-height: 150%;
  font-family: 'DM Serif Display', serif;
}

.ingredients-popup__item .metrics__graph .metrics__graph-container {
  max-width: 180px;
  margin-left: auto;
  cursor: pointer;
}

.ingredients-popup__item .evidence-quality-garth {
  display: flex;
  position: static;
  align-items: center;
  gap: 8px;
}

.ingredients-popup__item .evidence-quality-garth__tooltip {
  margin: 0;
}

.ingredients-popup__item .evidence-quality-garth .percent {
  margin: 0 0 0 auto;
}

.product-popup__wrapper {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  height: 100%;
  overflow-y: auto;
}

.product__modal-aside {
  background: #f9fafb;
  border-radius: 4px;
  padding: 16px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 304px;
}

.product-popup .metrics__card {
  padding: 0;
  cursor: initial;
  height: auto;
}

.product-popup .metrics__card:hover {
  box-shadow: none;
}

.products-page .evidence-quality-garth {
  top: 17px;
  right: 12.5px;
}

.products-page .learn_more_button {
  align-items: center;
  color: #f18e3d;
  cursor: pointer;
  display: flex;
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  gap: 8px;
  line-height: 22px;
  text-decoration: none;
  text-transform: uppercase;
  margin-top: 8px;
}

.products-page .learn_more_button:hover,
.products-page .learn_more_button:hover path {
  color: #f9ae3e;
  stroke: #f9ae3e;
}

.product-popup__wrapper::-webkit-scrollbar,
.ingredients-popup__content::-webkit-scrollbar {
  width: 8px;
  border-radius: 8px;
}

.product-popup__wrapper::-webkit-scrollbar-track,
.ingredients-popup__content::-webkit-scrollbar-track {
  background: #f9fafb;
}

.product-popup__wrapper::-webkit-scrollbar-thumb,
.ingredients-popup__content::-webkit-scrollbar-thumb {
  background: #eaecf0;
  border-radius: 8px;
}

.product__modal-line {
  margin: 28px 0;
  height: 1px;
  background-color: #dddcdc;
}

.product__modal-title {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 36px;
  color: #173851;
}

.takeaways__container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 24px;
  margin-top: 24px;
}

.takeaways__container>div {
  width: calc(50% - 12px);
}

.takeaways__title {
  align-items: center;
  color: #173851;
  display: flex;
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  gap: 8px;
  line-height: 28px;
  margin-bottom: 8px;
}

.takeaways__container li {
  color: #545454;
  font-family: 'Open Sans', serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 28px;
  list-style: inherit;
}

.takeaways__container ul {
  margin: 0;
  padding-left: 30px;
  list-style: inherit;
}

.product__modal-content {
  flex-grow: 1;
  max-width: calc(100% - 320px);
  padding-right: 10px;
}

.cost__rank {
  text-align: center;
  border: 1px solid #dddcdc;
  border-radius: 4px;
  padding: 16px;
  color: #545454;
  font-family: Open Sans;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 28px;
  align-items: center;
  margin-top: 25px;
}

.GradientBarChart_chartWrapper {
  height: 60px;
  width: calc(100% - 12px);
}

.GradientBarChart_chartBar {
  background: linear-gradient(90deg, #95ce7b 0, #f18e3d 50%, #ef7a7d);
  height: 30px;
  margin: 8px 0;
  position: relative;
  width: 100%;
}

.GradientBarChart_chartMarker {
  background-color: #173851;
  border-left: 2px solid #dddcdc;
  border-right: 2px solid #dddcdc;
  height: calc(100% + 4px);
  position: absolute;
  top: -2px;
  transform: translate(-50%);
  width: 8px;
}

.GradientBarChart_chartBarLabel {
  border-bottom: 2px solid #dddcdc;
  position: relative;
  width: 100%;
}

.GradientBarChart_chartBarLabelItem {
  font-size: 12px;
  position: absolute;
  top: 4px;
  transform: translate(-50%);
}

.GradientBarChart_chartBarLabelItem:before {
  background-color: #dddcdc;
  content: '';
  height: 6px;
  left: 50%;
  position: absolute;
  top: -4px;
  transform: translate(-50%);
  width: 2px;
}

.GradientBarChart_chartBarLabelItem:first-child {
  left: 0;
}

.GradientBarChart_chartBarLabelItem:nth-child(2) {
  left: 30%;
}

.GradientBarChart_chartBarLabelItem:nth-child(3) {
  left: 70%;
}

.GradientBarChart_chartBarLabelItem:nth-child(4) {
  left: 100%;
}

.products-page .product-popup .metrics__tab-header__item img {
  width: 20px;
  height: 20px;
}

.product__modal-description {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: gray;
  margin-top: 8px;
}

.product__table-container {
  box-shadow: 0 4px 10px #8c8b8b26;
  margin-top: 24px;
  overflow-x: auto;
}

.product__table-wrapper {
  min-width: 880px;
}

.product__table-titles {
  background-color: #173851;
  display: flex;
}

.product__table-title {
  align-items: center;
  color: #fff;
  display: flex;
  flex: 1 1;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  gap: 4px;
  line-height: 150%;
  padding: 12px;
}

.product__table-title+.product__table-title {
  border-left: 1px solid #dddcdc;
}

.product__table-title button {
  background: transparent;
  border: none;
  cursor: pointer;
  height: 24px;
  margin: 0;
  padding: 0;
}

.product__table-title button:nth-child(1) {
  margin-left: auto;
}

.product__table-title button svg path {
  fill: #fff;
}

.product__table-title button.active svg path {
  fill: #f18e3d;
}

.product__table-items {
  background-color: #fff;
  display: flex;
  cursor: pointer;
}

.product__table-item {
  align-items: center;
  display: flex;
  flex: 1 1;
  flex-wrap: wrap;
  padding: 16px 12px;
  width: 25%;
  word-break: break-all;
}

.product__table-item.name {
  color: #173851;
  font-family: Open Sans, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
}

.product__table-item:nth-child(2) {
  justify-content: center;
}

.product__table-item+.product__table-item {
  border-left: 1px solid #dddcdc;
}

.product__table-item__category {
  align-items: center;
  color: #173851;
  display: flex;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  gap: 4px;
  line-height: 18px;
  margin-top: 8px;
  width: 100%;
}

.product__table-item__category img {
  height: 24px;
  object-fit: contain;
  width: 24px;
}

.products-page .product__table-wrapper .evidence-quality-garth {
  position: static;
}

.products-page .product__table-wrapper .metrics__graph {
  margin-top: 0;
  width: 100%;
}

.product__table-items:nth-child(odd) {
  background: #f9f9f9;
}

.product__modal-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: none;
  background: #00000073;
  border-radius: 6px;
  z-index: 2;
}

.product__table-container::-webkit-scrollbar {
  height: 8px;
  border-radius: 8px;
}

.product__table-container::-webkit-scrollbar-track {
  background: #f9fafb;
}

.product__table-container::-webkit-scrollbar-thumb {
  background: #eaecf0;
  border-radius: 8px;
}

.lds-default div {
  background-color: #173851 !important;
}

.lds-default {
  position: absolute !important;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ingredients-page .page-description {
  margin-top: 15px;
}

.ingredients-page .page-description a {
  color: #ff7c32;
  text-decoration: underline;
}

.product__table-image {
  position: relative;
}

.product__table-image img {
  max-width: 100%;
  min-height: 388px;
  object-fit: cover;
  object-position: left;
}

.product__table-alert {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 32px;
  border-radius: 12px;
  background-color: #F2F4F7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 632px;
  width: calc(100% - 32px);
}

.product__table-alert h3 {
  font-size: 28px;
  font-weight: 400;
  line-height: 36px;
  text-align: left;
  color: #000000;
  margin-bottom: 12px;
  text-align: center;
}

.product__table-alert p {
  margin: 0 0 32px;
  font-family: ' Open Sans';
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: #000000;
  text-align: center;
}

@media screen and (max-width: 1100px) {
  .product-popup {
    width: calc(100vw - 8px);
  }
}

@media screen and (max-width: 976px) {
  .product-popup__wrapper {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .product__modal-aside {
    position: static;
    width: 100%;
  }

  .product__modal-content {
    max-width: 100%;
  }

  .ingredients-container,
  .products-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 768px) {
  .ingredients-page .h1 br {
    display: none;
  }

  .product-popup {
    height: calc(100vh - 32px);
  }

  .takeaways__container>div {
    width: 100%;
  }

  .ingredients-container,
  .products-container {
    grid-template-columns: 1fr;
  }

  .ingredients-popup__wrapper {
    flex-direction: column;
    overflow: auto;
    padding: 48px;
  }

  .ingredients-popup__image {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .ingredients-popup__image img {
    object-fit: contain;
    max-height: 248px;
  }

  .ingredients-popup__content {
    width: 100%;
    padding: 0;
    overflow: visible;
    padding: 0;
    height: auto;
  }
}

@media screen and (max-width: 400px) {
  .ingredients-popup__wrapper {
    padding: 24px;
  }

  .ingredients-popup__close-modal {
    top: 5px;
    left: 5px;
  }

  .ingredients-popup {
    width: calc(100% - 16px);
    height: 86vh;
  }

  .ingredients-popup__item .metrics__graph {
    flex-wrap: wrap;
    justify-content: center;
  }

  .ingredients-popup__item .metrics__graph .metrics__graph-container {
    margin-left: 0;
    min-width: 130px;
  }
}