/* 홈 화면 공지 팝업 (renual/js/notice-popup.js) */
.notice-popup {
  position: fixed;
  inset: 0;
  z-index: 2147483647; /* header.css(최대 99999)보다 위, 최상단 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
}

.notice-popup__box {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 850px;
  max-height: 85vh;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.notice-popup__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 14px;
  border-bottom: 1px solid #000;
}

.notice-popup__head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

.notice-popup__close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  color: #666;
  cursor: pointer;
}

.notice-popup__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  text-align: left;
  line-height: 26px;
  font-size: 14px;
  word-break: keep-all;
}

.notice-popup__body .notice-title {
  display: inline-block;
}

/* 부제목 밑 빈 줄(<br>) 대신 좁은 간격 */
.notice-popup__body .notice-head {
  margin-bottom: 10px;
}

.notice-popup__body .notice-head + br {
  display: none;
}

/* 가. 나. 다. 항목: 기호는 왼쪽에 고정, 줄바꿈된 글은 본문 시작선에 맞춤 */
.notice-popup__body ul.notice-sub {
  margin: 0 0 26px;
  padding: 0;
}

.notice-popup__body ul.notice-sub li {
  position: relative;
  padding-left: 26px;
  list-style: none;
}

.notice-popup__body .notice-sub__mark {
  position: absolute;
  left: 0;
}

/* 합병 개요 표: 가운데 정렬 */
.notice-popup__body table.notice-table-center th,
.notice-popup__body table.notice-table-center td {
  text-align: center;
}

.notice-popup__body table {
  width: 100%;
  border: 1px solid #000;
  border-collapse: collapse;
  margin: 6px 0;
}

.notice-popup__body th,
.notice-popup__body td {
  border: 1px solid #000;
  padding: 8px;
  vertical-align: middle;
}

.notice-popup__body th {
  background-color: #f5f5f5;
  white-space: nowrap;
}

.notice-popup__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-top: 1px solid #ddd;
  font-size: 14px;
}

.notice-popup__today {
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  font-size: 14px;
}

.notice-popup__more {
  color: #2b5797;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .notice-popup__head {
    padding: 16px 16px 12px;
  }
  .notice-popup__head h2 {
    font-size: 16px;
  }
  .notice-popup__body {
    padding: 16px;
    font-size: 13px;
    line-height: 22px;
  }
  .notice-popup__body th {
    white-space: normal;
  }
  .notice-popup__foot {
    padding: 10px 16px;
  }
}
