/* layer */
.layer_wrap_cont {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    padding: 30px;
}

.layer_wrap .scroll_box {
    padding: 20px 0;
}

.layer_wrap .layer_wrap_cont .ly_tit {
    padding: 10px 0;
}

.layer_wrap .layer_wrap_cont .ly_tit * {
    font-size: var(--h2-font-size);
    line-height: var(--h2-line-height);
}

@media (max-width: 767px) {
    .layer_wrap_cont {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        top: 50px !important;
        left: 0 !important;
        width: 100%;
        height: calc(100% - 50px);
        overflow-y: auto;
        padding: 10px;
        transform: none !important;
    }

    .layer_wrap .ly_cont {
        flex: 1;
        position: relative;
    }

    .layer_wrap_cont .btn_box {
        position: absolute;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px;
        background-color: var(--white);
    }
}

/* 동록된 게시글 없음 */
.layer_wrap .no_data {
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
    padding: 30px 0;
    text-align: center;
}

/* 테이블 공통(텍스트 센터 기본) */
.top_table_type thead {
    display: none;
}

/* left 형 */
.left_table_type table,
.left_table_type tbody,
.left_table_type tr,
.left_table_type th,
.left_table_type td {
    display: block;
    width: 100%;
    text-align: left;
}

.left_table_type th {
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
    font-weight: 400;
    margin-bottom: 4px;
}

.left_table_type tr td {
    padding-bottom: 20px;
}

.left_table_type input[type="text"], 
.left_table_type input[type="password"] {
    width: 100%;
}

/* 옵션선택 레이어 */
#optionViewLayer .layer_wrap_cont {
    width: 680px;
}

.option_tit_box dl {
    display: flex;
    flex-wrap: wrap;
    padding: 20px 0;
}

.option_tit_box dl .pd_img {
    width: 140px;
    margin-right: 20px;
}

.option_tit_box dl .pd_img img {
    width: 100%;
}

.option_tit_box dl .pd_info {
    flex: 1;
}

.option_tit_box .pd_name,
.option_tit_box .pd_explain {
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
}

.option_tit_box .pd_explain {
    color: var(--gray-cool-6);
}

.option_select_box {
    margin-bottom: 60px;
}

.option_select_box .item_choice_list table td {
    padding: 10px 0;
}

.option_select_box .option_display_area {
    width: 100%;
    background: none;
}

.option_select_box .option_chosen dt {
    display: none;
}

.option_select_box .option_chosen dd {
    width: 100%;
}

@media (max-width: 767px) {
    #optionViewLayer .layer_wrap_cont {
        width: 100%;
    }
}


/* 주문 > 나의 배송지 관리 */
.delivery_add_list_layer .layer_wrap_cont {
    max-width: 750px;
    width: 100%;
}
.delivery_add_list_layer .layer_wrap_cont h5 {
    display: none;
}

.delivery_add_list tr {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

.delivery_add_list tr td {
    position: relative;
    text-align: left;
    padding: 20px 0;
}

.delivery_add_list tr td.info_wrap {
    flex: 1;
    margin-left: 10px;
}

.delivery_add_list tr td .name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: var(--h3-font-size);
    line-height: var(--h3-line-height);
    margin-bottom: 10px;
}

.delivery_add_list tr td .name span {
    font-size: var(--caption-font-size);
    line-height: var(--caption-line-height);
    color: var(--blue-5);
    margin-left: 10px;
}

.delivery_add_list tr td .addr,
.delivery_add_list tr td .tel {
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
}

.delivery_add_list tr td .btn {
    display: flex;
    flex-wrap: wrap;
    position: absolute;
    top: 20px;
    right: 0;
}

.delivery_add_list tr td .btn .btn-chip-outline {
    display: block;
    margin-left: 4px;
}

.delivery_add_list thead {
    display: none;
}

.delivery_add_list_layer .top_table_type td.chk_wrap .chk {
    background:url("../images/icon_checkbox_default.svg") no-repeat center !important;
    width: 20px !important;
    height: 20px !important;
    background-size: 100% !important;
}

.delivery_add_list_layer .top_table_type td.chk_wrap .chk.on {
    background:url("../images/icon_checkbox_checked.svg") no-repeat center !important;
    background-size: 100% !important;
}

/* 쿠폰 총 할인금액, 총 적립금액 */
.coupon_total_box {
    background-color: var(--blue-5);
    color: var(--white);
    padding: 20px;
    margin-bottom: 30px;
}

@media (max-width: 767px){
    .coupon_total_box {
        padding-bottom: 95px;
    }
}

.coupon_total_box dl {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: center;
    padding: 5px;
}

.coupon_total_box dl strong {
    font-weight: 400;
}

.coupon_total_box dl dt {
    font-size: var(--h3-font-size);
    line-height: var(--h3-line-height);
    font-weight: 400;
}

.coupon_total_box dl dd {
    font-size: var(--h2-font-size);
    line-height: var(--h2-line-height);
    font-weight: 400;
}

/* 주문 > 쿠폰적용하기 */
.layer_wrap.coupon_apply_layer .layer_wrap_cont {
    max-width: 750px !important;
    width: 100% !important;
}

.layer_wrap.coupon_apply_layer .layer_wrap_cont h5 {
    font-size: var(--h3-font-size);
    line-height: var(--h3-line-height);
    font-weight: 400;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--black);
    margin-top: 30px;
    margin-bottom: 20px;
}

.layer_wrap.coupon_apply_layer .layer_wrap_cont h5:first-child {
    margin-top: 0;
}
/* 주문 > 결제창 */
#pgSettlementApplyLayer .layer_wrap_cont {
    display: flex;
    flex-direction: column;
    max-width: 680px;
    height: auto;
    width: 100%;
}

#pgSettlementApplyLayer .ly_cont {
    flex: 1;
    min-height: auto;
}

#pgSettlementApplyLayer .escrow_cont {
    position: relative;
    height: 100%;
}

/* #pgSettlementApplyLayer .escrow_cont .btn_box {
    position: absolute;
    right: 0;
        left: 0;
        bottom: 0;
} */

@media (max-width: 767px) {
    #pgSettlementApplyLayer .layer_wrap_cont {
        top: auto !important;
        height: 50vh !important;
        bottom: 0 !important;
    }
}

/* 이전 커스텀 CSS */
/** 팝업 **/
.pop {
    position: fixed; 
    top: 50%; 
    left: 50%; 
    width: 100%;
    max-width: 680px;
    padding: 30px;
    transform: translate(-50%, -50%);
    background: #fff; 
    box-sizing: border-box; 
    transition: all 0.3s; 
    opacity: 0; 
    visibility: hidden;
    z-index: 301;
}

.pop.on {
    opacity: 1; 
    visibility: visible;
}
.pop .btn_box{font-size:0; padding-top:32px;}
.pop .btn_box a{display:inline-block; vertical-align:top; width:calc(50% - 5px); height:50px; background:#000; color:#fff; text-align:center; line-height:50px; font-size:14px; font-weight:700; margin-right:10px; max-width:180px;}
.pop .btn_box a:last-child{margin:0;}
/* .pop .close_btn{content:''; display:block; width:16px; height:16px; position:absolute; top:15px; right:15px; background:url('../img/icon/icon_close.png')no-repeat 50% 50%; cursor:pointer;} */
.pop .pop_tit{
    font-size: var(--h2-font-size);
    line-height: var(--h2-line-height);
    padding: 10px 0;
}
/* 완료팝업 */
.s_pop {
    width: 480px;
    padding: 30px;
    text-align: center;
}

.s_pop .pop_ok {
    font-size: var(--h2-font-size);
    line-height: var(--h2-line-height);
    text-align: center;
}

.s_pop .pop_ok::before {
    content: '';
    display: block;
    width: 60px;
    height: 60px;
    background-image: url(../images/icon_goods_cart_success.svg);
    background-size: 100%;
    margin: 0 auto;
    margin-bottom: 20px
}

.s_pop .sub {
    display: none;
    font-size: var(--body-font-size);
    padding-top: 20px;
}

.s_pop .pop_btn_wrap {
    padding-top: 60px;
}
/* 결제수단 */
/* 새배송지 */
/* 배송지목록 */
/* 분쇄도 */
/* 원두구성 */
.type1_pop .type_wrap .chk {
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
    background-color: var(--gray-light-1);
    text-align: center; 
    padding: 18px 0;
}

.type1_pop .type_wrap .chk span {
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
}

.type1_pop .type_wrap ul {
    padding-top: 30px;
}
.type1_pop .type_wrap ul li{
    padding-bottom: 20px; 
    font-size: 0;
}
.type1_pop .type_wrap ul li:last-child {
    padding-bottom: 0;
}
.type1_pop .type_wrap ul li > * { 
    display:inline-block; 
    vertical-align:middle; 
    width:calc(100% - 160px);
}
.type1_pop .type_wrap ul li .tit{
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
}
.type1_pop .type_wrap ul li .cont { 
    width:160px;
}
.type1_pop .type_wrap ul li .cont .num{
    position: relative; 
    padding: 0 25px;
}
#wrap #container .type1_pop .type_wrap ul li .cont .num input {
    width: 100%;
    height:25px; background:transparent; border:none; text-align:center; padding:0;
}
.type1_pop .type_wrap ul li .cont .num button{width:25px; height:25px; box-sizing:border-box; border:1px solid #000; position:absolute; top:0;}
.type1_pop .type_wrap ul li .cont .num button:before, .type1_pop .type_wrap ul li .cont .num button.up:after{content:''; display:block; width:10px; height:2px; background:#000; position:absolute; top:50%; margin-top:-1px; left:50%; margin-left:-5px;}
.type1_pop .type_wrap ul li .cont .num button.up:after{transform:rotate(90deg);}
.type1_pop .type_wrap ul li .cont .num button.up{right:0;}
.type1_pop .type_wrap ul li .cont .num button.down{left:0;}
/* 싱글오리진 */
.origin_pop {
    width: 800px;
}

.origin_pop .origin_wrap {
    padding-top: 30px;
}

.origin_pop .origin_info {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--black);
    padding-bottom: 60px;
}

.origin_pop .origin_info ul li {
    list-style: disc;
    margin-left: 18px;
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
    text-transform: uppercase;
}
/* 수량선택 */

/* 구독관리, 전환 */
.sb_page_pop, .sb_reverse_pop{width:440px; padding:35px; margin:-117px 0 0 -220px; text-align:center;}
.sb_reverse_pop{width:484px; margin-left:-242px;}
.sb_page_pop p, .sb_reverse_pop p{font-size:24px; line-height:1.7; letter-spacing:-1px;}
.sb_page_pop p strong, .sb_reverse_pop p strong{display:block;}
/* 결제등록 */
.pay_info_pop{
    width: 100%;
    max-width: 680px;
    padding: 30px;
    transform: translate(-50%, -50%);
}
.pay_info_pop ul li{padding-bottom:30px;}
.pay_info_pop ul li span{display:block;}
.pay_info_pop ul li span.tit{
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
    padding-bottom: 4px;
}
.pay_info_pop ul li > div{width:calc(50% - 5px); margin-right:10px;}
.pay_info_pop ul li > div:last-child{margin:0;}
.pay_info_pop ul li .money_use_sum span,
.pay_info_pop ul li .money_use_txt span {
    display: inline-block;
}
.pay_info_pop .help {
    display: flex;
    align-items: center;
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
    background-color: var(--gray-light-1);
    color: var(--gray-cool-6);
    padding: 12px;
}
.pay_info_pop .help::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('../images/icon_help_text.svg') no-repeat center;
    margin-right: 4px;
}
#wrap #container .pay_info_pop input{color:#888;}
#wrap #container input#cardNumber{border:1px solid #000; background:#fff; color:#000;}
/* 쿠폰등록, 마일리지 등록 */
.couponOrderApplyLayer .pay_cont ul li.total_price span,
.mileageOrderApplyLayer .pay_cont ul li.total_price span {
    font-size: var(--h2-font-size);
    line-height: var(--h2-line-height);
}
.couponOrderApplyLayer .pay_cont ul li span strong,
.mileageOrderApplyLayer .pay_cont ul li span strong {
    font-size: var(--h3-font-size);
    font-weight: 400;
    line-height: var(--h3-line-height);
}
.couponOrderApplyLayer .pay_cont ul li.total_price span,
.mileageOrderApplyLayer .pay_cont ul li.total_price span {
    display: inline-block;
}
/* 배송지목록, 새배송지 */
.delivery_list_pop,
.delivery_add_pop {
    width: 100%;
    max-width: 680px;
    padding: 30px;
    transform: translate(-50%, -50%);
    z-index: 301;
}

.delivery_list_pop .member_address .btn_post_search,
.delivery_add_pop .member_address .btn_post_search {
    margin-left: 0;
}

.delivery_list_pop .member_address .address_input,
.delivery_add_pop .member_address .address_input {
    margin-top: 14px;
}

.delivery_list_pop .info_wrap {
    position: relative;
    flex: 1;
    margin-left: 10px;
    margin-right: 10px;
}

.delivery_list_pop li {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    position: relative;
    text-align: left;
    padding: 20px 0;
}

.delivery_list_pop li .name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    line-height: var(--h3-line-height);
    margin-bottom: 10px;
}

.delivery_list_pop li .addr, 
.delivery_list_pop li .tel {
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
}

.delivery_list_pop li .info_wrap div:not(.btn) {
    width: calc(100% - 120px);
}

.delivery_list_pop li .btn{
    display: flex;
    flex-wrap: wrap;
    position: absolute;
    top: 0;
    right: 0;
}

.delivery_list_pop li .btn button{
    font-size: var(--caption-font-size);
    font-weight: var(--caption-font-weight);
    line-height: var(--caption-line-height);
    color: var(--black);
    text-align: center;
    padding: 8px 16px;
    border: 1px solid var(--black);
    background: #fff;
    margin-left: 4px;
}

.delivery_list_pop li .chk{
    background: url(../images/icon_checkbox_default.svg) no-repeat center !important;
    width: 20px !important;
    height: 20px !important;
    background-size: 100% !important;
}
.delivery_list_pop li .chk.on{
    background: url(../images/icon_checkbox_checked.svg) no-repeat center !important;
    background-size: 100% !important;
}

.delivery_add_pop table {
    padding-left: 0;
}

.pop .pop_cont .scroll_box {
    /* padding: 20px 0; */
}

.pop .no_data {
    border-top: none !important;
}

/* 구독관리 - 결제수단 */
/* .pay_pop {
    width: 100%;
    max-width: 680px;
    padding: 30px;
    transform: translate(-50%, -50%);
    z-index: 301;
} */
.pay_pop .pay_wrap {
    overflow-y: auto;
}

.pay_pop .select_pay,
.pay_pop .other_pay {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 0;
}

.pay_pop .select_pay .tit, 
.pay_pop .other_pay .tit {
    font-size: var(--body-font-size);
    font-weight: 400;
    line-height: var(--body-line-height);
    width: 120px;
    margin-right: 20px;
}

.pay_pop .select_pay .cont,
.pay_pop .other_pay .cont {
    flex: 1;
}

.pay_pop .select_pay {
    border-bottom: 1px solid var(--black);
    padding-bottom: 20px;
    margin-bottom: 10px;
}

.pay_pop .select_pay .cont .payPop + .payPop,
.pay_pop .other_pay .cont .payPop + .payPop {
    padding-top: 10px;
}

.pay_pop .select_pay .cont .payPop,
.pay_pop .other_pay .cont .payPop {
    width: 100%;
}

.pay_pop input[type="radio"] + label {
    display: inline-block;
    width: 120px;
}

.pay_pop .cardTypeBox {
    padding-left: 30px;
}

.pay_pop .cardBan input[type="radio"] + label {
    position: relative;
    width: auto;
    padding-right: 28px;
}

.pay_pop .cardBan input[type="radio"] + label::after {
    position: absolute;
    top: 0;
    right: 0;
    content: '';
    width: 24px;
    height: 20px;
    background:url("../images/icon_order_card.svg") no-repeat center !important;
    background-size: 100%;
}

@media (max-width: 767px) {
    .pop {
        top: 50px !important;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: calc(100% - 50px);
        overflow-y: auto;
        padding: 10px;
        transform: none;
    }

    .pay_pop,
    .pop .pop_cont_wrap,
    .delivery_add_pop form {
        display: flex;
        /* flex-wrap: wrap; */
        flex-direction: column;
        height: 100%;
    }

    .pay_info_pop,
    .pay_pop {
        top: auto !important;
        height: 360px;
        bottom: 0;
    }

    .payDateChangeLayer,
    .date_ok_pop {
        height: 450px;
    }

    .pay_pop,
    .delivery_list_pop,
    .delivery_add_pop {
        /* display: flex;
        flex-wrap: wrap;
        flex-direction: column; */
        /* top: 50px !important;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: calc(100% - 50px);
        overflow-y: auto;
        padding: 10px;
        transform: none; */
    }

    .pop .pop_cont {
        position: relative;
        /* flex: 1; */
        height: calc(100% - 48px);
    }

    .pop .pop_cont .scroll_box {
        height: 100%;
        overflow-y: auto;
        padding-bottom: 50px;
    }

    .pop.origin_pop .pop_cont .scroll_box {
        overflow-x: hidden;
    }

    .pop .pop_cont .fix_btn_box {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding-top: 0;
    }
    
    .s_pop {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        top: auto !important;
        left: 0;
        bottom: 0;
        margin-left: 0;
        height: 360px;
        padding: 10px;
    }

    .s_pop .pop_ok {
        padding-bottom: 65px;
    }

    .s_pop .pop_btn_wrap {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        padding: 10px;
    }
}

/* 결제일 변경 팝업 */
.payDateChangeLayer iframe {
    width: 100%;
    height: 330px;
}

.payDateChangeLayer iframe {
    border: 0;
    margin: 0;
    padding: 0;
}

.payDateChangeLayer iframe body, iframe html {
    margin: 0;
    padding: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}