/**
 * 엔라인 SiteMessage — N-Line 모달/버튼 톤에 맞춘 안내 박스
 */
body.nline-site .site-message-layer {
  z-index: 20050;
  padding: 16px;
}

body.nline-site .site-message-backdrop {
  background: rgba(11, 2, 16, 0.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

body.nline-site .site-message-panel {
  width: min(400px, 100%);
  background: var(--bg-color-light, #162133);
  border: none;
  border-radius: 10px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 18px 50px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: nline-site-message-in 0.2s ease;
  font-family: 'Noto Sans KR', sans-serif;
}

@keyframes nline-site-message-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.nline-site .site-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--white-10, rgba(255, 255, 255, 0.1));
  background: rgba(255, 255, 255, 0.03);
}

body.nline-site .site-message-title {
  margin: 0;
  color: var(--white, #fff);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* 원형 X — 디자인 모달 닫기 버튼과 동일 톤 */
body.nline-site .site-message-x {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--white-50, rgba(255, 255, 255, 0.5));
  border-radius: 50%;
  background: transparent;
  color: var(--white-50, rgba(255, 255, 255, 0.5));
  font-size: 1.35rem;
  line-height: 1;
  transition: 0.25s;
}

body.nline-site .site-message-x:hover {
  color: var(--orange, #ff8839);
  border-color: var(--orange, #ff8839);
}

body.nline-site .site-message-body {
  padding: 22px 20px 10px;
  color: var(--white, #fff);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
  word-break: keep-all;
}

body.nline-site .site-message-foot {
  justify-content: center;
  gap: 10px;
  padding: 8px 18px 20px;
}

body.nline-site .site-message-cancel {
  min-width: 110px;
  min-height: 42px;
  border: 1px solid var(--white-15, rgba(255, 255, 255, 0.15));
  border-radius: 6px;
  padding: 10px 20px;
  background: var(--white-05, rgba(255, 255, 255, 0.05));
  color: var(--white, #fff);
  font-size: 14px;
  font-weight: 700;
  transition: 0.25s;
}

body.nline-site .site-message-cancel:hover {
  background: var(--white-10, rgba(255, 255, 255, 0.1));
  border-color: var(--white-25, rgba(255, 255, 255, 0.25));
}

/* 확인 — 엔라인 btn-blue 톤 */
body.nline-site .site-message-ok {
  min-width: 120px;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 10px 26px;
  background: var(--blue, #2b81de);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  transition: 0.25s;
}

body.nline-site .site-message-ok:hover {
  background: var(--blue-hover, #0058a5);
  filter: none;
}

/* 밝은 테마 */
html.light-theme body.nline-site .site-message-backdrop {
  background: rgba(4, 13, 24, 0.45);
}

html.light-theme body.nline-site .site-message-panel {
  background: #fff;
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.08),
    0 18px 50px rgba(0, 0, 0, 0.18);
}

html.light-theme body.nline-site .site-message-head {
  background: rgba(0, 0, 0, 0.03);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html.light-theme body.nline-site .site-message-title,
html.light-theme body.nline-site .site-message-body {
  color: #0c1523;
}

html.light-theme body.nline-site .site-message-x {
  color: rgba(0, 0, 0, 0.45);
  border-color: rgba(0, 0, 0, 0.25);
}

html.light-theme body.nline-site .site-message-x:hover {
  color: var(--orange, #ff8839);
  border-color: var(--orange, #ff8839);
}

html.light-theme body.nline-site .site-message-cancel {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: #0c1523;
}

@media (prefers-reduced-motion: reduce) {
  body.nline-site .site-message-panel {
    animation: none;
  }
}

@media (max-width: 767px) {
  body.nline-site .site-message-panel {
    width: min(360px, 100%);
  }

  body.nline-site .site-message-title {
    font-size: 16px;
  }

  body.nline-site .site-message-body {
    font-size: 13px;
    padding: 18px 16px 8px;
  }
}
