@charset "UTF-8";

/**
 * CNBUS toastr 커스텀 스타일 (sdk/lib/toast/toastr.css 오버라이드)
 * - 설정: app/js/cmmn/toastrConfig.js
 * - 헤더(#6eb92b) 아래 상단 중앙 배치
 * - 타입별 틴트 배경 + 좌측 액센트
 */

/* 위치: 고정 헤더(60px) 아래 중앙 */
#toast-container.toast-top-center {
  top: 72px;
  right: 0;
  width: 100%;
}

#toast-container.toast-top-right {
  top: 72px;
  right: 16px;
}

#toast-container.toast-top-left {
  top: 72px;
  left: 196px;
}

#toast-container {
  z-index: 1000000;
}

#toast-container > div {
  position: relative;
  width: auto;
  min-width: 300px;
  max-width: 440px;
  margin: 0 auto 8px;
  padding: 14px 38px 14px 46px;
  color: #1a1a1a;
  border-radius: 4px;
  border: 1px solid transparent;
  border-left-width: 5px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.14),
    0 2px 6px rgba(0, 0, 0, 0.08);
  opacity: 1 !important;
  background-color: transparent;
  background-image: none !important;
  font-family: 'Noto Sans KR-R', '맑은 고딕', 'malgun gothic', sans-serif;
  font-size: 14px;
  letter-spacing: -0.025em;
  line-height: 1.5;
}

#toast-container > div:hover {
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.16),
    0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: default;
  opacity: 1 !important;
}

/* 타입별 배경 — CNBUS 톤(#6eb92b) 기반, 흰 패널 위 뚜렷한 대비 */
#toast-container > .toast-success {
  background-color: #c8e6a8 !important;
  border-color: #6eb92b;
  border-left-color: #6eb92b;
  box-shadow:
    0 8px 24px rgba(110, 185, 43, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.1);
}

#toast-container > .toast-warning {
  background-color: #ffe08a !important;
  border-color: #e6a117;
  border-left-color: #c8870a;
  box-shadow:
    0 8px 24px rgba(230, 161, 23, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.1);
}

#toast-container > .toast-error {
  background-color: #f5b0ad !important;
  border-color: #d9534f;
  border-left-color: #c9302c;
  box-shadow:
    0 8px 24px rgba(217, 83, 79, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.1);
}

#toast-container > .toast-info {
  background-color: #b8d4f5 !important;
  border-color: #3b7ddd;
  border-left-color: #2d6fc7;
  box-shadow:
    0 8px 24px rgba(59, 125, 221, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.1);
}

/* sdk 기본 toastr 아이콘 PNG 제거 (::before 커스텀 아이콘과 겹침 방지) */
#toast-container > .toast-success,
#toast-container > .toast-warning,
#toast-container > .toast-error,
#toast-container > .toast-info {
  background-image: none !important;
  background-position: unset !important;
  background-repeat: no-repeat !important;
}

#toast-container > div::before {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

#toast-container > .toast-success::before {
  content: "\2713";
  color: #fff;
  background: #6eb92b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

#toast-container > .toast-warning::before {
  content: "!";
  color: #fff;
  background: #c8870a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

#toast-container > .toast-error::before {
  content: "\2715";
  color: #fff;
  background: #c9302c;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

#toast-container > .toast-info::before {
  content: "i";
  color: #fff;
  background: #2d6fc7;
  font-style: italic;
  font-weight: 900;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toast-title {
  font-family: 'Noto Sans KR-M', '맑은 고딕', 'malgun gothic', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #111;
  margin-bottom: 2px;
}

.toast-message {
  font-family: 'Noto Sans KR-M', '맑은 고딕', 'malgun gothic', sans-serif;
  font-weight: 500;
  word-wrap: break-word;
}

#toast-container > .toast-success .toast-message,
#toast-container > .toast-success .toast-title {
  color: #1a3d0c;
}

#toast-container > .toast-warning .toast-message,
#toast-container > .toast-warning .toast-title {
  color: #4a3200;
}

#toast-container > .toast-error .toast-message,
#toast-container > .toast-error .toast-title {
  color: #5c1210;
}

#toast-container > .toast-info .toast-message,
#toast-container > .toast-info .toast-title {
  color: #0f2d5c;
}

.toast-message a,
.toast-message label {
  color: #3b7ddd;
}

.toast-message a:hover {
  color: #2563c7;
  text-decoration: underline;
}

button.toast-close-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  float: none;
  font-size: 18px;
  font-weight: 700;
  color: #666;
  text-shadow: none;
  opacity: 1;
  line-height: 1;
  padding: 0;
  width: 20px;
  height: 20px;
}

button.toast-close-button:hover,
button.toast-close-button:focus {
  color: #222;
  opacity: 1;
}

/* 자동 닫힘 진행 바 */
.toast-progress {
  height: 4px;
  opacity: 0.75;
}

#toast-container > .toast-success .toast-progress {
  background-color: #6eb92b;
}

#toast-container > .toast-warning .toast-progress {
  background-color: #c8870a;
}

#toast-container > .toast-error .toast-progress {
  background-color: #c9302c;
}

#toast-container > .toast-info .toast-progress {
  background-color: #2d6fc7;
}

@media all and (max-width: 480px) {
  #toast-container > div {
    min-width: auto;
    max-width: calc(100vw - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }

  #toast-container.toast-top-left {
    left: 0;
  }
}
