.before-after__description {
  text-align: center;
  padding: 64px 0;
}

.before-after__description p {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: #41617E;
  margin-top: 12px;
}

.stories__wrapper {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px 0 60px;
}

.stories__card {
  padding: 18px;
  border-radius: 18px;
  background-color: #F9FAFB;
  display: flex;
  align-items: center;
  gap: 40px;
  height: auto;
  position: relative;
  scroll-margin-top: 100px;
}

@media screen and (max-width: 1164px) {
  .stories__card {
    gap: 18px;
    height: 100%;
    scroll-margin-top: 32px;
  }
}

@media screen and (max-width: 900px) {
  .stories__card {
    gap: 18px;
    flex-direction: column;
  }
}

.stories__photo {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  min-width: 622px;
  max-width: 622px;
  position: relative;
  justify-content: space-between;
}

@media screen and (max-width: 600px) {
  .stories__photo {
    min-width: 100%;
    max-width: 100%;
  }

  .stories__card-button a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.stories__photo img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
  border-radius: 12px;
  transition: all 200ms ease-out;
}

.stories__photo-container {
  overflow: hidden;
  border-radius: 12px;
  box-sizing: border-box;
  border: 2px solid transparent;
  width: calc(50% - 9px);
}

.stories__photo-container.small {
  width: calc(33% - 12px);
}

.stories__photo-container:hover {
  border: 2px solid rgba(255, 124, 50, 1);
}

.before-after-video-wrap {
  width: 100%;
}

.phh-review-img-lightbox-link {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9;
}

.stories__photo-container:hover img,
.stories__photo-container:focus img {
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}

@media screen and (max-width: 600px) {
  .stories__photo img {
    width: 100%;
    height: 100%;
  }
}

.stories__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stories__info .wprt-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stories__info>div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.badge__container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge__container a {
  transition: all 100ms linear;
}

.badge__container a:hover {
  opacity: 0.8;
}

.badge__item {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 30px;
  padding: 8px 16px;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 14.4px;
  text-transform: uppercase;
  background: #E1FCDA;
  color: #173851;
}

/* tags background color */
.badge__item.female-pattern-hair-loss {
  background-color: #EAD5FE;
}

.badge__item.multivitamin {
  background-color: #FEDF89;
}

.badge__item.standardized-scalp-massages {
  background-color: #FFFFC1;
}

.badge__item.microneedling {
  background-color: #FFDBD7;
}

.badge__item.telogen-effluvium {
  background-color: #FFE6C7;
}

.badge__item.dietary-changes,
.badge__item.alongside-fda-approved-drugs,
.badge__item.without-fda-drugs {
  background-color: #E8ECF2;
}

.badge__item.iron-supplements,
.badge__item.vitamin-d-supplements .badge__item.supplements,
.badge__item.supplements-quercetin-antimicrobial {
  background-color: #EAD5FE;
}

.badge__item.natural-tropicals,
.badge__item.natural-tropicals-stack {
  background-color: #FEF3F2;
}

.badge__item.alopecia-areata {
  background-color: #FFFFD6;
}

.badge__item.probiotics {
  background-color: #FFC7C2;
}

.badge__item.hormone-replacement-therapy {
  background-color: #F7EDFF;
}

.badge__item.topical-minoxidil,
.badge__item.topical-minoxidil-retinoic-acid {
  background-color: #FEF0C7;
}

.badge__item.levothyroxine {
  background-color: #FFE6C7;
}

.badge__item.oral-finasteride {
  background-color: #FFE6C7;
}

.badge__item.lowlevel-laser-therapy {
  background-color: #D1FADF;
}

.badge__item.topical-dutasteride {
  background-color: #EAECF0;
}

.badge__item.scarring-alopecia {
  background-color: #FFDBD7;
}

.badge__item.stimulationbased-therapies {
  background-color: #B6ECA4;
}

.badge__item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.fancybox__slide.has-image>.fancybox__content {
  max-height: 80vh;
}

.stories__photo-container {
  position: relative;
}

.stories__photo-container[data-image-label]::after {
  content: attr(data-image-label);
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 12px;
  padding: 6px 12px;
  background: #C7C7C780;
  border: 1px solid #D0D5DD;
  color: #FFFFFF;
  border-radius: 22px;
  text-transform: uppercase;
  position: absolute;
  left: 12px;
  bottom: 12px;
}

.stories__photo-container:hover::after {
  background-color: rgba(255, 124, 50, 1);
  border-color: rgba(255, 124, 50, 1);
  color: #fff;
}

@media screen and (max-width: 600px) {
  .stories__photo-container {
    width: calc(50% - 9px);
  }
}

.before-after__banner {
  text-align: center;
  padding: 64px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 994px;
  margin: 0 auto;
}

.before-after__banner p {
  font-family: 'Open Sans';
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #173851;
}

.before-after-page .testimonials .testimonials-box {
	height: auto;
}

.before-after-page .testimonials-box .CarouselWidget-prefix .CarouselWidget--topHeader .R-ReviewsList {
	display: flex;
	flex-direction: row;
	gap: 12px;
	height: auto;
}

.before-after-page .testimonials-box .CarouselWidget-prefix .CarouselWidget--topHeader .R-ReviewsList .col {
	display: flex;
	flex-direction: column;
	width: calc(33% - 5px);
	gap: 12px;
	height: 100%;
}

.before-after-page .CarouselWidget-prefix .CarouselWidget .R-ReviewsList .R-ReviewsList__item .item__inner {
	background-color: #fff;
	background-image: none;
	border: 1px solid #d0d5dd;
	transition: all 300ms linear;
}

.before-after-page .CarouselWidget-prefix .CarouselWidget .R-ReviewsList .R-ReviewsList__item .item__inner:hover {
	box-shadow: 0px 2px 4px 0px #0000001a, 0px 8px 8px 0px #00000017, 0px 18px 11px 0px #0000000d,
		0px 33px 13px 0px #00000003, 0px 51px 14px 0px #00000000;
}

.before-after-page .CarouselWidget-prefix .R-XXXLG .R-ReviewsList .R-ReviewsList__item {
	width: 100%;
	flex-basis: 100%;
	padding: 0;
}

@media screen and (min-width: 768px) {
	.before-after-page .CarouselWidget-prefix .R-XXXLG .R-ReviewsList>.R-ReviewsList__item {
		display: none;
	}
}

@media screen and (max-width: 976px) {
	.before-after-page .testimonials-box .CarouselWidget-prefix .CarouselWidget--topHeader .R-ReviewsList .col {
		width: calc(50% - 6px);
	}
}


.before-after-page .testimonials {
  display: none;
}

.before-after__tabs-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.before-after__tabs-buttons button {
  padding: 12px 24px;
  font-family: 'DM Serif Display';
  font-size: 28px;
  font-weight: 400;
  line-height: 36px;
  color: #667085;
  background-color: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  transition: color 300ms ease-out, border-color 300ms ease-out;
  white-space: nowrap;
}

@media screen and (max-width: 600px) {
  .before-after__tabs-buttons {
    gap: 8px;
    justify-content: space-between;
    width: 100%;
  }

  .before-after__tabs-buttons button {
    font-size: 18px;
    line-height: 24px;
  }
}

.before-after__tabs-buttons button:not(.active):hover {
  color: #173851;
  border-color: #D0D5DD;
}

.before-after__tabs-buttons button.active {
  color: #173851;
  border-bottom: 3px solid #FF7C32;
}

.before-after__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

@media screen and (max-width: 1180px) {
  .before-after__nav {
    flex-direction: column;
  }
}

.before-after-page .testimonials {
  padding: 48px 0;
}

.before-after-page .reviews {
  margin: 0;
}

#moreButton {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #D0D5DD;
  font-family: "DM Serif Display", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 27.6px;
  color: #173851;
  cursor: pointer;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 19px;
  transition: all 200ms linear;
  width: calc(33% - 5px);
}

@media screen and (max-width: 991px) {
  #moreButton {
    width: calc(50% - 6px);
  }
}

@media screen and (max-width: 600px) {
  #moreButton {
    width: 100%;
    flex-basis: 100%;
  }
}

#moreButton svg rect,
#moreButton svg path,
#moreButton svg {
  transition: all 200ms linear;
}

#moreButton:hover {
  border-color: #FF7C32;
  color: #FF7C32;
}

#moreButton:hover svg {
  transform: rotate(180deg);
}

#moreButton:hover svg rect {
  fill: #FFE6C7;
}

#moreButton:hover svg path {
  stroke: #FF7C32;
}

.before-after__filters {
  width: 632px;
  display: flex;
  gap: 10px;
}

.custom-select {
  width: 311px;
  position: relative;
}

.custom-select.active {
  z-index: 10;
}

@media screen and (max-width: 768px) {

  .custom-select,
  .before-after__filters {
    width: 100%;
  }

  .before-after__filters {
    flex-direction: column;
  }
}

.custom-select__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #D0D5DD;
  font-family: 'Open Sans';
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: #667085;
  border-radius: 4px;
  padding: 16px;
  cursor: pointer;
}

.custom-select__title svg {
  min-width: 24px;
  transform: rotate(0deg);
  transition: all 100ms linear
}

.custom-select.active .custom-select__title svg {
  transform: rotate(-180deg);
}

.custom-select__dropdown {
  position: absolute;
  border: 1px solid #D0D5DD;
  border-top: none;
  border-radius: 4px;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  z-index: 1;
  width: 100%;
  background-color: #fff;
  padding: 16px;
  top: calc(100% - 16px);
  display: none;
}

.custom-select.active .custom-select__dropdown {
  display: block;
}

.custom-select__dropdown ul li label {
  padding: 8px 4px 8px 24px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Open Sans';
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.custom-select__dropdown ul li label img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.custom-select__dropdown ul li label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  height: 16px;
  width: 16px;
  border: 1px solid #2B4D68;
  border-radius: 4px;
}

.custom-select__dropdown ul li label:hover input~.checkmark,
.custom-select__dropdown ul li label input:checked~.checkmark {
  background-color: #E8ECF2;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-select__dropdown ul li label input:checked~.checkmark:after {
  display: block;
}

.custom-select__dropdown ul li label .checkmark:after {
  left: 1px;
  top: 1px;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M10 3L4.5 8.5L2 6' stroke='%23173851' stroke-width='1.6666' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.custom-select__title-container {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.before-after-page .CarouselWidget-prefix .R-XXXLG .R-ReviewsList .R-ReviewsList__item {
  float: left;
}