@charset "utf-8";

/* 장바구니 — cart.skin.php (모바일 목록 / PC lg+ 테이블) */

.cart-renewal__checkbox {
    width: 1rem;
    height: 1rem;
}

.cart-renewal__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-renewal__options ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cart-renewal__options li + li {
    margin-top: 0.25rem;
}

/* 모바일·태블릿 목록 */
.cart-renewal__table-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid #ebebeb;
}

.cart-renewal__table-row:last-child {
    border-bottom: none;
}

.cart-renewal__table-cell--check {
    padding-top: 0.25rem;
}

.cart-renewal__product {
    flex: 1;
    min-width: 0;
}

.cart-renewal__mobile-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    font-size: 0.875rem;
    width: 100%;
}

.cart-renewal__mobile-meta .col-span-2 {
    grid-column: span 2 / span 2;
}

/* PC(lg+) 테이블 */
@media (min-width: 1024px) {
    .cart-renewal__table-head {
        grid-template-columns: 2.5rem 1fr 5rem 6rem 6rem 5rem 7rem;
        background-color: #fafbfc;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .cart-renewal__table-head .cart-renewal__table-cell {
        padding: 1rem 0.75rem;
        font-size: 0.875rem;
        font-weight: 500;
        color: rgba(0, 0, 0, 0.8);
        text-align: center;
    }

    .cart-renewal__table-row {
        grid-template-columns: 2.5rem 1fr 5rem 6rem 6rem 5rem 7rem;
        align-items: center;
        gap: 0;
        padding: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .cart-renewal__table-row:last-child {
        border-bottom: none;
    }

    .cart-renewal__table-row .cart-renewal__table-cell {
        padding: 1rem 0.75rem;
        font-size: 0.875rem;
        color: rgba(0, 0, 0, 0.8);
    }

    .cart-renewal__product {
        flex: none;
    }
}

.cart-renewal__table-cell--check {
    text-align: center;
}

.cart-renewal__table-cell--right {
    text-align: right;
}

.cart-renewal__table-cell--center {
    text-align: center;
}

/* 합계·버튼 — 모바일 세로 / 태블릿(md+) 가로 */
.cart-renewal__actions > a,
.cart-renewal__actions > button {
    width: 100%;
}

@media (min-width: 768px) {
    .cart-renewal__actions > a,
    .cart-renewal__actions > button {
        width: auto;
    }
}

/* default_shop.css 레거시 오버라이드 */
#sod_bsk.cart-renewal {
    margin-bottom: 0;
}

#sod_bsk.cart-renewal #sod_bsk_tot {
    border: 0;
    margin: 0;
}

#sod_bsk.cart-renewal #sod_bsk_tot ul:after {
    display: none;
}

#sod_bsk.cart-renewal #sod_bsk_tot li {
    float: none;
    width: auto;
    background: transparent;
    color: inherit;
    border: 0;
    padding: 0;
    text-align: inherit;
    font-size: inherit;
}

#sod_bsk.cart-renewal #sod_bsk_tot li span {
    float: none;
    display: inline;
}

#sod_bsk.cart-renewal #sod_bsk_tot .sod_bsk_cnt {
    width: auto;
    background: transparent;
}

#sod_bsk.cart-renewal #sod_bsk_act {
    text-align: right;
    margin-bottom: 0;
}

#sod_bsk.cart-renewal #sod_bsk_act .btn_submit,
#sod_bsk.cart-renewal #sod_bsk_act .btn01 {
    width: auto;
    height: auto;
    line-height: inherit;
    font-weight: 500;
    font-size: 0.875rem;
}

#sod_bsk.cart-renewal .btn_cart_del {
    display: none;
}

/* 선택사항 수정 모달 */
#mod_option_frm,
#sod_bsk_list #mod_option_frm {
    z-index: 10000;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(540px, calc(100vw - 2rem));
    min-width: 0;
    height: auto !important;
    max-height: min(500px, calc(100vh - 2rem));
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.mod_option_bg,
#sod_bsk_list .mod_option_bg {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: block;
    z-index: 9999;
}

#mod_option_frm h2 {
    border-bottom: 1px solid #e5e7eb;
    padding: 0 3rem 0 1.25rem;
    line-height: 3rem;
    font-size: 1.125rem;
    font-weight: 600;
}

#mod_option_frm .btn_confirm {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin: 0 1.25rem 1.25rem;
    padding-top: 0.5rem;
    background: transparent;
}

#mod_option_frm .btn_confirm .btn_submit {
    width: auto;
    min-width: 6rem;
    height: 2.5rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

#mod_option_frm .btn_confirm .btn_close {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 0;
    background: none;
    color: #6b7280;
    border-radius: 0;
}

#mod_option_frm .btn_confirm .btn_close:hover {
    background: #f3f4f6;
    color: #111827;
}

#mod_option_frm #sit_sel_option {
    margin: 1.25rem 1.25rem 0.75rem;
}

#mod_option_frm #sit_tot_price {
    margin: 0 1.25rem 1rem;
}

#mod_option_frm .option_wr {
    padding: 0 1.25rem;
}

#mod_option_frm #sit_opt_added li {
    border-radius: 0.5rem;
}

#mod_option_frm #sit_opt_added button:not(.sit_opt_del) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    line-height: 1;
}

#mod_option_frm #sit_opt_added button:not(.sit_opt_del) i {
    font-size: 1rem;
    line-height: 1;
}

#mod_option_frm #sit_opt_added .sit_opt_del {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    font-size: 1rem;
    border: none;
    background: transparent;
}

#mod_option_frm #sit_opt_added .sit_opt_del:hover {
    background: transparent;
    color: #be334a;
}

#mod_option_frm #sit_opt_added .sit_opt_del i {
    font-size: 1.125rem;
    line-height: 1;
}
