@charset "utf-8";

.notice_popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  display: none;
}
.notice_popup.on {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.notice_popup_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.notice_popup_content {
  position: relative;
  background: #426bfe;
  border-radius: 10px;
  width: 542px;
  height: 596px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  z-index: 1;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  margin-top: 148px;
  margin-left: 130px;
}

.notice_popup_header {
  background: #426bfe;
  padding: 35px 0;
  flex-shrink: 0;
}
.notice_popup_title {
  color: #fff;
  text-align: center;
  font-family:
    "NanumSquareRound",
    "Noto Sans KR",
    "맑은 고딕",
    Malgun Gothic,
    Dotum,
    sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 30px; /* 125% */
  letter-spacing: -0.24px;
}

.notice_popup_body {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.85);
  padding: 26px 26px 0 26px;
  overflow-y: auto;
  flex: 1;
  font-family:
    "NanumSquareRound",
    "Noto Sans KR",
    "맑은 고딕",
    Malgun Gothic,
    Dotum,
    sans-serif;
  background: #f7f7f7;
}
.notice_popup_body_content {
  padding: 28px 28px 30px 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 17px;
}


.notice_popup_body_content p {
  color: #303030;
  font-family:
    "NanumSquareRound",
    "Noto Sans KR",
    "맑은 고딕",
    Malgun Gothic,
    Dotum,
    sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 150% */
  letter-spacing: -0.16px;
}
.notice_popup_body strong {
  color: #303030;
  font-family:
    "NanumSquareRound",
    "Noto Sans KR",
    "맑은 고딕",
    Malgun Gothic,
    Dotum,
    sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.16px;
}
.notice_popup_body .btn_notice_link {
  margin: 10px auto 0 auto;
  width: 156px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #426bfe;
  color: #fff;
  text-align: center;
  font-family:
    "NanumSquareRound",
    "Noto Sans KR",
    "맑은 고딕",
    Malgun Gothic,
    Dotum,
    sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
  border-radius: 29px;
  transition: background 0.2s;
}
.notice_popup_body .btn_notice_link:hover {
  background: #4274ff;
}

/* 푸터 - 체크박스 좌측, 닫기 버튼 우측 정렬 */
.notice_popup_footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 24px;
  flex-shrink: 0;
  background: #f7f7f7;
  color: #303030;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 160% */
  letter-spacing: -0.15px;
  font-family:
    "NanumSquareRound",
    "Noto Sans KR",
    "맑은 고딕",
    Malgun Gothic,
    Dotum,
    sans-serif;
  border-radius: 0 0 10px 10px;
}
/* 푸터 하단 모서리 파란색 비침 방지: 부모 곡선을 덮는 ::after 레이어 */
.notice_popup_footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -1px;
  right: -1px;
  height: 11px;
  background: #f7f7f7;
  border-radius: 0 0 10px 10px;
  z-index: -1;
}

.notice_popup_checkbox_wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.notice_popup_checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.notice_popup_checkbox_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid #dddddd;
  border-radius: 50%;
  background-color: #f7f7f7;
  background-position: center;
  flex-shrink: 0;
}
.notice_popup_checkbox_wrap:hover .notice_popup_checkbox_icon {
  border-color: #4274ff;
}
/* 체크된 상태 */
.notice_popup_checkbox:checked + .notice_popup_checkbox_icon {
  border-color: #4274ff;
  background-color: #4274ff;
  background-image: url(../images/check_icon.svg);
  background-repeat: no-repeat;
  background-position: calc(50% - 0.1px) calc(50%);
  background-size: 11px auto;
}
.notice_popup_checkbox_label {
  color: #303030;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 160% */
  letter-spacing: -0.15px;
  font-family:
    "NanumSquareRound",
    "Noto Sans KR",
    "맑은 고딕",
    Malgun Gothic,
    Dotum,
    sans-serif;
}

.notice_popup_close_btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #303030;
  text-align: right;
  font-family: NanumSquareRound;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px; /* 160% */
  letter-spacing: -0.15px;
}

@media screen and (max-width: 768px) {
  /* 모바일: 화면 정중앙에 팝업 표시 */
  .notice_popup.on {
    align-items: center;
    justify-content: center;
  }
  .notice_popup_content {
    width: 92%;
    min-height: 500px;
    max-height: 58vh;
    margin-top: 0;
    margin-left: 0;
  }
  .notice_popup_body {
    padding: 20px 20px 0 20px;
  }
  .notice_popup_body_content {
    padding: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .notice_popup_header {
    padding: 16px 20px;
  }
  .notice_popup_title {
    font-size: 16px;
    line-height: 22px;
  }
  .notice_popup_body {
    padding: 20px;
    font-size: 13px;
  }
  .notice_popup_body_content p {
    font-size: 14px;
    line-height: 20px;
  }
  .notice_popup_body strong {
    font-size: 14px;
  }
  .notice_popup_body .btn_notice_link {
    font-size: 13px;
    line-height: 24px;
    width: 130px;
    height: 38px;
  }
  .notice_popup_footer {
    padding: 0 20px 20px;
    font-size: 13px;
    line-height: 20px;
  }
  .notice_popup_checkbox_label {
    font-size: 13px;
    line-height: 20px;
  }

  .notice_popup_checkbox:checked + .notice_popup_checkbox_icon {
    background-position: calc(50% - 0.1px) calc(50% + 1px);
  }

  /* 모바일에서 br 태그 숨기기 - 텍스트가 자연스럽게 흐르도록 */
  .notice_popup_body_content p br {
    display: none;
  }

  .notice_popup_close_btn {
    font-size: 13px;
  }
  
}
