/* BASIC css start */
/* 팝업 전체 영역: 배경 클릭이 가능하도록 pointer-events: none 지정 */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 99999999;
  pointer-events: none; /* 뒤쪽 요소 클릭 가능 */
}
.popup-overlay.active {
  display: block;
}

/* 팝업 메인 카드: 우측 하단 30px 고정 위치 */
.popup-container {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 360px; /* 우측 하단용 적절한 너비 설정 */
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  pointer-events: auto; /* 팝업 내부만 클릭 수신 */
}

/* Swiper 영역 */
.popup-swiper {
  width: 100%;
  height: 450px;
  position: relative;
}
.popup-swiper .swiper-slide {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.popup-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- 전역 스타일 충돌 방지용 독립 클래스 (Override) --- */

/* 팝업 전용 좌우 화살표 버튼 (24px 확대) */
.popup-swiper .popup-swiper-button-prev,
.popup-swiper .popup-swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  width: 24px;              /* 터치/클릭 영역 너비 24px */
  height: 24px;             /* 터치/클릭 영역 높이 24px */
  background-size: 20px 20px; /* 화살표 아이콘 이미지 크기 24px */
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0;
}

.popup-swiper .popup-swiper-button-prev { 
  left: 10px; 
  /* Swiper 4용 흰색 왼쪽 화살표 SVG */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0,22L22,0l2.1,2.1L4.2,22l19.9,19.9L22,44L0,22z' fill='%23ffffff'/%3E%3C/svg%3E");
}

.popup-swiper .popup-swiper-button-next { 
  right: 10px; 
  /* Swiper 4용 흰색 오른쪽 화살표 SVG */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27,22L5,44l-2.1-2.1L22.8,22L2.9,2.1L5,0L27,22z' fill='%23ffffff'/%3E%3C/svg%3E");
}

/* 팝업 전용 하단 도트 페이지네이션 */
.popup-swiper .popup-swiper-pagination {
  position: absolute;
  bottom: 10px !important;
  left: 0;
  width: 100% !important;
  text-align: center;
  z-index: 10;
}
.popup-swiper .popup-swiper-pagination .swiper-pagination-bullet {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 4px !important;
  border-radius: 50%;
  background: #ffffff !important;
  opacity: 0.5 !important;
  padding: 0;
}
.popup-swiper .popup-swiper-pagination .swiper-pagination-bullet-active {
  opacity: 1 !important;
  background: #ffffff !important;
}

/* 하단 버튼 바 (7:3 비율 분할 구조) */
.popup-footer {
  display: flex;
  align-items: center;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

/* 좌측 버튼 (오늘 하루 보지 않기 - 70% 비율) */
.popup-footer button:first-child {
  flex: 7; /* 70% 비율 */
  height: 44px;
  background: none;
  border: none;
  border-right: 1px solid #f0f0f0; /* 중앙 구분선 */
  font-size: 14px;
  color: #666;
  cursor: pointer;
  padding: 0;
  text-align: center;
}

/* 우측 버튼 (닫기 - 30% 비율) */
.popup-footer button:last-child {
  flex: 3; /* 30% 비율 */
  height: 44px;
  background: none;
  border: none;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  padding: 0;
  text-align: center;
}

.popup-footer button:hover {
  color: #000;
  font-weight: 600;
}
/* BASIC css end */

