.shade-finder__skintones {
  display: flex;
  padding: 4px;
  background-color: #fff;
}

.shade-finder__skintones label {
  margin: 4px;
  flex-basis: calc(100% - 8px);
  height: 30px;
  position: relative;
}

.shade-finder__skintones label:nth-child(1) {
  background: linear-gradient(to right, #ffe3d9, #f4c6b3);
}

.shade-finder__skintones label:nth-child(2) {
  background: linear-gradient(to right, #f0c1ad, #d9a990);
}

.shade-finder__skintones label:nth-child(3) {
  background: linear-gradient(to right, #d5a68c, #b48768);
}

.shade-finder__skintones label:nth-child(4) {
  background: linear-gradient(to right, #af8364, #805a33);
}

.shade-finder__skintones label:nth-child(5) {
  background: linear-gradient(to right, #7a552d, #563609);
}

/* Hide the browser's default radio button */
.shade-finder__skintones input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Create a custom radio button */
.shade-finder__skintones .checkmark {
  position: absolute;
  top: -3px;
  left: -3px;
  height: calc(100% + 6px);
  width: calc(100% + 6px);
  border-radius: 0;
  cursor: pointer;
  border: 3px solid #000;
  transition: opacity ease-in-out 0.5s;
}

/* On mouse-over, add a grey background color */
.shade-finder__skintones input ~ .checkmark {
  opacity: 0;
}

/* When the radio button is checked, add a blue background */
.shade-finder__skintones input:checked ~ .checkmark {
  opacity: 1;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.shade-finder__skintones input:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */
.container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the indicator (dot/circle) */
.shade-finder__skintones .checkmark:after {
  top: 9px;
  left: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

/*--------------------------------------------*/

.shade-finder__expand {
  padding: 0px 20px;
  padding-bottom: 70px;
  width: 100%;
  display: flex;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  flex-direction: row-reverse;
}

.shade-finder__content {
  flex-basis: 566px;
}

.shade-finder__preview {
  /* border: 3px solid #fff;*/
  max-width: 566px;
  flex: 1;
  margin-right: 40px;
  position: relative;
}

.shade-finder__preview img {
  display: block;
  max-width: 100%;
}

.shade-finder__key-visual {
  transition: opacity ease-in-out 0.5s;
}

.shade-finder__key-visual[data-selected="0"] {
  opacity: 0;
}

.shade-finder__packshot {
  position: absolute;
  top: 0;
  left: 0;
  border: 3px solid #fff;
}

.shade-finder__packshot span {
  position: absolute;
  bottom: 14.13%;
  right: 0;
  width: 30%;
  text-align: left;
  color: #b17963;
  font-family: "Gotham SSm medium A", "Gotham SSm medium B", "Gotham Medium",
    "GothamMedium", Helvetica, Arial, sans-serif;
  font-size: 35px;
  display: inline-block;
  white-space: nowrap;
}

.shade-finder__packshot[data-selected="0"] {
  position: absolute;
  opacity: 0;
  top: 0;
  left: 0;
}

.shade-finder__packshot[data-selected="1"] {
  opacity: 1;
  width: 100%;
  height: 100%;
}

.shade-finder__packshot-product {
  width: 34.09%;
  position: absolute;
  top: 12.9%;
  left: 31.27%;
  z-index: 2;
}
.shade-finder__packshot-texture {
  width: 36.21%;
  position: absolute;
  top: 31.97%;
  left: 50.17%;
  z-index: 1;
}

.shade-finder__text {
  font-family: "ClarinsRegular", "Clarins";
  font-size: 24px;
  margin: 0 auto;
  color: #000;
}

.shade-finder__step-title {
  margin: 15px 0;
  font-family: "Gotham SSm book A", "Gotham SSm book B", "Gotham Book",
    Helvetica, Arial, sans-serif;
  font-size: 14px;
  display: inline-block;
  vertical-align: middle;
  color: #000;
}

.shade-finder__step-title span {
  font-family: "ClarinsRegular", "Clarins";
  font-size: 60px;
  display: inline-block;
  vertical-align: middle;
  color: #fff;
  line-height: 1em;
  margin-top: -0.2em;
}

.shade-finder__undertones {
  font-family: "Gotham SSm book A", "Gotham SSm book B", "Gotham Book",
    Helvetica, Arial, sans-serif;
  padding: 10px;
}
.shade-finder__undertones label {
  display: inline-block;
  float: none;
  font-size: 14px;
  font-weight: normal;
  padding: 0;
  font-family: "Gotham SSm book A", "Gotham SSm book B", "Gotham Book",
    Helvetica, Arial, sans-serif;
  text-align: left;
  padding-right: 10px;
  line-height: 1.4em;
}
.shade-finder__undertones input {
  margin: unset;
  opacity: unset;
  width: unset;
  height: unset;
  position: unset;
}
.shade-finder__portraits-gallery {
  position: relative;
  overflow-x: scroll;
  white-space: nowrap;
  font-size: 0;
  scroll-behavior: smooth;
  padding-right: 28px;
  padding-left: 28px;
  scroll-snap-type: x mandatory;
}

.shade-finder__portraits-wrapper {
  position: relative;
  height: 162px;
  display: block;
  overflow: hidden;
  width: 100%;
}

.shade-finder__scroller-left,
.shade-finder__scroller-right {
  display: block;
  position: absolute;
  background-repeat: no-repeat;
  height: 162px;
  width: 24px;
  z-index: 2;
  cursor: pointer;
  transition: all ease-in-out 0.2s;
  top: 0;
}

.shade-finder__scroller-left:hover,
.shade-finder__scroller-right:hover {
  transform: scale(1.1);
}

.shade-finder__scroller-left:active,
.shade-finder__scroller-right:active {
  transform: scale(0.8);
}

.shade-finder__scroller-left {
  left: 0;
  background-image: url(images/arrow-left.svg);
  background-position: right 4px center;
}

.shade-finder__scroller-right {
  right: 0;
  background-image: url(images/arrow-right.svg);
  background-position: left 4px center;
}
.shade-finder__portraits-wrapper[data-state="noscroll"]
  .shade-finder__scroller-left,
.shade-finder__portraits-wrapper[data-state="noscroll"]
  .shade-finder__scroller-right,
.shade-finder__portraits-wrapper[data-state="start"]
  .shade-finder__scroller-left,
.shade-finder__portraits-wrapper[data-state="end"]
  .shade-finder__scroller-right {
  opacity: 0.1;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: default;
}

.shade-finder__portraits-gallery::-webkit-scrollbar {
  display: none;
}

.shade-finder__portrait {
  padding: 0 4px;
  max-width: 170px;
  position: relative;
}
.shade-finder__portrait > span {
  display: block;
  width: 100%;
  right: 0;
  bottom: 0;
  color: #b17963;
  position: absolute;
  font-size: 20px;
  z-index: 2;
  text-align: right;
  padding: 5px 20px;
  opacity: 0;
}
.shade-finder__portrait[data-selected="0"] {
  display: none;
}

.shade-finder__portrait[data-selected="1"] {
  opacity: 0.5;
  display: inline-block;
  cursor: default;
}

.shade-finder__portrait[data-selected="2"] {
  opacity: 1;
  display: inline-block;
  cursor: pointer;
}

.shade-finder__portrait img {
  display: block;
  max-width: 100%;
  width: 170px;
}

/*-------responsive-------*/

@media (max-width: 1170px) and (min-width: 1024px) {
  .shade-finder__packshot span {
    font-size: 2.2vw;
  }
  .shade-finder__expand {
    align-items: unset;
  }
  .shade-finder__content {
    flex-basis: 52vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
  }
  .shade-finder__text {
    font-size: 2.1vw;
    width: 100%;
  }
  .shade-finder__step {
    width: 100%;
  }
  .shade-finder__portrait {
    max-width: 158px;
    position: relative;
  }
  .shade-finder__portrait img {
    width: 150px;
  }
  .shade-finder__preview {
    margin-right: 20px;
  }
  .shade-finder__portraits-wrapper {
    height: 150px;
    max-width: 532px;
  }
  .shade-finder__scroller-left,
  .shade-finder__scroller-right {
    height: 150px;
  }
}

@media (max-width: 1023px) and (min-width: 762px) {
  .shade-finder__packshot span {
    font-size: 18px;
  }
  .shade-finder__expand {
    align-items: center;
  }
  .shade-finder__content {
    flex-basis: 402px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
  }
  .shade-finder__text {
    font-size: 22px;
    width: 100%;
  }
  .shade-finder__step {
    width: 100%;
  }
  .shade-finder__portrait {
    max-width: 116px;
    padding: 0 2px;
    position: relative;
  }
  .shade-finder__portrait img {
    width: 112px;
  }
  .shade-finder__preview {
    margin-right: 20px;
  }
  .shade-finder__portraits-wrapper {
    height: 112px;
    max-width: 402px;
  }
  .shade-finder__scroller-left,
  .shade-finder__scroller-right {
    height: 112px;
  }
}
@media (max-width: 761px) {
  .shade-finder__expand {
    flex-direction: column;
    padding: 20px;
    padding-top: 0;
  }
  .shade-finder__push {
    height: auto;
    padding: 0;
  }

  .shade-finder__portraits-wrapper {
    margin: 20px -20px;
    width: 100vw;
  }
  .shade-finder__packshot span {
    font-size: 6vw;
    right: 0;
    bottom: 14%;
  }
  .shade-finder__portraits-gallery {
    padding-right: 8vw;
    padding-left: 8vw;
  }
  .shade-finder__portrait img {
    display: block;
    max-width: 40vw;
  }
  .shade-finder__portrait {
    padding: 0 1vw;
    max-width: 42vw;
    /* scroll-snap-align: start;
          scroll-snap-stop: always;*/
  }
  .shade-finder__preview {
    margin: 0;
    margin-top: 15px;
    margin-bottom: 10px;
  }
  .shade-finder__portraits-wrapper {
    margin-bottom: 0;
  }

  .shade-finder__content {
    flex-basis: unset;
  }
  .shade-finder__scroller-left,
  .shade-finder__scroller-right {
    height: 40vw;
    width: 7vw;
  }
  .shade-finder__portrait > span {
    padding: 1vw 3vw;
  }

  .shade-finder__undertones label {
    display: inline-block;
    width: calc(50% - 20px);
    box-sizing: border-box;
  }
}
