.wpb-header.wpb-header--cart .wpb-header__bg-assets .wpb-icon { position: absolute; left: 40%; top: -30%; }

.woocommerce-notices-wrapper > *:last-child { margin-bottom: 0; }

p.return-to-shop { margin-top: 2rem; }

.wpb-cart { background: linear-gradient(to bottom, var(--clr-secondary-110) 0%, var(--clr-secondary-110) 20rem, transparent 20rem); }
.wpb-cart:has(.woocommerce-cart-form) .container > .woocommerce { padding-inline: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 3.2rem; align-items: start; }
.wpb-cart :is(.woocommerce-cart-form, .cart_totals) { --p: 1.6rem; --br: .8rem; --bg: #fff; --border: 1px solid transparent; padding: var(--p); background-color: var(--bg); border-radius: var(--br); border: var(--border); }
.wpb-cart .woocommerce-cart-form { overflow-x: auto; container-type: inline-size; container-name: basket; }

.wpb-cart .cart-collaterals h2 { font-size: 2rem; padding-bottom: 1.6rem; }
.wpb-cart .cart-collaterals table :is(th, td) { padding-inline: 0; }
.wpb-cart .cart-collaterals .wc-proceed-to-checkout { text-align: right; }
.wpb-cart .cart-collaterals .wc-proceed-to-checkout a { width: 100%; }

.wpb-cart table.cart { --border-color: var(--clr-secondary-120); margin: 0; border-radius: 0; border-collapse: collapse; border: 0; }
.wpb-cart table.cart [name="update_cart"] { display: none!important; }
.wpb-cart table.cart a { text-decoration: none; }
.wpb-cart table.cart thead { display: none; }
.wpb-cart table.cart thead th { padding: 0 1rem; border: none; text-align: left; }
.wpb-cart table.cart .cart_item .product-name { border: none!important; }

.wpb-cart table.cart .cart_item + .cart_item { border-top: 1px solid var(--clr-secondary); }
.wpb-cart table.cart .cart_item .product-remove { order: 2; display: grid; place-items: center; }
.wpb-cart table.cart .cart_item .product-remove a { border: 1px solid var(--clr-secondary-120); border-radius: 50%; padding: 0; width: 2.8rem; height: 2.8rem; min-height: 2.8rem; display: inline-grid; place-items: center; line-height: 1; transition-property: border-color, background-color, color; transition-timing-function: ease-in-out; transition-duration: var(--ts-15); }
.wpb-cart table.cart .cart_item .product-remove a:hover { background-color: var(--clr-danger); border-color: var(--clr-danger); color: #fff; }
.wpb-cart table.cart .cart_item .product-thumbnail { position: relative; }
.wpb-cart table.cart .cart_item .product-thumbnail a { width: 6.4rem; display: block; position: relative; border: 1px solid var(--clr-secondary-120); border-radius: .5rem; overflow: clip; }
.wpb-cart table.cart .cart_item .product-thumbnail a::after { content: ''; display: block; width: 100%; padding-top: 100%; }
.wpb-cart table.cart .cart_item .product-thumbnail img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
.wpb-cart table.cart .actions { border-top: 1px solid var(--clr-secondary-120); padding-bottom: 0; padding-left: 0; padding-right: 0; padding-top: 1.6rem; margin-top: 1.6rem; }
.wpb-cart table.cart .coupon { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }

/* @media (max-width: 991.98px) { */
@container basket (max-width: 680px) {
    .wpb-cart table.cart td { border: none; padding: 0; }
    .wpb-cart table.cart .cart_item:not(:first-child) .product-remove { top: 1.6rem; }
    .wpb-cart table.cart .cart_item td { padding: 0!important; }
    .wpb-cart table.cart .cart_item { display: flex!important; gap: 0; -ms-flex-wrap: wrap; flex-wrap: wrap; position: relative; gap: 10px; align-items: center; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; }
    .wpb-cart table.cart .cart_item .product-remove { position: absolute; padding: 0; top: 0; right: 0; }
    .wpb-cart table.cart .cart_item .product-thumbnail { padding: 0; }
    .wpb-cart table.cart .cart_item .product-name { display: block!important; width: calc(100% - 7.4rem); padding-right: 4.8rem; text-align: left; padding-left: 0 !important; }
    .wpb-cart table.cart .cart_item .product-name a { font-size: 15px;}
    .wpb-cart table.cart .cart_item .product-price { display: none; }
    .wpb-cart table.cart .cart_item .product-subtotal { font-weight: 600; order: 6; }   
    .wpb-cart table.cart .cart_item + .cart_item { margin-top: 2rem; padding-top: 2rem; } 
    .wpb-cart table.cart .actions { display: block!important; }
    
    /* ul#shipping_method li { justify-content: end; } */

    .cart_totals table tr > *:not(:first-child) { padding-left: 0!important; }
    .cart_totals table tr.shipping td { display: grid!important; grid-template-columns: auto 1fr; }
    .cart_totals table tr.shipping .woocommerce-shipping-destination { grid-column: span 2; }
    .cart_totals table tr.shipping li { justify-content: end; }
}

@media (min-width: 576px) {
    .wpb-cart table.cart .coupon { grid-template-columns: minmax(0, 1fr) minmax(0, auto); }
}

@media (min-width: 768px) {
    .wpb-cart :is(.woocommerce-cart-form, .cart_totals) { --p: 2.4rem; }
}

@media (min-width: 992px) {
    .wpb-cart:has(.woocommerce-cart-form) .container > .woocommerce { column-gap: 4.8rem; }
    .wpb-cart :is(.woocommerce-cart-form, .cart_totals) { --p: 3.2rem;  }

    .wpb-cart .cart-collaterals { max-width: 50rem; margin-left: auto; }
    .wpb-cart table.cart thead { display: table-header-group; }

    .wpb-cart table.cart td { border-bottom-width: 0px!important; }
    .wpb-cart table.cart .cart_item { display: table-row; vertical-align: middle; }
    .wpb-cart table.cart .cart_item td { border: none; padding: 1rem; }
    .wpb-cart table.cart .cart_item td:nth-child(1) { padding-left: 0; }
    .wpb-cart table.cart .cart_item td:nth-last-child(1) { padding-right: 0; }

    .wpb-cart table.cart .cart_item .product-remove { display: table-cell; }  
    .wpb-cart table.cart .cart_item .product-thumbnail { display: table-cell; }
    .wpb-cart table.cart .cart_item .product-thumbnail a { width: 10rem; }
}

@media (min-width: 1200px) {
    .wpb-cart:has(.woocommerce-cart-form) .woocommerce-notices-wrapper { grid-column: span 2; }  
    .wpb-cart:has(.woocommerce-cart-form) .container > .woocommerce { grid-template-columns: minmax(0, 1fr) minmax(0, 48rem); }
    .wpb-cart .cart-collaterals { margin-left: 0; }
    .wpb-cart .cart-empty { grid-column: span 2; } 
}




/*** Woocommerce tables ***/
.woocommerce table.shop_table_responsive tbody { --fs: 1.4rem; }
.woocommerce table.shop_table_responsive th, .woocommerce-page table.shop_table_responsive th,
.woocommerce table.shop_table_responsive thead, .woocommerce-page table.shop_table_responsive thead { display: none; }
.woocommerce table.shop_table_responsive tr, .woocommerce-page table.shop_table_responsive tr { display: block; }
.woocommerce table.shop_table_responsive tbody tr:first-child td:first-child, .woocommerce-page table.shop_table_responsive tbody tr:first-child td:first-child { border-top: 0; }
.woocommerce table.shop_table_responsive tr td { display: block; text-align: right; }
.woocommerce table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-status
.woocommerce table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-date
.woocommerce table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-actions { white-space: nowrap; text-align: right; } 
.woocommerce table.shop_table_responsive:not(.cart) tr td::before, .woocommerce-page table.shop_table_responsive:not(.cart) tr td::before { content: attr(data-title) ": "; font-weight: 700; float: left; }
.woocommerce table.my_account_orders .button { white-space: nowrap; --fs: 1.4rem; margin-left: .5rem; }

@media (min-width: 992px) {
    .woocommerce table.shop_table_responsive th, .woocommerce-page table.shop_table_responsive th { display: table-cell; }
    .woocommerce table.shop_table_responsive tr, .woocommerce-page table.shop_table_responsive tr { display: table-row; }
    .woocommerce table.shop_table_responsive tr td { display: table-cell; text-align: left; }
    .woocommerce table.shop_table_responsive tr td::before { display: none; }
} 