/* ============================================================
   페이대장 — 서비스신청방법 / 서비스이용요금 공용 모달
   (간편결제/링크결제/청구서결제/주문서결제 4개 상세페이지가
    공통으로 불러써 html id/data 속성과 클래스가 모두 동일합니다.
    index.html의 #howto / #pricing 섹션과 동일한 내부 마크업
    (howto- 계열, pt- 계열, fee- 계열 클래스)을 오버레이 패널
    안에 그대로 넣어, css/style.css의 기존 스타일을 변경 없이
    재사용합니다. 이 파일은 오버레이/패널/닫기버튼 틀만 정의합니다.

   주의: 이 주석 블록을 포함해 앞으로 이 파일에 주석을 추가할 때,
   별표 문자 바로 뒤에 빗금 문자가 이어지는 두 글자 조합을 절대
   쓰지 마세요(그 두 글자가 CSS 주석의 종료 기호와 같아서, 그 조합이
   나타나는 순간 CSS 파서가 주석이 의도보다 훨씬 앞에서 끝난 것으로
   오인하고, 그 직후의 진짜 규칙이 깨진 텍스트로 취급되어 통째로
   유실됩니다. 실제로 이 문제로 모달이 전혀 보이지 않았던 적이 두
   번 있었습니다). 클래스를 나열할 때는 "howto- 계열, pt- 계열,
   fee- 계열 클래스"처럼 구분 기호 없는 자연어로 쓰세요.
   ============================================================ */

.sm-modal {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
}
.sm-modal.is-open { display: block; }
.sm-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(17, 24, 20, 0.56);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .25s ease;
}
.sm-modal.is-open .sm-modal__overlay { opacity: 1; }
.sm-modal__panel {
  position: relative;
  width: min(720px, 92vw);
  max-height: 86vh;
  margin: 7vh auto 0;
  background: var(--white);
  border-radius: var(--r-xl, 20px);
  box-shadow: var(--sh-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(18px) scale(.98);
  transition: opacity .25s ease, transform .25s ease;
}
.sm-modal__panel--wide { width: min(900px, 94vw); }
.sm-modal.is-open .sm-modal__panel {
  opacity: 1;
  transform: none;
}
.sm-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-50); border: 1.5px solid var(--gray-200);
  color: var(--text-heading); font-size: 1rem;
  cursor: pointer; transition: var(--transition);
}
.sm-modal__close:hover { background: var(--mint-50); border-color: var(--mint-300, var(--mint-400)); color: var(--mint-700); transform: rotate(90deg); }
.sm-modal__body {
  padding: 48px 40px 40px;
  overflow-y: auto;
}
/* 모달 내부에서는 index.html처럼 중앙정렬 + 아래 여백이 과한 섹션 헤더를 살짝 축소 */
.sm-modal__body .section-header { margin-bottom: 36px; }

@media (max-width: 760px) {
  .sm-modal__panel { width: 100vw; max-height: 100vh; height: 100%; margin: 0; border-radius: 0; }
  .sm-modal__body { padding: 56px 20px 32px; }
}
