/* 서비스 종료 안내 팝업 - 사이트 종료와 함께 제거 대상 */

.closingPopup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    background: rgba(15, 23, 32, 0.62);
    -webkit-tap-highlight-color: transparent;
}

.closingPopup-card {
    position: relative;
    margin: auto;
    width: 100%;
    /* 세로가 짧은 화면에서 하단 체크박스가 잘리지 않도록 이미지 비율(420:600)에 맞춰
       카드 폭을 뷰포트 높이로 제한한다. 155px 은 안내문 + 하단바 + 여백 몫. */
    max-width: 420px;
    max-width: min(420px, calc((100vh - 155px) * 0.7));
    max-width: min(420px, calc((100dvh - 155px) * 0.7));
    /* 너무 작아져 문구가 안 읽히는 것도 막는다. 화면이 이보다 더 짧으면
       오버레이가 스크롤되도록 둔다. 좁은 폰에서는 100% 가 하한이 된다. */
    min-width: min(300px, 100%);
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
    animation: closingPopup-in 0.28s ease-out;
}

@keyframes closingPopup-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.closingPopup-image {
    display: block;
    width: 100%;
    height: auto;
}

.closingPopup-close-x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: #55606d;
    font-size: 19px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
}

.closingPopup-close-x:hover {
    background: #ffffff;
    color: #212529;
}

.closingPopup-note {
    margin: 0;
    padding: 0 22px 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #6c757d;
    text-align: center;
}

.closingPopup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid #e5eaf0;
    background: #f8fafc;
}

.closingPopup-check {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 11px 8px;
    margin: -11px -8px;
    font-size: 13.5px;
    color: #495057;
    cursor: pointer;
    user-select: none;
}

.closingPopup-check input {
    width: 16px;
    height: 16px;
    margin: 0 7px 0 0;
    accent-color: #1558b0;
    cursor: pointer;
}

.closingPopup-close-btn {
    padding: 8px 22px;
    border: 0;
    border-radius: 8px;
    background: #343a40;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

.closingPopup-close-btn:hover {
    background: #212529;
}

.closingPopup-lock {
    overflow: hidden;
}

@media (max-width: 480px) {
    .closingPopup-overlay { padding: 12px; }
    .closingPopup-card { border-radius: 12px; }
    .closingPopup-note { padding: 0 16px 14px; font-size: 12.5px; }
    .closingPopup-footer { padding: 11px 13px; }
    .closingPopup-check { font-size: 13px; }
    .closingPopup-close-btn { padding: 8px 18px; }
}

/* 노트북 분할화면 등 세로가 짧은 경우 여백을 줄여 하단바를 화면 안에 붙든다 */
@media (max-height: 640px) {
    .closingPopup-overlay { padding: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .closingPopup-card { animation: none; }
}
