/* ── CJ PC 중앙 팝업 스타일 ── */

.site-popup-cj {
  --popup-open-duration: 1.5s;
  --popup-close-duration: 1s;

  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  width: 100vw !important;
  height: 100vh;
  z-index: 8888 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  animation: cjFadeIn 1.5s ease both;
}

.site-popup-wrap:has(.site-popup-cj) .popup-dim {
  --popup-open-duration: 1s;
  --popup-close-duration: 1s;

  z-index: 8887 !important;
  background: rgba(0, 0, 0, 0.65);
  animation: cjFadeIn 1s ease both;
}

/* 닫기 애니메이션 */
.site-popup-wrap.is-closing .site-popup-cj {
  animation: cjFadeOut 1s ease forwards;
}

.site-popup-wrap.is-closing .popup-dim {
  animation: cjFadeOut 1s ease forwards;
}

/* 상단 닫기 버튼 */
.site-popup-cj .cj-popup-close-top {
  margin-bottom: 12px;
}

.site-popup-cj .cj-popup-close-top button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
}

.site-popup-cj .cj-popup-close-top button:hover {
  opacity: 0.8;
}

/* 팝업 아이템 컨테이너 */
.site-popup-cj .site-popup-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 26px 0;
}

/* 개별 팝업 아이템 */
.site-popup-cj .site-popup-item {
  position: relative;
  width: 350px;
  height: 490px;
}

.site-popup-cj .site-popup-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.site-popup-cj .site-popup-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 링크 영역 */
.site-popup-cj .site-popup-link-area {
  position: absolute;
  display: block;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  text-decoration: none;
}

/* 하단 컨트롤 (오늘 하루 보지 않기) */
.site-popup-cj .site-popup-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 16px;
}

.site-popup-cj .site-popup-control label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  cursor: pointer;
}

.site-popup-cj .site-popup-control input {
  margin-left: 5px;
}

.site-popup-cj .site-popup-control button {
  display: none;
}

/* ── 반응형 ── */
@media (max-width: 1200px) {
  .site-popup-cj .site-popup-item {
    width: 300px;
    height: 420px;
  }
}

@media (max-width: 768px) {
  .site-popup-cj .site-popup-items {
    flex-direction: column;
    gap: 12px;
  }

  .site-popup-cj .site-popup-item {
    width: 80vw;
    height: auto;
  }

  .site-popup-cj .site-popup-image img {
    height: auto;
    object-fit: contain;
  }
}

/* ── 애니메이션 ── */
@keyframes cjFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cjFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
