/* 메인 팝업 (관리자 > 홈페이지 관리 > 팝업) */
.popup-open {
  overflow: hidden;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.popup-instance {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  max-width: calc(100% - 40px);
  max-height: calc(100% - 40px);
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  box-shadow: 10px 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.popup-body {
  display: flex;
  flex-grow: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.popup-body > a,
.popup-body > img,
.popup-body .popup-carousel {
  width: 100%;
}

.popup-body img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.popup-carousel .swiper-pagination-bullet-active {
  background: #005a9c;
}

.separator-line {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.1);
}

.popup-footer {
  display: flex;
  height: 60px;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
}

.popup-footer label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: #666d73;
  cursor: pointer;
}

.popup-footer input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.btn-close-popup {
  font-size: .8rem;
  font-weight: 400;
  color: #ffffff;
  background: #00345d;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  width: 60px;
  height: 30px;
}

@media (max-width: 767px) {
  .popup-instance {
    width: calc(100% - 32px);
    max-height: calc(100% - 32px);
  }

  .popup-footer {
    height: 52px;
    padding: 0 14px;
  }

  .popup-footer label {
    font-size: 13px;
  }
}
