@charset "UTF-8";

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #f3f5f7;
    color: #333;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

button,
input,
textarea {
    font-family: inherit;
}

header {display:none}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

.cart-page {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    background: #f3f5f7;
}

/* Header */
.cart-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 56px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.cart-header h1 {
    flex: 1;
    margin: 0;
    padding-right: 40px;
    text-align: center;
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 600;
    line-height: 27px;
}

.btn-back {
    width: 40px;
    height: 40px;
    position: relative;
}

.btn-back::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 12px;
    width: 10px;
    height: 10px;
    border-left: 1.5px solid #333;
    border-bottom: 1.5px solid #333;
    transform: rotate(45deg);
}

/* Layout */
.cart-content {
    padding: 20px 15px 20px;
}

.cart-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    cursor: pointer;
}

.check-label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.check-box {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #d9d9d9;
    position: relative;
}

.check-large .check-box {
    width: 25px;
    height: 25px;
    border-radius: 5px;
}

.check-label input:checked + .check-box {
    background: #33bfcc;
}

.check-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 5px;
    width: 9px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.check-large .check-box::after {
    left: 6px;
    top: 7px;
    width: 12px;
    height: 7px;
    border-width: 2.5px;
}

.check-label strong {
    color: #333;
    font-size: 17px;
    font-weight: 600;
    line-height: 20px;
}

.check-large strong {
    font-size: 18px;
    font-weight: 700;
}

/* Buttons */
.btn-delete {
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    background: #fff;
    color: #333;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.icon-x,
.btn-remove {
    position: relative;
}

.icon-x {
    width: 20px;
    height: 20px;
}

.icon-x::before,
.icon-x::after,
.btn-remove::before,
.btn-remove::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 1.5px;
    background: #777;
    transform-origin: center;
}

.icon-x::before,
.btn-remove::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.icon-x::after,
.btn-remove::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Seller */
.seller-card {
    background: #fff;
    border: 1px solid #edeff2;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.seller-head {
    min-height: 50px;
    padding: 15px;
    border-bottom: 1px solid #edeff2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.seller-head .check-label {
    flex: 1;
}

.seller-head .check-label strong {
    flex: 1;
    min-width: 0;
    word-break: keep-all;
}

.btn-toggle {
    flex: 0 0 auto;
    width: 28px;
    height: 24px;
    position: relative;
}

.btn-toggle.on::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 9px;
    width: 9px;
    height: 9px;
    border-top: 1.5px solid #333;
    border-left: 1.5px solid #333;
    transform: rotate(45deg);
}

.btn-toggle::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 5px;
    width: 9px;
    height: 9px;
    border-top: 1.5px solid #333;
    border-left: 1.5px solid #333;
    transform: rotate(225deg);
}

/* Cart Item */
.seller-body {
    padding: 15px;
    gap: 10px;
    display: flex;
    flex-direction: column;
}

.cart-item + .cart-item {
    margin-top: 15px;
}

.item-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.item-title {
    flex: 1;
    margin: 0;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    line-height: 17.5px;
    word-break: keep-all;
}

.btn-remove {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.item-info {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-left: 30px;
}

.item-thumb {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    background: #eee;
}

.item-detail {
    flex: 1;
    min-width: 0;
}

.qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-control {
    width: 96px;
    height: 28px;
    display: flex;
    align-items: center;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    color: #33bfcc;
    font-size: 0;
    line-height: 1;
}

.qty-num {
    width: 40px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.btn-apply {
    height: 28px;
    padding: 0 8px;
    border-radius: 6px;
    background: #33bfcc;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.discount-row {
    height: 37px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-discount {
    padding: 3px 6px;
    border-radius: 50px;
    background: #2962ae;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 12px;
}

.discount-price {
    color: #2962ae;
    font-size: 14px;
    font-weight: 500;
}

.price-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    padding-left: 30px;
}

.origin-price {
    color: #a9a9a9;
    font-size: 16px;
    font-weight: 500;
    text-decoration: line-through;
}

.sale-price {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

/* Seller total */
.seller-total {
    padding: 0 15px 15px;
    background: #fff;
}

.seller-total::before {
    content: "";
    display: block;
    height: 1px;
    margin-bottom: 12px;
    background: #d9d9d9;
}

.seller-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.seller-total strong {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    line-height: 27px;
}

.seller-total p {
    margin: 0;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    line-height: 23px;
}

.seller-total-price {
    flex: 0 0 auto;
    color: #1f9ede !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}

.seller-total-column {
    display: block;
}

.seller-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-bundle {
    width: 100%;
    height: 42px;
    margin-top: 10px;
    border-radius: 8px;
    background: #33bfcc;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

/* Disabled */
.seller-card.is-disabled {
    opacity: 0.55;
}

.seller-card.is-disabled .check-label input:checked + .check-box {
    background: #d9d9d9;
}

/* Payment */
.payment-card {
    margin-top: 30px;
    background: #fff;
    border: 1px solid #edeff2;
    border-radius: 10px;
    overflow: hidden;
}

.payment-card h2 {
    margin: 0;
    padding: 20px 15px;
    border-bottom: 1px solid #edeff2;
    color: #333;
    font-size: 17px;
    font-weight: 600;
}

.payment-list {
    padding: 0 15px;
}

.payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px dashed #d9d9d9;
}

.payment-row:last-child {border-bottom: 1px solid #d9d9d9;}

.payment-row span,
.payment-row strong {
/*    color: #333;*/
    font-size: 15px;
    font-weight: 500;
}

.payment-row .blue,
.blue {
    color: #2961ae;
}

.payment-final {
    padding: 0 15px 20px;
}

.payment-row.final {
    border-bottom: 0;
    padding-bottom: 10px;
}

.payment-row.final span {
    font-size: 18px;
    font-weight: 600;
}

.payment-row.final strong {
    color: #33bfcc;
    font-size: 18px;
    font-weight: 600;
}

.payment-row.final em {
    font-style: normal;
    font-size: 14px;
}

.point-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    color: #1f9ede;
    font-size: 14px;
    font-weight: 500;
}

.point-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffcc11;
    border: 2px solid #ffeecc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

/* Bottom buttons */
.cart-bottom {
    position: sticky;
    bottom: 55px;
    z-index: 2000;
    margin: 0 auto;
    padding: 0 15px 15px;
    background: #f5f5f5;
    display: flex;
    gap: 10px;
    box-shadow :none !important;
}

.btn-order {
    flex: 1;
    height: 58px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
}

.btn-order-select {
    background: #fff;
    color: #333;
}

.btn-order-all {
    background: #35c0cd;
    color: #fff;
}

/* Responsive */
@media (max-width: 360px) {
    .cart-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .item-info {
        padding-left: 0;
    }

    .price-row {
        padding-left: 0;
    }

    .seller-total-row {
        align-items: flex-start;
        gap: 10px;
    }

    .seller-total-price {
        font-size: 15px !important;
    }
}