/* ============================================================
   GOODMORNING COMMON POPUP
   - 첫 방문 상담 안내 팝업
   - 오늘 하루 보지 않기
   - 모바일/PC 반응형
============================================================ */
.gm-popup{
  position:fixed;
  inset:0;
  z-index:2147483600;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(15,23,42,.48);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.gm-popup.show{display:flex;}
.gm-popup-card{
  width:min(430px,100%);
  overflow:hidden;
  border-radius:28px;
  background:#fff;
  border:1px solid rgba(226,232,240,.95);
  box-shadow:0 28px 90px rgba(0,0,0,.28);
  animation:gmPopupUp .28s ease both;
}
.gm-popup-visual{
  position:relative;
  min-height:132px;
  padding:26px 24px;
  color:#fff;
  background:
    radial-gradient(circle at 86% 10%,rgba(147,197,253,.36),transparent 34%),
    linear-gradient(135deg,#1a2f5e 0%,#0e1e3d 66%,#065f46 100%);
}
.gm-popup-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.24);
  color:#dbeafe;
  font-size:12px;
  font-weight:900;
}
.gm-popup-visual h2{
  margin-top:12px;
  font-size:28px;
  line-height:1.16;
  letter-spacing:-.055em;
  font-weight:900;
}
.gm-popup-visual h2 em{
  font-style:normal;
  color:#86efac;
}
.gm-popup-close{
  position:absolute;
  top:16px;
  right:16px;
  width:36px;
  height:36px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:20px;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.gm-popup-body{
  padding:24px;
}
.gm-popup-body p{
  color:#4f6178;
  font-size:15px;
  line-height:1.75;
  font-weight:700;
}
.gm-popup-points{
  display:grid;
  gap:8px;
  margin-top:16px;
}
.gm-popup-point{
  display:flex;
  align-items:flex-start;
  gap:9px;
  padding:11px 12px;
  border-radius:15px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#1a2f5e;
  font-size:13px;
  line-height:1.5;
  font-weight:850;
}
.gm-popup-point::before{
  content:'✓';
  color:#047857;
  font-weight:1000;
  flex:0 0 auto;
}
.gm-popup-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-top:20px;
}
.gm-popup-actions a{
  min-height:48px;
  border-radius:15px;
  display:grid;
  place-items:center;
  text-decoration:none;
  color:#fff;
  font-size:14px;
  font-weight:900;
}
.gm-popup-call{background:#1a2f5e;}
.gm-popup-kakao{background:#2563eb;}
.gm-popup-bottom{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  margin-top:14px;
}
.gm-popup-bottom button{
  border:0;
  background:transparent;
  color:#64748b;
  font-size:12.5px;
  font-weight:850;
  cursor:pointer;
  padding:6px 0;
}
.gm-popup-bottom button:hover{color:#1a2f5e;}
@keyframes gmPopupUp{
  from{opacity:0;transform:translateY(18px) scale(.98);}
  to{opacity:1;transform:translateY(0) scale(1);}
}
@media(max-width:520px){
  .gm-popup{
    align-items:flex-end;
    padding:14px;
    padding-bottom:calc(96px + env(safe-area-inset-bottom));
  }
  .gm-popup-card{
    border-radius:24px;
  }
  .gm-popup-visual{
    min-height:116px;
    padding:22px 20px;
  }
  .gm-popup-visual h2{
    font-size:24px;
  }
  .gm-popup-body{
    padding:20px;
  }
  .gm-popup-actions{
    grid-template-columns:1fr;
  }
}
@media (prefers-reduced-motion: reduce){
  .gm-popup-card{animation:none;}
}


/* SMART POPUP EXTENSIONS */
.gm-smart-card{max-height:92vh;overflow:auto;}
.gm-popup-image{
  margin:18px 24px 0;
  border-radius:20px;
  overflow:hidden;
  border:1px solid #e2e8f0;
  background:#f8fafc;
}
.gm-popup-image img{
  width:100%;
  display:block;
  object-fit:cover;
}
.gm-popup-notice{
  margin-top:14px;
  padding:12px 14px;
  border-radius:14px;
  background:#fff7ed;
  border:1px solid rgba(249,115,22,.22);
  color:#9a3412!important;
  font-size:12.5px!important;
  line-height:1.65!important;
  font-weight:850!important;
}
.gm-popup-type{
  margin-top:13px;
  display:flex;
  gap:7px;
  align-items:center;
  flex-wrap:wrap;
}
.gm-popup-type span{
  color:#64748b;
  font-size:12px;
  font-weight:900;
  margin-right:2px;
}
.gm-popup-type button{
  border:1px solid #e2e8f0;
  background:#fff;
  color:#1a2f5e;
  min-height:32px;
  padding:0 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.gm-popup-type button:hover{
  background:#ecfdf5;
  border-color:rgba(4,120,87,.28);
  color:#047857;
}
/* ============================================================
   MOBILE ONLY POPUP FIT PATCH
   - PC 디자인은 원본 popup.css 그대로 유지
   - 520px 이하 모바일에서만 팝업 높이/이미지/여백 최적화
   - 하단 고정 CTA와 겹치지 않도록 화면 안에서 스크롤 처리
============================================================ */
@media(max-width:520px){
  .gm-popup{
    align-items:center !important;
    justify-content:center !important;
    padding:10px !important;
    padding-top:calc(10px + env(safe-area-inset-top)) !important;
    padding-bottom:calc(10px + env(safe-area-inset-bottom)) !important;
  }

  .gm-popup-card,
  .gm-smart-card{
    width:min(100%,360px) !important;
    max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    border-radius:22px !important;
    -webkit-overflow-scrolling:touch !important;
  }

  @supports not (height:100dvh){
    .gm-popup-card,
    .gm-smart-card{
      max-height:calc(100vh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    }
  }

  .gm-popup-visual{
    min-height:auto !important;
    padding:18px 17px 15px !important;
  }

  .gm-popup-badge{
    max-width:calc(100% - 44px) !important;
    padding:5px 9px !important;
    font-size:10.5px !important;
    line-height:1.25 !important;
  }

  .gm-popup-close{
    top:12px !important;
    right:12px !important;
    width:32px !important;
    height:32px !important;
    font-size:18px !important;
  }

  .gm-popup-visual h2{
    margin-top:9px !important;
    font-size:21px !important;
    line-height:1.18 !important;
    letter-spacing:-.045em !important;
  }

  .gm-popup-image{
    margin:10px 14px 0 !important;
    border-radius:15px !important;
  }

  .gm-popup-image img{
    max-height:112px !important;
    object-fit:cover !important;
  }

  .gm-popup-body{
    padding:15px !important;
  }

  .gm-popup-body p{
    font-size:13px !important;
    line-height:1.55 !important;
  }

  .gm-popup-points{
    gap:6px !important;
    margin-top:10px !important;
  }

  .gm-popup-point{
    padding:8px 10px !important;
    border-radius:12px !important;
    font-size:12px !important;
    line-height:1.42 !important;
    gap:7px !important;
  }

  .gm-popup-notice{
    margin-top:10px !important;
    padding:9px 10px !important;
    border-radius:12px !important;
    font-size:11.5px !important;
    line-height:1.45 !important;
  }

  .gm-popup-type{
    display:none !important;
  }

  .gm-popup-actions{
    grid-template-columns:1fr 1fr !important;
    gap:7px !important;
    margin-top:12px !important;
  }

  .gm-popup-actions a{
    min-height:42px !important;
    border-radius:12px !important;
    font-size:12.5px !important;
  }

  .gm-popup-bottom{
    margin-top:9px !important;
  }

  .gm-popup-bottom button{
    font-size:11.5px !important;
    padding:5px 0 !important;
  }
}

@media(max-width:360px){
  .gm-popup-card,
  .gm-smart-card{
    width:100% !important;
    border-radius:18px !important;
  }

  .gm-popup-visual h2{
    font-size:19px !important;
  }

  .gm-popup-actions{
    grid-template-columns:1fr !important;
  }
}

/* ============================================================
   EVENT POPUP WATERMARK + DEADLINE READY PATCH
   - 이벤트 이미지를 팝업 전체 배경 워터마크로 깔고
   - 텍스트 가독성을 위해 어두운 오버레이를 추가
   - 기존 팝업 사이즈는 유지
============================================================ */
.gm-event-card{
  position:relative;
  isolation:isolate;
  background:#0f172a;
  color:#fff;
}
.gm-event-card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background-image:var(--gm-popup-watermark);
  background-size:cover;
  background-position:center;
  opacity:.23;
  filter:saturate(.95) contrast(.92);
}
.gm-event-card::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(15,23,42,.58),rgba(15,23,42,.82));
}
.gm-event-card .gm-popup-visual{
  background:linear-gradient(135deg,rgba(26,47,94,.78),rgba(6,95,70,.68));
}
.gm-event-card .gm-popup-body,
.gm-event-card .gm-popup-points,
.gm-event-card .gm-popup-actions,
.gm-event-card .gm-popup-type,
.gm-event-card .gm-popup-bottom{
  position:relative;
  z-index:1;
}
.gm-event-card .gm-popup-point{
  background:rgba(255,255,255,.9);
  border-color:rgba(255,255,255,.42);
  color:#0f172a;
}
.gm-event-card .gm-popup-notice{
  background:rgba(255,247,237,.94);
}
.gm-event-card .gm-popup-type span,
.gm-event-card .gm-popup-bottom button{
  color:rgba(255,255,255,.82);
}
.gm-event-card .gm-popup-type button{
  background:rgba(255,255,255,.92);
}

@media(max-width:520px){
  .gm-popup-type{
    display:flex !important;
    gap:5px !important;
    margin-top:9px !important;
  }
  .gm-popup-type span{
    width:100% !important;
    font-size:10.5px !important;
  }
  .gm-popup-type button{
    min-height:28px !important;
    padding:0 8px !important;
    font-size:10.5px !important;
  }
}


/* ============================================================
    PROMOTION POPUP TEXT HIGHLIGHT PATCH
    - 프로모션 내용 중 핵심 문구를 강조하는 스타일 추가
    - 배경색과 글자색으로 시각적 포인트 제공
    - 기존 텍스트 스타일과 조화롭게 디자인  
============================================================ */

.popup-highlight {
  display: inline-block;
  font-size: 1.08em;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #ff3b30, #ff7a00);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
  box-shadow: 0 4px 10px rgba(255,80,40,.28);
}

.popup-emphasis {
  display: inline-block;
  font-size: 1.08em;
  font-weight: 900;
  color: #0f172a;
  background: #ffe066;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: -0.03em;
}