section.cart-content {
    padding-bottom: 80px;
    overflow: visible !important;
}
.cart-content h1.h2 {
    margin-top: 10px;
    margin-bottom: 40px;
}
.cart-content .container:nth-child(2) .col-left {
    display: flex;
    flex-direction: column;
    width: calc(74% - var(--blocks-indent));
}
.cart-content .container:nth-child(2) .col-right {
    display: flex;
    flex-direction: column;
    width: calc(26% - var(--blocks-indent));
}
.cart-total-wrapper {
    position: sticky;
    top: calc(var(--header-height) + 30px);
    display: flex;
    flex-direction: column;
    background: #f7f7fb;
    padding: 30px;
    border-radius: 10px;
}
.cart-content .container:nth-child(2) .col-right .h3 {
    margin-bottom: 40px;
}
.wc-empty-cart-message {
    display: none !important;
}

/* Список товарів - Start */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cart-items .product-item {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.cart-items .product-item .product-info {
    display: flex;
    gap: 15px;
    width: 100%;
}
.cart-items .product-item .product-info .product-image {
    min-width: 80px;
    width: 80px;
    height: 80px;
}
.cart-items .product-item .product-info .product-image img {
    min-width: 60px;
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: contain;
}
.product-title .acf-cart-product-field {
    display: none;
}
.cart-items .product-item .product-info .product-title {
    width: calc(100% - 80px - 140px - 171px - 140px - 125px - 75px);
}
.cart-items .product-item .product-info .product-title,
.cart-items .product-item .product-info .product-title a {
    font-size: 25px;
    line-height: 30px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
}
.cart-items .product-item .product-info .product-title .item-data {
    display: none;
}
.cart-items .product-item .product-info .product-title .product-weight {
    font-size: 18px;
    line-height: 21px;
    color: #afafaf;
    font-weight: 400;
    margin-top: 10px;
}
.cart-items .product-item .product-info .product-price,
.cart-items .product-item .product-info .product-total {
    display: flex;
    justify-content: center;
    font-size: 22px;
    line-height: 30px;
    font-weight: 600;
    margin-left: auto;
    margin-right: auto;
    min-width: max-content;
    width: 140px;
    padding-top: 12px;
}
.custom-quantity-input {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.quantity-btn {
    background: transparent;
    border: none;
    color: #333;
    font-size: 21px;
    line-height: 21px;
    padding: 6px 5px;
    width: 52px;
    height: 55px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.quantity-btn:hover {
    background: var(--gray);
}
.quantity-display {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    width: 65px;
    height: 53px;
    padding-left: 0;
    padding-right: 0;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-radius: 0px;
    outline: none;
    background: #fff;
}
.custom-quantity-input.weight-based .quantity-display {
    padding-bottom: 27px;
}
.custom-quantity-input.weight-based:before {
    content: "кг";
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
    font-size: 14px;
    font-weight: bold;
    color: #6b6b6b;
}
.actions-with-product {
    display: flex;
    gap: 15px;
}
.make-notes,
.remove-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 53px;
    background: #f4f7f4;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.make-notes:hover,
.remove-item:hover,
.make-notes.active {
    background: var(--primary);
}
.make-notes img {
    width: 28px;
    object-fit: contain;
    transition: all 0.3s ease;
}
.remove-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: all 0.3s ease;
}
.make-notes:hover img,
.remove-item:hover img,
.make-notes.active img {
    filter: brightness(0) invert(1);
}
.product-notes {
    position: relative;
    display: none;
    width: 100%;
    margin-top: 20px;
}
.product-notes input {
    font-weight: 400;
    padding-right: 100px;
}
.product-notes button {
    all: unset;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    appearance: none;
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 16px;
    line-height: 16px;
    font-weight: 600;
    color: #1a5d1a;
    transition: all 0.3s ease;
}
.product-notes button:hover {
    color: var(--primary);
}
.cart-totals {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 70px;
}
.cart-totals > div {
    display: flex;
    justify-content: space-between;
}
.cart-totals * {
    font-size: 20px !important;
    line-height: 23px !important;
    font-weight: 600 !important;
}
.comment-for-order label {
    font-size: 20px;
    line-height: 23px;
    font-weight: 500;
}
.comment-for-order #order_comments {
    background: #fff;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    height: 95px;
    font-weight: 400;
    resize: vertical;
}
.go-to-checkout.disabled span {
    color: var(--black) !important;
}
@media (max-width: 1440px) {
    .cart-content .container:nth-child(2) .col-left {
        width: calc(66.66% - var(--blocks-indent));
    }
    .cart-content .container:nth-child(2) .col-right {
        width: calc(33.66% - var(--blocks-indent));
    }
    .cart-items .product-item .product-info {
        gap: 10px;
    }
    .cart-items .product-item .product-info .product-image {
        min-width: 60px;
        width: 60px;
        height: 60px;
    }
    .cart-items .product-item .product-info .product-title,
    .cart-items .product-item .product-info .product-title a {
        font-size: 20px;
        line-height: 24px;
    }
    .custom-quantity-input.weight-based:before {
        top: 22px;
    }
    .quantity-btn {
        width: 42px;
        height: 43px;
    }
    .quantity-display {
        width: 55px;
        height: 43px;
    }
    .cart-items .product-item .product-info .product-price,
    .cart-items .product-item .product-info .product-total {
        width: 130px;
    }
    .actions-with-product {
        gap: 10px;
    }
    .make-notes,
    .remove-item {
        width: 45px;
        height: 45px;
    }
    .make-notes img {
        width: 22px;
    }
    .remove-item img {
        width: 15px;
        height: 15px;
    }
    .cart-items .product-item .product-info .product-title {
        width: calc(100% - 60px - 130px - 141px - 130px - 100px - 50px);
    }
    .cart-items .product-item .product-info .product-price,
    .cart-items .product-item .product-info .product-total {
        font-size: 20px;
        line-height: 24px;
        min-width: max-content;
        padding-top: 8px;
    }
}
@media (max-width: 1366px) {
    .product-price {
        display: none !important;
    }
    .cart-items .product-item .product-info .product-title {
        width: calc(100% - 60px - 141px - 130px - 100px - 40px);
    }
}
@media (max-width: 1024px) {
    .cart-content .container:nth-child(2) .col-left {
        width: calc(100% - 0px);
    }
    .cart-content .container:nth-child(2) .col-right {
        width: calc(100% - 0px);
        padding-top: 60px;
    }
    .cart-items .product-item .product-info {
        flex-wrap: wrap;
        gap: 10px;
    }
    .cart-items .product-item .product-info .product-image {
        min-width: 50px;
        width: 50px;
        height: 50px;
    }
    .cart-items .product-item .product-info .product-title {
        font-size: 16px;
        line-height: 19px;
        width: calc(100% - 50px - 10px - 38px - 10px);
    }
    .cart-items .product-item .product-info .product-title a {
        font-size: 16px;
        line-height: 19px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        height: 38px;
    }
    .cart-items .product-item .product-info .product-total {
        font-size: 16px;
        line-height: 19px;
        font-weight: 700;
        color: var(--primary);
        position: absolute;
        top: calc(38px + 10px);
        left: calc(50px + 10px + 50px + 20px);
        padding-top: 0px;
        width: fit-content;
    }
    .custom-quantity-input {
        margin-left: calc(50px + 10px);
    }
    .quantity-btn {
        font-size: 18px;
        line-height: 18px;
        padding: 3px 5px;
        width: 30px;
        height: 38px;
    }
    .quantity-display {
        width: 50px;
        height: 38px;
        padding: 3px 5px 7px 5px;
    }
    .actions-with-product {
        display: flex;
        gap: 10px;
        flex-direction: column-reverse;
        position: absolute;
        top: 0;
        right: 0;
    }
    .make-notes,
    .remove-item {
        width: 38px;
        height: 38px;
    }
    .make-notes img {
        width: 20px;
    }
    .remove-item img {
        width: 14px;
        height: 14px;
    }
    .cart-content .container:nth-child(2) .col-right .h3 {
        margin-bottom: 20px;
    }
    .cart-total-wrapper {
        padding: 20px;
    }
    .cart-totals {
        gap: 10px;
        margin-bottom: 30px;
    }
    .cart-totals * {
        font-size: 14px !important;
        line-height: 17px !important;
    }
    .comment-for-order label {
        font-size: 14px;
        line-height: 17px;
    }
    .custom-quantity-input.weight-based .quantity-display {
        padding-bottom: 13px;
    }
    .custom-quantity-input.weight-based:before {
        top: 18px;
        font-size: 12px;
    }
    .product-notes input {
        font-weight: 500;
        padding-left: 10px;
        font-size: 13px;
        padding-right: 85px;
    }
    .product-notes button {
        top: 17px;
        right: 15px;
        font-size: 14px;
        line-height: 16px;
    }
    .cart-proceed-to-checkout {
        position: fixed;
        bottom: 0px;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0 auto;
        padding: 20px;
        background: #fff;
        z-index: 20;
        box-shadow: 0 0 10px rgb(0 0 0 / 15%);
    }
    .comment-for-order #order_comments {
        margin-bottom: 0;
    }
    main.cart-page {
        z-index: 999;
    }
    #scrollToTopBtn {
        z-index: 998 !important;
    }
}
