/* =========================================================
   JDC WOOCOMMERCE CART
   ========================================================= */

body.woocommerce-cart {
    background: #f5f8fc;
}


/* ---------------------------------------------------------
   PAGE
   --------------------------------------------------------- */

body.woocommerce-cart
.ct-container-full[data-vertical-spacing] {
    --theme-content-vertical-spacing: 48px;
}

body.woocommerce-cart
.entry-header {
    margin-bottom: 28px;
}

body.woocommerce-cart
.entry-header .page-title,
body.woocommerce-cart
.entry-content > h1 {
    color: #071a34;

    font-size: clamp(30px, 3vw, 40px);
    font-weight: 850;
    line-height: 1.1;

    letter-spacing: -.025em;
}


/* ---------------------------------------------------------
   CART GRID
   --------------------------------------------------------- */

body.woocommerce-cart
.ct-cart-form,
body.woocommerce-cart
.woocommerce-cart-form {
    background: transparent;
}


/* Main product table */

body.woocommerce-cart
table.shop_table.cart {
    width: 100%;

    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 12px !important;

    background: transparent !important;
}


/* Headers */

body.woocommerce-cart
table.shop_table.cart thead th {
    padding: 0 18px 12px !important;

    border: 0 !important;

    color: #617086;

    background: transparent !important;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .05em;
    text-transform: uppercase;
}


/* Product rows */

body.woocommerce-cart
table.shop_table.cart
tr.cart_item td {
    padding: 17px 16px !important;

    border-top: 1px solid #e0e8f1 !important;
    border-bottom: 1px solid #e0e8f1 !important;

    background: #fff !important;

    vertical-align: middle !important;
}


body.woocommerce-cart
table.shop_table.cart
tr.cart_item td:first-child {
    border-left:
        1px solid #e0e8f1 !important;

    border-radius:
        15px 0 0 15px;
}


body.woocommerce-cart
table.shop_table.cart
tr.cart_item td:last-child {
    border-right:
        1px solid #e0e8f1 !important;

    border-radius:
        0 15px 15px 0;
}


/* ---------------------------------------------------------
   IMAGE
   --------------------------------------------------------- */

body.woocommerce-cart
td.product-thumbnail {
    width: 88px;
}


body.woocommerce-cart
td.product-thumbnail img {
    width: 68px !important;
    height: 68px !important;

    display: block;

    padding: 7px;

    object-fit: contain;

    border: 1px solid #dfe9f4;
    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            #f9fcff,
            #edf5ff
        );
}


/* ---------------------------------------------------------
   PACKAGE NAME
   --------------------------------------------------------- */

.jdc-cart-product-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    column-gap: 8px;
    row-gap: 5px;

    max-width: 320px;
}


.jdc-cart-product-name__brand {
    flex: 0 0 100%;

    color: #2877ea;

    font-size: 9px;
    font-weight: 850;

    line-height: 1.1;

    letter-spacing: .09em;
}


.jdc-cart-product-name__title {
    color: #0b2342;

    font-size: 17px;
    font-weight: 850;
    line-height: 1.2;
}


.jdc-cart-product-name__cycle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 23px;

    padding: 3px 9px;

    border:
        1px solid #d4e4fb;
    border-radius: 999px;

    background: #eef5ff;
    color: #176fe8;

    font-size: 10px;
    font-weight: 800;

    line-height: 1;
}


/* ---------------------------------------------------------
   PRICE
   --------------------------------------------------------- */

body.woocommerce-cart
td.product-price,
body.woocommerce-cart
td.product-subtotal {
    color: #0b2342;

    font-size: 16px;
    font-weight: 800;
}


body.woocommerce-cart
td.product-price .amount,
body.woocommerce-cart
td.product-subtotal .amount {
    color: inherit;

    font-weight: inherit;
}


/* ---------------------------------------------------------
   QUANTITY
   --------------------------------------------------------- */

body.woocommerce-cart
.quantity {
    min-width: 84px;
}


body.woocommerce-cart
.quantity input.qty {
    height: 42px !important;
    min-width: 58px !important;

    padding: 0 8px !important;

    border:
        1px solid #d3dfec !important;
    border-radius: 10px !important;

    background: #f9fbfd !important;
    color: #0b2342 !important;

    font-weight: 750;

    text-align: center;
}


/* ---------------------------------------------------------
   REMOVE
   --------------------------------------------------------- */

body.woocommerce-cart
td.product-remove a,
body.woocommerce-cart
a.remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: 34px !important;
    height: 34px !important;

    margin: 0 auto;

    border-radius: 50% !important;

    background: #f2f6fa !important;
    color: #52687f !important;

    text-decoration: none !important;

    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}


body.woocommerce-cart
td.product-remove a:hover,
body.woocommerce-cart
a.remove:hover {
    background: #e94e57 !important;
    color: #fff !important;

    transform:
        translateY(-1px);
}


/* ---------------------------------------------------------
   CART ACTIONS
   --------------------------------------------------------- */

body.woocommerce-cart
table.shop_table.cart
td.actions {
    padding:
        13px 0 0 !important;

    border: 0 !important;

    background:
        transparent !important;
}


body.woocommerce-cart
.coupon {
    display: flex;

    gap: 8px;
}


body.woocommerce-cart
.coupon input.input-text {
    height: 44px !important;
    min-width: 190px;

    padding: 0 13px !important;

    border:
        1px solid #d5e0eb !important;
    border-radius: 10px !important;

    background: #fff !important;

    font-size: 13px;
}


body.woocommerce-cart
.coupon button,
body.woocommerce-cart
button[name="update_cart"] {
    min-height: 44px !important;

    padding:
        0 18px !important;

    border-radius:
        10px !important;

    font-size: 12px !important;
    font-weight: 800 !important;
}


/* ---------------------------------------------------------
   TOTALS CARD
   --------------------------------------------------------- */

body.woocommerce-cart
.cart-collaterals {
    align-self: flex-start;
}


body.woocommerce-cart
.cart-collaterals
.cart_totals {
    overflow: hidden;

    padding:
        24px !important;

    border:
        1px solid #dce6f0 !important;
    border-radius:
        18px !important;

    background: #fff !important;

    box-shadow:
        0 16px 40px
        rgba(12, 42, 78, .07);
}


body.woocommerce-cart
.cart_totals h2 {
    margin:
        0 0 18px !important;

    color: #071a34;

    font-size: 20px !important;
    font-weight: 850 !important;

    line-height: 1.2;
}


body.woocommerce-cart
.cart_totals
table.shop_table {
    margin:
        0 0 19px !important;

    border: 0 !important;
    border-collapse: collapse !important;

    background:
        transparent !important;
}


body.woocommerce-cart
.cart_totals
table.shop_table th,
body.woocommerce-cart
.cart_totals
table.shop_table td {
    padding:
        14px 0 !important;

    border-top:
        1px solid #e7edf4 !important;

    background:
        transparent !important;
}


body.woocommerce-cart
.cart_totals
table.shop_table th {
    color: #52647a;

    font-size: 13px;
    font-weight: 700;
}


body.woocommerce-cart
.cart_totals
table.shop_table td {
    color: #071a34;

    font-size: 15px;
    font-weight: 850;

    text-align: right;
}


/* Checkout CTA */

body.woocommerce-cart
.wc-proceed-to-checkout {
    padding: 0 !important;
}


body.woocommerce-cart
.wc-proceed-to-checkout
.checkout-button {
    width: 100%;

    min-height: 52px !important;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 !important;

    padding:
        10px 18px !important;

    border-radius:
        11px !important;

    background:
        linear-gradient(
            100deg,
            #176fe8,
            #574de8
        ) !important;

    color: #fff !important;

    box-shadow:
        0 10px 25px
        rgba(36, 99, 225, .20);

    font-size: 14px !important;
    font-weight: 850 !important;

    text-align: center;
}


body.woocommerce-cart
.wc-proceed-to-checkout
.checkout-button:hover {
    filter:
        brightness(1.06);

    transform:
        translateY(-1px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 689px) {

    body.woocommerce-cart
    .ct-container-full[data-vertical-spacing] {
        --theme-content-vertical-spacing: 28px;
    }


    body.woocommerce-cart
    table.shop_table.cart {
        display: block !important;

        border-spacing:
            0 !important;
    }


    body.woocommerce-cart
    table.shop_table.cart thead {
        display:
            none !important;
    }


    body.woocommerce-cart
    table.shop_table.cart tbody {
        display:
            block !important;
    }


    body.woocommerce-cart
    table.shop_table.cart
    tr.cart_item {
        position: relative;

        display: grid !important;

        grid-template-columns:
            74px minmax(0, 1fr);

        width: 100%;

        margin:
            0 0 13px;

        padding:
            14px;

        border:
            1px solid #dfe8f1;

        border-radius:
            15px;

        background:
            #fff;

        box-shadow:
            0 8px 24px
            rgba(12, 42, 78, .055);
    }


    body.woocommerce-cart
    table.shop_table.cart
    tr.cart_item td {
        display: block !important;

        width: auto !important;

        padding:
            5px 0 !important;

        border:
            0 !important;

        border-radius:
            0 !important;

        background:
            transparent !important;

        text-align:
            left !important;
    }


    body.woocommerce-cart
    tr.cart_item
    td.product-thumbnail {
        grid-column: 1;
        grid-row: 1 / span 4;

        width: 64px !important;

        padding:
            0 !important;
    }


    body.woocommerce-cart
    td.product-thumbnail img {
        width: 58px !important;
        height: 58px !important;

        padding: 6px;
    }


    body.woocommerce-cart
    tr.cart_item
    td.product-name {
        grid-column: 2;

        padding:
            1px 34px 8px 4px !important;
    }


    .jdc-cart-product-name {
        max-width: none;

        row-gap: 4px;
    }


    .jdc-cart-product-name__title {
        font-size:
            16px;
    }


    body.woocommerce-cart
    tr.cart_item
    td.product-price,
    body.woocommerce-cart
    tr.cart_item
    td.product-quantity,
    body.woocommerce-cart
    tr.cart_item
    td.product-subtotal {
        grid-column: 2;

        margin-left: 4px;
    }


    body.woocommerce-cart
    tr.cart_item
    td.product-price::before,
    body.woocommerce-cart
    tr.cart_item
    td.product-quantity::before,
    body.woocommerce-cart
    tr.cart_item
    td.product-subtotal::before {
        display:
            inline-block;

        min-width:
            82px;

        margin-right:
            6px;

        color:
            #718096;

        font-size:
            10px;

        font-weight:
            700;

        text-transform:
            uppercase;
    }


    body.woocommerce-cart
    tr.cart_item
    td.product-price::before {
        content:
            "Τιμή";
    }


    body.woocommerce-cart
    tr.cart_item
    td.product-quantity::before {
        content:
            "Ποσότητα";
    }


    body.woocommerce-cart
    tr.cart_item
    td.product-subtotal::before {
        content:
            "Σύνολο";
    }


    body.woocommerce-cart
    tr.cart_item
    td.product-remove {
        position:
            absolute;

        top: 10px;
        right: 10px;

        width:
            32px !important;

        padding:
            0 !important;
    }


    body.woocommerce-cart
    .quantity {
        display:
            inline-flex;

        min-width:
            0;
    }


    body.woocommerce-cart
    .quantity input.qty {
        height:
            36px !important;
    }


    /* actions */

    body.woocommerce-cart
    table.shop_table.cart
    tr:last-child:not(.cart_item),
    body.woocommerce-cart
    table.shop_table.cart
    td.actions {
        display:
            block !important;

        width:
            100% !important;
    }


    body.woocommerce-cart
    .coupon {
        width:
            100%;

        display:
            grid;

        grid-template-columns:
            1fr;

        gap:
            8px;
    }


    body.woocommerce-cart
    .coupon input.input-text,
    body.woocommerce-cart
    .coupon button,
    body.woocommerce-cart
    button[name="update_cart"] {
        width:
            100% !important;

        min-width:
            0 !important;
    }


    body.woocommerce-cart
    button[name="update_cart"] {
        margin-top:
            8px;
    }


    body.woocommerce-cart
    .cart-collaterals
    .cart_totals {
        margin-top:
            22px;

        padding:
            20px !important;

        border-radius:
            15px !important;
    }

}
