﻿

.wrap{
    margin-top: 90px;
}

.choice_banner{
    max-width: 1180px;
    width: 100%;
    margin: auto;
}

.planSwiper{
    width: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border-radius: 15px;
}

.mplanSwiper{
    display: none;
}

.swiper-wrapper{
    display: flex;
}

.planSwiper .swiper-slide,
.mplanSwiper .swiper-slide{
  width: 100%;
  flex-shrink: 0;
}


.top_banner{
    width: 100%;
    height: 230px;
    object-fit:cover;
    border-radius: 25px;
}

.planSwiper .swiper-pagination,
.mplanSwiper .swiper-pagination{
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%);
    z-index: 999;
    display: flex;
    column-gap: 0.5rem;
}

.planSwiper .swiper-pagination-bullet,
.mplanSwiper .swiper-pagination-bullet{
    display: block;
    height: 10px;
    width: 10px;
    border-radius: 50px;
    background-color: rgba(0,0,0,0.3);
}

.planSwiper .swiper-pagination-bullet-active,
.mplanSwiper .swiper-pagination-bullet-active{
    background-color: rgba(0,0,0,0.9);
}

.swiper-button-next,
.swiper-button-prev,
.autoplay-controls{
    position: absolute;
    bottom: 20px;
    width: 40px;
    height: 40px;
    display: block;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
}

.swiper-button-next{
    right: 20px;
}

.swiper-button-prev{
    right: 75px;
}

.swiper-button-next img,
.swiper-button-prev img{
    width: 10px;
    margin-left: 0.85rem;
    margin-top: 0.6rem;
}

.autoplay-controls{
    display: none;
}


@media (max-width:768px) {

    .planSwiper{
        display: none;
    }

    .mplanSwiper{
        width: 100%;
        height: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border-radius: 15px;
    }

    .mtop_banner{
        width: 100%;
        height: 100%;
        max-height: 200px;
    }

    .planSwiper .swiper-pagination,
.mplanSwiper .swiper-pagination{
        column-gap: 0.5rem;
        bottom: 15px;
    }


    .planSwiper .swiper-pagination-bullet, .mplanSwiper .swiper-pagination-bullet{
        width: 12px;
        height: 12px;
    }

    .swiper-button-next,
    .swiper-button-prev,
    .autoplay-controls {
        position: absolute;
        bottom: 15px;
        width: 30px;
        height: 30px;
        display: block;
        background: rgba(0,0,0,0.3);
        border-radius: 10px;
    }

    .autoplay-controls{
        display: block;
        right: 55px;
    }

    .swiper-button-next{
        right: 20px;
    }

    .swiper-button-prev{
    right: 90px;
}

    .swiper-button-prev img{
        width: 8px;
        margin-top: 0.5rem;
        margin-left: 0.7rem;
    }
    .swiper-button-next img{
        width: 8px;
        margin-top: 0.5rem;
        margin-left: 0.8rem;
    }

    .play-button img{
        width: 11px;
        margin-top: 0.5rem;
        margin-left: 0.68rem;
    }
    .pause-button img{
        width: 10px;
        margin-top: 0.5rem;
        margin-left: 0.65rem;
    }

    
.mtop_banner{
    object-fit:cover;
}


}


@media (max-width:480px){

    .swiper-button-prev img,
    .swiper-button-next img,
    .play-button img,
    .pause-button img{
        margin-top: 0.6rem;
        margin-left: 0.75rem;
    }

}



.page_tit {
    font-size: 1.88rem;
    font-weight: 800;
    margin-bottom: 2.4rem;
}

/* 기본적으로 닫힌 상태로 설정 */
/* "조회된 맞춤 요금제가 없습니다." 텍스트 */
.no-data {
    font-size: 1rem;
    color: #666;  /* 회색 텍스트 */
    text-align: center;
    margin: 20px 0;
    font-weight: 600;
}

/* "더 많은 요금제 보러가기" 버튼 */
.view-more-plans {
    width: 60%;
    height: 65px;
    font-size: 1.06rem;
    background: #EEF8FF;
    color: var(--main-color);
    margin: 0 auto;
    border-radius: 15px;
}

@media (max-width:768px) {

    .view-more-plans{
        width: 100%;
    }

}


/* .notiopen 클래스가 추가될 때 표시 */
.notiopen {
    display: block;
}




/*탭메뉴*/
.tab_btn{
    display: flex;
    margin-bottom: 2rem;
    box-sizing: border-box;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tab_btn:first-of-type{
    margin-top: 3rem;
}



/* 상단 제목 */
.tit{
    text-align: center;
    margin-top: 3.5rem;
}
.tit h2{
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--sub-color);
}
.tit p{
    color: #595959;
    margin: 0.8rem 0 1.5rem 0;
}


/* 추천요금제 */
.best_data{
    margin-bottom: 3rem;
}

/* 스크롤바 전체 */
.wrap .swiper-scrollbar {
    width: 40%; 
    margin: auto;
    margin-top: 1rem;
    height: 8px; /* 스크롤바 높이 */
    background-color: #e0e0e0; /* 배경색 */
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}
/* 드래그 핸들 (현재 페이지 표시 부분) */
.swiper-scrollbar-drag {
    background-color: #706F6F; /* 진행된 부분 색상 */
    border-radius: 3px;
    height: 100%; /* 핸들 높이는 스크롤바와 동일 */
    transition: background-color 0.3s;
}
/* 남은 부분 (스크롤바 배경과 구분) */
.swiper-scrollbar-drag::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    background-color: #888; /* 남은 부분 색상 */
    width: 100%; /* 기본 가로길이 */
    height: 100%; /* 스크롤바 높이 */
    z-index: -1; /* 드래그 핸들 아래 배치 */
    border-radius: inherit;
}
/* 핸들 호버 효과 */
.swiper-scrollbar-drag:hover {
    background-color: #3e8e41; /* 호버 시 색상 강조 */
}
@media (max-width: 768px) {
    .wrap .swiper-scrollbar {
        width: 100%;
    }
}


/*필터*/
.right_menu{
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.right_menu select{
    font-size: 0.75rem;
    color: #585858;
    font-weight: 500;
    cursor: pointer;
}

.plan_filter{
    display: none;
}

.plan_filter span{
    width: 100%;
}

.plan_filter img{
    width: 17px;
}


@media (max-width:1080px) {

    .plan_filter{
        display: flex;
    justify-content: space-between;
    width: 50px;
    color: #585858;
    font-size: 0.87rem;
    cursor: pointer;
    font-weight: 500;
    }

}


/*요금제 상단*/
.toolbar{
    margin-bottom: 0.5rem;
}


/*요금제*/
.plan_wrap{
    display: grid;
    gap:1rem;
}

.plan{
    background-color: #fff;
    box-shadow: 0 2px 8px #e7e7e7;
    padding: 1.2rem;
    height: auto;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.plan:hover{
    box-shadow: 0 0 5px var(--main-color);
    transition: all 0.3s ease-in-out;
}

.plan_title{
    font-size: 0.87rem;
    margin-bottom: 4px;
}

.plan_data{
    font-size: 1.38rem;
    font-weight: 700;
    margin-bottom: 1rem;
    word-break: keep-all;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-direction: row;
    flex-wrap: wrap;
}

.tag img{
    cursor: pointer;
    position: relative;
}


/*요금제 말풍선*/
.plantag_guide{
    position: absolute;
    background-color: rgba(0,0,0,1);
    border-radius: 15px;
    padding: 1rem;
  color: #fff;
  font-size: 0.87rem;
  z-index: 999;
  line-height: 140%;
  word-break: keep-all;
  margin-right: 2rem;
  display: none;
}

.plan_data img{
    cursor: pointer;
}

.plan_data_wrap{
    position: relative;

}

/*데이터 속도 말풍선*/
.bps_guide{
    position: absolute;
    top: 100%;
    background-color: rgba(0,0,0,1);
    border-radius: 15px;
    padding: 1rem;
  color: #fff;
  font-size: 0.87rem;
  z-index: 999;
  line-height: 140%;
  word-break: keep-all;
  margin-right: 2rem;
  display: none;
  max-width: 80vw;
}

.arrow_svg {
  position: absolute;
  top: -10px;
  left: var(--arrow-left, 50%);
  transform: translateX(-50%);
}

.infoprice{
    display: flex;
    justify-content: space-between;
}

.plan_info{
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.93rem;
    flex-wrap:wrap;
    margin-bottom: 1rem;
}

.info_wrap{
    display:flex;
    align-items: center;
    column-gap: 0.3rem;
    font-size: 0.87rem;
}

.info_wrap p{
    color: #ADADAD;
}

.plan_info img{
    width: 15px;
    height: 15px;
}

.plan_price{
    text-align: right;
}

.price{
    justify-content: flex-end;
    column-gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.2rem;
}

.fixed_price{
    text-decoration: line-through;
    color: #aaa;
    font-size: 0.75rem;
}

.month_price{
    font-size: 1.13rem;
    font-weight: 700;
    color: var(--main-color);
}

.month_price span{
    font-weight: 800;
    font-size: 1.5rem;
}

.next_price{
    font-size: 0.87rem;
}

hr{
    border: 1px solid #f5f5f5;
    margin-top: 1rem;
}


@media (max-width:580px) {
    .infoprice{
        display: block;
    }
}





/*요금제 혜택*/
.plan_benefit_wrap{
    padding: 1.5rem 0 0.5rem 0;
}

.plan_benefit_wrap>div{
    display: flex;
    justify-content: flex-end;
    column-gap: 0.2rem;
}

.plan_benefit_wrap>div img:not(:last-child){
    width: 15px;
    height: 15px;
    margin-left: -10px;
}

.plan_benefit_wrap>div img:last-child{
    width: 10px;
    transition: all 0.3s ease;
}

.plan_benefit_wrap p{
    font-size: 0.87rem;
    color: #707070;
}

.plan_benefit{
    font-size: 0.75rem;
    line-height: 1.5rem;
    text-align: center;
    margin-top: 1rem;
    background-color: #F9F9F9;
    border-radius: 15px;
    padding: 0.5rem 1rem;
    min-width: 0;
    display: none;
    transition: all 0.3s ease;
}

.plan_benefit li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1 1 calc(20% - 1rem);
}

.plan_benefit img{
    width: 15px;
    height: 15px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.plan_benefit  li p{
    display: inline-block;
    overflow: hidden; 
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: calc(100% - 10px);
}





/* 데이터 스펙 */
.data_count{
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0.8rem 0 0.6rem 0;
}
.data_info{
    border-radius: var(--border-15px);
    padding: 5% 0;
    display: flex;
    justify-content: center;
    background: #fff;
}
.data_info>li{
    display: flex;
    align-items: center;
    margin: 0 0.9rem;
    justify-content: center;
}
.data_info img{
    margin-right: 5px;
}
/* 데이터 혜택 */
.data_event{
    margin: 1.3rem 0;
}
.data_event p{
    color: #595959;
    font-weight: 600;
}
.data_event p:not(:last-child){
    margin-bottom: 0.5rem;
}
.data_event img{
    margin-right: 1px;
}
/* 월정액 */
.b_data .data_mid2{
    align-items: center;
    justify-content: flex-end;
}
.b_data .data_mid2>strong{
    font-size: 1.625rem;
    font-weight: 800;
}
.b_data button{
    width: 100%;
    height: 65px;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1.06rem;
    color: #fff;
    background: var(--sub-color);
}


/* 3. 하단 */
.plan_box{
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
}

/* 요금제 리스트 */
.data_box{
    width: 62%;
}

/* 데이터 */
.data {
    grid-template-columns: repeat(1, 1fr);
}


/* 맞춤요금제 */
.custom_box{
    position: sticky;
    top: 10%;
    width: 36%;
    height: auto;
    max-height: 750px;
    background: #fff;
    box-shadow: 0 0 10px #e5e5e5;
    border-radius: 25px;
}

.custom_plan{
    padding: 1.5rem;
    height: auto;
}


/*모바일 맞춤요금제*/
.filter_modal{
    width: 100%;
    height: auto;
    margin: 0 auto;
    max-height: 80vh;
    padding: 2rem 27px 0;
    border-radius: 25px 25px 0 0;
    background-color: #fff;
    bottom: 0;
    left: 0;
    display: none;
}

/*모바일 필터*/
    .filter_modal .fcontents {
        padding-bottom: 80px;
        max-height: calc(90vh - 120px);
    }

.filter_modal .btn_wrap{
    column-gap: 0.5rem;
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 1rem 27px 2rem;
    background: #fff;
}

.filter_title{
    display: none;
}

.filter_title h2{
    font-size: 1.25rem;
    font-weight: 600;
    color: #25252D;
}

.filter_modal .opt_obj input[type="radio"] + span{
    padding: 0 1.5rem;
    line-height: 2.7rem;
    height: 2.5rem;
}


/*탭메뉴 스와이퍼*/
.tabSwiper{
    flex-wrap: nowrap;
    overflow: hidden;
    padding-right: 0;
}

.tabSwiper .opt_obj input[type="radio"] + span{
    height: 2.5rem;
    line-height: 2.5rem;
    padding: 0 1.3rem;
    font-size: 0.87rem;
}

.tabSwiper .swiper-wrapper{
    display: flex;
    white-space: nowrap;
    width: 100%;
}

.tabSwiper .swiper-slide {
    width: auto !important;
}

.opt_obj{
    cursor: pointer;
}

.fcontents{
    height: 540px;
    overflow-y:scroll;
    padding: 0 1rem;
    margin: 2rem 0 1.5rem 0;
}
.fcontents .btn_wrap{
    padding-bottom: 4rem;
}
.filter_modal {
    padding-bottom: calc(1rem + constant(safe-area-inset-bottom));
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.fcontents>div:not(:last-child){
    margin-bottom: 3rem;
}

.ftitle{
    display: flex;
    column-gap: 0.3rem;
    font-size: 1.13rem;
    margin-bottom: 1rem;
    align-items: center;
}

.ftitle p{
    font-weight: 600;
    font-size: 0.95rem;
}

.ftitle img:first-child{
    width: 25px;
    height: 25px;
}


@media (max-width:1080px) {

    .custom_box{
        display: none;
    }

    .filter_title{
        display: flex;
    column-gap: 0.5rem;
    font-size: 1.13rem;
    margin-bottom: 1rem;
    align-items: center;
    justify-content: space-between;
    }

    .fcontents{
        height: 70%;
    }

}


/*소진시속도*/
.fspeed_contents {
    cursor: pointer;
    position: relative;
}


.custom_box .bps_guide,
.filter_modal .bps_guide {
    background: #000;
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    word-break: keep-all;
    margin-top: 1rem;
    margin-right: 0;
    position: absolute;
    display: none; /* JS에서 block으로 바뀜 */
    --arrow-left: 50%;
}

.bps_guide .arrow_svg {
    position: absolute;
    top: -10px;
    left: var(--arrow-left);
    transform: translateX(-50%);
}

.filter_modal .ftitle img:first-child{
    width: 20px;
    height: 20px;
}



/*가격 */
.fprice .ftab{
    margin-top: 2rem;
}



.ftab{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.ftab .opt_obj input[type="checkbox"]{
    display: none;
}

.ftab .opt_obj span{
    display: inline-block;
    width: 100%;
    border-radius: 10px;
    height: 2.5rem;
    line-height: 2.5rem;
    text-align: center;
    background-color: #F8F8F8;
    color: #B0B7BA;
    font-size: 0.87rem;
}

.ftab .opt_obj input[type="checkbox"]:checked + span{
    background-color: #fff;
    outline: 1px solid var(--main-color);
    color: #000;
    display: inline-block;
    width: 100%;
    height: 2.5rem;
    font-size: 0.87rem;
}


@media (max-width:580px){

    .fdata_tab{
    grid-template-columns: repeat(1, 1fr);
    }

}


/*슬라이드*/
.ui-widget.ui-widget-content{
    border: 1px solid #EBEBEB !important;
    background-color: #EBEBEB !important;
}

.ui-slider-horizontal{
    height: 4px !important;
}

.ui-widget-header{
    background: var(--main-color) !important;
    height: 4px !important;
}

/* 바 */
.data-slider .ui-slider-handle {
    touch-action: none; /* 터치 이벤트 활성화 */
}

/* 선택값 */
.open_obj input[type="radio"] + span {
    line-height: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f8f8f8;
    color: #b5b5b5;
}
.open_obj input[type="radio"]:checked + span {
    border: 1px solid #706F6F;
    background: #706F6F;
    color: #fff;
    font-weight: 600;
}

.wrap .slider span{ /* 좌우 버튼 */
    border-radius: 30px;
    height: 22px;
    width: 22px;
    outline: none;
    border: 3px solid var(--main-color);
    transition: width .1s;
    cursor: grab;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
}

.ui-slider-horizontal .ui-slider-handle{
    top: -0.52rem !important;
}

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-display {
    width: 100%;
    color: #606060;
    margin-bottom: 1rem;
}

.price-display p{
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
}

.price-display span{
    font-weight: 600;
    color: #515151;
}


.option2{
    justify-content: space-around;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    text-align: center;
}


/* 결과보기 */
.btn_wrap{
    padding-top: 0;
}

.reset_btn{
    width: 40%;
} 

.btn_wrap>input{
    width: 79%;
    background: #ff8531;
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    text-indent: 0;
}
.btn_wrap>input:hover{
    background: #ff6900;
}
.btn_wrap>div{
    width: 18%;
    line-height: 55px;
    text-align: center;
    background: #FAFAFA;
    cursor: pointer;
}
.btn_wrap>div:hover{
    background: #efefef;
}

/* 하단 고정 메뉴바 */
.bottom_menu {
    display: none;
}

@media (max-width:1080px) {
    .data_box{
        width: 100%;
    }
    .custom_box {
        width: 100%;
        height: 60vh;
        display: none; 
        position: fixed; 
        bottom: -100%; 
        left: 0;
        transition: bottom 0.3s ease; 
        background: #fff;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        z-index: 100;
    }
    .custom_top{
        display: flex;
        justify-content: space-between;
        padding: 0 1.2rem;
    }
    .custom_box p {
        font-size: 1rem;
    }
    .close_btn{
        display: block;
        width: 20px;
        cursor: pointer;
    }
    .custom_bottom{
        max-height: 450px;
        overflow-y: auto;
    }
    /* 하단 고정 메뉴바 */
    .bottom_menu {
        display: flex;
        justify-content: space-between;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 78px;
        background-color: #fff;
        box-shadow: 0px -2px 8px rgba(180, 180, 180, 0.3);
        z-index: 100;
        padding: 0 15px;
        align-items: center;
    }
    .bottom_menu p{
        font-size: 0.93rem;
    }
    .open_btn{
        background: var(--sub-color);
        color: #fff;
        height: 56px;
        padding: 0 15px;
    }
    .custom_bottom .btn_wrap{
        padding-bottom: max(80px, env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width:480px) {
    .wrap .slider span {
        height: 18px;
        width: 18px;
    }
    .open_btn {
        padding: 0 10px;
    }
}


@media (max-width: 1080px) {
    #idx_btn_aiis_chat_open {
        bottom: 90px;
        right: 10px;
    }
}