body.fu-bd-cart {
    --fu-green: #08a83b;
    --fu-green-dark: #087b31;
    --fu-text: #172019;
    --fu-muted: #6a736d;
    --fu-bg: #eef9f1;
    --fu-bg-soft: #f8fcf9;
    --fu-border: #e2e8e3;
    --fu-radius: 18px;
    --fu-width: 1280px;
    --fu-shadow: 0 14px 38px rgba(8, 123, 49, .09);
    color: var(--fu-text);
}

body.fu-bd-cart .site-main,
body.fu-bd-cart main {
    width: min(calc(100% - 40px), var(--fu-width));
    max-width: var(--fu-width);
    margin: 42px auto 70px;
}

body.fu-bd-cart .entry-title {
    margin: 0 0 28px;
    color: var(--fu-text);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 750;
    line-height: 1.08;
}

/* Övergripande tvåkolumnslayout */

body.fu-bd-cart .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(340px, .9fr);
    gap: 28px;
    align-items: start;
}

body.fu-bd-cart .woocommerce > .woocommerce-notices-wrapper,
body.fu-bd-cart .woocommerce > .woocommerce-message,
body.fu-bd-cart .woocommerce > .woocommerce-error,
body.fu-bd-cart .woocommerce > .woocommerce-info {
    grid-column: 1 / -1;
}

body.fu-bd-cart .woocommerce-cart-form {
    grid-column: 1;
    margin: 0;
}

body.fu-bd-cart .cart-collaterals {
    grid-column: 2;
    width: 100%;
    margin: 0;
}

/* Produktlista */

body.fu-bd-cart table.shop_table {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--fu-border);
    border-radius: var(--fu-radius);
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    box-shadow: var(--fu-shadow);
}

body.fu-bd-cart table.shop_table thead {
    background: var(--fu-bg-soft);
}

body.fu-bd-cart table.shop_table th {
    padding: 17px 14px;
    border: 0;
    border-bottom: 1px solid var(--fu-border);
    color: var(--fu-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: none;
}

body.fu-bd-cart table.shop_table td {
    padding: 18px 14px;
    border: 0;
    border-bottom: 1px solid var(--fu-border);
    vertical-align: middle;
    color: var(--fu-text);
}

body.fu-bd-cart table.shop_table tr:last-child td {
    border-bottom: 0;
}

body.fu-bd-cart td.product-remove {
    width: 34px;
    padding-right: 2px;
    text-align: center;
}

body.fu-bd-cart a.remove {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: var(--fu-muted) !important;
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
}

body.fu-bd-cart a.remove:hover {
    background: #fff0f0;
    color: #c62828 !important;
}

body.fu-bd-cart td.product-thumbnail {
    width: 82px;
}

body.fu-bd-cart td.product-thumbnail img {
    display: block;
    width: 68px;
    height: 68px;
    padding: 5px;
    border-radius: 12px;
    background: var(--fu-bg-soft);
    object-fit: contain;
}

body.fu-bd-cart td.product-name a {
    color: var(--fu-text);
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

body.fu-bd-cart td.product-name a:hover {
    color: var(--fu-green-dark);
}

body.fu-bd-cart td.product-price,
body.fu-bd-cart td.product-subtotal {
    font-weight: 700;
    white-space: nowrap;
}

body.fu-bd-cart .quantity .qty {
    width: 68px;
    min-height: 42px;
    padding: 7px;
    border: 1px solid var(--fu-border);
    border-radius: 10px;
    background: #fff;
    color: var(--fu-text);
    text-align: center;
}

/* Uppdatera varukorg och rabattkod */

body.fu-bd-cart td.actions {
    padding: 18px !important;
    background: var(--fu-bg-soft);
}

body.fu-bd-cart td.actions .coupon {
    display: flex;
    gap: 10px;
}

body.fu-bd-cart td.actions .coupon #coupon_code {
    width: min(260px, 100%);
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--fu-border);
    border-radius: 12px;
    background: #fff;
}

body.fu-bd-cart button.button,
body.fu-bd-cart a.button,
body.fu-bd-cart .wc-forward {
    min-height: 44px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--fu-green);
    color: #fff;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

body.fu-bd-cart button.button:hover,
body.fu-bd-cart a.button:hover,
body.fu-bd-cart .wc-forward:hover {
    background: var(--fu-green-dark);
    color: #fff;
}

body.fu-bd-cart button.button:disabled,
body.fu-bd-cart button.button:disabled[disabled] {
    background: #dce7df;
    color: #849188;
    opacity: 1;
}

/* Summering */

body.fu-bd-cart .cart_totals {
    float: none;
    width: 100%;
    margin: 0;
    padding: 26px;
    border: 1px solid var(--fu-border);
    border-radius: var(--fu-radius);
    background: #fff;
    box-shadow: var(--fu-shadow);
}

body.fu-bd-cart .cart_totals h2 {
    margin: 0 0 18px;
    color: var(--fu-text);
    font-size: 24px;
    line-height: 1.2;
}

body.fu-bd-cart .cart_totals table {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.fu-bd-cart .cart_totals table th,
body.fu-bd-cart .cart_totals table td {
    padding: 13px 0;
    border-bottom: 1px solid var(--fu-border);
    background: transparent;
    text-align: left;
}

body.fu-bd-cart .cart_totals table td {
    text-align: right;
}

body.fu-bd-cart .cart_totals .order-total th,
body.fu-bd-cart .cart_totals .order-total td {
    padding-top: 18px;
    border-bottom: 0;
    color: var(--fu-text);
    font-size: 18px;
    font-weight: 800;
}

body.fu-bd-cart .wc-proceed-to-checkout {
    padding: 20px 0 0;
}

body.fu-bd-cart .wc-proceed-to-checkout .checkout-button {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 16px;
}

/* Rekommenderade produkter */

body.fu-bd-cart .cross-sells {
    float: none;
    width: 100%;
    margin-top: 28px;
}

body.fu-bd-cart .cross-sells > h2 {
    margin: 0 0 16px;
    color: var(--fu-text);
    font-size: 26px;
    line-height: 1.15;
}

body.fu-bd-cart .cross-sells ul.products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

body.fu-bd-cart .cross-sells ul.products::before,
body.fu-bd-cart .cross-sells ul.products::after {
    display: none;
}

body.fu-bd-cart .cross-sells ul.products li.product {
    display: flex;
    width: auto !important;
    min-width: 0;
    height: 100%;
    margin: 0 !important;
    padding: 12px;
    flex-direction: column;
    border: 1px solid var(--fu-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(8, 123, 49, .06);
}

body.fu-bd-cart .cross-sells li.product a.woocommerce-LoopProduct-link {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    color: var(--fu-text);
    text-decoration: none;
}

body.fu-bd-cart .cross-sells li.product img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    margin: 0 0 12px;
    padding: 6px;
    border-radius: 12px;
    background: var(--fu-bg-soft);
    object-fit: contain;
}

body.fu-bd-cart .cross-sells li.product .woocommerce-loop-product__title {
    margin: 0 0 10px;
    padding: 0;
    color: var(--fu-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

body.fu-bd-cart .cross-sells li.product .price {
    margin-top: auto;
    color: var(--fu-text);
    font-size: 15px;
    font-weight: 800;
}

body.fu-bd-cart .cross-sells li.product .price del {
    color: var(--fu-muted);
    font-size: 12px;
    font-weight: 500;
}

body.fu-bd-cart .cross-sells li.product .price ins {
    color: #c90000;
    text-decoration: none;
}

body.fu-bd-cart .cross-sells li.product .button {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin: 14px 0 0;
    padding: 10px 8px;
    font-size: 13px;
}

/* WooCommerce Blocks om blocklayouten laddas */

body.fu-bd-cart .wc-block-cart {
    width: 100%;
}

body.fu-bd-cart .wc-block-components-sidebar-layout {
    gap: 28px;
}

body.fu-bd-cart .wc-block-components-sidebar,
body.fu-bd-cart .wc-block-components-main {
    border-color: var(--fu-border);
}

body.fu-bd-cart .wc-block-cart__submit-button {
    border-radius: 999px;
    background: var(--fu-green);
    color: #fff;
    font-weight: 750;
}

/* Mobil */

@media (max-width: 767px) {
    body.fu-bd-cart .site-main,
    body.fu-bd-cart main {
        width: min(calc(100% - 20px), var(--fu-width));
        margin-top: 22px;
        margin-bottom: 45px;
    }

    body.fu-bd-cart .woocommerce {
        display: block;
    }

    body.fu-bd-cart .woocommerce-cart-form {
        margin-bottom: 18px;
    }

    body.fu-bd-cart table.shop_table {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body.fu-bd-cart table.shop_table thead {
        display: none;
    }

    body.fu-bd-cart table.shop_table tbody,
    body.fu-bd-cart table.shop_table tr,
    body.fu-bd-cart table.shop_table td {
        display: block;
        width: 100%;
    }

    body.fu-bd-cart table.shop_table tr.cart_item {
        position: relative;
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 8px 14px;
        margin-bottom: 14px;
        padding: 16px;
        border: 1px solid var(--fu-border);
        border-radius: var(--fu-radius);
        background: #fff;
        box-shadow: 0 8px 24px rgba(8, 123, 49, .06);
    }

    body.fu-bd-cart table.shop_table tr.cart_item td {
        padding: 0;
        border: 0;
    }

    body.fu-bd-cart tr.cart_item td.product-remove {
        position: absolute;
        z-index: 2;
        top: 10px;
        right: 10px;
        width: 28px;
    }

    body.fu-bd-cart tr.cart_item td.product-thumbnail {
        grid-column: 1;
        grid-row: 1 / span 4;
        width: 92px;
    }

    body.fu-bd-cart tr.cart_item td.product-thumbnail::before {
        display: none;
    }

    body.fu-bd-cart tr.cart_item td.product-thumbnail img {
        width: 92px;
        height: 92px;
        padding: 5px;
    }

    body.fu-bd-cart tr.cart_item td.product-name,
    body.fu-bd-cart tr.cart_item td.product-price,
    body.fu-bd-cart tr.cart_item td.product-quantity,
    body.fu-bd-cart tr.cart_item td.product-subtotal {
        grid-column: 2;
        padding-right: 28px;
        text-align: left;
    }

    body.fu-bd-cart tr.cart_item td.product-name {
        padding-top: 3px;
    }

    body.fu-bd-cart tr.cart_item td.product-price::before,
    body.fu-bd-cart tr.cart_item td.product-quantity::before,
    body.fu-bd-cart tr.cart_item td.product-subtotal::before {
        display: inline;
        float: none;
        margin-right: 6px;
        color: var(--fu-muted);
        font-weight: 600;
    }

    body.fu-bd-cart tr.cart_item td.product-name::before {
        display: none;
    }

    body.fu-bd-cart .quantity {
        display: inline-block;
    }

    body.fu-bd-cart .quantity .qty {
        width: 58px;
        min-height: 36px;
    }

    body.fu-bd-cart td.actions {
        display: block;
        margin-top: 4px;
        padding: 14px !important;
        border: 1px solid var(--fu-border) !important;
        border-radius: var(--fu-radius);
        background: var(--fu-bg-soft);
    }

    body.fu-bd-cart td.actions .coupon {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 10px;
    }

    body.fu-bd-cart td.actions .coupon #coupon_code,
    body.fu-bd-cart td.actions .coupon .button,
    body.fu-bd-cart td.actions > .button {
        width: 100%;
        margin: 0 0 10px;
    }

    body.fu-bd-cart .cart_totals {
        padding: 20px;
    }

    body.fu-bd-cart .cross-sells {
        margin-top: 30px;
        overflow: hidden;
    }

    body.fu-bd-cart .cross-sells > h2 {
        font-size: 24px;
    }

    body.fu-bd-cart .cross-sells ul.products {
        display: flex;
        width: auto;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding: 2px 2px 12px;
    }

    body.fu-bd-cart .cross-sells ul.products::-webkit-scrollbar {
        display: none;
    }

    body.fu-bd-cart .cross-sells ul.products li.product {
        width: min(72vw, 260px) !important;
        min-width: min(72vw, 260px);
        scroll-snap-align: start;
    }

    body.fu-bd-cart .wc-block-components-sidebar-layout {
        display: block;
    }
}

/* Säkerställ full modern innehållsbredd trots äldre tema-/sidregler */

body.fu-bd-cart .site-main {
    width: 100% !important;
    max-width: none !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
}

body.fu-bd-cart .site-main > article,
body.fu-bd-cart .site-main .page-content,
body.fu-bd-cart .site-main .entry-content {
    width: min(100%, 1280px) !important;
    max-width: 1280px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

body.fu-bd-cart .site-main .woocommerce {
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: minmax(0, 2fr) minmax(400px, 1fr) !important;
}

body.fu-bd-cart .woocommerce-cart-form,
body.fu-bd-cart .cart-collaterals,
body.fu-bd-cart .cart-collaterals .cart_totals,
body.fu-bd-cart .cart-collaterals .cross-sells {
    width: 100% !important;
    max-width: none !important;
}

@media (max-width: 900px) {
    body.fu-bd-cart .site-main {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    body.fu-bd-cart .site-main .woocommerce {
        display: block !important;
    }
}

/* Elementor-mall 3361 – korrekt bredd och kolumnstruktur */

body.fu-bd-cart .elementor-3361 .elementor-element.elementor-element-da358b4 {
    --content-width: 1280px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 42px auto 70px !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
}

body.fu-bd-cart .elementor-3361 .elementor-element.elementor-element-da358b4 > .e-con-inner {
    width: 100% !important;
    max-width: 1280px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

body.fu-bd-cart .elementor-3361 .elementor-element.elementor-element-b2a84b0 {
    width: 100% !important;
    max-width: none !important;
}

body.fu-bd-cart .elementor-3361 .elementor-element.elementor-element-b2a84b0 .woocommerce {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
}

body.fu-bd-cart .elementor-3361 .elementor-element.elementor-element-b2a84b0 .e-cart__container {
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: minmax(0, 2fr) minmax(390px, 1fr) !important;
    gap: 28px !important;
    align-items: start !important;
}

body.fu-bd-cart .elementor-3361 .e-cart__column-start,
body.fu-bd-cart .elementor-3361 .e-cart__column-end {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

body.fu-bd-cart .elementor-3361 .cart-collaterals {
    display: block !important;
}

@media (max-width: 900px) {
    body.fu-bd-cart .elementor-3361 .elementor-element.elementor-element-da358b4 {
        margin-top: 22px !important;
        margin-bottom: 45px !important;
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    body.fu-bd-cart .elementor-3361 .elementor-element.elementor-element-b2a84b0 .e-cart__container {
        display: block !important;
    }

    body.fu-bd-cart .elementor-3361 .e-cart__column-start {
        margin-bottom: 18px !important;
    }
}

/* Renare Elementor-kolumner */

body.fu-bd-cart .elementor-3361 .e-cart__column-start,
body.fu-bd-cart .elementor-3361 .e-cart__column-end {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.fu-bd-cart .elementor-3361 .fu-bd-cart-cross-sells {
    width: 100% !important;
    max-width: none !important;
    margin: 42px 0 0 !important;
    padding: 0 !important;
}

body.fu-bd-cart .elementor-3361 .fu-bd-cart-cross-sells > h2 {
    font-size: 30px;
}

body.fu-bd-cart .elementor-3361 .fu-bd-cart-cross-sells ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

body.fu-bd-cart .elementor-3361 .fu-bd-cart-cross-sells ul.products li.product {
    width: 100% !important;
}

/* Mobiljusteringar */

@media (max-width: 900px) {
    body.fu-bd-cart .elementor-3361 .e-cart__column-start,
    body.fu-bd-cart .elementor-3361 .e-cart__column-end {
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    body.fu-bd-cart table.shop_table tr.cart_item {
        grid-template-columns: 96px minmax(0, 1fr) !important;
        padding: 16px !important;
    }

    body.fu-bd-cart tr.cart_item td.product-name {
        padding-right: 34px !important;
    }

    body.fu-bd-cart tr.cart_item td.product-remove {
        top: 8px !important;
        right: 8px !important;
    }

    body.fu-bd-cart tr.cart_item td.product-remove a.remove {
        display: grid !important;
        width: 30px !important;
        height: 30px !important;
        place-items: center !important;
        border-radius: 50% !important;
        background: #fff0f0 !important;
        color: #b42318 !important;
    }

    body.fu-bd-cart .elementor-3361 .fu-bd-cart-cross-sells {
        margin-top: 30px !important;
        overflow: hidden !important;
    }

    body.fu-bd-cart .elementor-3361 .fu-bd-cart-cross-sells > h2 {
        font-size: 24px;
    }

    body.fu-bd-cart .elementor-3361 .fu-bd-cart-cross-sells ul.products {
        display: flex !important;
        gap: 12px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    body.fu-bd-cart .elementor-3361 .fu-bd-cart-cross-sells ul.products li.product {
        width: min(72vw, 270px) !important;
        min-width: min(72vw, 270px) !important;
        scroll-snap-align: start;
    }
}

/* Slutputsning – ta bort Elementors kantiga ytterramar */

body.fu-bd-cart .elementor-3361 .e-shop-table,
body.fu-bd-cart .elementor-3361 .e-cart-totals {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.fu-bd-cart .elementor-3361 .e-shop-table {
    padding: 0 !important;
}

body.fu-bd-cart .elementor-3361 .e-cart-totals {
    padding: 0 !important;
}

body.fu-bd-cart .elementor-3361 .e-coupon-box {
    margin-top: 18px !important;
    padding: 18px !important;
    border: 1px solid var(--fu-border) !important;
    border-radius: var(--fu-radius) !important;
    background: var(--fu-bg-soft) !important;
    box-shadow: 0 8px 24px rgba(8, 123, 49, .05) !important;
}

body.fu-bd-cart .elementor-3361 .e-coupon-box .coupon {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
    align-items: center !important;
}

body.fu-bd-cart .elementor-3361 .e-coupon-box input {
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    border: 1px solid var(--fu-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
}

body.fu-bd-cart .elementor-3361 .e-coupon-box button {
    min-width: 170px !important;
    margin: 0 !important;
}

@media (max-width: 767px) {
    body.fu-bd-cart .elementor-3361 .e-coupon-box {
        padding: 14px !important;
    }

    body.fu-bd-cart .elementor-3361 .e-coupon-box .coupon {
        grid-template-columns: 1fr !important;
    }

    body.fu-bd-cart .elementor-3361 .e-coupon-box button {
        width: 100% !important;
        min-width: 0 !important;
    }
}
