/*
article.wordpress {
    padding-top: var(--header-height);
    margin-top: 32px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100vw !important;
    width: 100vw !important;
    display: flex;
    flex-direction: column;
    align-items:center;
    justify-content: center;
    gap: 16px;
}

article h1,.wp-block-woocommerce-cart {
    padding-right: 40px;
    padding-left: 40px;
    max-width: 1296px !important;
    width: 100%;
}

.alignwide {
    margin-left:0 !important;
}

.wc-block-cart-items {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.wc-block-cart-items tbody {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 16px;
}

thead {
    display: none;
}

.wc-block-cart-items__row {
    flex: auto auto !important;
    display: flex;
    flex-direction:row;
    width: 100%;
    padding: 16px;
    border-radius: 4px;
    border: 1px solid #EBEBEB;
    gap: 24px;
}

.wc-block-cart__main .wc-block-cart-items td {
    border: none;
}

.wc-block-cart-item__product,.wc-block-cart-item__image,.wc-block-cart-item__total {
    padding: 0 !important;
}

.wc-block-cart-item__image {
    overflow: hidden;
    max-width: 200px;
    border-radius: 4px;
    height: 100%;
}

.wc-block-components-sale-badge {
    display: none;
}

.wc-block-components-product-details__name {
    font-weight: 500 !important;
}

.wc-block-components-product-name {
    font-weight: 500;
    font-size: 20px !important;
    color: var(--nordipack-black);
}
*/

.woocommerce-cart-form__cart-item {
    padding: 16px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  border: 1px solid #EBEBEB;
  border-radius: 4px;
}

.woocommerce-cart-form__contents tbody {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap:12px;
}

.woocommerce-cart-form__contents {
    display: flex;
}

.product-thumbnail,.product-name,.product-subtotal,.product-price {
    padding: 0;
}

.product-name {
    width: 100%;
    padding-top: 4px;
    padding-bottom: 4px;
}

.product-price {
    display: none;
}

.product-subtotal {
    padding-top: 36px;
    min-width: 140px;
    text-align: end;
}

.cart-thumbnail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 240px;
    
}

.cart-thumbnail-wrapper .brxe-div {
    width: 100% !important;
}
.product-thumbnail {
    overflow: hidden;
    min-height: 180px;
    width: 100%;
    max-width: 270px;
}

.product-thumbnail img {
    height: 100%;
    min-height: 160px;
    width: 100% !important;
    max-width: 270px;
    border-radius: 4px;
}

.woocommerce-cart-form__contents .variation {
    font-size: 13px;
    font-weight: 400;
    color: var(--nordipack-gray);
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 8px;
    row-gap: 2px;
    margin-top: 8px;
    margin-bottom: 0;
}

td.product-quantity {
    display: none;
}

.before-cart {
    display: none;
}

.restore-item {
    background-color: var(--nordipack-blue);
    font-weight: 500;
    border-radius:4px;
}

.product-remove {
    display: flex;
    width: fit-content;
}

.edit-delete-buttons {
    display: flex;
    gap: 24px;
    align-items: center;
}

.cart-collaterals  {
    padding: 16px;
    border: 1px solid #EBEBEB;
    border-radius: 4px;
}

.cart_totals h2 {
    display: none;
}

.shop_table {
    border: none;
}

.actions {
    display: none;
}

.checkout-button {
    width: 100%;
    padding: 12px;
}

.cart-subtotal,.order-total {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.cart-subtotal {
    border-bottom: 1px solid #EBEBEB;
}


.cart-subtotal *{
    padding-top: 4px;
    padding-bottom: 4px;
}

.order-total *{
    padding-top: 4px;
    padding-bottom: 4px;
}

.cart-collaterals table {
    margin-bottom: 12px;
}

.cart-collaterals th {
    font-weight: 500;
}

.cart-collaterals td {
    text-align: end;
}

.cart-collaterals .woocommerce-Price-amount {
    color: var(--nordipack-black);
    font-size: 16px;
    font-weight: 500;
}

@media (max-width:767px) {
    .woocommerce-cart-form tbody th[scope="row"][data-title]::before {
        display: none;
    }

    .woocommerce-cart-form__cart-item {
        flex-direction: column;
        gap: 12px;
    }

    .woocommerce-cart-form tbody td[data-title]::before {
        display: none;
    }

    .product-name {
        flex-direction: column;
    }

    .product-subtotal {
        padding-top: 0;
        flex-direction: column;
        padding-bottom: 40px;
        text-align: start;
    }

    .product-subtotal p{
        display: flex;
        justify-content: space-between;
    }


    .woocommerce-cart-form__contents .variation {
        margin-top: 0;
    }

    .product-thumbnail img {
        min-width: 100%;
        height: 160px !important;
    }

    .edit-delete-buttons {
        justify-content: space-between;
        width: 100%;
    }

    .product-remove {
        width: calc(100% - var(--padding-left-right)*2);
        left: 16px;
    }

    .product-thumbnail {
        max-width: initial;
        width: 100%;
    }
}