/* type-a의 같은 파일을 복사해 와 hd-lease 화면에 맞춰 고치는 이 테마의 원본 (CT-136). 다시 복사해 덮어쓰지 않음 */
.site-popup-root {
  position: relative;
  z-index: 1200;
}

.site-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}

.site-popup--center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.site-popup--tl {
  inset: auto auto auto 0;
  top: 88px;
  left: 16px;
  width: auto;
  height: auto;
}

.site-popup--br {
  inset: auto 16px 24px auto;
  width: auto;
  height: auto;
  top: auto;
  left: auto;
}

.site-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  pointer-events: auto;
}

.site-popup__panel {
  position: relative;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  pointer-events: auto;
  max-width: min(520px, calc(100vw - 32px));
  width: 100%;
  /* A long popup stays inside the window: the body scrolls, the head (close button) and the foot (hide for today) stay in view. */
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
}

.site-popup--tl .site-popup__panel,
.site-popup--br .site-popup__panel {
  max-width: min(360px, calc(100vw - 32px));
  border: 1px solid #e5e7eb;
}

/* The corner popups sit 88px from the top (top-left) or 24px from the bottom (bottom-right) and keep 16px on the other side. */
.site-popup--tl .site-popup__panel {
  max-height: calc(100vh - 88px - 16px);
}

.site-popup--br .site-popup__panel {
  max-height: calc(100vh - 24px - 16px);
}

.site-popup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef1f6;
  background: #f8fafc;
}

.site-popup__title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

.site-popup__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #eef1f6;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.site-popup__body {
  padding: 0;
  min-height: 0;
  overflow-y: auto;
}

.site-popup__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.site-popup__link {
  display: block;
}

.site-popup__content {
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
}

.site-popup__foot {
  display: flex;
  justify-content: center;
  padding: 10px 14px 14px;
  background: #fff;
}

.site-popup__today {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-popup.is-closing {
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.site-popup-open {
  overflow: hidden;
}

body.site-popup-open .site-popup--tl,
body.site-popup-open .site-popup--br {
  pointer-events: auto;
}

