/* beauty slider
======================================================================================== */
/* onload */
.on-load.p-beautySlider {
  visibility: visible;
  opacity: 1;
}

/* non-swiper(on swiper.destroy) */
.non-swiper.p-beautySlider {
  padding: 0;
}
.non-swiper.p-beautySlider .p-beautySlider__foot {
  display: none;
}

/* beautySlider */
.p-beautySlider {
  visibility: hidden;
  opacity: 0;
  position: relative;
  z-index: 0;
}
.p-beautySlider__inner {
  position: relative;
  overflow: hidden;
}
.p-beautySlider__wrap { /* ul */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  align-items: flex-start;

  -webkit-box-align: start;
  -webkit-box-direction: normal;
  -webkit-box-orient: horizontal;
  -webkit-box-pack: justify;
  -ms-flex-align: start;
  -ms-flex-flow: row;
  -ms-flex-pack: justify;
}
.p-beautySlider__slide { /* li */
  flex-shrink: 0;
  -ms-flex-negative: 0;
}

/* li content */
.p-beautyCate {
  display: block;
  width: 100%;
}
.p-beautyCate__inner {
  display: block;
  width: 100%;
}
.p-beautyCate__img + .p-beautyCate__txt {
  margin-top: 10px;
}

/* buttons */
.p-beautySlider__foot {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  max-width: 1200px;
  padding: 0 12px;
  /* margin: 20px 0 20px 32px; */
  margin: 15px 0 15px;
}

/* buttons - pagination */
.p-beautySlider__pagination {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
  -webkit-transform: none;
  transform: none;
}
.p-beautySlider .swiper-pagination-bullet {
  position: relative;
  margin: 0 5px;
  width: 10px;
  height: 10px;
  overflow: hidden;
  cursor: pointer;
  background-color: #dedede;
  border-radius: 100px;
  transition: ease;
}
.p-beautySlider .swiper-pagination-bullet-active {
  background-color: #313131;
}

/* buttons - prev, next */
.p-beautySlider__button {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
.p-beautySlider__button.-prev {
  margin-right: 12px;
}
.p-beautySlider__button.-next {
  margin-left: 12px;
}
.p-beautySlider__btnicon {
  position: relative;
  display: inline-block;
  width: auto;
  height: 21px;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}
.p-beautySlider__btnicon img {
  width: auto;
  height: 21px;
}

/* buttons - pause */
.p-beautySlider__pauseBtn{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 8px;
  margin-right: -40px;
}
.p-beautySlider__pauseBtn-wrap{
  display: block;
  width: 24px;
  height: 24px;
  border: 1px solid #6e6e6e;
  border-radius: 50%;
}


/* (foot w) - ((leftbtn w) + (pagination w) + (rightbtn w)) = (pausebtn w)*2  */
/* (100vw - 20*2) - ((32+8) + (5+10+5)*N + (32+8)) = (32+8)*2 */
/* ↓ */
/* (100vw - 20*2) - ((32+4) + (3+10+3)*N + (32+4)) = (32+4)*2 */

/* N=9 -> 100vw=388px */
/* N=8 -> 100vw=368px */
/* N=7 -> 100vw=348px */
@media screen and (max-width: 768px) {
  /* 10 ~ */
  .p-beautySlider:has(.swiper-pagination-bullets > :nth-child(10)) .swiper-pagination-bullet {
    margin: 0 3px;
  }
  .p-beautySlider:has(.swiper-pagination-bullets > :nth-child(10)) .p-beautySlider__button.-prev {
    margin-right: 4px;
  }
  .p-beautySlider:has(.swiper-pagination-bullets > :nth-child(10)) .p-beautySlider__button.-next {
    margin-left: 4px;
  }
  .p-beautySlider:has(.swiper-pagination-bullets > :nth-child(10)) .p-beautySlider__pauseBtn{
    margin-left: 4px;
    margin-right: -36px;
  }
}
@media screen and (max-width: 388px) {
  /* 9 */
  .p-beautySlider:has(.swiper-pagination-bullets > :nth-child(9):last-child) .swiper-pagination-bullet {
    margin: 0 3px;
  }
  .p-beautySlider:has(.swiper-pagination-bullets > :nth-child(9):last-child) .p-beautySlider__button.-prev {
    margin-right: 4px;
  }
  .p-beautySlider:has(.swiper-pagination-bullets > :nth-child(9):last-child) .p-beautySlider__button.-next {
    margin-left: 4px;
  }
  .p-beautySlider:has(.swiper-pagination-bullets > :nth-child(9):last-child) .p-beautySlider__pauseBtn{
    margin-left: 4px;
    margin-right: -36px;
  }
}
@media screen and (max-width: 368px) {
  /* 8 */
  .p-beautySlider:has(.swiper-pagination-bullets > :nth-child(8):last-child) .swiper-pagination-bullet {
    margin: 0 3px;
  }
  .p-beautySlider:has(.swiper-pagination-bullets > :nth-child(8):last-child) .p-beautySlider__button.-prev {
    margin-right: 4px;
  }
  .p-beautySlider:has(.swiper-pagination-bullets > :nth-child(8):last-child) .p-beautySlider__button.-next {
    margin-left: 4px;
  }
  .p-beautySlider:has(.swiper-pagination-bullets > :nth-child(8):last-child) .p-beautySlider__pauseBtn{
    margin-left: 4px;
    margin-right: -36px;
  }
}
@media screen and (max-width: 348px) {
  /* 7 */
  .p-beautySlider:has(.swiper-pagination-bullets > :nth-child(7):last-child) .swiper-pagination-bullet {
    margin: 0 3px;
  }
  .p-beautySlider:has(.swiper-pagination-bullets > :nth-child(7):last-child) .p-beautySlider__button.-prev {
    margin-right: 4px;
  }
  .p-beautySlider:has(.swiper-pagination-bullets > :nth-child(7):last-child) .p-beautySlider__button.-next {
    margin-left: 4px;
  }
  .p-beautySlider:has(.swiper-pagination-bullets > :nth-child(7):last-child) .p-beautySlider__pauseBtn{
    margin-left: 4px;
    margin-right: -36px;
  }
}
