.modal_wrap {width: 100%; height: 100%; position: fixed; top: 0; left: 0; background-color: #00000050; z-index: 500; display: none;}
.modal_wrap .modal_box {padding: 40px; border-radius: 20px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #804248; width: 30vw; min-width: 260px;}
.modal_con {display: flex; flex-direction: column; width: 100%; justify-content: center; gap: 30px; align-items: center;}
.modal_con .md_tit {font-size: 22px; text-align: center; color: #fff; line-height: 1;}
.modal_con .md_text {padding: 20px; background-color: #fff; line-height: 1.6; font-size: 16px; word-break: keep-all; border-radius: 12px; height: 50vh; overflow-y: scroll;}
.md_close {font-size: 15px; color: #fff; padding: 10px 30px; line-height: 1; background-color: #5a272c; border-radius: 5px; cursor: pointer;}



/* 메인팝업 */
.main_popup{position: fixed; z-index: 9999999; width: 100%; height: 100%; display: flex; align-items: flex-start;  background: rgba(0,0,0, .5);}
.main_popup .inner{width: auto; max-width: 100%; padding: 95px 16px 0 0; }
.main_popup .inner .img_wrap{height: 70vh;   background-color: #f5f5f5; overflow: hidden; }
.main_popup .inner .img_wrap img{width:auto !important; max-width: auto !important; height: 100% !important; margin: 0 auto;}
.main_popup .inner .txt_wrap{background-color: #f5f5f5; padding: 8px; display: flex; justify-content: space-between; font-size: 15px; font-weight: 600;}
.main_popup .inner .txt_wrap p{cursor: pointer; opacity: 0.7;}
 
 .sm-bn{position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 485px; max-width:100%; padding-bottom: 44px; pointer-events: auto; z-index: 99; box-shadow: 0 0 10px rgba(0,0,0,.15); border-radius: 10px; overflow: hidden;}
 /* .sm-bn .bn_imawrap{height:100% !important; cursor: pointer; } */
 .sm-bn .bn_imgwrap{cursor: pointer;position: relative; width:100%; padding-bottom: 111%;}
 .sm-bn .bn_imgwrap img{position: absolute; width: 100%; height:100%; left:50%; top:50%; transform: translate(-50%, -50%); object-fit: cover;}


 .sm-bn > ul{width: 100%; display: flex; position:absolute;border-radius: 0px 0px 25px 25px; bottom:0; z-index:99; background:#fff; left:50%; transform: translateX(-50%); border-top: 1px solid #ddd;}
 .sm-bn > ul li{position:relative; height: 46px; text-align: center; font-size: 15px; cursor:pointer; background-color: #fff; display: flex; align-items: center; justify-content: center;}
 .sm-bn > ul li:first-child{width: 60%; border-right: 1px solid #ccc; color: #888;}
 .sm-bn > ul li:last-child{width:40%; color: #333; }
 .sm-bn > ul li:last-child p{font-weight: 600;}
 .sm-bn > ul li:hover{background-color: rgb(255, 240, 243); color: #FF859E;}



 /* ********************************************* *
* 1400px max
* ********************************************* */
@media (max-width:1400px){
    .modal-sm.password_modal {width: 60%;}
    .password_modal .input_box { width: 75%;}
    .password_modal .input_box .password {width: 23%;}
    .modal-sm.shop_view_next {width: 50%;}
}

/********************************************* *
* height 800px max
* ********************************************* */
@media (max-width:800px){
    .modal-sm.shop_view_next {width: 70%;}

    .cupon_modal .shopping_basket .in_body ul{display: inherit;}
    .cupon_modal .shopping_basket .table_body .how{width:100%;}
    .cupon_modal .shopping_basket .table_body .p-name{width:100%;}
    .cupon_modal .shopping_basket .table_body .but {position: absolute; right: 0; top: 50%;transform: translateY(-50%);}



}
/* ********************************************* *
* 768px max
* ********************************************* */
    @media (max-width:768px){
        .modal-sm.password_modal {width: 90%;}
        .password_modal .button button:first-child {margin-right: 10px;}
        .popup_m .tabSet ul.tabs li a {font-size: 12px;}

        .popup_m .panels {margin-top:0;}

    .modal.popup_m .modal-wrap {
        width: 90% !important;}
    
.modal.popup_m { background-color: hsla(0,0%,0%,0.4);}
.popup_m.modal{width:100% !important;     height: 100%;position:fixed;}
.modal.popup_m .modal-wrap{position:absolute;top:50% !important;;left:20px;transform:translateY(-50%) !important;}
  

.user-modal.login-modal2 p.bigA, .user-modal.login-modal2 p.bigA span{font-size: 15px;}

.cal_mo .modal-sm.shop_view_next{min-width: 100%;}

.sear_produ .btn-container li.col-xs-6 {width: 33.3%;}
.sear_produ .modal-wrap {height: 497px;}

.sm-bn{border-radius: 10px;}



}

    /* ********************************************* *
    * width 640px max
    * ********************************************* */
    @media (max-width:640px){
    .cart_modal .select_list .select_numder {justify-content: center;}
    .cart_modal .product_con {flex-direction: column; }
    .cart_modal .product_con .produc_txt {width: 100%; padding-left: 0;margin-top: 20px;}

    .modal-container { padding: 20px;}
    .user-modal.login-modal .modal-container{padding: 20px;}
    .cart_modal .product_con .produc_txt .right{width: 100%;}

    }
    
/* ********************************************* *
* 560px max
* ********************************************* */
@media (max-width:560px){


    .shop_view_next .button, .shop_view_next .button button:first-child, .shop_view_next .button button:nth-child(2){width: 100%;}
    .user-modal .button{width: 100%;}
    .user-modal .single_btn button.singlebtn{width: 100%; margin: 0;}
    .modal-container-inner p{font-size: 14px;}
    .download_mo .modal-container{padding: 24px 16px;}

    .cart_modal .product_title{font-size: 1.15rem; margin-bottom: 10px;}
    .cart_modal .product_con .option{margin-bottom: 10px;}
    .cart_modal .modal-container-inner{padding-bottom: 0;}
    .cart_modal .modal-container-inner > div:first-child{max-height: 400px;}
    .cart_modal .modal-container{padding: 16px;}


}    


/* ********************************************* *
* 520px max
* ********************************************* */
@media (max-width:520px){
    .sm-bn{width: 100%; max-width: 100%; top: 50%; left: 50%; transform: translate(-50%, -50%); width: calc(100% - 32px);} 
    .main_popup{padding: 0 16px; position: fixed;}

}


/* ********************************************* *
* 480px max
* ********************************************* */
    @media (max-width:480px){
        .password_modal .input_box { width: 100%;}
    .password_modal .input_box .password {width: 25%;}
    .password_modal .button {width: 100%;}
    .modal-sm.shop_view_next {width: 100%;}

    .cart_modal .select_con .select_list{display: block; position:relative }
    .cart_modal .select_list .close{position:absolute; top:10px; right:0px;}

    .cart_modal .select_list .select_price {
        text-align: right;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-direction: row-reverse;
    }
    .cart_modal .select_list .select_name {
        width: 100%;
    }
    .cart_modal .select_list .select_numder{position:absolute; bottom:15px; left:0px;width: auto;}

    .cart_modal .select_list .select_price {margin-top: 20px;width: 100%;}
    .cart_modal .select_list .span_ac_point {font-size:10px}
    .cart_modal .select_list .product_accumulate {color: #888;}
    .cart_modal .select_list .product_price { margin-left:10px; }
    .cart_modal .select_list .span_price{font-weight:500;font-size: 1.25rem;}

    .cart_modal .product_con .produc_txt .right{width: 100%;}


    .modal.popup_m .modal-wrap {
        width: 90% !important;margin:0 auto;
    }
    
    .sear_produ .btn-container li.col-xs-6 {width: 50%;}
    .sear_produ .modal-wrap {height: 497px;}
    .popup_m .panel { height: auto;}

}


/* ********************************************* *
* 480px max
* ********************************************* */
@media (max-width:480px){
    .user-modal.login-modal2 p br{display: none;}

    .download_mo .d-block input[type="checkbox"] + label span{font-size: 14px;}
}


/* ********************************************* *
* 350px max
* ********************************************* */
    @media (max-width:1024px){

        .modal-sm.cupon_modal {
            width: 80%;}


    }
    /* ********************************************* *
    * 500px max
    * ********************************************* */
        @media (max-width:500px){
            .cal_mo .call button{width:100px;}
            .cal_mo .call input{width: calc(100% - 100px);}
            .cal_mo .call {width: 100%;}


            .cupon_modal .shopping_basket .table_body .but {position: inherit; right: 0; top: auto;transform: none;width: 100%;}
            .cupon_modal .shopping_basket .table_body .but button {margin-top:5px;padding: 5px 0;color:#333;}
            .cupon_modal .shopping_basket .table_body .how {font-size: 0.9rem; opacity: 0.7;margin-top:2px;}
            .modal-sm.cupon_modal {border-radius: 10px;width: 90%;}
            .modal-container .modal-out-tit {font-size: 18px; }

            .user-modal .button button{font-size: 15px;}
            .shop_view_next .button button:first-child{font-size: 15px;}
            .login .panel .login02_but .button button{font-size: 14px;}
        }

    /* ********************************************* *
    * 350px max
    * ********************************************* */
        @media (max-width:350px){
    
            /* .modal-container {padding: 28px 16px 30px; } */
            .password_modal .input_box .password {margin-right: 10px;  width: 30%; }
            .secession .but button {padding: 10px 0; }
            .password_modal .button button:first-child { padding: 8px 0;}
            .popup_m .panel {height: auto;}
            .modal.popup_m .modal-wrap{left:50%;transform: translate(-50% , -50%) !important}
            .download_mo .d-block input[type="checkbox"] + label span{font-size: 12px; line-height: 2;}

        }