.remove {
    width: 40px;
    height: 40px;
    padding: 0;
}

.c-term {
    margin-top: 3px;
    line-height: 1.4;
}

.c-duration {
    font-weight: 700;
}

.c-expiry {
    color: #777;
    font-size: 0.9rem;
}

.c-warn {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 6px;
    padding: 7px 9px;
    border-radius: 4px;
    background: #fff6e5;
    color: #7a4b00;
    font-size: 0.86rem;
    line-height: 1.4;
}

.c-warn-icon {
    flex: none;
    margin-top: 1px;
}

.c-qty-warn {
    display: none;
}

.c-qty-warn.is-on {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 6px;
    padding: 7px 9px;
    border-radius: 4px;
    background: #fdeceb;
    color: #a32620;
    font-size: 0.86rem;
    line-height: 1.4;
}

.c-qty-warn .c-upgrade {
    color: #a32620;
}

.quantity-input.qty-many {
    border-color: #d5342c;
}

.c-warn-body {
    min-width: 0;
}

.c-upgrade {
    display: block;
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: #1e87f0;
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-decoration: underline;
    cursor: pointer;
}

.cart-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}

.cart-foot form {
    margin: 0;
    order: 1;
}

.cart-sum {
    order: 2;
    text-align: right;
}

.c-rec {
    background: #f7f9fb;
}

.c-rec-head {
    margin-bottom: 8px;
    color: #4a5b6d;
    font-size: 0.85rem;
    font-weight: 700;
}

.c-rec-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px 18px;
}

.c-rec-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.c-rec-cover {
    flex: none;
    width: 40px;
    height: 56px;
    object-fit: cover;
}

.c-rec-info {
    flex: 0 1 auto;
    min-width: 0;
    line-height: 1.3;
}

.c-rec-title {
    display: block;
    overflow: hidden;
    font-size: 0.85rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.c-rec-meta {
    color: #7a8896;
    font-size: 0.78rem;
}

.c-rec-add {
    margin-top: 5px;
    padding: 3px 10px;
    border: 1px solid #b7c6d4;
    border-radius: 3px;
    background: #fff;
    color: #1e87f0;
    font-size: 0.78rem;
    white-space: nowrap;
    cursor: pointer;
}

.c-rec-add:hover {
    border-color: #1e87f0;
    background: #1e87f0;
    color: #fff;
}

@media (max-width: 639px) {



    .cart-table,
    .cart-table tbody {
        display: block;
        width: 100%;
        overflow-x: visible;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tr {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr) 34px;
        grid-template-areas:
            "cover info remove"
            "qty   price amount";
        gap: 6px 10px;
        align-items: center;
        padding: 14px 0;
        border-top: 1px solid #e5e5e5;
    }

    .cart-table tr:first-child {
        border-top: 0;
    }

    .cart-table td {
        display: block;
        padding: 0;
        border: 0;
    }

    .c-cover {
        grid-area: cover;
        align-self: start;
    }

    .c-cover img {
        width: 100%;
        height: auto;
    }

    .c-info {
        grid-area: info;
    }

    .c-remove {
        grid-area: remove;
        align-self: start;
        justify-self: end;
    }

    .c-qty {
        grid-area: qty;
    }

    .c-qty .quantity-input {
        width: 100%;
        text-align: center;
    }

        .c-price {
        grid-area: price;
        color: #777;
    }

    .c-price::before {
        content: "\00d7 ";
    }

    .c-amount {
        grid-area: amount;
        justify-self: end;
        font-size: 1.05rem;
    }

        .cart-foot {
        position: sticky;
        bottom: 0;
        z-index: 10;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 14px;
        padding: 12px 0 10px;
        background: #fff;
        box-shadow: 0 -10px 18px -10px rgba(0, 0, 0, .22);
    }

    .cart-sum {
        order: 1;
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: space-between;
        gap: 0 10px;
    }

    .cart-foot form {
        order: 2;
    }

    .cart-foot .uk-button {
        width: 100%;
    }
}
