/* 마코크 — 환자관계·수령일 등 (Figma 마코크 플로우) */

.visually_hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#container .health_survey_home_section.makok_patient_relation,
#container .health_survey_home_section.makok_doc_check,
#container .fix_btn_bottom.makok_doc_check {
  padding-bottom: 0;
  min-height: calc(100vh - 60px);
}

#container .health_survey_home_section .health_survey_home_cta {
  padding-bottom: 48px;
}

/* 환자관계(문서 플로우): 05_진료과선택과 동일한 select_list_box 사용 시 */
.makok_patient_relation
  .department_select_box
  .makok_patient_group_title
  + .select_list_box {
  padding-top: 0;
}

.makok_patient_relation_inner {
  flex: 1;
  width: 100%;
  padding: 16px 0px 160px;
  box-sizing: border-box;
}

.makok_patient_relation,
.makok_receipt_date,
.makok_patient_verify {
  padding-top: 16px;
}

.makok_patient_relation .select_detail_box li,
.makok_receipt_date .select_detail_box li,
.makok_patient_verify .select_detail_box li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.makok_patient_relation .select_detail_box li:last-of-type,
.makok_receipt_date .select_detail_box li:last-of-type,
.makok_patient_verify .select_detail_box li:last-of-type {
  margin-bottom: 0;
}

.makok_patient_relation .select_detail_box li span,
.makok_receipt_date .select_detail_box li span,
.makok_patient_verify .select_detail_box li span {
  flex-shrink: 0;
  width: auto;
  min-width: 60px;
}

.makok_patient_relation .select_detail_box li strong,
.makok_receipt_date .select_detail_box li strong,
.makok_patient_verify .select_detail_box li strong {
  width: auto;
  text-align: right;
}

.makok_patient_summary {
  padding: 24px 20px;
  border-bottom: 8px solid #f9fafb;
}

.makok_patient_summary_list {
  margin: 0;
}

.makok_patient_summary_row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.makok_patient_summary_row:first-child {
  padding-top: 0;
}

.makok_patient_summary_row:last-child {
  padding-bottom: 0;
}

.makok_patient_summary_row dt {
  flex-shrink: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 140%;
  color: #101828;
}

.makok_patient_summary_row dd {
  margin: 0;
  text-align: right;
  font-size: 14px;
  font-weight: 500;
  line-height: 140%;
  color: #00ab91;
}

.makok_patient_group {
  padding: 0 20px;
  margin-top: 24px;
}

.makok_patient_group_title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 140%;
  color: #667085;
}

.makok_patient_options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.makok_patient_options > li {
  width: 100%;
}

.makok_patient_option {
  position: relative;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.makok_patient_option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.makok_patient_option:has(input[type="radio"]:checked) {
  border-color: #00ab91;
  background: rgba(0, 171, 145, 0.08);
}

.makok_patient_options
  .makok_patient_option.radio_box
  input[type="radio"]
  + label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 16px;
  border-radius: 0;
  background: transparent;
  border: none;
  color: #101828;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

.makok_patient_group
  .makok_patient_options
  .makok_patient_option
  input[type="radio"]
  + label
  .icon_radio {
  flex-shrink: 0;
  position: relative;
  background: #f2f4f7;
}

.makok_patient_group
  .makok_patient_options
  .makok_patient_option
  input[type="radio"]:checked
  + label
  .icon_radio {
  background: #fff;
}

.makok_patient_relation
  .select_list_box
  > li.makok_insurance_option
  > input[type="radio"]
  + label {
  padding: 16px;
}

/* 보험회사직원: common 라벨 height:56px + overflow:hidden 때문에 hide_input이 잘림 → 선택 시 행에 .is_selected */
.makok_patient_relation
  .select_list_box
  > li.makok_insurance_option.is_selected
  > input[type="radio"]
  + label {
  height: auto;
  min-height: 56px;
  overflow: visible;
  align-items: flex-start;
  padding-bottom: 14px;
}

.makok_patient_relation
  .select_list_box
  > li.makok_insurance_option.is_selected
  > input[type="radio"]
  + label
  .makok_patient_insurance_input {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  cursor: text;
}

.makok_patient_relation
  .select_list_box
  .hide_input.makok_patient_insurance_input {
  width: 100%;
  margin-top: 8px;
  padding: 8px 0 7px;
  box-sizing: border-box;
  border: none;
  border-bottom: 1px solid #98a2b3;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 400;
  line-height: 140%;
  color: #101828;
}

.makok_patient_relation
  .select_list_box
  .hide_input.makok_patient_insurance_input::placeholder {
  color: #98a2b3;
  font-size: 16px;
  font-weight: 700;
}

.makok_patient_relation
  .select_list_box
  .hide_input.makok_patient_insurance_input:focus {
  outline: none;
  border-bottom-color: #00ab91;
}

.makok_patient_disclaimer {
  margin: 9px 0 0;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 150%;
  color: #98a2b3;
}

.cont_box .makok_patient_disclaimer {
  margin: 16px 0 0;
  padding: 0;
}

.makok_patient_disclaimer.type_receive {
  margin-top: 24px;
}

/* ── 수령일 ── */

.makok_title {
  margin: 24px 0 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 140%;
  color: #101828;
}

.makok_em {
  color: #00ab91;
}

.makok_desc {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 150%;
  color: #667085;
}

.makok_wrap {
  padding: 0 20px;
}

.makok_receipt_date_input_box {
  margin-top: 24px;
  padding: 8px 14px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  background: #ffffff;
  box-sizing: border-box;
}

.makok_receipt_date_input_box.focus {
  border-color: #00ab91;
}

.makok_receipt_date .makok_receipt_date_input_box .form_input.type_calendar {
  display: block;
  width: 100%;
  height: auto;
  min-height: 24px;
  margin: 0;
  padding: 8px 40px 8px 4px;
  border: none;
  border-radius: 0;
  background: url(../image/icon/icon_calendar_gray.svg) no-repeat
    calc(100% - 4px) center;
  background-size: 24px 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 140%;
  color: #101828;
  cursor: pointer;
  box-sizing: border-box;
}

.makok_receipt_date
  .makok_receipt_date_input_box
  .form_input.type_calendar:focus,
.makok_receipt_date
  .makok_receipt_date_input_box
  .form_input.type_calendar:focus-visible {
  outline: none;
}

.makok_receipt_date
  .makok_receipt_date_input_box
  .form_input.type_calendar::placeholder {
  color: #98a2b3;
  font-weight: 400;
}

.makok_receipt_date_notice {
  margin-top: 24px;
}

.makok_receipt_date_notice_lead {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 150%;
  color: #98a2b3;
}

.makok_receipt_date_notice_sp {
  margin-top: 20px;
}

.makok_receipt_date_notice_list {
  font-size: 14px;
  font-weight: 400;
  line-height: 130%;
}

.makok_receipt_date_notice_list > li {
  position: relative;
  padding-left: 8px;
  color: #98a2b3;
}

.makok_receipt_date_notice_list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #98a2b3;
}

.makok_receipt_date_notice_list > li:first-child {
  margin-top: 0;
}

.makok_patient_relation .health_survey_home_cta .btn_main.disabled,
.makok_patient_relation .btn_fix_box .btn_main.disabled,
.makok_receipt_date .btn_fix_box .btn_main.disabled,
.makok_patient_verify .health_survey_home_cta .btn_main.disabled,
.makok_patient_verify .btn_fix_box .btn_main.disabled,
.makok_doc_check .health_survey_home_cta .btn_main.disabled {
  background: #e4e7ec;
  border-color: #e4e7ec;
  color: #98a2b3;
  pointer-events: none;
}

/* ── 환자확인 ── */

.makok_verify_divider_thin {
  height: 1px;
  margin: 20px -20px 0;
  background: #eaecf0;
}

.makok_patient_verify_form {
  margin-top: 24px;
}

.makok_patient_verify_form .form_label {
  margin-bottom: 7px;
}

.makok_patient_verify .form_group_box .form_dash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 500;
  font-style: normal;
  color: #98a2b3;
  line-height: 20px;
  vertical-align: bottom;
}

.makok_patient_verify .form_group_box .form_dash::before {
  content: "-";
}

.makok_patient_verify_self .form_group_box .form_input {
  font-size: 16px;
  font-weight: 700;
}

.makok_patient_verify_self .form_group_box .form_input:disabled {
  border-bottom: 1px solid #d0d5dd;
  padding-bottom: 7px;
  height: auto;
  min-height: 32px;
  box-sizing: border-box;
  background: #f2f4f7 !important;
  opacity: 1;
  cursor: default;
  color: #98a2b3;
}

.makok_patient_verify_self .makok_verify_rrn_row .form_input {
  width: 45%;
}

.makok_patient_verify_self .form_input::placeholder {
  font-size: 16px;
  font-weight: 700;
  color: #d0d5dd;
}

.makok_patient_verify_self .makok_verify_rrn_row .makok_verify_rrn_back {
  border-radius: 0;
  padding: 12px 0;
  min-height: 0;
  background: #ffffff !important;
  border-bottom: 1px solid #d0d5dd;
}

.makok_patient_verify_self .makok_verify_rrn_row .makok_verify_rrn_back:focus,
.makok_patient_verify_self
  .makok_verify_rrn_row
  .makok_verify_rrn_back:focus-visible {
  border-bottom-color: #00ab91;
}

.makok_patient_verify_self
  .makok_verify_rrn_row
  .makok_verify_rrn_back::placeholder {
  color: #d0d5dd;
  letter-spacing: 0.12em;
}

.makok_patient_verify_other .makok_verify_rrn_row .form_input.form_birth {
  font-weight: 500;
}

.makok_patient_verify_other
  .makok_verify_rrn_row
  .makok_verify_rrn_back::placeholder {
  color: #98a2b3;
  letter-spacing: 0.12em;
}

#popup.makok_receipt_date_popup {
  left: 50%;
}
@media (max-width: 1023px) {
  #popup.makok_receipt_date_popup {
    transform: translateX(-50%);
  }
}

/* ── 구비서류 확인 ── */
.makok_doc_check {
  background: #fff;
}

.makok_doc_check_inner {
  flex: 1;
  width: 100%;
  padding: 40px 0px 0;
  box-sizing: border-box;
}

.makok_doc_check_title {
  margin: 0;
  padding: 0 20px;
  font-size: 24px;
  font-weight: 500;
  line-height: 130%;
  color: #101828;
}

.makok_doc_quick_row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 0 20px;
}

.makok_doc_quick_btn {
  min-width: 88px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: #00ab91;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 130%;
  cursor: pointer;
  box-sizing: border-box;
}

.makok_doc_card_list {
  margin: 16px 0 0;
  padding: 0 20px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.makok_doc_card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid #eaecf0;
  background: #ffffff;
  overflow: hidden;
  padding: 12px 16px;
  min-height: 58px;
}

.makok_doc_card.is_locked {
  border-color: #f2f4f7;
  background: #f2f4f7;
}

.makok_doc_card .makok_doc_card_title span {
  font-weight: 400;
}

.makok_doc_card_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.makok_doc_card_title {
  font-size: 15px;
  font-weight: 600;
  line-height: 140%;
  color: #101828;
}

.makok_doc_card.is_locked .makok_doc_card_title span {
  font-weight: 400;
  color: #d0d5dd;
}

.makok_doc_card_link {
  display: inline-block;
  flex-shrink: 0;
  padding-bottom: 1px;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: #98a2b3;
  border-bottom: 1px solid #98a2b3;
  cursor: pointer;
}

.makok_doc_card_body.is_disabled {
  background: transparent;
}

.makok_doc_card_lock_msg {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #d0d5dd;
  text-align: left;
  line-height: 140%;
}

.makok_doc_card.is_locked .makok_doc_card_title,
.makok_doc_card.is_locked .makok_doc_card_link {
  color: #d0d5dd;
}

.makok_doc_card.is_locked .makok_doc_card_link {
  border-bottom-color: #d0d5dd;
}

.makok_doc_upload_zone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 4px;
  background: #f2f4f7;
  cursor: pointer;
}

.makok_doc_upload_zone.is_static_done {
  cursor: default;
  background: rgba(0, 171, 145, 0.12);
  border: none;
}

.makok_doc_upload_plus {
  display: inline-block;
  position: relative;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 8H13.5M8 2.5V13.5' stroke='%2398A2B3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.makok_doc_upload_plus::before,
.makok_doc_upload_plus::after {
  content: none;
}

.makok_doc_upload_done {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.makok_doc_upload_done[hidden] {
  display: none !important;
}

.makok_doc_upload_done_icon {
  width: 16px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='12' viewBox='0 0 16 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 1.5L5.75 10.5L2 6.40909' stroke='%2300AB91' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.makok_doc_upload_done_text {
  font-size: 16px;
  font-weight: 500;
  color: #00ab91;
}

.makok_doc_notes {
  margin-top: 20px;
  margin-bottom: 18px;
  padding: 20px 20px 48px;
  background: #f7f7f8;
}

.makok_doc_notes_list {
  margin: 0;
}

.makok_doc_notes_list > li {
  font-size: 14px;
  font-weight: 400;
  line-height: 160%;
  color: #98a2b3;
}

.makok_doc_notes_em {
  color: #00ab91;
  font-weight: 600;
}

/* 풀스크린 레이어 (common #popup .popup_wrap.type_full 참고) */
.makok_layer {
  box-sizing: border-box;
}

@media (max-width: 1023px) {
  .makok_layer_full {
    left: 50%;
    transform: translateX(-50%);
  }
}

.makok_layer_full {
  position: fixed;
  left: 50%;
  top: 0;
  z-index: 1500;
  display: none;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: 480px;
  min-width: 360px;
  margin: 0 auto;
  background: #ffffff;
}

.makok_layer_full.is_open {
  display: block;
}

.makok_layer_full_inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.makok_layer_full_hd {
  position: sticky;
  top: 0;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 48px;
  background: #ffffff;
  box-shadow: 0 3px 5px rgba(16, 24, 40, 0.05);
}

.makok_layer_full_hd h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  color: #101828;
}

.makok_layer_btn_close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: url(../image/btn/btn_close.svg) no-repeat center center;
  background-size: contain;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
}

.makok_layer_btn_back {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: url(../image/btn/btn_back.svg) no-repeat center center;
  background-size: contain;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
}

.makok_layer_full_body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px 20px 40px;
}

.makok_layer_full_body:has(.makok_example_notice:not([hidden]))
  .makok_example_toolbar {
  margin-bottom: 16px;
}

.makok_example_toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.makok_example_subtitle {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 140%;
  color: #101828;
}

.makok_sheet_panel .makok_precaution_callout {
  margin-top: 16px;
  margin-bottom: 0;
}

.makok_example_notice,
.makok_precaution_callout {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f2f4f7;
}

.makok_example_notice_icon,
.makok_precaution_callout_icon {
  width: 16px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='20' viewBox='0 0 16 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.2727 10C14.2727 13.3137 11.5254 16 8.13636 16C4.74734 16 2 13.3137 2 10C2 6.68629 4.74734 4 8.13636 4C11.5254 4 14.2727 6.68629 14.2727 10Z' stroke='%2300AB91' stroke-width='1.63636'/%3E%3Cpath d='M8.13623 7.27295V10.0002' stroke='%2300AB91' stroke-width='1.63636' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8.13623 12.1816V12.4544' stroke='%2300AB91' stroke-width='1.63636' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.makok_example_notice p,
.makok_precaution_callout p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 130%;
  color: #00ab91;
}

.makok_example_notice p strong,
.makok_precaution_callout p strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 130%;
  color: #00ab91;
}

.makok_link_teal {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: #00ab91;
  text-decoration: underline;
  cursor: pointer;
}

.makok_example_frame {
  position: relative;
  box-shadow: 0 2.051px 6.154px 0 rgba(16, 24, 40, 0.09);
  overflow: visible;
}

.makok_example_img {
  display: block;
  width: 100%;
  height: auto;
}

.makok_fab_zoom {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 7px;
  background: rgba(234, 236, 240, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.makok_fab_zoom img {
  width: 22px;
  height: 22px;
  display: block;
}

.makok_guide_heading {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #101828;
}

.makok_guide_list {
  margin: 0;
  font-size: 14px;
  line-height: 160%;
  color: #475467;
}

.makok_guide_list > li {
  margin-top: 8px;
}

.makok_layer_full_ft {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 16px 20px 28px;
  background: #ffffff;
  box-shadow: 0 -2px 8px rgba(16, 24, 40, 0.04);
}

.makok_layer_full_ft .btn {
  width: 100%;
  height: 52px;
  line-height: 52px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
}

/* 바텀시트 (#popup.type_toast · 설문조사_완료 바텀시트 참고) */
.makok_layer_sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 100%;
  min-width: 360px;
  max-width: 480px;
  height: 100%;
  z-index: 2600;
  display: none;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .makok_layer_sheet {
    left: 50%;
    transform: translateX(-50%);
  }
}

.makok_sheet_bg {
  position: absolute;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

.makok_sheet_panel {
  position: relative;
  z-index: 1;
  display: none;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  border-radius: 20px 20px 0 0;
  background: #ffffff;
  padding: 64px 20px 24px;
  box-sizing: border-box;
  overflow: auto;
  pointer-events: auto;
}

.makok_sheet_btn_close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: url(../image/btn/btn_close.svg) no-repeat center center;
  background-size: contain;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
  z-index: 2;
}

#makokSheetPrecaution .makok_precaution_list li,
#makokSheetPrecaution .makok_precaution_list li strong {
  color: #475467;
}

.makok_precaution_sheet {
  box-sizing: border-box;
}

.makok_precaution_section {
  box-sizing: border-box;
}

.makok_precaution_section--ruled {
  padding: 0 0 20px;
  border-bottom: 1px solid #eaecf0;
}

.makok_precaution_section--ruled + .makok_precaution_section--ruled {
  margin-top: 20px;
}

.makok_precaution_section_title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 140%;
  color: #101828;
}

.makok_precaution_body {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 160%;
  color: #344054;
}

.makok_precaution_warn {
  margin: 20px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 150%;
  color: #fb5058;
}

.makok_precaution_list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.makok_precaution_list > li {
  position: relative;
  padding-left: 10px;
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
  color: #344054;
}

.makok_precaution_list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #344054;
}

.makok_id_sheet_body {
  padding-bottom: 8px;
}

.makok_id_block {
  padding: 16px 0;
  border-bottom: 1px solid #eaecf0;
}

.makok_id_block:first-of-type {
  padding-top: 4px;
}

.makok_id_block:last-of-type {
  border-bottom: none;
}

.makok_id_block_title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 140%;
  color: #101828;
}

.makok_id_block_text {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 160%;
  color: #475467;
}

/* 전체 화면 이미지 뷰어 */
.makok_layer_imgviewer {
  position: fixed;
  inset: 0;
  z-index: 2700;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 16px;
  box-sizing: border-box;
}

.makok_layer_imgviewer.is_open {
  display: flex;
}

.makok_imgviewer_close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12) url(../image/btn/btn_close_white.svg)
    no-repeat center center;
  background-size: 22px 22px;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
  z-index: 2;
}

.makok_imgviewer_inner {
  max-width: 100%;
  max-height: 100%;
}

.makok_imgviewer_inner img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* ── 의무기록 조회 ── */
.makok_medical_lookup_inner {
  padding: 40px 20px;
}

.makok_medical_lookup_inner .date_view_box > input {
  background:
    url(../image/icon_calendarGray_simple.svg) no-repeat calc(100% - 10px)
      center,
    #ffffff;
  background-size: 20px;
}

.makok_medical_lookup_inner .date_view_box > input:disabled {
  cursor: default;
}

.makok_medical_lookup_inner .date_view_box.is_direct > input:not(:disabled) {
  background:
    url(../image/icon_calendarBlack_simple.svg) no-repeat calc(100% - 10px)
      center,
    #ffffff;
  background-size: 20px;
}

.makok_medical_lookup .cont_box.type_top {
  padding: 0;
}

.makok_medical_lookup .main_title {
  margin-top: 0;
}

.makok_period_list_box li {
  width: fit-content;
  max-width: calc(20% - 6.4px);
}

.makok_period_list_box li input + label {
  border-radius: 32px;
  line-height: 28px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 130%;
  border-color: #f2f4f7;
  background: #f2f4f7;
  color: #344054;
}

.makok_medical_lookup_notice {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 145%;
  color: #98a2b3;
}

.makok_medical_list_box {
  padding: 19px 0 32px;
}

.makok_medical_list_box > li > input + label {
  height: 66px;
  border-radius: 10px;
}

/* ── 의무기록 선택 ── */

.makok_medical_select_inner {
  padding: 40px 0px;
}

.makok_medical_select .main_title {
  margin-top: 0;
  padding: 0 20px;
}

.makok_medical_select .makok_desc {
  padding: 0 20px;
  color: #fb5058;
}

.makok_medical_select .makok_desc strong {
  color: #fb5058;
  font-weight: 600;
}

.makok_medical_dept {
  padding: 0 20px;
}

.makok_medical_dept + .makok_medical_dept {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 8px solid #f2f4f7;
}

.makok_medical_dept_list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
}

.makok_medical_dept_head {
  padding: 12px 16px;
  border-radius: 8px;
  background: #f7f7f8;
}

.makok_medical_dept_head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #101828;
  line-height: 1.2;
}

.makok_medical_dept_head h3 span {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 32px;
  background: #e6f9f5;
  font-size: 12px;
  font-weight: 600;
  color: #00ab91;
}

.makok_medical_dept_head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #98a2b3;
}

.makok_medical_doc_list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.makok_medical_doc_list > li {
  position: relative;
  margin: 0;
  padding: 0;
}

.makok_medical_doc_list > li > input + label {
  min-height: 48px;
  height: auto;
  padding: 16px;
  border-radius: 8px;
  border-color: #eaecf0;
  background: #ffffff;
}

.makok_medical_doc_list > li > input:checked + label {
  background: rgba(0, 171, 145, 0.12);
  border-color: #00ab91;
}

.makok_medical_doc_list > li > input + label .text strong {
  font-size: 16px;
  font-weight: 500;
  color: #101828;
}

.makok_doc_move_link {
  border: none;
  background: none;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 500;
  color: #667085;
  padding-bottom: 1px;
  border-bottom: 1px solid #667085;
  cursor: pointer;
}

.makok_doc_other {
  padding-bottom: 8px;
}

.makok_doc_other > input + label {
  flex-wrap: wrap;
  align-items: flex-start;
}

.makok_doc_other > input + label .text {
  width: calc(100% - 30px);
}

.makok_doc_other > input:checked + label .makok_doc_other_input {
  display: block;
}

.makok_doc_other_input {
  display: none;
  width: 100%;
  margin-top: 8px;
  border: none;
  border-bottom: 1px solid #98a2b3;
  background: transparent;
  font-size: 14px;
  line-height: 1.4;
  color: #344054;
  padding: 8px 0 7px;
  box-sizing: border-box;
}

.makok_doc_other_input::placeholder {
  color: #98a2b3;
  font-size: 16px;
  font-weight: 700;
  line-height: 140%;
}

.makok_doc_other_input:focus {
  outline: none;
  border-bottom-color: #00ab91;
}

.makok_medical_select .health_survey_home_cta .btn_main.disabled,
.makok_medical_select .btn_fix_box .btn_main.disabled {
  background: #e4e7ec;
  border-color: #e4e7ec;
  color: #98a2b3;
  pointer-events: none;
}

.makok_form_select_popup .makok_layer_full_body {
  padding: 40px 20px;
}

.makok_form_select_popup .makok_title,
.makok_form_select_popup .main_title {
  margin-top: 0;
}

.makok_form_select_popup .makok_desc {
  color: #fb5058;
}

.makok_form_select_popup .makok_desc strong {
  color: #fb5058;
}

.makok_form_doc_list {
  margin-top: 32px;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.makok_form_doc_list > li > input + label {
  min-height: 84px;
  height: auto;
  padding: 14px 16px;
  border-radius: 8px;
  border-color: #eaecf0;
  background: #ffffff;
}

.makok_form_doc_list > li > input[type="radio"] + label .icon_radio {
  background: #fff;
}

.makok_form_doc_list > li > input + label .text strong {
  display: block;
  margin-bottom: 2px;
  font-size: 16px;
  font-weight: 500;
  color: #101828;
  line-height: 140%;
}

.makok_form_doc_list > li > input + label .text p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 145%;
  color: #98a2b3;
}

.makok_form_select_popup .makok_layer_full_ft .btn.disabled {
  background: #e4e7ec;
  border-color: #e4e7ec;
  color: #98a2b3;
  pointer-events: none;
}

/* ── 신청하기 ── */
.makok_apply_section {
  padding-bottom: 0;
  min-height: calc(100vh - 60px);
  background: #f7f7f8;
}

.makok_apply_section .cont_box.type_top {
  padding: 0;
}

.makok_apply_inner {
  padding: 40px 20px;
}

.makok_apply_inner .main_title {
  margin-top: 0;
}

.makok_apply_card {
  position: relative;
  margin-top: 24px;
  padding: 44px 0px 20px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 6px 0 rgba(16, 24, 40, 0.09);
}

.makok_apply_card_close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 24px;
  height: 24px;
  border: none;
  background: url(../image/btn/btn_close.svg) no-repeat center center;
  background-size: contain;
  text-indent: -9999px;
  overflow: hidden;
}

.makok_apply_date {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 140%;
  color: #101828;
}

.makok_apply_top {
  padding: 0px 20px;
}

.makok_apply_name {
  display: flex;
  align-items: center;
  margin: 8px 0 0;
}

.makok_apply_name strong {
  font-size: 20px;
  font-weight: 700;
  line-height: 130%;
  color: #101828;
}

.makok_apply_badge {
  display: inline-block;
  margin-left: 4px;
  padding: 5px 8px;
  height: 27px;
  border-radius: 32px;
  border: 1px solid #00ab91;
  font-size: 14px;
  font-weight: 600;
  color: #00ab91;
}

.makok_apply_doc {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: #00ab91;
}

.makok_apply_block {
  margin: 16px 20px 0;
  padding-top: 16px;
  border-top: 1px solid #eaecf0;
}

.makok_apply_block h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #475467;
}

.makok_apply_dl {
  margin-top: 8px;
}

.makok_apply_dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.makok_apply_dl > div + div {
  margin-top: 12px;
}

.makok_apply_dl dt {
  font-size: 14px;
  font-weight: 400;
  color: #667085;
}

.makok_apply_dl dd {
  margin: 0;
  text-align: right;
  font-size: 14px;
  color: #101828;
}

.makok_apply_pay {
  margin-top: 16px;
  padding: 16px 20px;
  border-top: 8px solid #f9fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.makok_apply_pay span {
  font-size: 14px;
  font-weight: 500;
  color: #667085;
}

.makok_apply_pay strong {
  font-size: 16px;
  font-weight: 700;
  color: #101828;
}

.makok_apply_pay_desc {
  padding: 0 20px;
  font-size: 13px;
  font-weight: 400;
  line-height: 140%;
  color: #667085;
}

.makok_apply_pay_desc::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 5V8.5M8.25 10.75C8.25 10.8881 8.13807 11 8 11C7.86193 11 7.74997 10.8881 7.74997 10.75C7.74997 10.6712 7.7864 10.601 7.84333 10.5552M8.25 10.75C8.25 10.6119 8.13804 10.5 7.99997 10.5M8.25 10.75L7.99997 10.5M8.25 10.75H8C8 10.75 7.96867 10.711 7.84333 10.5552M7.99997 10.5C7.94066 10.5 7.8862 10.5207 7.84333 10.5552M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8Z' stroke='%231D2939' stroke-linecap='round'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: -3px;
  margin-right: 2px;
}

.makok_apply_notes {
  margin: 24px 0 0;
}

.makok_apply_notes > li {
  position: relative;
  padding-left: 8px;
  font-size: 14px;
  line-height: 130%;
  color: #98a2b3;
}

.makok_apply_notes > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #98a2b3;
}

.makok_apply_help_row {
  margin-top: 24px;
  display: flex;
  gap: 8px;
}

.makok_apply_help_btn {
  flex: 1;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: #eaecf0;
}

.makok_apply_help_btn span {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #475467;
}

.makok_apply_help_btn span::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.78125 7.80002C6.29576 8.86253 7.15492 9.71949 8.21875 10.2313C8.29722 10.2684 8.38402 10.2845 8.47059 10.2779C8.55717 10.2714 8.64054 10.2424 8.7125 10.1938L10.275 9.15002C10.344 9.1032 10.4238 9.07463 10.5069 9.06698C10.5899 9.05933 10.6736 9.07285 10.75 9.10627L13.675 10.3625C13.775 10.4041 13.8585 10.4774 13.9127 10.5712C13.9669 10.6649 13.9888 10.7739 13.975 10.8813C13.8823 11.6049 13.5291 12.2699 12.9815 12.7519C12.4339 13.2339 11.7295 13.4999 11 13.5C8.74566 13.5 6.58365 12.6045 4.98959 11.0104C3.39553 9.41637 2.5 7.25436 2.5 5.00002C2.50016 4.27052 2.76613 3.56607 3.24814 3.01849C3.73015 2.47091 4.39516 2.11773 5.11875 2.02502C5.22615 2.01122 5.33511 2.03312 5.42884 2.08733C5.52258 2.14153 5.59589 2.22505 5.6375 2.32502L6.89375 5.25627C6.92642 5.33149 6.94009 5.41359 6.93355 5.49533C6.92701 5.57707 6.90046 5.65595 6.85625 5.72502L5.8125 7.31252C5.76603 7.38432 5.73876 7.46684 5.73329 7.55219C5.72782 7.63755 5.74433 7.72287 5.78125 7.80002Z' stroke='%23101828' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: -3px;
  margin-right: 2px;
}

.makok_contact_sheet {
  padding: 46px 22px 57px;
}

.makok_contact_title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 130%;
  color: #344054;
}

.makok_contact_call {
  margin: 0;
}

.makok_contact_call span {
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
  color: #00ab91;
}

.makok_contact_call span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #d0d5dd;
  vertical-align: middle;
  margin: 0 6px;
}

.makok_contact_time {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 130%;
  color: #667085;
}

@media (max-width: 750px) {
  .makok_period_list_box {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .makok_period_list_box::-webkit-scrollbar {
    display: none;
  }

  .makok_period_list_box li {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }
}

/* ── 내문서함 ── */
.makok_my_docs_section .card_view_box .card_info_box .name .bedge {
  margin-left: 8px;
  vertical-align: middle;
}

.makok_my_docs_section .card_view_box .inner_box {
  padding: 16px 30px;
}

.makok_my_docs_section .sub_btn_box {
  gap: 8px;
}

.makok_my_docs_section .sub_btn_box .btn {
  border-radius: 8px;
}

.makok_my_docs_section .sub_btn_box .btn.btn_detail {
  width: 35%;
  border-color: #d0d5dd;
  color: #667085;
}

.makok_my_docs_section .sub_btn_box .btn.btn_detail + .btn {
  width: 65%;
}

.makok_doc_detail_body {
  padding-top: 40px;
  padding-bottom: 77px;
}

.makok_doc_detail_section + .makok_doc_detail_section {
  margin-top: 20px;
}

.makok_doc_detail_title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 140%;
  color: #667085;
}

.makok_doc_detail_table {
  width: 100%;
  background: #ffffff;
  border: 1px solid #f2f4f7;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 4px;
  table-layout: fixed;
}

.makok_doc_detail_table th,
.makok_doc_detail_table td {
  border-top: 1px solid #f2f4f7;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 140%;
  vertical-align: middle;
}

.makok_doc_detail_table tr:first-child th,
.makok_doc_detail_table tr:first-child td {
  border-top: none;
}

.makok_doc_detail_table th {
  width: 26%;
  font-weight: 500;
  color: #667085;
  background: #eaecf0;
  text-align: left;
}

.makok_doc_detail_table td {
  border-left: 1px solid #f2f4f7;
  font-weight: 500;
  color: #101828;
  word-break: break-word;
}

.makok_doc_detail_table tr:first-child th:first-child {
  border-top-left-radius: 4px;
}

.makok_doc_detail_table tr:first-child td:last-child {
  border-top-right-radius: 4px;
}

.makok_doc_detail_table tr:last-child th:first-child {
  border-bottom-left-radius: 4px;
}

.makok_doc_detail_table tr:last-child td:last-child {
  border-bottom-right-radius: 4px;
}
