body.woocommerce-cart .moma-cart {
    --moma-primary: #646b3b;
    --moma-secondary: #9dad7f;
    --moma-text: #646b3b;
    --moma-accent: #557174;
    --moma-font: "Livvic", sans-serif;
    font-family: var(--moma-font);
    color: var(--moma-text);
    margin-top: 0;
    margin-bottom: 3rem;
}

body.woocommerce-cart h1.entry-title,
body.woocommerce-cart .page-header h1,
body.woocommerce-cart .elementor-widget-theme-post-title {
    display: none !important;
}

body.woocommerce-cart .cart-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    max-width: 100%;
}

body.woocommerce-cart .cart-left {
    flex: 1 1 65%;
    min-width: 0;
}

body.woocommerce-cart .cart-right {
    flex: 0 0 340px;
    width: 340px;
    max-width: 100%;
    position: sticky;
    top: 160px;
    align-self: flex-start;
}

body.woocommerce-cart .cart-page-title {
    font-family: var(--moma-font);
    font-weight: 600;
    font-size: 2rem;
    color: var(--moma-primary);
    margin: 0 0 1.75rem;
    line-height: 1.2;
}

body.woocommerce-cart .woocommerce-notices-wrapper {
    margin-bottom: 1.5rem;
}

body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error {
    border-top-width: 3px;
    border-radius: 0;
    background: #f8f8f8;
    color: #333;
    font-family: var(--moma-font);
    font-size: 14px;
    margin-bottom: 1rem;
}

body.woocommerce-cart .woocommerce-error {
    border-top-color: #b81c23;
}

body.woocommerce-cart .woocommerce-cart-form {
    margin: 0;
}

body.woocommerce-cart .moma-cart-table.shop_table {
    width: 100%;
    border: none !important;
    border-collapse: collapse;
    margin: 0 0 2rem;
}

body.woocommerce-cart .moma-cart-table thead th {
    font-family: var(--moma-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--moma-primary);
    border: none !important;
    padding: 14px 16px;
    background: transparent;
    vertical-align: middle;
}

body.woocommerce-cart .moma-cart-table thead th.product-name {
    text-align: left;
}

body.woocommerce-cart .moma-cart-table thead th.product-price,
body.woocommerce-cart .moma-cart-table thead th.product-quantity,
body.woocommerce-cart .moma-cart-table thead th.product-subtotal {
    text-align: center;
}

body.woocommerce-cart .moma-cart-table tbody tr {
    border: none !important;
}

body.woocommerce-cart .moma-cart-table tbody tr.cart_item {
    border-bottom: none !important;
}

body.woocommerce-cart .moma-cart-table td {
    padding: 20px 16px;
    vertical-align: middle;
    border: none !important;
    border-top: none !important;
    color: var(--moma-text);
    font-family: var(--moma-font);
    font-size: 15px;
    font-weight: 500;
    background: transparent !important;
}

body.woocommerce-cart .moma-cart-table td.product-remove {
    width: 36px;
    padding-left: 0;
    padding-right: 8px;
}

body.woocommerce-cart .moma-cart-table td.product-thumbnail {
    width: 70px;
    padding-left: 0;
    padding-right: 12px;
}

body.woocommerce-cart .moma-cart-table td.product-thumbnail img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
}

body.woocommerce-cart .moma-cart-table td.product-name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    padding-right: 24px;
}

body.woocommerce-cart .moma-cart-table td.product-name a {
    color: var(--moma-text);
    text-decoration: none;
}

body.woocommerce-cart .moma-cart-table td.product-name a:hover {
    color: var(--moma-accent);
}

body.woocommerce-cart .moma-cart-table td.product-price,
body.woocommerce-cart .moma-cart-table td.product-subtotal,
body.woocommerce-cart .moma-cart-table td.product-quantity {
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
    vertical-align: middle;
}

body.woocommerce-cart .moma-cart-table td.product-price,
body.woocommerce-cart .moma-cart-table td.product-subtotal {
    line-height: 1.4;
}

body.woocommerce-cart .moma-cart-table td.product-quantity .product-quantity-wrapper,
body.woocommerce-cart .moma-cart-table td.product-quantity .product-quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

body.woocommerce-cart .moma-cart-table td.product-quantity .quantity {
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle;
}

body.woocommerce-cart .moma-cart-table td.product-quantity .quantity .qty {
    float: none !important;
    margin: 0 !important;
    vertical-align: middle;
    line-height: 1.4;
}

body.woocommerce-cart .moma-cart-table td.product-remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background-color: var(--moma-primary) !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none !important;
    opacity: 1 !important;
}

body.woocommerce-cart .moma-cart-table td.product-remove a.remove:hover {
    background-color: #525832 !important;
    color: #fff !important;
}

body.woocommerce-cart .moma-cart .product-quantity-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.woocommerce-cart .moma-cart .product-quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    line-height: 1.4;
}

body.woocommerce-cart .moma-cart .cc-quantity-decrease,
body.woocommerce-cart .moma-cart .cc-quantity-increase {
    font-size: 18px;
    font-weight: 400;
    min-height: auto;
    height: auto;
    padding: 0;
    margin: 0;
    line-height: 1.4;
    color: var(--moma-primary) !important;
    background: transparent;
    vertical-align: middle;
}

body.woocommerce-cart .moma-cart .product-quantity input.qty {
    width: 1.5rem;
    padding: 0;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    background: transparent;
    vertical-align: middle;
}

body.woocommerce-cart .cart-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

body.woocommerce-cart .moma-update-cart,
body.woocommerce-cart .moma-return-shop,
body.woocommerce-cart .moma-cart-coupon .apply_coupon,
body.woocommerce-cart a.moma-checkout-btn {
    font-family: var(--moma-font);
    font-size: 15px;
    font-weight: 600;
    border-radius: 15px;
    padding: 14px 32px;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: none;
    margin: 0;
    border-style: solid;
    border-width: 1px;
    color: #646B3B !important;
    background-color: #FFF !important;
    border-color: #646B3B !important;
    text-decoration: none !important;
}

body.woocommerce-cart .moma-cart-coupon .apply_coupon {
    flex-shrink: 0;
    padding: 12px 24px;
    white-space: nowrap;
}

body.woocommerce-cart a.moma-checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 18px 24px;
    box-sizing: border-box;
}

body.woocommerce-cart .moma-update-cart:hover,
body.woocommerce-cart .moma-return-shop:hover,
body.woocommerce-cart .moma-cart-coupon .apply_coupon:hover,
body.woocommerce-cart a.moma-checkout-btn:hover {
    color: #FFF !important;
    background-color: #646B3B !important;
    border-color: #646B3B !important;
}

body.woocommerce-cart .cart_totals {
    width: 100%;
    float: none;
}

body.woocommerce-cart .cart-summary {
    background-color: #D1D083;
    border-radius: 20px;
    padding: 28px 24px;
}

body.woocommerce-cart .cart-summary h3 {
    font-family: var(--moma-font);
    font-size: 20px;
    font-weight: 600;
    color: var(--moma-primary);
    margin: 0 0 24px;
    text-align: left;
}

body.woocommerce-cart .moma-cart-coupon {
    display: block;
    margin-bottom: 24px;
}

body.woocommerce-cart .moma-cart-coupon > label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--moma-primary);
    margin-bottom: 8px;
}

body.woocommerce-cart .moma-cart-coupon-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

body.woocommerce-cart .moma-cart-coupon-row input.input-text {
    flex: 1;
    min-width: 0;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: var(--moma-font);
    font-size: 15px;
    color: var(--moma-text);
    background: #fff;
    box-sizing: border-box;
    height: auto;
    margin: 0;
}

body.woocommerce-cart .moma-cart-totals-table {
    width: 100%;
    border: none !important;
    margin-bottom: 20px;
}

body.woocommerce-cart .moma-cart-totals-table th,
body.woocommerce-cart .moma-cart-totals-table td {
    padding: 8px 0;
    border: none !important;
    font-family: var(--moma-font);
    color: var(--moma-primary);
    font-weight: 400;
    font-size: 15px;
    background: transparent !important;
}

body.woocommerce-cart .moma-cart-totals-table td {
    text-align: right;
}

body.woocommerce-cart .moma-cart-totals-table tr.order-total th,
body.woocommerce-cart .moma-cart-totals-table tr.order-total td {
    font-weight: 700;
    font-size: 16px;
    padding-top: 12px;
}

body.woocommerce-cart .moma-cart-totals-table tr.order-total td .woocommerce-Price-amount {
    font-weight: 700;
}

body.woocommerce-cart .moma-cart-totals-table tr.order-total td small {
    display: block;
    font-size: 13px;
    font-weight: 400;
    margin-top: 4px;
    color: var(--moma-primary);
}

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

body.woocommerce-cart .cart-empty-message {
    font-size: 15px;
    color: var(--moma-text);
    margin: 0 0 1.5rem;
}

body.woocommerce-cart .woocommerce table.shop_table td,
body.woocommerce-cart .woocommerce table.shop_table th,
body.woocommerce-cart .woocommerce table.shop_table tbody th,
body.woocommerce-cart .woocommerce table.shop_table tfoot td,
body.woocommerce-cart .woocommerce table.shop_table tfoot th {
    border: none !important;
}

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

body.woocommerce-cart .woocommerce .quantity {
    float: none !important;
}

body.woocommerce-cart .woocommerce .quantity .qty {
    float: none !important;
    width: auto;
}

body.woocommerce-cart .woocommerce table.shop_table_responsive tr td::before,
body.woocommerce-cart .woocommerce table.shop_table_responsive tr td::before {
    color: var(--moma-primary);
    font-weight: 600;
}

@media screen and (max-width: 1024px) {
    body.woocommerce-cart .cart-layout {
        gap: 2rem;
    }

    body.woocommerce-cart .cart-right {
        flex: 0 0 300px;
        width: 300px;
    }
}

@media screen and (max-width: 960px) {
    body.woocommerce-cart .cart-layout {
        flex-direction: column;
        gap: 0;
    }

    body.woocommerce-cart .cart-right {
        position: static;
        flex: none;
        width: 100%;
        order: 1;
        margin-bottom: 2rem;
    }

    body.woocommerce-cart .cart-left {
        order: 2;
    }

    body.woocommerce-cart .moma-cart-table thead {
        display: none;
    }

    body.woocommerce-cart .moma-cart-table tbody tr {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "remove thumb"
            "name name"
            "price price"
            "qty subtotal";
        gap: 0.5rem 1rem;
        padding: 1.25rem 0;
        border-bottom: 1px solid rgba(100, 107, 59, 0.1) !important;
    }

    body.woocommerce-cart .moma-cart-table td {
        padding: 0;
    }

    body.woocommerce-cart .moma-cart-table td.product-remove {
        grid-area: remove;
    }

    body.woocommerce-cart .moma-cart-table td.product-thumbnail {
        grid-area: thumb;
    }

    body.woocommerce-cart .moma-cart-table td.product-name {
        grid-area: name;
    }

    body.woocommerce-cart .moma-cart-table td.product-price {
        grid-area: price;
        text-align: left;
    }

    body.woocommerce-cart .moma-cart-table td.product-quantity {
        grid-area: qty;
        text-align: left;
    }

    body.woocommerce-cart .moma-cart-table td.product-subtotal {
        grid-area: subtotal;
        text-align: right;
    }

    body.woocommerce-cart .cart-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.woocommerce-cart .moma-update-cart,
    body.woocommerce-cart .moma-return-shop {
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    body.woocommerce-cart .moma-cart-coupon-row {
        flex-direction: column;
    }

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

    body.woocommerce-cart .cart-summary {
        padding: 20px 18px;
    }
}
