.custom-popup {
  position: fixed;
  z-index: 99999999999999;
  background: #fff;
  border: 1px solid #000;
  box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  transition: all 0.5s ease;
  overflow: hidden;  height: auto !important; padding-bottom:0px
}
.custom-popup.imgum1 {
  position: fixed;
  z-index: 99999999999999;
  background: #fff;
  border: 1px solid #000;
  box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  transition: all 0.5s ease;
  overflow: hidden;  height: auto !important; padding-bottom: 0px
}
.custom-popup.slide-out {
  transform: translateY(100%);
  opacity: 0;
}
/* 모바일(767px 이하)에서만 하단 전체폭 팝업 - 인라인 스타일 덮어쓰기 */
@media only all and (max-width: 767px) {
  .mobile-fixed {
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 12px 12px 0 0;
    border-left: none;
    border-right: none;
  }
}
/* 태블릿 이상(768px~)에서는 인라인 스타일(날개 설정값) 그대로 적용 */
@media only all and (min-width: 768px) {
  .mobile-fixed {
    bottom: auto;
    right: auto;
    max-width: 90vw;
    height: auto !important;
    border-radius: 8px;
  }
  .custom-popup.mobile-fixed.slide-out {
    transform: none;
    opacity: 0;
  }
}

.popup-header {
  height: 45px;
  padding: 8px 12px;
  background: #222;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  cursor: move;
}
.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 25px;
  cursor: pointer;
}

.popup-body {
  padding: 0 !important; margin-bottom: 0!important; 
}

.popup-footer {
  background: #f9f9f9;
  padding: 0 12px;
  height: 40px;
  font-size: 0.9em;
  text-align: right;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;; font-size: 13px; z-index: 9999999999999999
}

.popup-body	 .swiper-pagination {
position: absolute; bottom: 40px!important; left: 0px; background-color: #333;   display: grid;   grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); height: 40px; padding: 0px!important; color: #fff;
}
.popup-body	.swiper-slide{padding-bottom:37px;}
.popup-body	 .swiper-pagination span {
  padding: 0px 0px!important;
  margin: 0px!important;

 border-radius: 0px;
  cursor: pointer;
  font-size: 12px; width: 100%; height: 40px;display: flex;  justify-content: center;  align-items: center;   
}
.popup-body	 .swiper-pagination .swiper-pagination-bullet-active {
  background: var(--primary);;
  color: #fff;
}
	
/* 공통 스타일 */
.popup-body	.swiper-pagination-bullet {
  background: none !important;
  border: none !important;
  color: #fff!important;
  font-size: 13px !important;
  font-weight: normal !important;
  opacity: 1 !important; /* Swiper가 기본적으로 비활성 탭에 opacity를 줄 수 있음 */
  padding: 10px 5px;
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

/* 활성화된 탭 */
.popup-body	.swiper-pagination-bullet-active {
  color: #fff !important;
  background: var(--primary) !important;
  font-weight: bold !important;
  border-radius: 3px;
}
.popup-img {
  width: 100%;
  display: block;
}
	.custom-popup {
  transition: all 0.5s ease;
}

.custom-popup.slide-out {
  transform: translateY(100%);
  opacity: 0;
}
	.hide-swiper-ui {
  display: none !important;
}

/* ✅ 팝업 다시 열기 버튼 스타일 */
.popup-reopen-btn_out {
  position: fixed;
  left: 0;
  top: 0;
  height: 1px;
  z-index: 999999999 !important;
  width: 100%;
  float: left;
}
.popup-reopen-btn_out .contentContainer {
  position: relative;
}

/* PC 버전 */
@media only all and (min-width: 768px) {
  .popup-reopen-btn {
    position: absolute;
    right: 0;
    top: 10px;
    z-index: 2147483650;
    border: 0;
    background: var(--primary, #2563eb);
    color: #fff;
    cursor: pointer;
    padding: 5px 7px 5px 25px;
    border-radius: 50px;
    font-size: 14px;
  }
}

/* 모바일 버전 */
@media only all and (max-width: 767px) {
  .popup-reopen-btn {
    position: absolute;
    right: 60px;
    top: 12px;
    z-index: 99;
    border: 0;
    background: var(--primary, #2563eb);
    color: #fff;
    cursor: pointer;
    padding: 5px 8px 5px 15px;
    border-radius: 50px;
    font-size: 14px;
  }
}

.popup-reopen-btn em {
  width: 25px;
  height: 25px;
  background-color: #333;
  border-radius: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  margin-left: 6px;
}

/* 구글 자동번역 배너 위치 보정 */
html:not([lang="ko"]):not([lang="auto"]) .popup-reopen-btn_out {
  top: 40px;
}
html[lang="ko"] .popup-reopen-btn_out,
html[lang="auto"] .popup-reopen-btn_out {
  top: 0 !important;
}