/* IMA Trend child theme — cart-checkout.css: rules scoped to this page type, moved out of style.css on staging 2026-10-25.
   Loaded conditionally from inc/enqueue.php after style.css (same relative order as before). */

/* FIX 3 CSS - newsletter/reCAPTCHA is not part of cart or checkout. */
body.woocommerce-cart .fusion-form-270, body.woocommerce-checkout .fusion-form-270 { display:none !important; }

.woocommerce-cart .woocommerce-shipping-totals{
	display: none!important;
}

/* Fix logo supradimensionat in footer pe checkout */
.woocommerce-checkout .fusion-tb-footer .fusion-image-element {
    --awb-max-width: 208px !important;
}

/* Checkout — titlul "Livrezi la o altă adresă?" stilizat ca titlul Avada "Informații de facturare" */
.woocommerce-checkout #ship-to-different-address {
    font-size: 26px;
    font-weight: 700;
    line-height: var(--awb-typography1-line-height, 1.2);
    color: var(--awb-color7);
    margin-top: 35px;
    margin-bottom: 20px;
}

/* Checkout — fix dublă săgeată pe toate selectele (billing + shipping).
   Avada adaugă .select-arrow prin JS, dar appearance: none trebuie forțat
   pentru că Theme Builder layout nu declanșează wrapping-ul standard. */
.woocommerce-checkout select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

@media (max-width: 767px) {
/* Checkout order review — resetare layout cart responsive */
.woocommerce-checkout table.shop_table tr.cart_item {
        display: table-row !important;
        flex-wrap: unset !important;
        align-items: unset !important;
    }
.woocommerce-checkout table.shop_table tr.cart_item td {
        display: table-cell !important;
        flex: unset !important;
        width: auto !important;
    }
}

/* Checkout — ascunde câmpul Țară/regiune */
.woocommerce-checkout .woocommerce-billing-fields #billing_country_field,
.woocommerce-checkout .woocommerce-shipping-fields #shipping_country_field {
    display: none !important;
}

@media screen and (min-width: 1236px) {
.woocommerce-cart .fusion-builder-row-3 .fusion-builder-column-11,
    .woocommerce-cart .fusion-builder-row-3 .fusion-builder-column-12,
    .woocommerce-cart .fusion-builder-row-3 .fusion-builder-column-14 {
        width: auto !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
.woocommerce-cart .fusion-builder-row-3 .fusion-builder-column-12 {
        grid-area: logo;
        justify-self: center;
    }
.woocommerce-cart .fusion-builder-row-3 .fusion-builder-column-14 {
        grid-area: icons;
        justify-self: end;
    }
.woocommerce-cart .fusion-builder-row-3 .fusion-builder-column-11 {
        grid-area: menu;
        min-width: 750px;
        width: max-content;
        max-width: calc(100% - 30px);
        justify-self: center;
    }
.woocommerce-checkout .fusion-tb-header .fusion-builder-row-3 .fusion-builder-column-5,
    .woocommerce-checkout .fusion-tb-header .fusion-builder-row-3 .fusion-builder-column-6,
    .woocommerce-checkout .fusion-tb-header .fusion-builder-row-3 .fusion-builder-column-8 {
        width: auto !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
.woocommerce-checkout .fusion-tb-header .fusion-builder-row-3 .fusion-builder-column-6 {
        grid-area: logo;
        justify-self: center;
    }
.woocommerce-checkout .fusion-tb-header .fusion-builder-row-3 .fusion-builder-column-8 {
        grid-area: icons;
        justify-self: end;
    }
.woocommerce-checkout .fusion-tb-header .fusion-builder-row-3 .fusion-builder-column-5 {
        grid-area: menu;
        min-width: 750px;
        width: max-content;
        max-width: calc(100% - 30px);
        justify-self: center;
    }
}

@media (max-width: 767px) {
/* ============================================================
   IMA Trend - Mobile cart final layout
   Put this block LAST in style.css
   ============================================================ */
body.woocommerce-cart table.shop_table tr.cart_item {
        --imt-cart-thumb: clamp(96px, 30vw, 116px);
        --imt-cart-gap: 14px;
        display: grid !important;
        grid-template-columns: var(--imt-cart-thumb) minmax(0, 1fr) !important;
        column-gap: var(--imt-cart-gap) !important;
        row-gap: 0 !important;
        align-items: start !important;
        width: 100% !important;
        padding: 22px 0 !important;
        border-bottom: 1px solid #e1e6ee !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td {
        box-sizing: border-box !important;
        border: 0 !important;
        float: none !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-name,
    body.woocommerce-cart table.shop_table tr.cart_item td.product-name .fusion-product-name-wrapper {
        display: contents !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-name .product-title {
        display: -webkit-box !important;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden !important;
        width: 100% !important;
        color: #1b223d !important;
        font-size: 15px !important;
        line-height: 18px !important;
        font-weight: 800 !important;
        text-align: left !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-remove {
        grid-column: 2 !important;
        grid-row: 1 !important;
        order: initial !important;
        position: static !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-end !important;
        justify-self: end !important;
        align-self: start !important;
        width: 30px !important;
        height: 30px !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 2 !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-remove a.remove {
        position: relative !important;
        width: 30px !important;
        height: 30px !important;
        display: block !important;
        font-size: 0 !important;
        line-height: 0 !important;
        color: transparent !important;
        text-decoration: none !important;
        background: transparent !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-remove a.remove::before {
        content: "" !important;
        position: absolute !important;
        inset: 5px !important;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231b223d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M6 6l1 15h10l1-15'/%3E%3Cpath d='M10 10v7'/%3E%3Cpath d='M14 10v7'/%3E%3C/svg%3E") center / contain no-repeat !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-remove a.remove::after {
        content: "" !important;
        display: none !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-price,
    body.woocommerce-cart table.shop_table tr.cart_item td.product-quantity,
    body.woocommerce-cart table.shop_table tr.cart_item td.product-subtotal {
        grid-column: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        column-gap: 10px !important;
        align-items: center !important;
        padding: 10px 0 !important;
        border-top: 1px solid #e1e6ee !important;
        text-align: left !important;
        font-size: 15px !important;
        line-height: 18px !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-price {
        grid-row: 2 !important;
        order: initial !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-quantity {
        grid-row: 3 !important;
        order: initial !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-subtotal {
        grid-row: 4 !important;
        order: initial !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-price::before,
    body.woocommerce-cart table.shop_table tr.cart_item td.product-quantity::before,
    body.woocommerce-cart table.shop_table tr.cart_item td.product-subtotal::before {
        display: inline-block !important;
        justify-self: start !important;
        color: #767676 !important;
        font-size: 14px !important;
        line-height: 18px !important;
        font-weight: 500 !important;
        text-align: left !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-price::before {
        content: "Pret" !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-quantity::before {
        content: "Cantitate" !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-subtotal::before {
        content: "Total produs" !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-price .amount {
        color: #1463b0 !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-quantity .quantity,
    body.woocommerce-cart table.shop_table tr.cart_item td.product-quantity .buttons_added {
        justify-self: end !important;
        width: min(156px, 100%) !important;
        min-width: 0 !important;
        height: 44px !important;
        display: grid !important;
        grid-template-columns: 44px minmax(42px, 1fr) 44px !important;
        border: 1px solid #1b223d !important;
        background: #ffffff !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-quantity input.qty {
        width: 100% !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        border: 0 !important;
        border-left: 1px solid #1b223d !important;
        border-right: 1px solid #1b223d !important;
        background: #ffffff !important;
        color: #1b223d !important;
        font-size: 16px !important;
        line-height: 42px !important;
        font-weight: 800 !important;
        text-align: center !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-quantity input.minus,
    body.woocommerce-cart table.shop_table tr.cart_item td.product-quantity input.plus {
        width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        border: 0 !important;
        background: #ffffff !important;
        color: #1b223d !important;
        font-size: 20px !important;
        line-height: 42px !important;
        font-weight: 800 !important;
        text-align: center !important;
    }
body.woocommerce-cart .fusion-woo-cart-totals-wrapper .tbi_button_container1,
    body.woocommerce-cart .cart_totals .tbi_button_container1 {
        width: 100% !important;
        max-width: 100% !important;
        margin: 12px auto 0 !important;
        display: block !important;
        text-align: center !important;
    }
body.woocommerce-cart .fusion-woo-cart-totals-wrapper .tbi_button1,
    body.woocommerce-cart .cart_totals .tbi_button1,
    body.woocommerce-cart .fusion-woo-cart-totals-wrapper .tbi_button_body1,
    body.woocommerce-cart .cart_totals .tbi_button_body1 {
        width: 100% !important;
        max-width: 100% !important;
        height: 48px !important;
        min-height: 48px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
body.woocommerce-cart .fusion-woo-cart-totals-wrapper .tbi_button_body1,
    body.woocommerce-cart .cart_totals .tbi_button_body1 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 4px 10px !important;
        text-align: center !important;
    }
body.woocommerce-cart .fusion-woo-cart-totals-wrapper .tbi_button_line,
    body.woocommerce-cart .cart_totals .tbi_button_line {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 13px !important;
        line-height: 16px !important;
        white-space: nowrap !important;
    }
body.woocommerce-cart .fusion-woo-cart-totals-wrapper a.fusion-update-cart,
    body.woocommerce-cart .fusion-woo-cart-totals-wrapper a.checkout-button,
    body.woocommerce-cart .cart_totals a.fusion-update-cart,
    body.woocommerce-cart .cart_totals a.checkout-button,
    body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 48px !important;
        min-height: 48px !important;
        padding: 0 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        font-size: 0 !important;
        line-height: 0 !important;
        letter-spacing: 0 !important;
        text-align: center !important;
    }
body.woocommerce-cart .fusion-woo-cart-totals-wrapper a.fusion-update-cart::before,
    body.woocommerce-cart .cart_totals a.fusion-update-cart::before {
        content: "ACTUALIZEAZA COSUL" !important;
        display: block !important;
        color: inherit !important;
        font-size: 13px !important;
        line-height: 16px !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        text-align: center !important;
    }
body.woocommerce-cart .fusion-woo-cart-totals-wrapper a.checkout-button::before,
    body.woocommerce-cart .cart_totals a.checkout-button::before,
    body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button::before {
        content: "FINALIZEAZA COMANDA" !important;
        display: block !important;
        color: inherit !important;
        font-size: 13px !important;
        line-height: 16px !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        text-align: center !important;
    }
body.woocommerce-cart .fusion-woo-cart-totals-wrapper .fusion-button,
    body.woocommerce-cart .fusion-woo-cart-totals-wrapper .button,
    body.woocommerce-cart .cart_totals .fusion-button,
    body.woocommerce-cart .cart_totals .button,
    body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        font-size: 12px !important;
        line-height: 14px !important;
        letter-spacing: 0 !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}

@media (max-width: 375px) {
/* iPhone SE / very small phones: prevent cart item controls from clipping. */
body.woocommerce-cart table.shop_table tr.cart_item {
        --imt-cart-thumb: 96px;
        grid-template-columns: 96px minmax(0, 1fr) !important;
        column-gap: 12px !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-name .product-title {
        -webkit-line-clamp: 3;
        font-size: 14px !important;
        line-height: 16px !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-price,
    body.woocommerce-cart table.shop_table tr.cart_item td.product-quantity,
    body.woocommerce-cart table.shop_table tr.cart_item td.product-subtotal {
        grid-column: 1 / -1 !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-price {
        grid-row: 5 !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-quantity {
        grid-row: 6 !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-subtotal {
        grid-row: 7 !important;
    }
body.woocommerce-cart table.shop_table tr.cart_item td.product-quantity .quantity,
    body.woocommerce-cart table.shop_table tr.cart_item td.product-quantity .buttons_added {
        width: 156px !important;
        grid-template-columns: 44px 68px 44px !important;
    }
}

/* Cart totals: TBI financing CTA matches the full-width cart buttons. */
body.woocommerce-cart .fusion-woo-cart-totals-wrapper .tbi_button_container1,
body.woocommerce-cart .cart_totals .tbi_button_container1,
body.woocommerce-cart .fusion-woo-cart-totals-wrapper .tbi_button1,
body.woocommerce-cart .cart_totals .tbi_button1,
body.woocommerce-cart .fusion-woo-cart-totals-wrapper .tbi_button_body1,
body.woocommerce-cart .cart_totals .tbi_button_body1 {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.woocommerce-cart .fusion-woo-cart-totals-wrapper .tbi_button_container1,
body.woocommerce-cart .cart_totals .tbi_button_container1,
body.woocommerce-cart .fusion-woo-cart-totals-wrapper .tbi_button1,
body.woocommerce-cart .cart_totals .tbi_button1 {
    display: block !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

body.woocommerce-cart .fusion-woo-cart-totals-wrapper .tbi_button_body1,
body.woocommerce-cart .cart_totals .tbi_button_body1 {
    display: flex !important;
}

@media (max-width: 767px) {
/* Cart and checkout: keep the primary mobile actions on one line. */
body.woocommerce-cart a[href="#updateCart"],
    body.woocommerce-cart a.fusion-button[href*="/finalizare-comanda/"],
    body.woocommerce-checkout #place_order {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 48px !important;
        height: 48px !important;
        padding: 0 10px !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 360px) {
body.woocommerce-cart a[href="#updateCart"],
    body.woocommerce-cart a.fusion-button[href*="/finalizare-comanda/"],
    body.woocommerce-checkout #place_order {
        font-size: 15px !important;
        padding-right: 6px !important;
        padding-left: 6px !important;
    }
}

@media (min-width: 801px) {
body.woocommerce-checkout form.woocommerce-form-login.login > .form-row:has(.woocommerce-form-login__submit) {
        position: static !important;
        float: none !important;
        clear: both !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 14px 22px !important;
        width: 100% !important;
        margin: 4px 0 0 !important;
    }
body.woocommerce-checkout form.checkout.woocommerce-checkout {
        float: none !important;
        clear: both !important;
        width: 100% !important;
        max-width: none !important;
    }
}

/* Checkout mobil: sumarul comenzii compact, cu spatiul folosit eficient. */
/* Checkout: denumirile lungi trebuie sa mareasca randul, nu sa se suprapuna. */
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody tr.cart_item {
    height: auto !important;
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody tr.cart_item td {
    height: auto !important;
    vertical-align: middle !important;
}

body.woocommerce-checkout table.woocommerce-checkout-review-order-table .fusion-product-name-wrapper {
    align-items: center !important;
    min-height: 90px !important;
    height: auto !important;
}

@media (max-width: 767px) {
body.woocommerce-checkout .fusion-woo-checkout-order-review-tb {
        position: relative !important;
        width: calc(100vw - 24px) !important;
        min-width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        box-sizing: border-box !important;
        margin: 0 0 28px 50% !important;
        transform: translateX(-50%) !important;
        --awb-margin-bottom: 28px !important;
        --awb-text-font-size: 14px !important;
        --awb-footer-font-size: 14px !important;
        --awb-footer-td-font-size: 14px !important;
    }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table {
        width: 100% !important;
        table-layout: fixed !important;
    }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table th.product-name,
    body.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-name {
        width: 78% !important;
        box-sizing: border-box !important;
    }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table th.product-total,
    body.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-total {
        width: 22% !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
    }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table thead th {
        padding: 8px 4px 10px !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
    }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody td.product-name {
        padding: 12px 4px !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
        vertical-align: middle !important;
        text-align: left !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody td.product-name > a:first-child {
        display: block !important;
        float: left !important;
        width: 56px !important;
        height: 56px !important;
        margin: 0 10px 0 0 !important;
    }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody td.product-name .product-quantity {
        font-size: 13px !important;
        line-height: 1.25 !important;
        white-space: nowrap !important;
    }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody td.product-total {
        padding: 12px 4px !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
        vertical-align: middle !important;
        text-align: right !important;
    }
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot th,
    body.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td {
        padding: 10px 4px !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
    }
}

@media (min-width: 768px) {
/* Checkout desktop: center the returning-customer notice as one group. */
body.woocommerce-checkout .woocommerce-form-login-toggle {
        width: 100% !important;
        text-align: center !important;
    }
body.woocommerce-checkout .woocommerce-form-login-toggle .wc-block-components-notice-banner,
    body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
body.woocommerce-checkout .woocommerce-form-login-toggle .wc-block-components-notice-banner > svg {
        flex: 0 0 20px !important;
        width: 20px !important;
        margin: 0 !important;
    }
body.woocommerce-checkout .woocommerce-form-login-toggle .wc-block-components-notice-banner__content {
        flex: 0 1 auto !important;
        width: auto !important;
        padding: 0 !important;
        text-align: center !important;
    }
}

/* Cart recommendation carousel: final alignment for cards, sale prices and buttons. */
body.woocommerce-cart .fusion-post-cards .swiper-wrapper { column-gap: 0 !important; }

body.woocommerce-cart .fusion-post-cards .product-card.swiper-slide {
    min-width: 0 !important;
    flex: 0 0 219px !important;
    width: 219px !important;
    max-width: 219px !important;
}

body.woocommerce-cart .fusion-post-cards .product-card img { display: block !important; width: 100% !important; max-width: 100% !important; height: auto !important; max-height: 190px !important; object-fit: contain !important; }

body.woocommerce-cart .fusion-post-cards .product-card .fusion-builder-row-inner:has(.fusion-post-card-cart) > .fusion-layout-column {
    box-sizing: border-box !important;
    flex: 0 0 calc(100% - 100px) !important;
    width: calc(100% - 100px) !important;
    max-width: calc(100% - 100px) !important;
    margin-left: 10px !important;
    margin-right: 0 !important;
    min-width: 0 !important;
}

body.woocommerce-cart .fusion-post-cards .product-card .fusion-builder-row-inner:has(.fusion-post-card-cart) > .fusion-layout-column > .fusion-column-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-cart .fusion-post-cards .product-card .fusion-builder-row-inner:has(.fusion-post-card-cart) .fusion-woo-price-tb,
body.woocommerce-cart .fusion-post-cards .product-card .fusion-builder-row-inner:has(.fusion-post-card-cart) .fusion-post-card-cart,
body.woocommerce-cart .fusion-post-cards .product-card .fusion-builder-row-inner:has(.fusion-post-card-cart) .fusion-post-card-cart-button-wrapper,
body.woocommerce-cart .fusion-post-cards .product-card .fusion-builder-row-inner:has(.fusion-post-card-cart) .fusion-post-card-cart-add-to-cart {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
}

body.woocommerce-cart .fusion-post-cards .product-card .fusion-woo-price-tb { order: 0 !important; }

body.woocommerce-cart .fusion-post-cards .product-card .fusion-post-card-cart { order: 1 !important; }

body.woocommerce-cart .fusion-post-cards .product-card .fusion-woo-price-tb .price {
    min-width: 0 !important;
    margin: 0 !important;
}

body.woocommerce-cart .fusion-post-cards .product-card .fusion-woo-price-tb .price ins,
body.woocommerce-cart .fusion-post-cards .product-card .fusion-woo-price-tb .price ins *,
body.woocommerce-cart .fusion-post-cards .product-card .fusion-woo-price-tb .price ins .amount,
body.woocommerce-cart .fusion-post-cards .product-card .fusion-woo-price-tb .price ins .amount * {
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    color: #1463b0 !important;
    background: transparent !important;
    text-align: left !important;
    text-decoration: none !important;
}

body.woocommerce-cart .fusion-post-cards .product-card .price ins .amount { display: flex !important; justify-content: flex-start !important; }

body.woocommerce-cart .fusion-post-cards .product-card .price ins .amount::after { content: none !important; display: none !important; }

body.woocommerce-cart .fusion-post-cards .product-card .fusion-post-card-cart-add-to-cart { min-height: 44px !important; height: 44px !important; padding: 8px 6px !important; white-space: nowrap !important; }

/* Cart card polish: visible gutter and left-aligned stacked sale prices. */
body.woocommerce-cart .fusion-post-cards .product-card.swiper-slide { margin-right: 12px !important; }

body.woocommerce-cart .fusion-post-cards .product-card .fusion-woo-price-tb .price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 2px !important;
    width: 100% !important;
    text-align: left !important;
}

body.woocommerce-cart .fusion-post-cards .product-card .fusion-woo-price-tb .price del,
body.woocommerce-cart .fusion-post-cards .product-card .fusion-woo-price-tb .price ins {
    display: block !important;
    align-self: flex-start !important;
    width: auto !important;
    margin: 0 !important;
    text-align: left !important;
}

@media (max-width: 767px) {
body.woocommerce-cart .fusion-post-cards .product-card.swiper-slide {
        flex: 0 0 calc(50% - 12px) !important;
        width: calc(50% - 12px) !important;
        max-width: calc(50% - 12px) !important;
        margin-right: 12px !important;
    }
body.woocommerce-cart .fusion-post-cards .product-card .fusion-woo-price-tb .price del,
    body.woocommerce-cart .fusion-post-cards .product-card .fusion-woo-price-tb .price del * { font-size: 14px !important; line-height: 1.2 !important; }
body.woocommerce-cart .fusion-post-cards .product-card .fusion-woo-price-tb .price ins,
    body.woocommerce-cart .fusion-post-cards .product-card .fusion-woo-price-tb .price ins * { font-size: 18px !important; line-height: 1.2 !important; }
/* The builder's mobile action row remains 100px wider than its slide. */
body.woocommerce-cart .fusion-post-cards .product-card .fusion-builder-row-inner:has(.fusion-post-card-cart) > .fusion-layout-column { margin-left: -100px !important; }
}

/* Cart totals panel: remove the nested 50px gutters that squeeze its buttons. */
body.woocommerce-cart .fusion-layout-column:has(> .fusion-column-wrapper > .fusion-woo-cart-totals-wrapper) > .fusion-column-wrapper {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 24px !important;
}

body.woocommerce-cart .fusion-woo-cart-totals-wrapper,
body.woocommerce-cart .fusion-woo-cart-totals-wrapper .cart_totals {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

body.woocommerce-cart .fusion-woo-cart-totals-wrapper .cart_totals .shop_table,
body.woocommerce-cart .fusion-woo-cart-totals-wrapper .cart_totals .wc-proceed-to-checkout {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* The old 320px minimum for cart totals overflows the available summary column. */
html body.woocommerce-cart .fusion-layout-column:has(> .fusion-column-wrapper > .fusion-woo-cart-totals-wrapper) {
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

html body.woocommerce-cart .fusion-layout-column:has(> .fusion-column-wrapper > .fusion-woo-cart-totals-wrapper) .cart_totals,
html body.woocommerce-cart .fusion-layout-column:has(> .fusion-column-wrapper > .fusion-woo-cart-totals-wrapper) .cart_totals table,
html body.woocommerce-cart .fusion-layout-column:has(> .fusion-column-wrapper > .fusion-woo-cart-totals-wrapper) .cart_totals .shop_table {
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

@media screen and (min-width: 1024px) {
/* Cart layout: bring the totals closer on desktop and remove the stacked-column spacer on responsive. */
body.woocommerce-cart #main .fusion-builder-row-3 > .fusion-builder-row:has(> .fusion-builder-column-8):has(> .fusion-builder-column-15) {
        display: grid !important;
        grid-template-areas: none !important;
        grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr) !important;
        gap: 32px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-right: 50px !important;
        margin: 0 !important;
        align-items: start !important;
    }
body.woocommerce-cart #main .fusion-builder-column-8 > .fusion-column-wrapper,
    body.woocommerce-cart #main .fusion-builder-column-15 > .fusion-column-wrapper {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
body.woocommerce-cart #main .fusion-builder-column-15 .fusion-builder-row-inner {
        display: block !important;
        grid-template-areas: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
body.woocommerce-cart #main .fusion-builder-column-15 .fusion-builder-row-inner > .fusion-layout-column {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
}

@media screen and (max-width: 767px) {
body.woocommerce-cart #main .fusion-builder-column-8 { margin-bottom: 0 !important; }
body.woocommerce-cart #main .fusion-builder-column-15 { margin-top: 0 !important; margin-bottom: 0 !important; }
/* Mobile summary: bound the actual panel to the viewport, including both gutters. */
body.woocommerce-cart #main .fusion-builder-row-inner:has(> .fusion-layout-column > .fusion-column-wrapper > .fusion-woo-cart-totals-wrapper) {
        display: block !important;
        box-sizing: border-box !important;
        width: calc(100vw - 60px) !important;
        max-width: calc(100vw - 60px) !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
body.woocommerce-cart #main .fusion-layout-column:has(> .fusion-column-wrapper > .fusion-woo-cart-totals-wrapper),
    body.woocommerce-cart #main .fusion-layout-column:has(> .fusion-column-wrapper > .fusion-woo-cart-totals-wrapper) > .fusion-column-wrapper {
        box-sizing: border-box !important;
        flex: 0 0 auto !important;
        width: calc(100vw - 60px) !important;
        max-width: calc(100vw - 60px) !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
body.woocommerce-cart #main .fusion-layout-column:has(> .fusion-column-wrapper > .fusion-woo-cart-totals-wrapper) > .fusion-column-wrapper {
        padding: 24px !important;
    }
body.woocommerce-cart #main .fusion-woo-cart-totals-wrapper,
    body.woocommerce-cart #main .fusion-woo-cart-totals-wrapper .cart_totals,
    body.woocommerce-cart #main .fusion-woo-cart-totals-wrapper .avada-cart-totals-wrapper,
    body.woocommerce-cart #main .fusion-woo-cart-totals-wrapper table,
    body.woocommerce-cart #main .fusion-woo-cart-totals-wrapper .wc-proceed-to-checkout {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

@media (max-width: 767px) {
/* Mobile cart cards: align the action area with the title, ignoring builder row gutters. */
body.woocommerce-cart #main .fusion-post-cards .product-card .fusion-builder-row-inner:has(.fusion-post-card-cart) {
        display: contents !important;
    }
body.woocommerce-cart #main .fusion-post-cards .product-card .fusion-builder-row-inner:has(.fusion-post-card-cart) > .fusion-layout-column:not(:has(.fusion-post-card-cart)) {
        display: none !important;
    }
body.woocommerce-cart #main .fusion-post-cards .product-card .fusion-builder-row-inner > .fusion-layout-column:has(.fusion-post-card-cart) {
        box-sizing: border-box !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
body.woocommerce-cart #main .fusion-post-cards .product-card .fusion-builder-row-inner > .fusion-layout-column:has(.fusion-post-card-cart) > .fusion-column-wrapper {
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: stretch !important;
    }
body.woocommerce-cart #main .fusion-post-cards .product-card .fusion-woo-price-tb,
    body.woocommerce-cart #main .fusion-post-cards .product-card .fusion-woo-price-tb .price {
        justify-content: flex-start !important;
        align-items: flex-start !important;
        text-align: left !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
body.woocommerce-cart #main .fusion-post-cards .product-card .fusion-post-card-cart-add-to-cart {
        display: flex !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
/* Mobile coupon action: same typography as cart summary actions. */
body.woocommerce-cart #main .fusion-apply-coupon,
    body.woocommerce-cart #main .fusion-apply-coupon .fusion-button-text {
        font-family: Poppins, Arial, Helvetica, sans-serif !important;
        font-size: 15px !important;
        font-weight: 400 !important;
        line-height: 20px !important;
        letter-spacing: 0 !important;
        text-transform: uppercase !important;
        text-align: center !important;
    }
body.woocommerce-cart #main .fusion-apply-coupon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 48px !important;
        box-sizing: border-box !important;
    }
/* Mobile coupon text: match the 15px regular cart summary labels. */
body.woocommerce-cart #main .fusion-column-wrapper:has(> .fusion-woo-cart_coupons) > .fusion-title .fusion-title-heading,
    body.woocommerce-cart #main .fusion-woo-cart_coupons input[name="coupon_code"],
    body.woocommerce-cart #main .fusion-woo-cart_coupons input[name="coupon_code"]::placeholder {
        font-family: Poppins, Arial, Helvetica, sans-serif !important;
        font-size: 15px !important;
        font-weight: 400 !important;
        line-height: 20px !important;
        letter-spacing: 0 !important;
    }
}

@media (min-width: 1024px) {
html body.woocommerce-cart #main .fusion-builder-row-3 > .fusion-builder-row:has(> .fusion-builder-column-8):has(> .fusion-builder-column-15) {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
 }
/* Remove the builder row that adds 100px to the totals panel. */
html body.woocommerce-cart #main .fusion-builder-column-15 > .fusion-column-wrapper > .fusion-builder-row-inner { display: contents !important; }
}

/* Cart summary prices: match the 20px product prices. */
html body.woocommerce-cart #main .cart_totals .cart-subtotal > td > .amount,
html body.woocommerce-cart #main .cart_totals .order-total > td > strong > .amount {
 font-size: 20px !important;
}

/* Checkout summary prices: consistent 20px size. */
html body.woocommerce-checkout #main .woocommerce-checkout-review-order-table .cart_item .product-total > .amount,
html body.woocommerce-checkout #main .woocommerce-checkout-review-order-table .cart-subtotal > td > .amount,
html body.woocommerce-checkout #main .woocommerce-checkout-review-order-table .order-total > td > strong > .amount {
 font-size: 20px !important;
}

@media (max-width: 767px) {
/* Mobile checkout billing heading. */
html body.woocommerce-checkout #main .fusion-column-wrapper:has(#billing_first_name) > .fusion-title {
  width: 100% !important;
  justify-content: center !important;
 }
html body.woocommerce-checkout #main .fusion-column-wrapper:has(#billing_first_name) > .fusion-title > h2 {
  font-size: 20px !important;
  line-height: 1.25 !important;
  text-align: center !important;
  width: 100% !important;
 }
}

/* Compact checkout privacy notice. */
html body.woocommerce-checkout #main .woocommerce-privacy-policy-text,
html body.woocommerce-checkout #main .woocommerce-privacy-policy-text p,
html body.woocommerce-checkout #main .woocommerce-privacy-policy-text a {
 font-size: 12px !important;
 line-height: 1.4 !important;
}

/* Compact centered billing type label. */
html body.woocommerce-checkout #main #tip_facturare_field > label {
 display: block !important;
 width: 100% !important;
 font-size: 14px !important;
 line-height: 1.4 !important;
 text-align: center !important;
}

/* Center the empty-cart message independently of the populated cart columns. */
html body.woocommerce-cart #main .fusion-fullwidth:has(a.fusion-button[href="https://imatrend.ro/magazin/"]) > .fusion-builder-row {
 display: flex !important;
 justify-content: center !important;
}

html body.woocommerce-cart #main .fusion-fullwidth:has(a.fusion-button[href="https://imatrend.ro/magazin/"]) .fusion-layout-column {
 width: 100% !important;
 max-width: 100% !important;
 flex: 0 0 100% !important;
 margin-left: 0 !important;
 margin-right: 0 !important;
}

html body.woocommerce-cart #main .fusion-fullwidth:has(a.fusion-button[href="https://imatrend.ro/magazin/"]) .fusion-column-wrapper {
 align-items: center !important;
 text-align: center !important;
 margin-left: 0 !important;
 margin-right: 0 !important;
}
