/* ARTKJIN cart: typography/spacing only. No business logic, price or quantity changes. */
.artkjin-cart-page .artkjin-cart-progress > span {
    font-size: 13px;
    line-height: 1.4;
    word-break: keep-all;
}
.artkjin-cart-page .artkjin-cart-progress > span > b {
    font-size: 12px;
}
.artkjin-cart-page .artkjin-cart-kind {
    font-size: 10px;
    line-height: 1.35;
}
.artkjin-cart-page .artkjin-cart-copy > p,
.artkjin-cart-page .artkjin-cart-mode {
    font-size: 13px;
    line-height: 1.5;
}
.artkjin-cart-page .artkjin-cart-clear,
.artkjin-cart-page .artkjin-cart-price button {
    font-size: 13px;
}

@media (max-width: 767px) {
    /* 01/02/03: enlarge the number and label as a readable vertical group. */
    .artkjin-cart-page .artkjin-cart-progress {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .artkjin-cart-page .artkjin-cart-progress > span {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 7px;
        min-width: 0;
        min-height: 82px;
        padding: 13px 10px !important;
        font-size: clamp(13px, 3.6vw, 15px) !important;
        font-weight: 500;
        line-height: 1.35 !important;
        white-space: nowrap;
        word-break: keep-all;
    }
    .artkjin-cart-page .artkjin-cart-progress > span + span {
        padding-left: 11px !important;
    }
    .artkjin-cart-page .artkjin-cart-progress > span > b {
        display: block;
        font-size: 13px !important;
        line-height: 1;
        letter-spacing: .07em;
    }

    /* Entire artwork card grows naturally with multiline titles and inventory controls. */
    .artkjin-cart-page .artkjin-cart-item {
        grid-template-columns: minmax(96px, 28%) minmax(0, 1fr);
        column-gap: 16px;
        row-gap: 6px;
        align-items: start;
        padding: 22px 0 25px;
    }
    .artkjin-cart-page .artkjin-cart-thumb {
        box-sizing: border-box;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        padding: 8px;
    }
    .artkjin-cart-page .artkjin-cart-copy {
        min-width: 0;
    }
    .artkjin-cart-page .artkjin-cart-copy-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap;
    }
    .artkjin-cart-page .artkjin-cart-kind {
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        min-height: 29px;
        padding: 6px 9px;
        font-size: 11px !important;
        line-height: 1.15;
        white-space: nowrap;
    }

    /* A real tap target instead of the 9px underlined "삭제" text. */
    .artkjin-cart-page .artkjin-cart-remove-mobile {
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        min-width: 54px;
        min-height: 38px;
        margin-left: auto;
        padding: 8px 11px;
        border: 1px solid #cfcac1;
        border-radius: 5px;
        background: #fff;
        color: #55504a;
        font-size: 13px !important;
        font-weight: 500;
        line-height: 1.2;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .artkjin-cart-page .artkjin-cart-remove-mobile:focus-visible,
    .artkjin-cart-page .artkjin-cart-clear:focus-visible {
        outline: 2px solid #65425c;
        outline-offset: 3px;
    }
    .artkjin-cart-page .artkjin-cart-copy > p {
        margin: 12px 0 5px;
        font-size: 14px !important;
        line-height: 1.5;
    }
    .artkjin-cart-page .artkjin-cart-copy h2 {
        margin: 0;
        font-size: clamp(21px, 5.6vw, 26px);
        line-height: 1.3;
        overflow-wrap: anywhere;
    }
    .artkjin-cart-page .artkjin-cart-mode {
        margin-top: 10px;
        font-size: 14px !important;
        line-height: 1.5;
        word-break: keep-all;
    }
    .artkjin-cart-page .artkjin-cart-price {
        grid-column: 2;
        justify-items: start;
        gap: 9px;
        margin-top: 13px !important; /* remove original -32px overlapping offset */
    }
    .artkjin-cart-page .artkjin-cart-price strong {
        font-size: clamp(16px, 4.3vw, 18px);
        line-height: 1.35;
    }
    .artkjin-cart-page .artkjin-cart-price button {
        display: none;
    }
    .artkjin-cart-page .artkjin-cart-list-head > div > p {
        font-size: 11px;
    }
    .artkjin-cart-page .artkjin-cart-clear {
        box-sizing: border-box;
        min-height: 36px;
        padding: 8px 2px;
        font-size: 13px !important;
        white-space: nowrap;
    }
    /* Inventory plugin quantity control remains readable and in normal flow. */
    .artkjin-cart-page .aki-qty-control {
        margin-top: 14px;
    }
}

@media (max-width: 359px) {
    .artkjin-cart-page .artkjin-cart-item {
        grid-template-columns: minmax(86px, 29%) minmax(0, 1fr);
        column-gap: 12px;
    }
    .artkjin-cart-page .artkjin-cart-progress > span {
        padding-inline: 7px !important;
        font-size: 12px !important;
    }
    .artkjin-cart-page .artkjin-cart-progress > span + span {
        padding-left: 8px !important;
    }
    .artkjin-cart-page .artkjin-cart-kind {
        font-size: 10px !important;
        padding-inline: 6px;
    }
    .artkjin-cart-page .artkjin-cart-remove-mobile {
        min-width: 48px;
        padding-inline: 8px;
    }
}
