/* 26.08.25 바로가기 설치(PWA) 안내 모달
   - 상시 노출 버튼 없음(운영자 요청으로 플로팅 버튼 제거). 회원가입 직후/미설치 회원 로그인 시에만 자동으로 뜬다.
   - 기본은 예/아니요 확인창. PC/Android(크로미움 계열)는 "예" 클릭 시 브라우저 자체 설치창이 뜬다.
   - iOS 등 미지원 브라우저는 "예" 클릭 시 .pwa_install_manual 화면으로 전환된다.
*/

/* 모달 */
/* 26.08.25 신규회원 쿠폰 팝업(#hd)이 z-index:1000을 써서, 그보다 높게 잡아 항상 위에 뜨도록 함 */
.pwa_install_modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.pwa_install_modal.is-open { display: block; }
.pwa_install_dim { position: absolute; inset: 0; background: rgba(20, 20, 20, .5); }
.pwa_install_card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 400px;
  max-height: 86vh;
  overflow-y: auto;
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 56px rgba(20, 20, 20, .22);
  box-sizing: border-box;
}
.pwa_install_close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .05);
}
.pwa_install_close::before,
.pwa_install_close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: #666;
}
.pwa_install_close::before { transform: translate(-50%, -50%) rotate(45deg); }
.pwa_install_close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.pwa_install_view { display: none; }
.pwa_install_view.active { display: block; }

/* 예/아니요 확인 화면 */
.pwa_install_confirm { padding: 40px 30px 30px; text-align: center; }
.pwa_install_confirm_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: #fff5f0;
  color: #be2237;
}
.pwa_install_confirm_icon svg { width: 30px; height: 30px; }
.pwa_install_confirm h2 { font-size: 20px; font-weight: 800; color: #202124; letter-spacing: -.3px; line-height: 1.4; }
.pwa_install_confirm p { margin-top: 10px; font-size: 13px; color: #767676; line-height: 1.55; }
.pwa_install_confirm_btns { display: flex; gap: 8px; margin-top: 26px; }
.pwa_install_confirm_btns a {
  flex: 1;
  height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 48px;
  text-align: center;
}
.pwa_install_no { background: #f0f0f0; color: #666; }
.pwa_install_yes { background: #be2237; color: #fff; }

/* 수동 안내 화면(폴백) */
.pwa_install_manual { padding: 26px 26px 26px; }
.pwa_install_head { padding-right: 24px; }
.pwa_install_head h2 { font-size: 19px; font-weight: 800; color: #202124; letter-spacing: -.3px; }
.pwa_install_head p { margin-top: 6px; font-size: 13px; color: #767676; line-height: 1.5; }
.pwa_install_panel_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 16px auto 14px;
  border-radius: 12px;
  background: #fff5f0;
  color: #be2237;
}
.pwa_install_panel_icon svg { width: 24px; height: 24px; }
.pwa_install_steps { counter-reset: pwa-step; }
.pwa_install_steps li {
  position: relative;
  counter-increment: pwa-step;
  padding: 0 0 0 34px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #333;
  line-height: 1.55;
}
.pwa_install_steps li:last-child { margin-bottom: 0; }
.pwa_install_steps li::before {
  content: counter(pwa-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #be2237;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.pwa_install_steps b { color: #be2237; }
.pwa_install_note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8f8f8;
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

.pwa_install_foot { display: flex; gap: 8px; margin-top: 22px; }
.pwa_install_foot a {
  flex: 1;
  height: 46px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 46px;
  text-align: center;
}
.pwa_install_later { background: #f0f0f0; color: #666; }
.pwa_install_done { background: #be2237; color: #fff; }

@media screen and (max-width: 480px) {
  .pwa_install_confirm { padding: 34px 22px 24px; }
  .pwa_install_manual { padding: 22px 18px; }
}
