/* =========================================
   PROPERĀ Austria — WooCommerce Cart
   ========================================= */

body.woocommerce-cart {
    --cart-primary: #063F63;
    --cart-accent: #8F2A91;
    --cart-accent-hover: #762078;
    --cart-border: rgba(6, 63, 99, 0.16);
    --cart-muted: #718394;
    --cart-soft: #F6F8F9;
}

/* Page and main container */
body.woocommerce-cart .site-main,
body.woocommerce-cart .content-area {
    min-width: 0;
}

body.woocommerce-cart .site-main {
    padding-top: 48px;
    padding-bottom: 70px;
}

body.woocommerce-cart .woocommerce {
    width: min(1280px, calc(100% - 48px));
    margin-inline: auto;
    color: var(--cart-primary);
    font-family: "Nunito", sans-serif;
    font-size: 15px;
}

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

/* Page title */
body.woocommerce-cart .entry-title,
body.woocommerce-cart h1,
body.woocommerce-cart .page-title {
    color: var(--cart-primary);
    font-family: "MULTIROUND", "Nunito", sans-serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.15;
}

/* WooCommerce notices */
body.woocommerce-cart .woocommerce-notices-wrapper {
    margin-bottom: 22px;
}

body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error {
    position: relative;
    padding: 20px 20px 20px 48px !important;
    border: 1px solid var(--cart-border);
    border-radius: 10px;
    background: #fff;
    color: var(--cart-primary);
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

body.woocommerce-cart .woocommerce-message::before,
body.woocommerce-cart .woocommerce-info::before,
body.woocommerce-cart .woocommerce-error::before {
    position: absolute !important;
    top: 20px !important;
    left: 18px !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* Cart table */
body.woocommerce-cart table.shop_table {
    width: 100%;
    margin: 0;
    border: 1px solid var(--cart-border);
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #fff;
    color: var(--cart-primary);
    font-family: "Nunito", sans-serif;
    font-size: 14px;
}

body.woocommerce-cart table.shop_table th {
    padding: 17px 14px;
    border: 0;
    border-bottom: 1px solid var(--cart-border);
    background: var(--cart-soft);
    color: var(--cart-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

body.woocommerce-cart table.shop_table td {
    padding: 20px 14px;
    border: 0;
    border-bottom: 1px solid var(--cart-border);
    vertical-align: middle;
}

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

/* Product image and name */
body.woocommerce-cart td.product-thumbnail {
    width: 100px;
}

body.woocommerce-cart td.product-thumbnail img {
    display: block;
    width: 76px;
    height: 76px;
    max-width: 100%;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}

body.woocommerce-cart td.product-name {
    min-width: 180px;
    color: var(--cart-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

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

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

body.woocommerce-cart td.product-name dl.variation {
    margin-top: 7px;
    color: var(--cart-muted);
    font-size: 12px;
    line-height: 1.5;
}

body.woocommerce-cart td.product-name dl.variation dt,
body.woocommerce-cart td.product-name dl.variation dd {
    margin-bottom: 3px;
}

body.woocommerce-cart td.product-price,
body.woocommerce-cart td.product-subtotal {
    color: var(--cart-primary);
    font-size: 14px;
    white-space: nowrap;
}

body.woocommerce-cart td.product-subtotal {
    font-weight: 700;
}

/* Remove item */
body.woocommerce-cart a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: var(--cart-primary) !important;
    font-size: 20px;
    font-weight: 400;
    text-decoration: none;
}

body.woocommerce-cart a.remove:hover {
    background: #F8EFF8;
    color: var(--cart-accent) !important;
}

/* Quantity control (including +/- buttons from the quantity plugin) */
body.woocommerce-cart td.product-quantity {
    vertical-align: middle;
    white-space: nowrap;
}

body.woocommerce-cart td.product-quantity .quantity {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 104px !important;
    min-width: 104px !important;
    height: 38px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #cbd8e0 !important;
    border-radius: 7px !important;
    background: #fff !important;
    vertical-align: middle;
}

body.woocommerce-cart td.product-quantity .quantity input.qty {
    display: block !important;
    flex: 1 1 auto !important;
    width: 40px !important;
    min-width: 0 !important;
    max-width: 40px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-right: 1px solid var(--cart-border) !important;
    border-left: 1px solid var(--cart-border) !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: var(--cart-primary) !important;
    font-family: "Nunito", sans-serif !important;
    font-size: 14px !important;
    line-height: 36px !important;
    text-align: center !important;
    text-indent: 0 !important;
    box-shadow: none !important;
    appearance: textfield;
    -moz-appearance: textfield;
}

body.woocommerce-cart td.product-quantity .quantity input.qty::-webkit-inner-spin-button,
body.woocommerce-cart td.product-quantity .quantity input.qty::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

body.woocommerce-cart td.product-quantity .quantity .minus,
body.woocommerce-cart td.product-quantity .quantity .plus {
    display: inline-flex !important;
    flex: 0 0 31px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 31px !important;
    min-width: 31px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: var(--cart-primary) !important;
    font-family: "Nunito", sans-serif !important;
    font-size: 16px !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer;
}

body.woocommerce-cart td.product-quantity .quantity .minus {
    border-right: 1px solid #e1e8ed !important;
}

body.woocommerce-cart td.product-quantity .quantity .plus {
    border-left: 1px solid #e1e8ed !important;
}

body.woocommerce-cart td.product-quantity .quantity .minus:hover,
body.woocommerce-cart td.product-quantity .quantity .plus:hover {
    background: #f7f3f8 !important;
    color: var(--cart-accent) !important;
}

/* Coupon and update-cart controls */
body.woocommerce-cart td.actions {
    padding: 16px !important;
    background: #fff;
}

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

body.woocommerce-cart td.actions .coupon input.input-text {
    width: 230px;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--cart-accent) !important;
    border-radius: 9px !important;
    background: #fff;
    color: var(--cart-primary);
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    box-shadow: none !important;
}

body.woocommerce-cart td.actions .coupon input.input-text:focus {
    outline: none;
    border-color: var(--cart-accent-hover) !important;
}

body.woocommerce-cart button.button,
body.woocommerce-cart a.button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid var(--cart-accent) !important;
    border-radius: 100px !important;
    background: var(--cart-accent) !important;
    color: #fff !important;
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none !important;
    transition: background .2s ease, border-color .2s ease;
}

body.woocommerce-cart button.button:hover,
body.woocommerce-cart a.button:hover,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    border-color: var(--cart-accent-hover) !important;
    background: var(--cart-accent-hover) !important;
    color: #fff !important;
}

body.woocommerce-cart td.actions button[name="update_cart"] {
    float: right;
}

/* Cart totals and checkout */
body.woocommerce-cart .cart-collaterals {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 28px;
    align-items: start;
    margin-top: 26px;
}

body.woocommerce-cart .cart-collaterals::before,
body.woocommerce-cart .cart-collaterals::after {
    display: none;
}

body.woocommerce-cart .cart-collaterals .cross-sells {
    float: none;
    width: 100%;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
    float: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 24px;
    border: 1px solid var(--cart-border);
    border-radius: 12px !important;
    background: #fff;
}

body.woocommerce-cart .cart_totals h2 {
    margin: 0 0 20px;
    color: var(--cart-primary);
    font-family: "MULTIROUND", "Nunito", sans-serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.3;
}

body.woocommerce-cart .cart_totals table.shop_table {
    border: 0;
    border-radius: 0;
}

body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td {
    padding: 13px 0;
    border-bottom: 1px solid var(--cart-border);
    background: transparent;
    font-size: 14px;
    text-transform: none;
}

body.woocommerce-cart .cart_totals table.shop_table th {
    font-weight: 400;
}

body.woocommerce-cart .cart_totals table.shop_table td {
    text-align: right;
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
    padding-top: 18px;
    border-bottom: 0;
    color: var(--cart-primary);
    font-size: 16px;
    font-weight: 700;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-destination {
    margin-top: 8px;
    color: var(--cart-muted);
    font-size: 12px;
    line-height: 1.5;
}

body.woocommerce-cart .cart_totals .shipping-calculator-button {
    color: var(--cart-accent);
    font-size: 13px;
}

body.woocommerce-cart .wc-proceed-to-checkout {
    width: 100%;
    max-width: 100%;
    padding: 16px 0 0;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    box-sizing: border-box !important;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

body.woocommerce-cart .cart-collaterals .cart_totals > *,
body.woocommerce-cart .cart-collaterals .cart_totals .payment_methods,
body.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout,
body.woocommerce-cart .cart_totals iframe,
body.woocommerce-cart .cart_totals img {
    max-width: 100%;
}

/* Empty cart */
body.woocommerce-cart .return-to-shop {
    margin-top: 24px;
}

body.woocommerce-cart .cart-empty {
    padding: 24px;
    border: 1px solid var(--cart-border);
    border-radius: 12px;
    background: var(--cart-soft);
    color: var(--cart-primary);
    text-align: center;
}

/* Tablet */
@media (max-width: 900px) {
    body.woocommerce-cart .cart-collaterals {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 650px) {
    body.woocommerce-cart .site-main {
        padding-top: 30px;
        padding-bottom: 45px;
    }

    body.woocommerce-cart .woocommerce {
        width: calc(100% - 28px) !important;
        max-width: 100%;
        min-width: 0;
        margin-inline: auto !important;
        font-size: 13px;
    }

    body.woocommerce-cart .entry-title,
    body.woocommerce-cart h1,
    body.woocommerce-cart .page-title {
        font-size: 30px;
    }

    body.woocommerce-cart .woocommerce-message,
    body.woocommerce-cart .woocommerce-info,
    body.woocommerce-cart .woocommerce-error {
        width: 100%;
        max-width: 100%;
        padding: 15px 14px 15px 42px !important;
        overflow-wrap: anywhere;
    }

    body.woocommerce-cart .woocommerce-message::before,
    body.woocommerce-cart .woocommerce-info::before,
    body.woocommerce-cart .woocommerce-error::before {
        top: 15px !important;
        left: 14px !important;
    }

    /* Product row becomes a compact card */
    body.woocommerce-cart table.shop_table {
        display: block;
        width: 100% !important;
        max-width: 100%;
        border-radius: 10px;
        overflow: hidden;
    }

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

    body.woocommerce-cart table.shop_table tbody {
        display: block;
        width: 100%;
        min-width: 0;
    }

    body.woocommerce-cart table.shop_table tr.cart_item {
        position: relative;
        display: grid !important;
        grid-template-columns: 76px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 8px;
        width: 100%;
        min-width: 0;
        padding: 14px;
        border-bottom: 1px solid var(--cart-border);
    }

    body.woocommerce-cart table.shop_table tr.cart_item td {
        display: block !important;
        width: auto !important;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        padding: 0 !important;
        border: 0 !important;
        text-align: left;
        overflow-wrap: anywhere;
    }

    body.woocommerce-cart table.shop_table tr.cart_item td::before {
        display: none !important;
        content: none !important;
    }

    body.woocommerce-cart table.shop_table tr.cart_item td.product-thumbnail {
        grid-column: 1;
        grid-row: 1 / span 3;
        width: 76px !important;
        padding-bottom: 0;
    }

    body.woocommerce-cart td.product-thumbnail img {
        width: 76px !important;
        height: 76px !important;
        max-width: 100%;
        margin: 0;
    }

    body.woocommerce-cart table.shop_table tr.cart_item td.product-name {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        padding-right: 18px !important;
        font-size: 13px;
        line-height: 1.45;
    }

    body.woocommerce-cart td.product-name dl.variation {
        margin: 5px 0 0;
        font-size: 12px;
    }

    body.woocommerce-cart table.shop_table tr.cart_item td.product-price {
        grid-column: 2;
        grid-row: 2;
        font-size: 13px;
        white-space: normal;
    }

    body.woocommerce-cart table.shop_table tr.cart_item td.product-quantity {
        grid-column: 2;
        grid-row: 3;
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
        padding-top: 4px !important;
        white-space: normal;
    }

    body.woocommerce-cart table.shop_table tr.cart_item td.product-subtotal {
        grid-column: 2;
        grid-row: 4;
        font-size: 13px;
        font-weight: 700;
        text-align: left;
    }

    body.woocommerce-cart table.shop_table tr.cart_item td.product-remove {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        display: block !important;
        width: 24px !important;
        padding: 0 !important;
    }

    body.woocommerce-cart td.product-name a.remove,
    body.woocommerce-cart td.product-name .remove,
    body.woocommerce-cart td.product-name .quantity,
    body.woocommerce-cart td.product-price .quantity,
    body.woocommerce-cart td.product-subtotal .quantity {
        display: none !important;
    }

    body.woocommerce-cart td.product-remove a.remove {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        margin: 0;
    }

    /* Quantity control: fixed columns keep the number centered */
    body.woocommerce-cart table.shop_table td.product-quantity .quantity {
        display: grid !important;
        grid-template-columns: 32px 38px 32px !important;
        grid-template-rows: 36px !important;
        align-items: stretch !important;
        justify-content: center !important;
        gap: 0 !important;
        flex: 0 0 102px;
        width: 102px !important;
        min-width: 102px !important;
        max-width: 102px !important;
        height: 36px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 1px solid #cbd8e0 !important;
        border-radius: 7px !important;
        background: #fff !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart table.shop_table td.product-quantity .quantity input.qty {
        display: block !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        height: 34px !important;
        min-height: 34px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-right: 1px solid #e1e8ed !important;
        border-left: 1px solid #e1e8ed !important;
        border-radius: 0 !important;
        background: #fff !important;
        color: var(--cart-primary) !important;
        font-family: "Nunito", sans-serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 34px !important;
        text-align: center !important;
        text-indent: 0 !important;
        box-shadow: none !important;
        appearance: textfield !important;
        -moz-appearance: textfield !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart table.shop_table td.product-quantity .quantity .minus,
    body.woocommerce-cart table.shop_table td.product-quantity .quantity .plus {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        height: 34px !important;
        min-height: 34px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        color: var(--cart-primary) !important;
        font-family: "Nunito", sans-serif !important;
        font-size: 15px !important;
        line-height: 1 !important;
        text-align: center !important;
        text-indent: 0 !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart table.shop_table td.product-quantity .quantity .minus {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    body.woocommerce-cart table.shop_table td.product-quantity .quantity .plus {
        grid-column: 3 !important;
        grid-row: 1 !important;
    }

    body.woocommerce-cart table.shop_table td.product-quantity .quantity .minus:hover,
    body.woocommerce-cart table.shop_table td.product-quantity .quantity .plus:hover {
        background: #f7f3f8 !important;
        color: var(--cart-accent) !important;
    }

    /* Coupon and update buttons fill the card width */
    body.woocommerce-cart form.woocommerce-cart-form td.actions {
        display: block !important;
        width: 100% !important;
        padding: 14px !important;
    }

    body.woocommerce-cart form.woocommerce-cart-form td.actions .ct-cart-form-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    body.woocommerce-cart form.woocommerce-cart-form td.actions .ct-cart-form-actions > .coupon {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        float: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
    }

    body.woocommerce-cart form.woocommerce-cart-form td.actions .ct-cart-form-actions > .coupon > #coupon_code,
    body.woocommerce-cart form.woocommerce-cart-form td.actions .ct-cart-form-actions > .coupon > button[name="apply_coupon"],
    body.woocommerce-cart form.woocommerce-cart-form td.actions .ct-cart-form-actions > button[name="update_cart"] {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        float: none !important;
        flex: 0 0 44px !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart form.woocommerce-cart-form td.actions .ct-cart-form-actions > .coupon > #coupon_code {
        padding: 0 13px;
    }

    /* Totals and payment buttons */
    body.woocommerce-cart .cart-collaterals {
        display: block !important;
        width: 100%;
        margin-top: 20px;
    }

    body.woocommerce-cart .cart-collaterals .cart_totals {
        float: none !important;
        width: 100% !important;
        min-width: 0;
        max-width: 100% !important;
        margin: 0;
        padding: 18px;
        overflow: hidden;
    }

    body.woocommerce-cart .cart_totals table.shop_table {
        display: table;
        width: 100% !important;
        overflow: visible;
        border: 0;
    }

    body.woocommerce-cart .cart_totals table.shop_table tbody {
        display: table-row-group;
    }

    body.woocommerce-cart .cart_totals table.shop_table tr {
        display: table-row;
        width: auto;
        padding: 0;
        border: 0;
    }

    body.woocommerce-cart .cart_totals table.shop_table th,
    body.woocommerce-cart .cart_totals table.shop_table td {
        display: table-cell !important;
        width: auto !important;
        padding: 12px 0 !important;
        overflow-wrap: anywhere;
        vertical-align: top;
    }

    body.woocommerce-cart .cart_totals table.shop_table td {
        text-align: right;
    }

    body.woocommerce-cart .wc-proceed-to-checkout,
    body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart .cart_totals iframe,
    body.woocommerce-cart .cart_totals img {
        max-width: 100%;
    }
}








/* Cart page title */
body.woocommerce-cart .cart-page-title {
    width: auto;
    max-width: none;
    margin: 0 0 28px;
    padding: 0;

    color: #063F63;
    font-family: "MULTIROUND", "Nunito", sans-serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
}

@media (max-width: 650px) {
    body.woocommerce-cart .cart-page-title {
        margin-bottom: 20px;
        font-size: 30px;
    }
}
