/* BASIC css start */
/* 팝업 오버레이 (배경 클릭 투과 & visibility 애니메이션 적용) */
.mobile-popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 99999999;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.4s, opacity 0.4s;
}

/* active 시 오버레이 노출 */
.mobile-popup-overlay.active {
  visibility: visible;
  opacity: 1;
}

/* 팝업 바텀 시트 (하단 밀착 + 부드럽게 올라오는 애니메이션) */
.mobile-popup-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  overflow: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  pointer-events: auto;

  /* 시작 위치: 화면 밑으로 밀어둠 (하드웨어 가속 적용) */
  transform: translate3d(0, 100%, 0);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* active 시 화면 상으로 슬라이드 UP */
.mobile-popup-overlay.active .mobile-popup-container {
  transform: translate3d(0, 0, 0);
}

/* Swiper 영역 */
.mobile-popup-swiper {
  width: 100%;
  position: relative;
}
.mobile-popup-swiper .swiper-slide {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.mobile-popup-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* 팝업 전용 좌우 화살표 (24px 흰색 SVG) */
.mobile-popup-swiper .popup-swiper-button-prev,
.mobile-popup-swiper .popup-swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  width: 24px;
  height: 24px;
  background-size: 16px 16px;
  margin:0;
  background-position: center;
  background-repeat: no-repeat;
}
.mobile-popup-swiper .popup-swiper-button-prev { 
  left: 4px; 
  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");
}
.mobile-popup-swiper .popup-swiper-button-next { 
  right: 4px; 
  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");
}

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

/* 하단 버튼 바 (7:3 분할) */
.mobile-popup-footer {
  display: flex;
  align-items: center;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}
.mobile-popup-footer button:first-child {
  flex: 7;
  height: 48px;
  background: none;
  border: none;
  border-right: 1px solid #f0f0f0;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  padding: 0;
  text-align: center;
}
.mobile-popup-footer button:last-child {
  flex: 3;
  height: 48px;
  background: none;
  border: none;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  padding: 0;
  text-align: center;
}
.mobile-popup-footer button:active {
  background: #f9f9f9;
  font-weight: 600;
}
/* BASIC css end */

