/* CSS 변수 정의 (프로젝트 메인 색상) */
:root {
    --popup-main-color: #2d916d;
}

/* 팝업 오버레이 */
.popup_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 999999;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    align-content: flex-start;
    gap: 20px;
    padding: 20px;
    pointer-events: none;
    animation: fadeIn 0.3s ease-in-out;
    overflow-y: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 팝업 컨테이너 */
.popup_container {
    position: relative;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
    max-width: 90vw;
    max-height: 90vh;
    pointer-events: auto;
}

@keyframes slideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 팝업 컨테이너 위치 (항상 좌상단) */
.popup_container.position-top-left {
    /* position: relative; */
    margin: 0;
}


/* 팝업 이미지 */
.popup_image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.popup_image_link {
    display: block;
    cursor: pointer;
}

/* 팝업 하단 영역 */
.popup_footer {
    padding: 10px;
    background: #f8f8f8;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-shrink: 0;
}

.popup_dont_show {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.popup_dont_show input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    accent-color: var(--popup-main-color);
}

.popup_dont_show span {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin: 0;
}

.popup_dont_show:hover span {
    color: #333;
}

/* 팝업 하단 닫기 버튼 (오늘 하루 보지 않기와 같은 스타일) */
.popup_close_label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.popup_close_btn_footer {
    padding: 0;
    background: none;
    border: none;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin: 0;
    font-family: inherit;
}

.popup_close_label:hover .popup_close_btn_footer {
    color: #333;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .popup_overlay {
        padding: 10px;
    }
    
    .popup_container {
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 20px) !important;
        position: absolute;
        top: 10px;
        left: 10px;
    }
}

