/* 확인 팝업 */
.cp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s;
}
.cp-overlay.cp-show {
  opacity: 1;
  visibility: visible;
}

.cp-dialog {
  width: 360px;
  max-width: 100%;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  font-family: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  transform: translateY(8px);
  transition: transform 0.15s ease;
}
.cp-overlay.cp-show .cp-dialog {
  transform: translateY(0);
}

.cp-title {
  margin: 0;
  padding: 7px 10px;
  background: #f5b50f;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.cp-message {
  margin: 0;
  padding: 22px 24px 18px;
  color: #111;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.3px;
  word-break: keep-all;
  white-space: pre-line; /* \n 줄바꿈 허용 */
}

.cp-buttons {
  display: flex;
  justify-content: space-between;
  padding: 0 24px 16px;
}

.cp-buttons[hidden], .cp-btn[hidden] { display: none; }
/* 버튼이 하나일 때는 오른쪽 정렬 (왼쪽/오른쪽 어느 쪽이든) */
.cp-buttons.cp-single { justify-content: flex-end; }
/* 버튼이 없을 때는 아래 여백을 늘림 */
.cp-nobtn .cp-message { padding-bottom: 24px; }

.cp-btn {
  border: 0;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
  padding: 6px 12px;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  color: #111; /* JS에서 buttonColor 로 덮어씀 */
}
.cp-btn:hover { opacity: 0.7; }
.cp-btn:focus,
.cp-btn:focus-visible,
.cp-btn:active { outline: none; box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .cp-overlay, .cp-dialog { transition: none; }
}