@charset "utf-8";
/* /plugin/popup/popup_style.css */

/* wrapper */
#happyjung_popup_id {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

/* popup */
.happyjung_popup_class {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid #e9e9e9;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  pointer-events: auto;

  /* 모바일 안전장치 */
  max-width: 100vw;
  max-height: 85vh;
}

/* content */
.happyjung_popup_con {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* image */
.happyjung_popup_con img {
  width: 100%;
  height: auto;
  display: block;
}

/* footer */
.happyjung_popup_footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #000;
  flex-shrink: 0;
}

.happyjung_popup_footer button {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.happyjung_popup_footer .popup_hide {
  background: #2f2f2f;
  color: #ccc;
}

.happyjung_popup_footer .popup_hide strong {
  color: #fff;
}

.happyjung_popup_footer .popup_hide:hover {
  background: #3a3a3a;
}

/* 모바일 팝업 페이징용 */
.is-mobile-popup .happyjung_popup_class {
  display: none;
}

.is-mobile-popup .happyjung_popup_class.is-active {
  display: flex;
}

.popup_pager {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 1100;
}

.popup_pager button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.4);
  color: #fff;
  font-size: 13px;
}

.popup_pager button.active {
  background: #1e88e5;
}

:root {
  --popup-pager-height: 48px; /* pager 버튼 높이 */
  --popup-pager-gap: 12px;    /* 팝업과 pager 사이 여백 */
}

/* 모바일 + 페이징일 때 팝업 위치 */
.is-mobile-popup .happyjung_popup_class {
  left: 50%;
  bottom: calc(var(--popup-pager-height) + var(--popup-pager-gap));
  top: auto;
  transform: translateX(-50%);
}