.div-popup-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
}

.div-popup-layer.is-active {
  pointer-events: auto;
}

.div-popup-layer.is-active::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9000;
}

.div-popup {
  position: fixed;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  pointer-events: auto;
  border: 1px solid rgba(0, 174, 239, 0.45);
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.38s ease,
    transform 0.42s cubic-bezier(0.55, 0, 1, 0.45);
  will-change: transform, opacity;
}

.div-popup.is-closing {
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

.div-popup[hidden] {
  display: none !important;
}

.div-popup-box {
  background: #1a1a1f;
  border-radius: 0;
  overflow: hidden;
}

.div-popup-body {
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  color: #e8e8ec;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
}

.div-popup-body img {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

.div-popup-body p {
  margin: 0;
  padding: 0;
}

.div-popup-body p + p {
  margin-top: 0.75rem;
}

/* Quill 빈 줄(<p><br></p>)이 본문 높이를 살짝 넘기며 스크롤을 만드는 것 방지 */
.div-popup-body p:empty,
.div-popup-body p:has(> br:only-child) {
  display: none;
  margin: 0;
}

/* 이미지만 있는 문단: line-height 여백 제거 */
.div-popup-body p:has(> img:only-child) {
  line-height: 0;
  font-size: 0;
}

.div-popup-foot {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: #121218;
}

.div-popup-btn {
  flex: 1;
  border: 1px solid rgba(0, 174, 239, 0.35);
  background: transparent;
  color: #0099dd;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
}

.div-popup-btn:hover {
  background: rgba(0, 174, 239, 0.12);
}

.div-popup-btn.div-popup-close {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ccc;
}

@media (max-width: 768px) {
  .div-popup {
    left: 50% !important;
    top: 50% !important;
    width: 90vw !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    transform: translate(-50%, -50%);
  }

  .div-popup.is-closing {
    transform: translate(-50%, -50%) scale(0);
  }

  .div-popup-body {
    width: 100% !important;
    height: auto !important;
    max-height: calc(90vh - 56px) !important;
    min-height: 200px;
  }
}
