﻿

.wrap>div{
    width: 1080px;
}
@media (max-width:1080px) {
    .wrap>div{
        width: 100%;
        padding: 0 1.5rem;
    }
}
/* 추천요금제 */
.data_swiper{
    margin-top: 1rem;
    margin-bottom: 4rem;
}
.data_swiper .data{
    justify-content: space-between;
    align-items: center;
    flex-direction: unset;
    border: none;
    display: flex;
    padding: 2.2rem;
    border-radius: 25px;
    cursor: pointer;
    min-height: 155px;
}

.data_swiper .data:hover{
    box-shadow: none;
}
.data_swiper .data:nth-of-type(1){
    background: #EDF7FF;
}
.data_swiper .data>*{
    margin: 0;
    flex-shrink: 0; /* 크기 줄어들지 않게 */
}
.price_tit{
    display: flex;
    align-items: center;    
    gap: 6px;
    flex-wrap: wrap;
    width: 25%;
}

.plan_tag > * {
    padding: 4px 10px;
    font-size: 1rem;
}
.data_swiper .tag_kt{
    background: #fff;
    color: var(--sub-color);
}
.plan{
    margin-bottom: 1.2rem;
    height: 195px;
}

/* 요금제 명 */
.data_swiper .data_name{
    color: #565656;
    font-size: 1.4rem;
    font-weight: 700;
    width: 70%;
    word-break: keep-all;
}

/* 요금제 상세 스펙 */
.data_swiper .data_detail{
    display: flex;
    align-items: center;
    font-size: 0.93rem;
    column-gap: 1rem;
}
.data_swiper .data_detail li{
    column-gap: 0.45rem;
    display: flex;
    column-gap: 0.6rem;
    align-items: center;
}
.data_swiper .data_detail p:first-child {
    color: #909090;
    width: auto;
}
/* 요금제 금액 */
.price_wrap{
    display: flex;
    align-items: center;
    column-gap: .7rem;
}
.price_origin {
    font-size: 0.93rem;
    margin-bottom: 0;
}
@media (max-width:1080px) {
    .data_swiper .swiper-slide{
            padding-bottom: 2rem;
    }
    .data_swiper .data {
        display: block;
    }
    .data_swiper .data_detail{
        margin: 1rem 0;
    }
    .data_swiper .data_detail li{
        line-height: 180%; 
    }
    .price_wrap{
        justify-content: flex-end;
    }
    .swiper-pagination-lock {
        display: block !important;
    }
}

@media (max-width:768px) {
    .data_swiper .data_detail{
        display: block;
    }
    .data_swiper .data_detail li{
        line-height: 180%; 
    }
}


/*  선후불 선택  */
.plan_tit2{
    width: 100%;
    border: 1px solid #F1F1F1;
    border-bottom: none;
    border-radius: 25px 25px 0 0;
    background: #f9f9f9;
    display: flex;
    justify-content: space-around;
    overflow: hidden;
}
.plan_tit2 button{
    flex: 1;
    text-align: center;
    cursor: pointer;
    padding: 0;
    position: relative;
    display: block;
    line-height: 4.8rem;
    height: 4.8rem;
    font-size: 1.35rem;
    font-weight: 500;
    color: #808080;
    background: #F9F9F9;
    border-bottom: 1px solid var(--main-color);
    border-radius: 25px 25px 0 0;
    transition: background-color 0.3s, color 0.3s;
}
.plan_tit2 button.selected {
    color: var(--main-color); 
    background: #fff;
    border: 1px solid var(--main-color);
    border-bottom: 1px solid #fff;
    color: var(--main-color);
}

/*  통신사 선택  */
.plan_tit{
    display: flex;
}
.plan_tit button{
    font-size: 1.5rem;
    font-weight: 700;
    background: none;
    color: #E2E2E2;
    width: auto;
    height: auto;
}
.plan_tit button.selected {
    color: var(--main-color); 
}
.plan_tit button.selected::after {
    content: ""; 
    display: block;
    width: 100%; 
    height: 4px; /* 선 높이 */
    background-color: var(--main-color); 
    position: relative;
    z-index: -1;
    bottom: -5px;
    left: 0; 
}
.plan_tit button:not(:last-child){
    margin-right: 2rem;
}




/* 카테고리 선택필터 */
.tab_btn{
    display: flex;
        flex-wrap: wrap;
}



/* 3. 하단 */
.plan_box{
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
}
/* 좌측 */
.plan_box>li:first-child{
    width: calc(100% - 340px);

}
.option {
    gap: 8px;
}
/* 우측 */
/* 맞춤요금제 */
.custom_box{
    width: 300px;
    position: sticky;
    top: 150px;
    bottom: 20px;
    height: 100%;
    min-height: 750px;
    background: #F8F8F8;
    border-radius: 25px;
    padding: 1.7rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.custom_top{
    justify-content: center;
    color: #5f5f5f;
    background: #fff;
    height: 40px;
    line-height: 40px;
    border-radius: 18px;
    flex-shrink: 0;
}
.custom_box h3{
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}
.custom_bottom {
    margin-top: 1rem;
    flex: 1;
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE */

}
.custom_bottom::-webkit-scrollbar {
  display: none;                  /* Chrome */
}




.close_btn{
    display: none;
}
.custom_box p{
    margin: .93rem 0 .6rem 0;
    font-size: .93rem;
}
.custom_box .flex p:first-child{
    margin-bottom: 1.5rem;
    font-size: 0.93rem;
    text-align: center;
}
.custom_box p:last-child{
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: 0.93rem;
    display: inline-grid;
}
.open_obj {
    width: 100%;
}
/* 바 */
.ui-slider-handle {
    touch-action: none;
    width: 28px;
    height: 28px;
}

/* 선택값 */
.open_obj input[type="radio"] + span {
    line-height: 38px;
    height: 38px;
    border-radius: 50px;
    background: #fff;
    color: #b5b5b5;
    border: 1px solid #ddd;
}
.open_obj input[type="radio"]:checked + span {
    border: 1px solid var(--main-color);
    background: #fff;
    color: var(--main-color);
    font-weight: 600;
}

/* 선택한 금액 */
.price-display {
    width: fit-content;
    color: #606060;
}
.price-display span{
    color: #6d6d6d;
    font-size: .87rem;
}
.ui-widget-header { /* 맞춤요금제 데이터,통화,문자 슬라이더 선택한 선 색상 */
    background: var(--main-color) !important;
}



/*추가*/

.slider_wrap {
    flex: 1;
    height: 300px; /* 반드시 명시! */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.wrap .slider_wrap .slider{
    background: #EFEFEF;
    border: none;
    border-radius: 30px;
    left: 3%;
    transform: translateX(-50%);

    /*height: 160px;*/
}

.wrap .slider span{ /* 좌우 버튼 */
    border-radius: 30px;
    height: 22px;
    width: 22px;
    outline: none;
    border: none;
    transition: width .1s;
    cursor: grab;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
}

ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active,
a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover {
    background: #fff !important;  /* 잡았을 때 배경색 */
}
.price-slider *, .ui-slider * {
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;     /* IE 10+ */
}



/* 결과보기 */
.btn_wrap{
    padding-top: 1rem;
}
.btn_wrap>*{
    border-radius: 10px;
    height: 50px;
    background: #fff;
    border: 1px solid #D0D0D0;
    border-radius: 50px;
    cursor: pointer;
}
.btn_wrap>input{
    width: calc(100% - 55px);
    color: #B4B4B4;
    font-weight: 600;
    cursor: pointer;
    text-indent: 0;
    margin-right: 8px;
    margin-bottom: 0;
    font-size: .93rem;
}
.btn_wrap>input:hover{
    background: var(--main-color);
    border:  1px solid var(--main-color);
    color : #fff;
}
.btn_wrap>div{
    width: 55px;
    text-align: center;
    display: block;
    margin: 0 auto;
    display: flex;
    justify-content: center; 
    align-items: center;   
}
.btn_wrap>div:hover{
    background: #efefef;
}



@media (max-width:1080px) {

    /*추천요금제*/
    .price_tit {
        width: 100%;
    }




    /* 3. 하단 */
    .plan_box{
        display: block;
    }
    /* 좌측 */
    .plan_box>li:first-child{
        width: 100%;

    }

    body.scroll-lock {
        overflow: hidden;
        touch-action: none; /* 모바일 터치 스크롤 방지 */
        position: fixed;    /* iOS 스크롤 위치 유지용 */
        width: 100%;        /* 스크롤 막았을 때 가로 흔들림 방지 */
    }

    .custom_box {
        width: 100%;
        height: 70vh;
        display: none;
        position: fixed;
        bottom: -100%;
        left: 0;
        transition: bottom 0.3s ease;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        z-index: 999999;

    min-height: unset;
    }
    /* 맞춤요금제 모바일 퀵메뉴 버튼 */
    .fixed_box .open_btn {
        display: block !important;
        margin-bottom: 1rem;
    }
    .custom_box{
        padding: 0;
    }
    .custom_top{
        display: flex;
        justify-content: space-between;
        padding: 2rem;
        background: #111;
        border-radius: 25px 25px 0  0;
    }
    .close_btn {
        display: block;
        cursor: pointer;
    }

    .custom_scroll {
    flex: 1;
    overflow-y: auto;
    height: 100%;
}

    .custom_bottom{
        padding: 0 2rem;
        max-height: 500px;
        overflow-y: auto;
        padding-bottom: 5rem;
    }
    .custom_box h3 {
        color: #fff;
        font-size: 1.2rem;
    }
    .sliderbox{
        justify-content: space-around;
    }


}




@media (max-width: 480px) {

    .custom_bottom{
        max-height: unset;
    }

}


/* slider 요소 높이 명시 */
.sliderbox .slider {
    height: 200px; /* 슬라이더 세로 길이 명시 */
}

/* .slider에 transform 제거 (세로형엔 불필요) */
.wrap .slider_wrap .slider {
    background: #EFEFEF;
    border-radius: 30px;
    /* transform: translateX(-50%); ← 이거 제거 */
}

/* 모바일에서 .custom_box의 overflow 개선 */
@media (max-width:1080px) {
    .custom_box {
        overflow: visible; /* ← hidden 대신 visible 또는 auto로 */
    }

    .custom_bottom {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}


.slider {
    height: 200px !important;  /* 반드시 명시 */
    touch-action: none;
}

.ui-slider-handle {
    width: 28px;
    height: 28px;
    touch-action: none;
}


/* 데이터 없을  때 */
.no_data{
    text-align: center;
}
/* "조회된 맞춤 요금제가 없습니다." 텍스트 */
.no_data p {
    font-size: 1rem;
    color: #666;  /* 회색 텍스트 */
    text-align: center;
    font-weight: 600;
    margin: 5rem 0 2rem 0;
}

/* "더 많은 요금제 보러가기" 버튼 */
.more_plan {
    width: 100%;
    height: 65px;
    font-weight: 600;
    font-size: 1.06rem;
    /*border: 1px solid #ffc1a3;*/
    background: #EFF6FF;
    color: var(--main-color);
    border-radius: 2.5rem;
}