/* MEGAFORMA — CART
   Split from the production stylesheet on 2026-10-16.
   Keep this file in /wp-content/uploads/megaforma/. */

/* ==================================================
   MEGAFORMA — CART
   Clean WooCommerce Cart Blocks design.
   No promo code. One desktop layout + one mobile layout.
   ================================================== */

body.woocommerce-cart,
body.woocommerce-cart * {
    box-sizing: border-box;
}

body.woocommerce-cart {
    font-family: "Manrope", sans-serif !important;
    color: #1E1E1E !important;
}

body.woocommerce-cart .entry-content,
body.woocommerce-cart .wp-block-post-content,
body.woocommerce-cart main.site-main {
    width: 100% !important;
    max-width: none !important;
}

/* Header */
body.woocommerce-cart .megaforma-cart-breadcrumb,
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .megaforma-cart-related {
    width: min(1280px, calc(100% - 48px)) !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.woocommerce-cart .megaforma-cart-breadcrumb {
    position: relative !important;
    left: 50% !important;
    width: min(1280px, calc(100vw - 48px)) !important;
    max-width: 1280px !important;
    margin-top: 26px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #999999 !important;
    text-align: left !important;
}

body.woocommerce-cart .megaforma-cart-breadcrumb a {
    color: #777777 !important;
    text-decoration: none !important;
}

body.woocommerce-cart .megaforma-cart-breadcrumb a:hover {
    color: #FF6600 !important;
}

body.woocommerce-cart h1.entry-title,
body.woocommerce-cart .entry-header h1,
body.woocommerce-cart .page-title {
    margin: 26px 0 8px !important;
    font-family: "Manrope", sans-serif !important;
    font-size: 40px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #1E1E1E !important;
}

body.woocommerce-cart h1.entry-title::after,
body.woocommerce-cart .entry-header h1::after {
    content: "Перевірте товари в кошику та оформіть замовлення";
    display: block;
    margin-top: 9px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    color: #777777;
}

/* Main layout */
body.woocommerce-cart .wp-block-woocommerce-cart {
    margin-top: 30px !important;
    margin-bottom: 28px !important;
}

body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 340px !important;
    gap: 24px !important;
    align-items: start !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-cart .wc-block-components-main.wc-block-cart__main,
body.woocommerce-cart .wc-block-components-sidebar.wc-block-cart__sidebar {
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Product cards */
body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart .wc-block-cart-items tbody {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
}

body.woocommerce-cart .wc-block-cart-items thead,
body.woocommerce-cart .wc-block-cart-items__header {
    display: none !important;
}

body.woocommerce-cart .wc-block-cart-items__row {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 120px minmax(0, 1fr) 96px !important;
    grid-template-areas: "image product total" !important;
    gap: 20px !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 168px !important;
    margin: 0 0 14px !important;
    padding: 20px !important;
    border: 1px solid #E6E6E6 !important;
    border-radius: 12px !important;
    background: #FFFFFF !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .025) !important;
}

body.woocommerce-cart .wc-block-cart-item__image {
    grid-area: image !important;
    align-self: center !important;
}

body.woocommerce-cart .wc-block-cart-item__image a,
body.woocommerce-cart .wc-block-cart-item__image img {
    display: block !important;
    width: 120px !important;
    height: 120px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    background: #F7F8F8 !important;
    object-fit: contain !important;
}

body.woocommerce-cart .wc-block-cart-item__product {
    grid-area: product !important;
    min-width: 0 !important;
    align-self: stretch !important;
}

body.woocommerce-cart .wc-block-cart-item__wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
        "name qty"
        "price qty"
        "meta qty"
        "stock qty" !important;
    column-gap: 18px !important;
    row-gap: 3px !important;
    align-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
}

body.woocommerce-cart .wc-block-components-product-name {
    grid-area: name !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 4px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: #1E1E1E !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    text-decoration: none !important;
}

body.woocommerce-cart .wc-block-cart-item__prices {
    grid-area: price !important;
    margin: 0 !important;
}

body.woocommerce-cart .wc-block-cart-item__prices .wc-block-components-product-price {
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-cart .wc-block-components-product-details {
    grid-area: meta !important;
    margin: 0 !important;
    font-size: 10px !important;
    line-height: 1.45 !important;
    color: #858585 !important;
}

body.woocommerce-cart .megaforma-cart-stock {
    grid-area: stock !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 4px !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    color: #20A63A !important;
}

body.woocommerce-cart .megaforma-cart-stock::before {
    content: "";
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

body.woocommerce-cart .megaforma-cart-stock.is-backorder {
    color: #A37C00 !important;
}

body.woocommerce-cart .wc-block-cart-item__quantity {
    grid-area: qty !important;
    display: flex !important;
    align-items: center !important;
    justify-self: end !important;
    gap: 8px !important;
    margin: 0 !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector {
    display: grid !important;
    grid-template-columns: 34px 40px 34px !important;
    width: 108px !important;
    min-width: 108px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    border: 1px solid #DCDCDC !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector input,
body.woocommerce-cart .wc-block-components-quantity-selector button {
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 36px !important;
}

body.woocommerce-cart .wc-block-cart-item__remove-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #444444 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

body.woocommerce-cart .wc-block-cart-item__remove-link::before {
    display: none !important;
    content: none !important;
}

body.woocommerce-cart .wc-block-cart-item__remove-link svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    fill: currentColor !important;
}

body.woocommerce-cart .wc-block-cart-item__remove-link svg path {
    fill: currentColor !important;
}

body.woocommerce-cart .wc-block-cart-item__remove-link:hover {
    color: #FF6600 !important;
}

body.woocommerce-cart .wc-block-cart-item__total {
    grid-area: total !important;
    justify-self: end !important;
    align-self: center !important;
    text-align: right !important;
}

body.woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price {
    font-size: 16px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

/* Continue shopping */
body.woocommerce-cart .megaforma-block-cart-continue {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    min-height: 72px !important;
    margin: 14px 0 0 !important;
    padding: 15px 18px !important;
    border: 1px solid #E7E7E7 !important;
    border-radius: 12px !important;
    background: #FAFAFA !important;
    color: #1E1E1E !important;
    text-decoration: none !important;
}

body.woocommerce-cart .megaforma-block-cart-continue-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

body.woocommerce-cart .megaforma-block-cart-continue strong {
    display: block !important;
    margin-bottom: 2px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

body.woocommerce-cart .megaforma-block-cart-continue small {
    display: block !important;
    font-size: 10px !important;
    color: #888888 !important;
}

/* Summary card */
body.woocommerce-cart .wc-block-cart__sidebar {
    position: sticky !important;
    top: 100px !important;
    overflow: hidden !important;
    padding: 0 !important;
    border: 1px solid #DEDEDE !important;
    border-radius: 12px !important;
    background: #FFFFFF !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .035) !important;
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-cart__totals-title,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-heading-block,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-coupon-form-block {
    display: none !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 24px !important;
}

body.woocommerce-cart .megaforma-cart-items-summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    width: 100% !important;
    min-height: 66px !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid #EAEAEA !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #333333 !important;
}

body.woocommerce-cart .megaforma-cart-items-summary strong {
    font-weight: 700 !important;
    color: #1E1E1E !important;
    white-space: nowrap !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-totals-block,
body.woocommerce-cart .wc-block-components-totals-wrapper {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-shipping-block {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    border-bottom: 1px solid #EAEAEA !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-shipping-block > .wc-block-components-totals-wrapper,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-shipping-block .wc-block-components-totals-shipping {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
}

/* Shipping row — one definitive layout */
body.woocommerce-cart
.wp-block-woocommerce-cart-order-summary-shipping-block
.wc-block-components-totals-item.megaforma-cart-shipping-row {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 22px auto minmax(0, 1fr) !important;
    grid-template-rows: max-content !important;
    align-content: center !important;
    align-items: center !important;
    column-gap: 10px !important;

    width: 100% !important;
    min-height: 86px !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* Truck icon */
body.woocommerce-cart
.wp-block-woocommerce-cart-order-summary-shipping-block
.wc-block-components-totals-item.megaforma-cart-shipping-row::before {
    content: "";
    position: static !important;

    display: block !important;
    grid-column: 1 !important;

    width: 22px !important;
    height: 22px !important;

    margin: 0 !important;

    align-self: center !important;
    justify-self: start !important;

    transform: none !important;

    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E1E1E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.5h10v9H3z'/%3E%3Cpath d='M13 10h4l3 3.2v2.3h-7z'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3Cpath d='M8.8 17.5h6.4M3 17.5h2.2M18.8 17.5H20'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

/* Left label */
body.woocommerce-cart
.wp-block-woocommerce-cart-order-summary-shipping-block
.wc-block-components-totals-item.megaforma-cart-shipping-row
.wc-block-components-totals-item__label {
    grid-column: 2 !important;

    margin: 0 !important;
    padding: 0 !important;

    align-self: center !important;
    justify-self: start !important;

    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;

    color: #333333 !important;
    white-space: nowrap !important;
}

/* Right text */
body.woocommerce-cart
.wp-block-woocommerce-cart-order-summary-shipping-block
.wc-block-components-totals-item.megaforma-cart-shipping-row
.wc-block-components-totals-item__value {
    grid-column: 3 !important;

    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    align-self: center !important;
    justify-self: end !important;

    font-size: 11px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;

    color: #1E1E1E !important;
    text-align: right !important;
    white-space: nowrap !important;
}

body.woocommerce-cart .wc-block-components-totals-footer-item {
    display: flex !important;
    align-items: center !important;
    min-height: 88px !important;
    padding: 22px 0 !important;
    border: 0 !important;
}

body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 22px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #1E1E1E !important;
}

body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    margin-left: auto !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #FF6600 !important;
    white-space: nowrap !important;
}

body.woocommerce-cart .wc-block-cart__payment-options {
    display: none !important;
}

body.woocommerce-cart .wc-block-cart__submit {
    width: 100% !important;
    margin: 0 !important;
    padding: 16px 24px !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

body.woocommerce-cart .wc-block-cart__submit-container {
    border-top: 0 !important;
    box-shadow: none !important;
}

body.woocommerce-cart .wc-block-cart__submit-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: #FF6600 !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover {
    background: #E65C00 !important;
}

body.woocommerce-cart .megaforma-cart-trust {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    margin: 0 !important;
    border-top: 1px solid #ECECEC !important;
}

body.woocommerce-cart .megaforma-cart-trust-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-height: 44px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    color: #555555 !important;
}

body.woocommerce-cart .megaforma-cart-trust-item + .megaforma-cart-trust-item {
    border-left: 1px solid #ECECEC !important;
}

body.woocommerce-cart .megaforma-cart-trust-icon {
    position: relative !important;
    flex: 0 0 17px !important;
    width: 17px !important;
    height: 17px !important;
}

body.woocommerce-cart .megaforma-cart-trust-item:first-child .megaforma-cart-trust-icon::before,
body.woocommerce-cart .megaforma-cart-trust-item:last-child .megaforma-cart-trust-icon::before {
    content: "";
    display: block;
    width: 17px;
    height: 17px;
    background: #333333;
}

body.woocommerce-cart .megaforma-cart-trust-item:first-child .megaforma-cart-trust-icon::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3Zm0 2.2L18 6.5V11c0 3.9-2.5 7.7-6 8.9-3.5-1.2-6-5-6-8.9V6.5l6-2.3Zm-1.1 10.5-3-3 1.4-1.4 1.6 1.6 3.8-3.8 1.4 1.4-5.2 5.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3Zm0 2.2L18 6.5V11c0 3.9-2.5 7.7-6 8.9-3.5-1.2-6-5-6-8.9V6.5l6-2.3Zm-1.1 10.5-3-3 1.4-1.4 1.6 1.6 3.8-3.8 1.4 1.4-5.2 5.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.woocommerce-cart .megaforma-cart-trust-item:last-child .megaforma-cart-trust-icon::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5a7 7 0 1 1-6.65 9.2l1.9-.63A5 5 0 1 0 8.46 8.3L11 10.84H4V3.84l3.02 3.02A6.96 6.96 0 0 1 12 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5a7 7 0 1 1-6.65 9.2l1.9-.63A5 5 0 1 0 8.46 8.3L11 10.84H4V3.84l3.02 3.02A6.96 6.96 0 0 1 12 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.woocommerce-cart footer.entry-footer {
    display: none !important;
}

/* Related products */
body.woocommerce-cart .megaforma-cart-related {
    margin-top: 0 !important;
    margin-bottom: 72px !important;
}

body.woocommerce-cart .megaforma-cart-related-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    margin-bottom: 16px !important;
}

body.woocommerce-cart .megaforma-cart-related-head h2 {
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}

body.woocommerce-cart .megaforma-cart-related-all {
    color: #FF6600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

body.woocommerce-cart .megaforma-cart-related-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.woocommerce-cart .megaforma-cart-related-item {
    min-width: 0 !important;
    overflow: hidden !important;
    border: 1px solid #E5E5E5 !important;
    border-radius: 10px !important;
    background: #FFFFFF !important;
}

body.woocommerce-cart .megaforma-cart-related-item > a {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    padding: 12px !important;
    color: #1E1E1E !important;
    text-decoration: none !important;
}

body.woocommerce-cart .megaforma-cart-related-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    aspect-ratio: 1 / .76 !important;
    margin-bottom: 12px !important;
    overflow: hidden !important;
    border-radius: 7px !important;
    background: #F7F8F8 !important;
}

body.woocommerce-cart .megaforma-cart-related-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: contain !important;
}

body.woocommerce-cart .megaforma-cart-related-title {
    margin: 0 0 8px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}

body.woocommerce-cart .megaforma-cart-related-price {
    margin-top: auto !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

body.woocommerce-cart .megaforma-cart-related-stock {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 7px !important;
    font-size: 10px !important;
    color: #20A63A !important;
}

body.woocommerce-cart .megaforma-cart-related-stock::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

/* 1180px+ keeps the desktop two-column cart. */
@media (min-width: 1180px) {
    body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart {
        grid-template-columns: minmax(0, 1fr) 340px !important;
    }
}

/* Tablet / narrow desktop: one clean column, equal widths. */
@media (min-width: 768px) and (max-width: 1179px) {
    body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart {
        display: block !important;
        width: 100% !important;
    }

    body.woocommerce-cart .wc-block-components-main.wc-block-cart__main,
    body.woocommerce-cart .wc-block-components-sidebar.wc-block-cart__sidebar {
        width: 100% !important;
        max-width: none !important;
        flex-basis: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.woocommerce-cart .megaforma-block-cart-continue {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart .wc-block-components-sidebar.wc-block-cart__sidebar {
        position: static !important;
        margin-top: 16px !important;
    }

    body.woocommerce-cart .wc-block-cart-items__row {
        grid-template-columns: 112px minmax(0, 1fr) 100px !important;
    }

    body.woocommerce-cart .wc-block-cart-item__image a,
    body.woocommerce-cart .wc-block-cart-item__image img {
        width: 112px !important;
        height: 112px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    body.woocommerce-cart .wp-block-woocommerce-cart,
    body.woocommerce-cart .megaforma-cart-related {
        width: calc(100% - 32px) !important;
        max-width: none !important;
    }

    body.woocommerce-cart .megaforma-cart-breadcrumb {
        width: calc(100vw - 32px) !important;
        max-width: none !important;
    }

    body.woocommerce-cart .megaforma-cart-breadcrumb {
        margin-top: 16px !important;
        font-size: 10px !important;
    }

    body.woocommerce-cart h1.entry-title,
    body.woocommerce-cart .entry-header h1,
    body.woocommerce-cart .page-title {
        margin-top: 22px !important;
        font-size: 30px !important;
    }

    body.woocommerce-cart h1.entry-title::after,
    body.woocommerce-cart .entry-header h1::after {
        margin-top: 7px !important;
        padding: 0 16px !important;
        font-size: 12px !important;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart {
        margin-top: 24px !important;
        margin-bottom: 22px !important;
    }

    body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart {
        display: block !important;
    }

    body.woocommerce-cart .wc-block-cart-items__row {
        display: grid !important;
        grid-template-columns: 96px minmax(0, 1fr) !important;
        grid-template-areas: "image product" !important;
        gap: 12px !important;
        min-height: 0 !important;
        padding: 14px 14px 16px !important;
    }

    body.woocommerce-cart .wc-block-cart-item__image {
        align-self: start !important;
    }

    body.woocommerce-cart .wc-block-cart-item__image a,
    body.woocommerce-cart .wc-block-cart-item__image img {
        width: 96px !important;
        height: 96px !important;
    }

    body.woocommerce-cart .wc-block-cart-item__wrap {
        position: relative !important;
        display: block !important;
        min-height: 142px !important;
        padding-bottom: 44px !important;
    }

    body.woocommerce-cart .wc-block-components-product-name {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    body.woocommerce-cart .wc-block-cart-item__prices {
        margin-top: 4px !important;
    }

    body.woocommerce-cart .wc-block-components-product-metadata,
    body.woocommerce-cart .wc-block-components-product-details {
        margin-top: 3px !important;
    }

    body.woocommerce-cart .megaforma-cart-stock {
        margin-top: 5px !important;
    }

    body.woocommerce-cart .wc-block-cart-item__quantity {
        position: absolute !important;
        left: 0 !important;
        bottom: 0 !important;
        display: flex !important;
        gap: 6px !important;
    }

    body.woocommerce-cart .wc-block-components-quantity-selector {
        grid-template-columns: 30px 36px 30px !important;
        width: 96px !important;
        min-width: 96px !important;
        height: 34px !important;
        min-height: 34px !important;
    }

    body.woocommerce-cart .wc-block-components-quantity-selector input,
    body.woocommerce-cart .wc-block-components-quantity-selector button {
        height: 32px !important;
        min-height: 32px !important;
        line-height: 32px !important;
    }

    body.woocommerce-cart .wc-block-cart-item__remove-link {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
    }

    body.woocommerce-cart .wc-block-cart-item__remove-link svg {
        width: 19px !important;
        height: 19px !important;
    }

    body.woocommerce-cart .wc-block-cart-item__total {
        position: absolute !important;
        right: 14px !important;
        bottom: 23px !important;
        z-index: 2 !important;
    }

    body.woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price {
        font-size: 14px !important;
    }

    body.woocommerce-cart .megaforma-block-cart-continue {
        min-height: 64px !important;
        margin-top: 12px !important;
        padding: 13px 14px !important;
    }

    body.woocommerce-cart .wc-block-components-sidebar.wc-block-cart__sidebar {
        position: static !important;
        margin-top: 16px !important;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block {
        padding: 0 20px !important;
    }

    body.woocommerce-cart .megaforma-cart-items-summary {
        min-height: 58px !important;
        padding: 15px 0 !important;
        font-size: 12px !important;
    }

    body.woocommerce-cart
    .wp-block-woocommerce-cart-order-summary-shipping-block
    .wc-block-components-totals-item.megaforma-cart-shipping-row {
        grid-template-columns: 20px auto minmax(0, 1fr) !important;
        column-gap: 8px !important;
        min-height: 76px !important;
        height: auto !important;
        padding: 0 !important;
    }

    body.woocommerce-cart
    .wp-block-woocommerce-cart-order-summary-shipping-block
    .wc-block-components-totals-item.megaforma-cart-shipping-row::before {
        width: 20px !important;
        height: 20px !important;
    }

    body.woocommerce-cart
    .wp-block-woocommerce-cart-order-summary-shipping-block
    .wc-block-components-totals-item.megaforma-cart-shipping-row
    .wc-block-components-totals-item__label {
        font-size: 12px !important;
    }

    body.woocommerce-cart
    .wp-block-woocommerce-cart-order-summary-shipping-block
    .wc-block-components-totals-item.megaforma-cart-shipping-row
    .wc-block-components-totals-item__value {
        font-size: 10px !important;
        letter-spacing: -0.01em !important;
    }

    body.woocommerce-cart .wc-block-components-totals-footer-item {
        min-height: 76px !important;
        padding: 18px 0 !important;
    }

    body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
    body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
        font-size: 20px !important;
    }

    body.woocommerce-cart .wc-block-cart__submit {
        padding: 14px 20px !important;
    }

    body.woocommerce-cart .wc-block-cart__submit-button {
        min-height: 48px !important;
        font-size: 12px !important;
    }

    body.woocommerce-cart .megaforma-cart-trust-item {
        min-height: 44px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    body.woocommerce-cart .megaforma-cart-related {
        margin-bottom: 48px !important;
    }

    body.woocommerce-cart .megaforma-cart-related-head h2 {
        font-size: 21px !important;
    }

    body.woocommerce-cart .megaforma-cart-related-all {
        font-size: 12px !important;
    }

    body.woocommerce-cart .megaforma-cart-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    body.woocommerce-cart .megaforma-cart-related-item > a {
        padding: 10px !important;
    }

    body.woocommerce-cart .megaforma-cart-related-title {
        font-size: 12px !important;
    }

    body.woocommerce-cart .megaforma-cart-related-price {
        font-size: 14px !important;
    }
}

@media (max-width: 360px) {
    body.woocommerce-cart .wc-block-cart-items__row {
        grid-template-columns: 82px minmax(0, 1fr) !important;
    }

    body.woocommerce-cart .wc-block-cart-item__image a,
    body.woocommerce-cart .wc-block-cart-item__image img {
        width: 82px !important;
        height: 82px !important;
    }

    body.woocommerce-cart .wc-block-cart-item__wrap {
        padding-bottom: 82px !important;
    }

    body.woocommerce-cart .wc-block-cart-item__total {
        right: auto !important;
        left: 108px !important;
        bottom: 16px !important;
    }

    body.woocommerce-cart .wc-block-cart-item__quantity {
        bottom: 42px !important;
    }
}

/* =========================================================
   MEGAFORMA — CART TOP SPACING
   Header → Breadcrumbs
   ========================================================= */

body.woocommerce-cart .container.content-wrapper {
    margin-top: 0 !important;
}

/* =========================================================
   CART — SHIPPING ROW / EXTRA SMALL <= 329px
   Prevent left/right text overlap.
   ========================================================= */

@media (max-width: 329px) {

    body.woocommerce-cart
    .wp-block-woocommerce-cart-order-summary-shipping-block
    .wc-block-components-totals-item.megaforma-cart-shipping-row {
        grid-template-columns: 20px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        column-gap: 8px !important;
        row-gap: 2px !important;

        min-height: 76px !important;
        padding: 12px 0 !important;
    }

    body.woocommerce-cart
    .wp-block-woocommerce-cart-order-summary-shipping-block
    .wc-block-components-totals-item.megaforma-cart-shipping-row::before {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;

        align-self: center !important;
        justify-self: start !important;
    }

    body.woocommerce-cart
    .wp-block-woocommerce-cart-order-summary-shipping-block
    .wc-block-components-totals-item.megaforma-cart-shipping-row
    .wc-block-components-totals-item__label {
        grid-column: 2 !important;
        grid-row: 1 !important;

        align-self: end !important;
        justify-self: start !important;

        font-size: 12px !important;
        line-height: 1.25 !important;
    }

    body.woocommerce-cart
    .wp-block-woocommerce-cart-order-summary-shipping-block
    .wc-block-components-totals-item.megaforma-cart-shipping-row
    .wc-block-components-totals-item__value {
        grid-column: 2 !important;
        grid-row: 2 !important;

        align-self: start !important;
        justify-self: start !important;

        margin: 0 !important;

        font-size: 9px !important;
        line-height: 1.25 !important;

        text-align: left !important;
        white-space: normal !important;
    }
}

