/* ========== popup 공통 ========== */
.popup-layer {
    display: none;
}

.popup-layer.visible {
    display: block;
}

.popup-dim {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 101;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.4);
}

.popup {
    width: 400px;
    flex-direction: column;
    align-items: flex-start;
    z-index: 200;
}

.popup-head {
    background-color: #DFDFDF;
    display: flex;
    height: 44px;
    padding-left: 20px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.popup-head .popup-title {
    color: #1f1f1f;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.popup .icon-close {
    display: flex;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

.popup .popup-cont {
    background-color: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    align-self: stretch;
}

.popup-cont .cont-info p {
    color: #1f1f1f;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 10px;
}

.popup-cont .cont-info .desc {
    color: #1f1f1f;
    font-size: 14px;
    font-weight: 300;
    line-height: 21px;
    letter-spacing: -0.28px;
}

.popup-cont .cont-info .desc span {
    color: #FF7B34;
}

.popup-cont .btn-md.printnshare {
    width: 100%;
}

.btn-md {
    display: flex;
    height: 40px;
    padding: 0px 12px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    background-color: #FF2186;
    color: #ffffff;
    cursor: pointer;
}

.popup-bottom {
    display: flex;
    align-items: center;
    width: 100%;
}


/* ========== 프로필 - 상세 popup ========== */


.popup.popup-agreement {
    position: absolute;
    right: 30px;
    top: 70px;
    border: 1px solid #DFDFDF;
    box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.07);
}


/* ========== 알바픽 popup ========== */
.popup-albapick, .popup-serviceNoti {
    position: absolute;
    top: calc(50% - 262px);
    left: 0;
    right: 0;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
}

.popup-albapick .popup-cont {
    padding: 0;
    gap: 0;
}

.popup-albapick .popup-cont img {
    width: 100%;
}


.popup-albapick .popup-bottom .btn {
    display: flex;
    height: 50px;
    justify-content: center;
    align-items: center;
    color: #1F1F1F;
    font-size: 14px;
    font-weight: 300;
    background-color: #ffffff;
    width: 50%;
    cursor: pointer;
}


.popup-albapick .popup-bottom .btn:first-child {
    border-right: 1px solid #c0c0c0;
}


.popup .swiper {
    width: 100%;
}

.popup .swiper-wrapper {
    width: 100%;
}

.popup .swiper-slide {
    width: 100% !important;
    position: relative;
    overflow: hidden;
}

.noti-slide {
    width: 100% !important;
    border: 3px solid var(--new-pink);
    border-radius: 10px 10px 0 0;

    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.noti-slide .txt-box {
    position: absolute;
    color: var(--text-black);
    font-size: 15px;
    font-weight: 500;
    line-height: 21px;
}

.noti-slide p {
    color: var(--text-black);
    font-size: 15px;
    font-weight: 500;
    line-height: 21px;
}

.noti-slide span {
    color: var(--new-pink);
    font-weight: 600;
}

.swiper-button-prev,
.swiper-button-next {
    cursor: pointer;
}

.popup .swiper-pagination {
    padding-bottom: 10px;
}


/* 우상단 X 버튼 */
.popup-albapick, .popup-serviceNoti {
    position: absolute;
}

/* 이미 있음 */
.popup-albapick .popup-close, .popup-serviceNoti .popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.55); /* 회색(반투명) 배경 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5; /* 스와이퍼 버튼/이미지보다 위 */
    cursor: pointer;
    -webkit-tap-highlight-color: transparent; /* 모바일 터치 하이라이트 제거 */
}

.popup-albapick .popup-close img, .popup-serviceNoti .popup-close img {
    width: 16px;
    height: 16px;
    pointer-events: none; /* 이미지가 클릭을 막지 않게 */
}


/* ==========서비스 알림 업데이트 popup ========== */
.popup-dim {
    display: none;
}

.popup-dim.visible {
    display: block;
}

.popup-cont span {
    font-size: 18px;
}

.popup-mainTitle {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-darker-gray);
    margin-top: 30px;
    margin-bottom: 30px;
}

.popup-dim .btnBox {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 430px;
    width: 100%;
}

.sendBtn {
    margin-top: 20px;
    width: 75%;
    height: 60px;
    line-height: 60px;
    background-color: var(--main-color);
    text-align: center;

    border-radius: 10px;
    cursor: pointer;
}

.sendBtn > a {
    color: #fff;
    text-decoration: none;
}


@media (max-width: 992px) {
    /* === 공통 === */
    .popup-layer {
        width: 100%;
        height: 100%;
        position: fixed;
        z-index: 200;
        top: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.4);
    }

    .popup {
        right: 0 !important;
        left: 0;
        margin: 0 auto;
        top: 81px !important;
    }


}

@media (max-width: 767px) {
    /* === 공통 === */
    .popup {
        /*width: calc(100% - 40px);*/
    }

    .popup .popup-cont {
        /* padding: 15px; */
    }


    /* === 메인 - 알바픽 광고 팝업 === */
    .popup-albapick, .popup-serviceNoti {
        top: calc(50% - 233px) !important;
    }


    .noti-slide {
        height: 100%;
    }

}

/* 390px 이하 작은 모바일 */
@media (max-width: 390px) {
    /* === 공통 === */
    .popup {
        width: calc(100% - 40px);
    }

    .popup-albapick .popup-close, .popup-serviceNoti .popup-close {
        top: 6px;
        right: 6px;
        width: 40px;
        height: 40px;
    }

}