html.octomo-lock,
body.octomo-lock {
  overflow: hidden !important;
}

/* 개인정보 처리방침 모달: 인증 모달 위에서 열리며 긴 약관 본문만 내부 스크롤한다. */
.octomo-policy,
.octomo-policy * {
  box-sizing: border-box;
}

.octomo-policy {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: "Noto Sans KR", Arial, sans-serif;
}

.octomo-policy.is-open {
  display: flex;
}

.octomo-policy__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(3px);
}

.octomo-policy__card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
}

.octomo-policy__header {
  position: relative;
  min-height: 64px;
  padding: 19px 64px 17px 24px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.octomo-policy__header h2 {
  margin: 0;
  color: #222;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
}

.octomo-policy__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #777;
  font-size: 34px;
  font-weight: 300;
  line-height: 38px;
  cursor: pointer;
}

.octomo-policy__close:hover {
  background: #f3f3f3;
  color: #222;
}

.octomo-policy__body {
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 24px 28px 30px;
  background: #fff;
}

.octomo-policy__loading {
  margin: 40px 0;
  color: #666;
  font-size: 15px;
  text-align: center;
}

.octomo-policy__viewer,
.octomo-policy__viewer .toastui-editor-contents {
  color: #333;
  font-family: "Noto Sans KR", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
}

.octomo-policy__viewer.is-plain {
  white-space: pre-wrap;
}

.octomo-policy__viewer .toastui-editor-contents h1,
.octomo-policy__viewer .toastui-editor-contents h2,
.octomo-policy__viewer .toastui-editor-contents h3,
.octomo-policy__viewer .toastui-editor-contents h4 {
  color: #222;
}

.octomo-policy__viewer .toastui-editor-contents table {
  width: 100%;
}

/* 문자 인증 모달 공통 레이어: 딤드와 하단 고정 문의바보다 항상 위에 표시한다. */
.octomo-modal,
.octomo-modal * {
  box-sizing: border-box;
}

.octomo-modal {
  position: fixed;
  inset: 0;
  /* 기존 하단 고정 문의바가 z-index:100000 !important를 사용하므로 충분히 높은 값을 둔다. */
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: "Noto Sans KR", Arial, sans-serif;
}

.octomo-modal.is-open {
  display: flex;
}

.octomo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.octomo-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
}

.octomo-modal.is-send-step .octomo-modal__dialog {
  max-width: 620px;
}

.octomo-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #888;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 35px;
  text-align: center;
  cursor: pointer;
}

.octomo-modal__close:hover {
  background: #f3f3f3;
  color: #222;
}

.octomo-modal__header {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 58px;
  margin: 0;
  padding: 0 58px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.octomo-modal__header h2 {
  margin: 0;
  padding: 0;
  color: #232323;
  font-size: 19px;
  font-weight: 500;
  line-height: 58px;
  text-align: center;
}

.octomo-modal__intro {
  margin: 0 0 18px;
  padding: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.octomo-modal__body {
  padding: 28px 30px 22px;
}

.octomo-step[hidden],
.octomo-pc-guide[hidden],
.octomo-mobile-guide[hidden],
.octomo-qr-wrap[hidden] {
  display: none !important;
}

/* 최초 인증 단계의 개인정보 수집·이용 동의 영역이다. */
.octomo-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 18px;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.octomo-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #7fc241;
}

.octomo-consent__detail {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #096b37;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* 인증 시작·확인 버튼과 모바일 문자 앱 링크의 공통 터치 크기와 형태다. */
.octomo-primary,
.octomo-sms-button,
.octomo-secondary {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 800;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.octomo-primary,
.octomo-sms-button {
  background: #7fc241;
  color: #fff;
}

.octomo-primary:hover,
.octomo-sms-button:hover {
  background: #70b236;
}

.octomo-sms-button--fallback {
  width: max-content;
  max-width: 100%;
  min-height: 0;
  margin: 12px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #447528;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.octomo-sms-button--fallback:hover {
  background: transparent;
  color: #2f5f1a;
}

.octomo-sms-button[hidden] {
  display: none !important;
}

.octomo-primary:focus-visible,
.octomo-sms-button:focus-visible,
.octomo-secondary:focus-visible,
.octomo-help-call a:focus-visible,
.octomo-modal__close:focus-visible,
.octomo-complete__close:focus-visible,
.octomo-complete__confirm:focus-visible {
  outline: 3px solid rgba(127, 194, 65, 0.42);
  outline-offset: 2px;
}

.octomo-secondary {
  min-height: 42px;
  margin-top: 8px;
  background: #f1f3f2;
  color: #59635e;
  font-size: 13px;
  line-height: 42px;
}

.octomo-primary:disabled,
.octomo-modal .is-disabled {
  cursor: wait;
  opacity: 0.58;
}

/* PC의 QR 촬영 안내와 모바일 문자 전송 안내에 공통으로 쓰는 제목이다. */
.octomo-guide-title {
  margin: 0 0 13px;
  color: #222;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.octomo-guide-title--step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.octomo-guide-title--step span,
.octomo-guide-card__heading span {
  display: inline-block;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7fc241;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}

/* PC 화면에서는 QR과 실제 문자 전송 예시를 두 칸으로 나란히 보여준다. */
.octomo-pc-guide__visuals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  margin-bottom: 14px;
}

.octomo-guide-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 292px;
  margin: 0;
  padding: 14px 16px 12px;
  border: 1px solid #dfe8d9;
  border-radius: 14px;
  background: #f8faf7;
}

.octomo-guide-card__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 0 8px;
  color: #273029;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.octomo-qr-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 205px;
  height: 205px;
  margin: auto 0 6px;
  border: 0;
  background: transparent;
}

.octomo-qr-wrap img {
  display: block;
  width: 195px;
  height: 195px;
  object-fit: contain;
}

.octomo-send-example {
  justify-content: flex-start;
}

.octomo-send-example img {
  display: block;
  width: 100%;
  max-width: 270px;
  height: auto;
  margin: auto 0 4px;
  object-fit: contain;
}

.octomo-guide-card__caption,
.octomo-send-example figcaption {
  margin: 0;
  color: #69716c;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

/* 모바일에서는 QR 대신 실제 문자 전송 화면 예시를 크게 보여준다. */
.octomo-send-example--mobile {
  width: 100%;
  max-width: 330px;
  min-height: 0;
  margin: 12px auto 18px;
  padding: 12px 14px 10px;
}

.octomo-send-example--mobile img {
  max-width: 300px;
}

.octomo-send-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.octomo-send-steps li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 9px 5px;
  border: 1px solid #e4eadf;
  border-radius: 8px;
  background: #f7faf5;
  color: #3e493f;
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
}

.octomo-send-steps li span {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #7fc241;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.octomo-send-steps li strong {
  min-width: 0;
  font-weight: 700;
}

/* 인증문구의 5분 유효시간을 강조하는 카운트다운이다. */
.octomo-countdown {
  margin: 0 0 18px;
  color: #d34a2d;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* 인증 진행이 어려운 사용자가 고객센터로 바로 전화할 수 있는 보조 안내다. */
.octomo-help-call {
  margin: 12px 0 0;
  text-align: center;
}

.octomo-help-call[hidden] {
  display: none !important;
}

.octomo-help-call a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid #dce9d2;
  border-radius: 9px;
  background: #f6faf3;
  color: #4f6150;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.octomo-help-call a[href] {
  cursor: pointer;
}

.octomo-help-call a[href]:hover {
  border-color: #bfd8aa;
  background: #f0f7eb;
}

.octomo-help-call a span,
.octomo-help-call a strong {
  color: #4f9825;
}

.octomo-help-call a strong {
  font-weight: 800;
}

/* 인증 시간이 끝났을 때 재발급이 필요하다는 상태를 표시한다. */
.octomo-expired-notice {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #fff5f3;
  color: #9f2916;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.octomo-expired-notice[hidden] {
  display: none !important;
}

.octomo-expired-notice strong,
.octomo-expired-notice span {
  display: block;
}

.octomo-expired-notice strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.octomo-modal.is-expired .octomo-pc-guide__visuals,
.octomo-modal.is-expired .octomo-send-example--mobile {
  opacity: 0.32;
  filter: grayscale(1);
  pointer-events: none;
  user-select: none;
}

.octomo-modal.is-expired .octomo-sms-button--fallback {
  color: #999;
  opacity: 0.65;
  pointer-events: none;
  text-decoration: line-through;
}

.octomo-modal.is-expired .octomo-status {
  display: none;
}

/* API 처리 중·오류·성공 메시지를 표시하는 접근성 상태 영역이다. */
.octomo-status {
  min-height: 20px;
  margin-top: 12px;
  color: #555;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.octomo-status.is-error { color: #c92a2a; }
.octomo-status.is-success { color: #08783f; font-weight: 700; }
.octomo-status.is-warning { color: #a75b00; }
.octomo-status.is-loading,
.octomo-status.is-info { color: #285b91; }

/* 상담 접수 완료창은 기존 사이트의 공통 레이어 스타일에 덮이지 않도록 독립된 클래스만 사용한다. */
.octomo-complete,
.octomo-complete * {
  box-sizing: border-box;
}

.octomo-complete {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: "Noto Sans KR", Arial, sans-serif;
}

.octomo-complete__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: default;
  backdrop-filter: blur(3px);
}

.octomo-complete__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
  color: #232323;
}

.octomo-complete__header {
  position: relative;
  height: 58px;
  margin: 0;
  padding: 0 58px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.octomo-complete__header h2 {
  margin: 0;
  padding: 0;
  color: #232323;
  font-size: 19px;
  font-weight: 500;
  line-height: 58px;
  text-align: center;
}

.octomo-complete__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: block;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #888;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 35px;
  text-align: center;
  cursor: pointer;
}

.octomo-complete__close:hover {
  background: #f3f3f3;
  color: #222;
}

.octomo-complete__body {
  margin: 0;
  padding: 36px 40px 32px;
  text-align: center;
}

.octomo-complete__check {
  position: relative;
  display: block;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #7fc241;
}

.octomo-complete__check::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 14px;
  width: 22px;
  height: 12px;
  border: solid #fff;
  border-width: 0 0 5px 5px;
  transform: rotate(-45deg);
}

.octomo-complete__title {
  margin: 0;
  padding: 0 0 20px;
  border-bottom: 2px solid #797979;
  color: #232323;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.04em;
  text-align: center;
}

.octomo-complete__title strong,
.octomo-complete__message strong {
  color: #7fc241;
  font-weight: 800;
}

.octomo-complete__message {
  margin: 20px 0 0;
  padding: 0;
  color: #232323;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.04em;
  text-align: center;
}

.octomo-complete__confirm {
  display: block;
  width: 100%;
  height: 64px;
  margin: 0;
  padding: 0;
  border: 0;
  background: #7fc241;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 64px;
  text-align: center;
  cursor: pointer;
}

.octomo-complete__confirm:hover {
  background: #70b236;
}

/* 모바일에서는 인증 앞의 두 화면을 전체 폭 바텀시트로 표시하고 완료창 크기는 유지한다. */
@media (max-width: 767px) {
  .octomo-policy {
    align-items: flex-end;
    padding: 0;
  }

  .octomo-policy__card {
    width: 100%;
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 18px 18px 0 0;
  }

  .octomo-policy__header {
    min-height: 58px;
    padding: 17px 56px 15px 20px;
  }

  .octomo-policy__header h2 {
    font-size: 19px;
  }

  .octomo-policy__close {
    top: 9px;
    right: 10px;
  }

  .octomo-policy__body {
    max-height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
    padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  }

  .octomo-policy__viewer,
  .octomo-policy__viewer .toastui-editor-contents {
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
  }

  .octomo-modal {
    align-items: flex-end;
    padding: 0;
  }

  .octomo-modal__dialog {
    width: 100%;
    max-width: none;
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 18px 18px 0 0;
  }

  .octomo-modal.is-send-step .octomo-modal__dialog {
    max-width: none;
  }

  .octomo-modal__body {
    padding: 24px 20px calc(18px + env(safe-area-inset-bottom));
  }

  .octomo-sms-button {
    min-height: 54px;
    line-height: 54px;
  }

  .octomo-send-example--mobile,
  #octomo-verify {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  #octomo-step-send {
    display: flex;
    flex-direction: column;
  }

  .octomo-mobile-guide {
    display: contents;
  }

  .octomo-mobile-guide .octomo-mobile-guide__title {
    order: 1;
  }

  .octomo-send-example--mobile {
    order: 2;
  }

  .octomo-countdown {
    order: 3;
  }

  .octomo-expired-notice {
    order: 3;
  }

  #octomo-verify {
    order: 4;
  }

  .octomo-help-call {
    margin-top: 10px;
  }

  .octomo-help-call a {
    display: flex;
    width: 100%;
    min-height: 44px;
  }

  .octomo-sms-button--fallback {
    order: 5;
    min-height: 0;
    margin: 20px auto 0;
    padding: 2px 0;
    line-height: 20px;
  }

  .octomo-send-steps {
    gap: 5px;
  }

  .octomo-send-steps li {
    flex-direction: column;
    gap: 3px;
    padding: 7px 3px;
    font-size: 10px;
  }

  .octomo-complete {
    align-items: flex-end;
    padding: 0;
  }

  .octomo-complete__card {
    max-width: none;
    border-radius: 18px 18px 0 0;
  }

  .octomo-complete__body {
    padding: 30px 24px 27px;
  }

  .octomo-complete__title {
    font-size: 23px;
  }

  .octomo-complete__message {
    font-size: 16px;
  }

  .octomo-complete__confirm {
    height: 58px;
    padding-bottom: env(safe-area-inset-bottom);
    line-height: 58px;
  }
}
