/* =========================================================
   [1] /css/pages/widget-landing-modal.css (메인 index.html 에 연결)
       크기·닫기·버튼 값은 체험 종료 모달(trial-end-modal)과 같은 값 사용
   ========================================================= */

/* ---------- 위젯 경유 랜딩팝업 ---------- */
.widget-landing-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    letter-spacing: -0.07em;
    word-break: keep-all;
}

.widget-landing-modal[hidden] {
    display: none;
}

.widget-landing-modal *,
.widget-landing-modal *::before,
.widget-landing-modal *::after {
    box-sizing: border-box;
}

.widget-landing-modal__dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.widget-landing-modal__content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 36px 30px 28px;
    border: 1px solid #E5E5E5;
    border-radius: 16px;
    background: #fff;
    color: #1F2420;
}

.widget-landing-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

/* 상단 */
.widget-landing-modal__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.widget-landing-modal__img {
    display: block;
    width: 84px;
    height: auto;
    margin-bottom: 4px;
}

.widget-landing-modal__badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #EAF7EF;
    color: #2A9A58;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.widget-landing-modal__title {
    margin: 0;
    padding: 0; /* style.css h2 padding-top 해제 */
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
}

.widget-landing-modal__title em {
    color: #42BC74;
    font-style: normal;
}

.widget-landing-modal__desc {
    margin: 0;
    color: #8A8A8A;
    font-size: 14px;
    line-height: 1.5;
}

/* 혜택 */
.widget-landing-perk {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 16px 18px;
    border: 1.5px solid #42BC74;
    border-radius: 12px;
    background: #F6FCF8;
    list-style: none;
}

.widget-landing-perk__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.widget-landing-perk__item svg {
    flex: none;
    margin-top: 3px;
    color: #42BC74;
}

.widget-landing-perk__item b {
    color: #2A9A58;
    font-weight: 700;
}

/* 괄호 설명은 줄이 바뀌어도 통째로 넘어가게 */
.widget-landing-perk__item small {
    font-size: inherit;
    white-space: nowrap;
}

/* 버튼 · 안내 */
.widget-landing-modal__footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.widget-landing-modal__confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 52px;
    border: 1px solid #42BC74;
    border-radius: 10px;
    background: #42BC74;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: inherit;
    text-decoration: none;
    cursor: pointer;
}

.widget-landing-modal__confirm:hover {
    background: #3DAE6A;
}

.widget-landing-modal__warn {
    margin: 2px 0 0;
    color: #C23434;
    font-size: 13px;
}

.widget-landing-modal__login {
    margin: 0;
    color: #8A8A8A;
    font-size: 13px;
}

.widget-landing-modal__login a {
    margin-left: 2px;
    color: #333;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}



/* =========================================================
   [2] /css/responsive.css 에 추가 (새 구역)
   ========================================================= */

/* ------------------------------------------------------------
   위젯 경유 랜딩팝업 · 모바일
------------------------------------------------------------ */

@media (max-width: 480px) {

  .widget-landing-modal {
    padding: 16px;
  }

  .widget-landing-modal__content {
    gap: 16px;
    padding: 32px 20px 20px;
  }

  .widget-landing-modal__img {
    width: 72px;
  }

  .widget-landing-modal__title {
    font-size: 18px;
  }

  .widget-landing-perk {
    padding: 14px;
  }

  .widget-landing-perk__item {
    font-size: 13px;
  }

  .widget-landing-modal__confirm {
    height: 48px;
    font-size: 15px;
  }
}
