.hydra-routine-module {
  position: fixed;
  top: 133px;
  left: 50%;
  transform: translateX(-50%);

  display: block;
  margin: 0 auto;
  --CLARINS-FONT: "ClarinsRegular", "Clarins";
  --GOTHAM-BOOK: "Gotham SSm book A", "Gotham SSm book B", Helvetica, Arial, sans-serif;
  --GOTHAM-MEDIUM: "Gotham SSm medium A", "Gotham SSm medium B", Helvetica, Arial, sans-serif;
  --GOTHAM-XLIGHT: "Gotham_Light";
  --FONT-SIZE: 14px;
  font-family: var(--GOTHAM-BOOK);
  font-size: var(--FONT-SIZE);
  color: #333333;
  --WIDTH: 1600px;
  max-width: 1171px;
  width: 100%;
  margin: 0 auto;
  background-color: #e4f6fb;
  text-align: center;
  padding: 20px 40px;
  color: #004f6c;
  z-index: -1;
  box-sizing: border-box;
  max-height: calc(100vh - 153px);
  visibility: hidden;
  overflow-x: hidden;
  overflow-y: auto;
}

#cspot-large .cspot {
  overflow: hidden;
}

.hydra-routine__popin-background {
  position: fixed;
  display: block;
  width: 100vw;
  height: 100vh;
  top: 113px;
  left: calc(50% - 50vw);
  z-index: -2;
  background-color: rgba(0, 0, 0, 0.5);
  visibility: hidden;
}

.hydra-routine-module[data-open="1"]+.hydra-routine__popin-background {
  visibility: visible;
}

.hydra-routine-module[data-open="1"] {
  visibility: visible;
}

@media(max-width:1170px) {
  .hydra-routine-module {
    width: calc(100% - 40px);
  }
}

@media(max-width:761px) {
  .hydra-routine__popin-background {
    top: 48px;
  }

  .hydra-routine-module {
    padding: 20px 0;
    width: calc(100% - 40px);
    max-width: 360px;
    height: auto;
    max-height: calc(100% - 88px);
    overflow-x: hidden;
    overflow-y: scroll;
    top: 68px;
    left: 50%;
    transform: none;
    z-index: 2000000;
    transform: translateX(-50%);
  }

}

.hydra-routine-module * {
  box-sizing: border-box;
}


.hydra-routine-module__close-btn {
  width: 16px;
  height: 16px;
  position: absolute;
  top: 10px;
  right: 10px;
  background-image: url(../images/close.svg);
  background-size: 100% auto;
  cursor: pointer;
}

.hydra-routine-module small {
  font-size: 10px;
  line-height: 12px;
  display: block;
  padding-top: 10px;
}

.hydra-routine-module__title {
  text-transform: uppercase;
  font-size: 30px;
  line-height: 32px;
  margin: 0;
  font-weight: 400;
  margin-bottom: 0.5em;
}

@media(max-height:740px) and (min-width:1024px) {
  .hydra-routine-module__title br {
    display: none;
  }

  .hydra-routine-module__products-container {
    max-height: calc(100vh - 360px) !important;
    min-height: 320px;
  }
}

.hydra-routine-module__title sup {
  top: 0;
  font-size: 0.5em;
  vertical-align: super;
}

.hydra-routine-module__description {
  font-size: 16px;
  line-height: 1.2em;
  margin: 0;
}

.hydra-routine-module__description-find {
  font-size: 18px;
  line-height: 42px;
  margin: 0;
}

.hydra-routine-module__input>span {
  font-size: 14px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hydra-routine-module__input-selected-option {
  border-radius: 5px;
  font-size: 14px;
  position: relative;
}

.hydra-routine-module__input-selected-option::before {
  content: "";
  display: block;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url(../images/arrow.svg);
  width: 16px;
  height: 10px;
}

.hydra-routine-module__input-select[is-open="true"] .hydra-routine-module__input-selected-option::before {
  transition: transform 0.3s;
  transform: translateY(-50%) rotate(180deg);
}

.hydra-routine-module__input-select {
  border-radius: 5px;
  border: solid 1px #004f6c;
  margin: 0;
  margin-top: 5px;
  position: relative;
}

.hydra-routine-module__input-select[is-open="true"] {
  border-radius: 5px 5px 0 0;
}

.hydra-routine-module__input-select li {
  height: 46px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 8px;
  padding-right: 30px;
  text-align: left;
  cursor: pointer;
}

.hydra-routine-module__container-inputs ul {
  list-style-type: none;
  padding: 0;
}

.hydra-routine-module__input {
  width: 100%;
  margin: 10px 25px;
}

.hydra-routine-module__input[data-category="skin-type"] {
  max-width: 260px;
  z-index: 3;
}

.hydra-routine-module__input[data-category="need-spf"] {
  max-width: 81px;
  z-index: 2;
}

.hydra-routine-module__input[data-category="looking-for"] {
  max-width: 260px;
  z-index: 1;
  display: none;
}

.hydra-routine-module__container-inputs {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 10px;
  position: relative;
  z-index: 3;
}

.hydra-routine-module__select-option {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  width: calc(100% + 2px);
  background-color: #e4f6fb;
  border: solid 1px #004f6c;
  border-radius: 0 0 5px 5px;
  transform: translateX(-50%);

}

.hydra-routine-module__select-option[data-category="need-spf"] {
  z-index: 2;
}

.hydra-routine-module__select-option[data-category="skin-type"] {
  z-index: 3;
}

.hydra-routine-module__select-option li:hover {
  background-color: rgba(0, 79, 108, 0.1);
}

.hydra-routine-module__products-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

@media(min-width:1024px) {
  .hydra-routine-module__products-container {
    max-height: calc(100vh - 400px);
    min-height: 380px;
  }

}


.hydra-routine-module__product-name {
  font-size: 14px;
  text-transform: uppercase;
  margin: 0;
  margin-bottom: 10px;
  white-space: nowrap;
}

.hydra-routine-module__product-img {
  width: 165px;
}

.hydra-routine-module__product[data-product="spf-15-cream"] .hydra-routine-module__product-img {
  width: 167px;
}

.hydra-routine-module__product[data-product="emulsion"] .hydra-routine-module__product-img {
  width: 58px;
}

.hydra-routine-module__product[data-product="matte-gel"] .hydra-routine-module__product-img {
  width: 76px;
}

.hydra-routine-module__product[data-product="night-cream"] .hydra-routine-module__product-img {
  width: 163px;
}



/*@media(min-width:1024px) and (max-height:820px) {
  .hydra-routine-module__product-img {
    width: 125px;
  }

  .hydra-routine-module__product[data-product="spf-15-cream"] .hydra-routine-module__product-img {
    width: calc(167 / 165 * 125px);
  }

  .hydra-routine-module__product[data-product="emulsion"] .hydra-routine-module__product-img {
    width: calc(58 / 165 * 125px);
  }


  .hydra-routine-module__product[data-product="matte-gel"] .hydra-routine-module__product-img {
    width: calc(76 / 165 * 125px);
  }

  .hydra-routine-module__product[data-product="night-cream"] .hydra-routine-module__product-img {
    width: calc(163 / 165 * 125px);
  }
}*/

.hydra-routine-module__products-container[has-result="true"] .hydra-routine-module__product {
  opacity: 0.3;
}

.hydra-routine-module__products-container[has-result="true"] .hydra-routine-module__product[is-active="true"] {
  transition: opacity 0.3s;
  opacity: 1;
}


.hydra-routine-module__product {
  position: relative;
  margin: 0 7px;
  position: relative;
  z-index: 1;
}

.hydra-routine-module__product[is-opened="true"] {
  z-index: 2;
}



.hydra-routine-module__product-details {
  display: block;
  z-index: 2;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: calc(50% - 133px);
  width: 266px;
}

.hydra-routine-module__product[is-active="true"] .hydra-routine-module__product-details {
  opacity: 1;
  pointer-events: unset;
}

.hydra-routine-module__product-details-content p {
  margin: 0;
  order: 1;
}

.hydra-routine-module__product-details-content>p:not(:first-child) {
  display: none;
}

.hydra-routine-module__product-details-content {
  display: none;
  width: 100%;
  font-size: 14px;
  line-height: 18px;
  padding: 20px;
  background-color: #fff;
  /*margin-top: 10px;*/
  margin-top: -60px;
  width: 266px;
  z-index: 3;
}

.hydra-routine-module__product[is-opened="true"] .hydra-routine-module__product-details-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}


.hydra-routine-module__product-details-content img {
  width: auto;
  order: 4;
  margin: 0 auto;
  height: 120px;
}

.hydra-hidden-quickshop {
  display: none !important;
}

.hydra-routine-module__cta {
  color: #fff;
  background-color: #b6001e;
  font-family: var(--GOTHAM-MEDIUM);
  text-decoration: none;
  height: 44px;
  min-width: 145px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  border: 2px solid #b40024;
  /* transition: 0.3s ease-in;*/
  width: fit-content;
  margin: 0 auto;
}

.hydra-routine-module__cta:hover {
  background-color: #8c0b26;
  border: 2px solid #8c0b26;
}

.hydra-routine-module__cta:focus {
  background-color: #8c0b26;
  border: 2px solid #63021a;
}

p.hydra-routine-module__product-details-price {
  font-family: var(--GOTHAM-MEDIUM);
  margin-top: 8px;
  margin-bottom: 8px;
  order: 2;
}

.hydra-routine-module__products-subcontainer-products {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.hydra-routine-module__products-subcontainer--day .hydra-routine-module__products-subcontainer-daytime img {
  width: 23px;
}

.hydra-routine-module__products-subcontainer--night .hydra-routine-module__products-subcontainer-daytime img {
  width: 19px;
}

.hydra-routine-module__products-container[has-result="true"] .hydra-routine-module__products-subcontainer-daytime {
  opacity: 0 !important;
}

.hydra-routine-module__products-subcontainer-daytime img {
  margin-right: 10px;
}

.hydra-routine-module__products-subcontainer-daytime {
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  font-size: 24px;
  /* padding-top: 50px;*/
  margin-top: 35px;
  margin-bottom: 20px;
  position: relative;
}

.hydra-routine-module__products-subcontainer--day .hydra-routine-module__products-subcontainer-daytime::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  top: -30px;
  left: 10px;
  height: 20px;
  width: 895px;
  border-bottom: solid 1px #004f6c;
  border-right: solid 1px #004f6c;
  border-left: solid 1px #004f6c;
}

@media screen and (max-width: 1023px) {
  .hydra-routine-module__title {
    font-size: 22px;
    line-height: 24px;
  }

  .hydra-routine-module__description {
    font-size: 14px;
    line-height: 1.2em;
    max-width: 260px;
    margin: 0 auto;
  }

  .hydra-routine-module__description-find {
    font-size: 14px;
    line-height: 30px;
  }

  .hydra-routine-module__products-subcontainer-daytime {
    margin-top: 10px;
    padding-top: 34px;
    font-size: 18px;
  }

  .hydra-routine-module__products-subcontainer--day .hydra-routine-module__products-subcontainer-daytime img {
    width: 18px;
  }

  .hydra-routine-module__products-subcontainer--night .hydra-routine-module__products-subcontainer-daytime img {
    width: 13px;
  }

  .hydra-routine-module__products-subcontainer-daytime img {
    margin-left: 8px;
  }

  .hydra-routine-module__products-subcontainer--day .hydra-routine-module__products-subcontainer-daytime::before {
    height: 19px;
  }

  .hydra-routine-module__products-subcontainer--night .hydra-routine-module__products-subcontainer-daytime {
    padding-top: 0;
  }

  .hydra-routine-module__products-container[has-result="true"] .hydra-routine-module__product:not([is-active="true"]) {
    display: none;
  }

  .hydra-routine-module__products-container[has-result="true"] .hydra-routine-module__products-subcontainer {
    overflow-x: visible;
  }

  .hydra-routine-module__product .hydra-routine-module__product-details {
    display: none;
  }

  .hydra-routine-module__product[is-active="true"] .hydra-routine-module__product-details {
    display: block;
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    margin: 0 auto;
    margin-bottom: 20px;
  }

  .hydra-routine-module__product-details-content {
    position: absolute;
    top: 40px;
    right: -40px;
  }

  .hydra-routine-module__products-container {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;




  }

  .hydra-routine-module__products-subcontainer {
    width: 100%;
  }

  .hydra-routine-module__products-subcontainer--night .hydra-routine-module__product {
    margin: 0 auto;
  }

  .hydra-routine-module__products-container[has-result="true"] .hydra-routine-module__product[is-active="true"] {
    margin: 0 auto;
  }

  .hydra-routine-module__products-subcontainer--day {
    overflow-x: auto;
    scrollbar-width: none;
  }
}


@media screen and (max-width: 1170px) {
  .hydra-routine-module__products-subcontainer--day .hydra-routine-module__products-subcontainer-daytime::before {
    width: 795px;
  }

  .hydra-routine-module__product-details-button {
    top: 0px;
    left: 80px;
  }

  .hydra-routine-module__product-img {
    width: 132px;
  }

  .hydra-routine-module__product[data-product="spf-15-cream"] .hydra-routine-module__product-img {
    width: 133px;
  }

  .hydra-routine-module__product[data-product="emulsion"] .hydra-routine-module__product-img {
    width: 46px;
  }

  .hydra-routine-module__product[data-product="matte-gel"] .hydra-routine-module__product-img {
    width: 60px;
  }

  .hydra-routine-module__product[data-product="night-cream"] .hydra-routine-module__product-img {
    width: 130px;
  }

}


@media screen and (max-width: 761px) {


  .hydra-routine-module__products-subcontainer--day {
    overflow: hidden;
  }

  .hydra-routine-module__products-subcontainer--day .hydra-routine-module__products-subcontainer-daytime::before {
    height: 19px;
    top: 0;
  }

  .hydra-routine-module__product {
    margin: 10px;
  }

  .hydra-routine-module__product-name {
    max-width: 100%;
    white-space: normal;
  }

  .hydra-routine-module__products-subcontainer-products {
    overflow-x: scroll;
  }

  .hydra-routine-module__products-subcontainer {
    margin-bottom: 30px;
  }

  /******/
  .hydra-routine-module__products-container[has-result="true"] {
    flex-direction: row;
    align-items: flex-end;
  }

  .hydra-routine-module__product[is-active="true"] .hydra-routine-module__product-details {
    width: 100%;
  }

  /******/
  .hydra-routine-module__products-container[has-result="true"] .hydra-routine-module__products-subcontainer {
    overflow: hidden;
    margin-bottom: 0;
  }

  .hydra-routine-module__products-container[has-result="true"] .hydra-routine-module__products-subcontainer-products {
    display: block;
    overflow: hidden;
    padding-top: 20px;
  }

  .hydra-routine-module__products-container[has-result="true"] .hydra-routine-module__products-subcontainer-daytime {
    opacity: 0 !important;
    display: none;
  }

  .hydra-routine-module__product-details-content {
    position: absolute;
    top: 120px;
    right: 80px;
  }

  .hydra-pdp .hydra-routine-module {
    padding: 30px 20px;
    border: 0px;
  }

  .hydra-pdp .hydra-routine-module::after,
  .hydra-pdp .hydra-routine-module::before {
    display: none;
  }

  .hydra-routine-module__product-details-button {
    top: 0px;
    left: 80px;
  }


}





/* MASTER ANALYSIS */
.hydra-routine-module {
  top: 157px;
}
.hydra-routine-module__cta {
  min-width: 120px;
}

/* tablet portrait */
@media only screen
and (min-device-width : 834px)
and (max-device-width : 1112px)
and (orientation : portrait)
and (-webkit-min-device-pixel-ratio: 2){
  .hydra-routine-module {
    top: 113px;
  }
}

/* mobile */
@media (max-width: 480px) {
  .hydra-routine-module {
    top: 122px;
  }
  .hydra-routine-module__input-selected-option {
    font-size: 12px;
  }

}




/* ----------------------------------------------- */
#cspot-large .cspot-copy {
  padding: 4px 20px 20px !important;
}

#cspot-large p.cspot-intro {
  padding: 0 6% !important;
}

.hydra-routine-module__input[data-category="looking-for"] {
  max-width: 330px;
}

.hydra-routine-module__input[data-category="need-spf"] {
  max-width: 113px;
}

@media only screen
and (min-device-width : 834px)
and (max-device-width : 1112px)
and (orientation : landscape)
and (-webkit-min-device-pixel-ratio: 2) {
  .hydra-routine-module {
    top: 155px;
  }

  .hydra-routine__popin-background {
    height: 100vh;
    top: 140px;
  }
}

@media only screen
and (min-device-width : 834px)
and (max-device-width : 1112px)
and (orientation : portrait)
and (-webkit-min-device-pixel-ratio: 2) {
  .hydra-routine-module {
    top: 113px;
  }

  .hydra-routine__popin-background {
    height: 150vh;
    top: -40px;
  }
}

/*iPhone 6/7/8, 13, and X*/
@media (max-width: 480px) {
  .hydra-routine-module {
    top: 72px;
  }
}