/* 중앙하이츠 홈 — 공지 팝업 오버레이 */
.richell-home-popup {
  position: fixed;
  inset: 0;
  z-index: 999999999;
  display: none;
  width: 100%;
  height: 100%;
}

.richell-home-popup.is-visible,
.richell-home-popup.show {
  display: block !important;
  animation: richell-home-popup-enter 0.8s both;
}

@keyframes richell-home-popup-enter {
  from { top: -100vh; }
  to { top: 0; }
}

.richell-home-popup .rh-popup {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.richell-home-popup .rh-pop-content {
  position: relative;
  z-index: 99999999;
  width: 90%;
  max-width: 1720px;
  margin: 0 auto;
  text-align: center;
}

.richell-home-popup .rh-pop-content > ul.pc {
  display: flex;
  position: relative;
  width: 100%;
  margin: 0 auto;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
}

.richell-home-popup .rh-pop-content li,
.richell-home-popup-item {
  position: relative;
  flex: 0 0 380px;
  width: 380px;
  max-width: 380px;
  text-align: center;
}

.richell-home-popup .rh-pop-content li img,
.richell-home-popup-item img {
  width: 100%;
  height: auto;
  display: block;
}

.richell-home-popup .rh-pop-content li a,
.richell-home-popup-item a {
  width: 100%;
  display: block;
}

.richell-home-popup-close {
  display: block;
  margin-bottom: 20px;
  color: #fff;
  text-align: center;
  font-size: 16px;
}

.richell-home-popup-item-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 5;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.richell-home-popup-item-close:hover {
  background: rgba(0, 0, 0, 0.75);
}

.richell-home-popup .rh-black-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  z-index: 99999998;
  background-color: #000;
  opacity: 0.7;
  cursor: default;
}

.richell-home-popup .check {
  display: block;
  width: 100%;
  margin-top: 12px;
}

.richell-home-popup .check label {
  margin-left: 5px;
  font-size: 14px;
  line-height: 1;
}

/* 모바일 스와이프 */
.richell-home-popup .swiper-pop {
  overflow: visible;
  width: 100%;
  margin: 0 auto;
}

.richell-home-popup .swiper-pop.mo {
  display: none;
}

.richell-home-popup .swiper-pop .swiper-slide {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.richell-home-popup .swiper-pop .swiper-slide img {
  width: 100%;
}

.richell-home-popup .swiper-pop .richell-home-popup-item-close {
  top: 0.5rem;
  right: 0.5rem;
}

.richell-home-popup .rh-pop-arrow {
  position: relative;
  float: right;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  width: 90px;
  height: 32px;
  margin: 12px 0 0;
  padding: 0 2px;
  border-radius: 50px;
  background-color: #fff;
}

.richell-home-popup .rh-pop-arrow .swiper-pagination-fraction {
  position: static;
  width: 50px;
  height: 32px;
  line-height: 32px;
  color: #000;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.richell-home-popup .rh-pop-arrow .swiper-pagination-current,
.richell-home-popup .rh-pop-arrow .swiper-pagination-total {
  padding: 0 3px;
}

.richell-home-popup .rh-pop-arrow .swiper-button-prev-pop,
.richell-home-popup .rh-pop-arrow .swiper-button-next-pop {
  position: relative;
  top: 0;
  width: 25px;
  height: 100%;
  margin: 0;
  padding: 0;
  outline: none;
}

.richell-home-popup .rh-pop-arrow .swiper-button-prev-pop {
  left: 0;
}

.richell-home-popup .rh-pop-arrow .swiper-button-next-pop {
  right: 0;
}

.richell-home-popup .rh-pop-arrow .swiper-button-prev-pop > div,
.richell-home-popup .rh-pop-arrow .swiper-button-next-pop > div {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 6px;
  height: 6px;
}

.richell-home-popup .rh-pop-arrow .swiper-button-prev-pop > div {
  left: 8px;
  right: 0;
  border-left: 1px solid #000;
  border-bottom: 1px solid #000;
  transform: rotate(45deg);
  transform-origin: center;
}

.richell-home-popup .rh-pop-arrow .swiper-button-next-pop > div {
  left: 0;
  right: 8px;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  transform: rotate(-45deg);
  transform-origin: center;
}

@media (max-width: 767px) {
  .richell-home-popup .rh-pop-content > ul.pc {
    display: none;
  }

  .richell-home-popup .swiper-pop.mo {
    display: block;
  }

  .richell-home-popup-close {
    margin-bottom: 12px;
  }

  .richell-home-popup .rh-popup {
    box-sizing: border-box;
    padding: 0 1rem;
  }

  .richell-home-popup .rh-pop-content {
    width: 92%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .richell-home-popup .swiper-pop .swiper-slide.richell-home-popup-item,
  .richell-home-popup .swiper-pop .richell-home-popup-item {
    flex: none;
    width: 100% !important;
    max-width: 100%;
  }

  .richell-home-popup .swiper-pop .swiper-slide {
    align-items: center;
  }

  .richell-home-popup .rh-pop-arrow {
    float: none;
    clear: both;
    margin: 12px auto 0;
    z-index: 1;
  }

  .richell-home-popup .check {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    transform: none;
    position: relative;
    z-index: 1;
  }
}
