/* 배경 오버레이 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none; /* 기본 숨김 */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 팝업 컨테이너 */
.popup-content {
    margin: 10px;
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    /* display: flex; */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    display: none; /* 기본 숨김 */
}

/* 이미지 */
.popup-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    margin-bottom: 10px;
}

/* 닫기 버튼 */
.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 체크박스 숨기기 */
.popup-today input[type="checkbox"] {
    display: none;
}

/* 라벨 스타일 */
.popup-today {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    user-select: none;
    gap: 8px;
}

/* 기본 체크박스 스타일 */
.popup-today span::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s;
    box-sizing: border-box;
    vertical-align: top;
    margin-right: 5px;
}

/* 체크되었을 때 스타일 */
.popup-today input[type="checkbox"]:checked + span::before {
    background: #4CAF50;  /* 초록색 배경 */
    border-color: #4CAF50;
    content: '✔';
    color: #fff;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    float: left;
}

/* 반응형 */
@media screen and (max-width: 768px) {
    .popup-content {
        max-width: 95%;
        padding: 5px;
    }
    .popup-close {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
}