.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}


.popup-container {
    display: none;
    position: fixed;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 90%;
    max-height: 90vh;
}

.popup-header {
    position: relative;
    padding: 30px 20px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header .popup-type {
    background: #127DFF;
    color: #fff;
    font-size: 17px;
    width: fit-content;
    padding: 3px 10px;
    border-radius: 5px;
}

.popupSwiper {
    overflow-y: auto;
}

.popupSwiper .swiper-wrapper {
    height: auto;
    min-height: 100%;
}

.popupSwiper .swiper-slide {
    padding: 0 20px;
    height: auto;
    overflow-y: auto;
}

.popup-header .swiper-pagination {
    width: fit-content;
    height: fit-content;
    bottom: 0;
    top: 50%;
    left: auto;
    right: 20px;
    transform: translateY(-50%);
}

.popup-header .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 6px !important;
    background: #EDEDED;
    opacity: 1;
}

.popup-header .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: #127DFF;
}

.popup-title {
    font-size: 23px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.popup-cont {
    font-size: 16px;
    line-height: 1.3;
    color: #6C6C6C;
}

.popup-cont b {
    font-size: 18px;
    color: #1780FF;
    font-weight: 800;
}


.popup-cont .bold {
    font-size: 16px;
    color: #111;
}

/* 팝업 내 링크 스타일 */
.popupSwiper .swiper-slide a {
    display: block;
    background: #EDEDED;
    margin-top: 40px;
    padding: 20px 10px;
    color: #1780FF;
    text-align: center;
    font-size: 19px;
    font-weight: 800;
    border-radius: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.popup-content a:hover {
    color: red;
    animation: none;
    /* 호버시 애니메이션 중지 */
}

#popupBody img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.popup-footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
}

.popup-footer label {
    width: 50%;
    background: #EDEDED;
    text-align: center;
    padding: 25px 0;
    font-size: 16px;
    color: #636363;
    border-top: 1px solid #C8C8C8;
    cursor:pointer;
}

.popup-footer button {
    display: block;
    width: 50%;
    background: #127DFF;
    color: #fff;
    padding: 25px 0;
    font-size: 16px;
    border-top: 1px solid #127DFF;
}

/* .popup-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-footer label {
    color: #666;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin: 0;
}

.popup-footer input[type="checkbox"] {
    margin-right: 8px;
}

.popup-footer .close-btn {
    padding: 8px 20px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.popup-footer .close-btn:hover {
    background: #5a6268;
} */

.popup-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10000;
    transition: all 0.2s;
}

.popup-navigation:hover {
    background: rgba(0, 0, 0, 0.7);
}

.popup-prev {
    left: 20px;
}

.popup-next {
    right: 20px;
}

/* 네비게이션 버튼 컨테이너 스타일 추가 */
.popup-navigation-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.popup-navigation-container .popup-navigation {
    pointer-events: auto;
}

/* 숨겨진 버튼이 공간을 차지하지 않도록 설정 */
.popup-navigation[style*="display: none"] {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .popup-container {
        width: 90% !important;
        max-height: 80vh;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .popupSwiper {
        max-height: calc(80vh - 140px);
    }

    .popup-content {
        max-height: none;
    }

    .popup-navigation {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .popup-prev {
        left: 10px;
    }

    .popup-next {
        right: 10px;
    }
}