/* Clean, compact cart and add-to-cart feedback. */
.woocommerce .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce .woocommerce-message {
    position: relative;
    display: flex;
    width: min(100%, 720px);
    min-height: 56px;
    align-items: center;
    gap: 16px;
    margin: 0 auto 22px !important;
    padding: 13px 16px 13px 48px !important;
    overflow: hidden;
    border: 1px solid var(--sisli-line, #d7e7e5) !important;
    border-left: 4px solid var(--sisli-accent, #126a70) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--sisli-ink, #213b40) !important;
    box-shadow: 0 8px 22px rgb(20 59 64 / 5%) !important;
    line-height: 1.45;
}
.woocommerce .woocommerce-message::before {
    left: 16px !important;
    top: 50% !important;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    margin: 0 !important;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--sisli-accent, #126a70);
    color: #fff !important;
    font-size: 13px;
    line-height: 1;
}
.woocommerce .woocommerce-message:focus { outline: 0 !important; }
.woocommerce .woocommerce-message .sisli-cart-notice-copy {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 2px;
}
.woocommerce .woocommerce-message .sisli-cart-notice-copy strong { font-size: 14px; }
.woocommerce .woocommerce-message .sisli-cart-notice-copy small {
    overflow: hidden;
    color: #617278;
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.woocommerce .woocommerce-message .button {
    order: 2;
    flex: 0 0 auto;
    min-height: 42px;
    margin: 0 0 0 auto !important;
    padding: 11px 18px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: var(--sisli-accent, #126a70) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}
.woocommerce .woocommerce-message.sisli-add-toast,
.woocommerce .woocommerce-message:has(.sisli-cart-notice-copy) {
    position: fixed;
    z-index: 10020;
    top: 92px;
    right: 24px;
    width: min(380px, calc(100% - 32px));
    margin: 0 !important;
    box-shadow: 0 16px 44px rgb(20 59 64 / 14%) !important;
    transition: opacity .2s ease, transform .2s ease;
}
.woocommerce .woocommerce-message.sisli-add-toast.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
}
.sisli-cart-toast {
    position: fixed;
    z-index: 10030;
    right: 24px;
    bottom: 24px;
    display: flex;
    min-width: 220px;
    max-width: min(360px, calc(100% - 32px));
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    transform: translateY(12px);
    border: 1px solid #cfe1dd;
    border-radius: 10px;
    background: #fff;
    color: var(--sisli-deep, #143b40);
    box-shadow: 0 14px 38px rgb(20 59 64 / 15%);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
}
.sisli-cart-toast.is-visible { transform: translateY(0); opacity: 1; }
.sisli-cart-toast > span {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--sisli-accent, #126a70);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}
.sisli-cart-toast strong { font-size: 14px; line-height: 1.35; }
.sisli-cart-toast.is-error > span { background: #a9362d; }

body.woocommerce-cart .sisli-commerce-shell {
    width: min(1120px, calc(100% - 48px));
    padding-top: 42px;
    padding-bottom: 72px;
}
body.woocommerce-cart .sisli-source-reference,
body.woocommerce-checkout .sisli-source-reference { display: none !important; }
body.woocommerce-cart .sisli-commerce-shell > .woocommerce { width: 100%; }
body.woocommerce-cart .woocommerce > h1,
body.woocommerce-cart .entry-title {
    margin: 0 0 24px;
    color: var(--sisli-deep, #143b40);
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -.035em;
}
.woocommerce-cart .woocommerce-cart-form {
    width: 100%;
    padding: 8px 22px 20px;
    border: 1px solid var(--sisli-line, #d7e7e5);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 34px rgb(20 59 64 / 5%);
}
.woocommerce-cart .woocommerce-cart-form.processing { pointer-events: none; opacity: .72; }
.woocommerce-cart table.shop_table {
    width: 100%;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
}
.woocommerce-cart table.shop_table thead th {
    padding: 16px 12px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--sisli-line, #d7e7e5) !important;
    background: transparent !important;
    color: #617278 !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.woocommerce-cart table.shop_table tbody td {
    padding: 20px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--sisli-line, #d7e7e5) !important;
    background: #fff !important;
    color: var(--sisli-ink, #213b40);
    vertical-align: middle !important;
}
.woocommerce-cart table.shop_table .product-remove { width: 46px; padding-left: 2px !important; }
.woocommerce-cart table.shop_table .product-remove a {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #e4e9e7;
    border-radius: 50%;
    color: #7d8987 !important;
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
}
.woocommerce-cart table.shop_table .product-remove a:is(:hover, :focus-visible) {
    border-color: #c85f56;
    background: #fff5f4;
    color: #a9362d !important;
}
.woocommerce-cart table.shop_table .product-thumbnail { width: 88px; }
.woocommerce-cart table.shop_table .product-name { width: auto; }
.woocommerce-cart table.shop_table .product-price { width: 150px; }
.woocommerce-cart table.shop_table .product-quantity { width: 160px; }
.woocommerce-cart table.shop_table .product-subtotal { width: 160px; }
.woocommerce-cart table.shop_table thead .product-quantity,
.woocommerce-cart table.shop_table tbody .product-quantity { text-align: center !important; }
.woocommerce-cart table.shop_table .product-thumbnail img {
    display: block;
    width: 68px !important;
    height: 68px !important;
    object-fit: contain;
    border: 1px solid #edf1ef;
    border-radius: 9px;
    background: #f8fbf9;
}
.woocommerce-cart table.shop_table .product-name a {
    color: var(--sisli-deep, #143b40);
    font-size: 16px;
    font-weight: 700;
}
.woocommerce-cart table.shop_table .product-price,
.woocommerce-cart table.shop_table .product-subtotal { white-space: nowrap; font-weight: 700; }
.woocommerce-cart table.shop_table .quantity .qty {
    width: 48px;
    min-height: 44px;
    padding: 8px 4px;
    border: 0;
    border-right: 1px solid #d6e1df;
    border-left: 1px solid #d6e1df;
    border-radius: 0;
    background: #fff;
    color: var(--sisli-deep, #143b40);
    font: 700 16px/1 system-ui, sans-serif;
    text-align: center;
}
.woocommerce-cart table.shop_table .quantity .qty::-webkit-inner-spin-button,
.woocommerce-cart table.shop_table .quantity .qty::-webkit-outer-spin-button { margin: 0; appearance: none; }
.woocommerce-cart table.shop_table .quantity .qty { appearance: textfield; }
.woocommerce-cart .sisli-qty-stepper {
    display: inline-grid;
    grid-template-columns: 42px 48px 42px;
    overflow: hidden;
    border: 1px solid #cfdcda;
    border-radius: 10px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.woocommerce-cart .sisli-qty-stepper:focus-within {
    border-color: var(--sisli-accent, #126a70);
    box-shadow: 0 0 0 3px rgb(18 106 112 / 11%);
}
.woocommerce-cart .sisli-qty-stepper button {
    display: grid;
    min-width: 0;
    min-height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #f7faf9;
    color: var(--sisli-deep, #143b40);
    font: 700 20px/1 system-ui, sans-serif;
    cursor: pointer;
}
.woocommerce-cart .sisli-qty-stepper button:is(:hover, :focus-visible):not(:disabled) { background: #e9f3f1; }
.woocommerce-cart .sisli-qty-stepper button:disabled { color: #b7c2c0; cursor: default; opacity: 1; }
.woocommerce-cart .sisli-qty-stepper.is-loading { opacity: .62; }
.woocommerce-cart .sisli-fixed-quantity {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--sisli-mist, #e7f4f3);
    color: var(--sisli-deep, #143b40);
    font-weight: 700;
}
.woocommerce-cart table.shop_table td.actions {
    padding: 16px 0 0 !important;
    border: 0 !important;
}
.woocommerce-cart table.shop_table td.actions .coupon {
    display: inline-flex;
    max-width: 430px;
    gap: 8px;
}
.woocommerce-cart table.shop_table td.actions .coupon .input-text {
    width: 180px !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid #cfdcda !important;
    border-radius: 8px !important;
    background: #fff;
    font-size: 15px;
}
.woocommerce-cart table.shop_table td.actions .button {
    min-height: 44px;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    background: var(--sisli-accent, #126a70) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}
.woocommerce-cart table.shop_table td.actions > .button[name="update_cart"] {
    display: none !important;
}
.woocommerce-cart table.shop_table td.actions > .button[disabled] { opacity: .45; }

.woocommerce-cart .cart-collaterals {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    margin-top: 24px;
}
.woocommerce-cart .cart-collaterals::before,
.woocommerce-cart .cart-collaterals::after { display: none !important; }
.woocommerce-cart .cart-collaterals .cart_totals {
    float: none !important;
    width: min(100%, 460px) !important;
    padding: 24px;
    border: 1px solid var(--sisli-line, #d7e7e5);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 34px rgb(20 59 64 / 5%);
}
.woocommerce-cart .cart_totals h2 {
    margin: 0 0 16px;
    color: var(--sisli-deep, #143b40);
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -.02em;
}
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
    padding: 14px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--sisli-line, #d7e7e5) !important;
    background: #fff !important;
    color: var(--sisli-ink, #213b40) !important;
    font-size: 15px;
    text-align: left;
}
.woocommerce-cart .cart_totals table.shop_table td { text-align: right; }
.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
    border-bottom: 0 !important;
    color: var(--sisli-deep, #143b40) !important;
    font-size: 20px;
}
.woocommerce-cart .sisli-cart-payment td strong,
.woocommerce-cart .sisli-cart-payment td small { display: block; }
.woocommerce-cart .sisli-cart-payment td small {
    margin-top: 3px;
    color: #6a7c7b;
    font-size: 12px;
    font-weight: 400;
}
.woocommerce-cart .wc-proceed-to-checkout { padding: 16px 0 0 !important; }
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    display: flex !important;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 14px 18px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--sisli-accent, #126a70) !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-align: center;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:is(:hover, :focus-visible) {
    background: var(--sisli-deep, #143b40) !important;
}

@media (max-width: 760px) {
    body.woocommerce-cart .sisli-commerce-shell {
        width: min(100% - 24px, 620px);
        padding-top: 24px;
        padding-bottom: 42px;
    }
    .woocommerce .woocommerce-message:not(.sisli-add-toast) {
        width: 100%;
        gap: 10px;
        padding: 13px 13px 13px 44px !important;
        font-size: 14px;
    }
    .woocommerce .woocommerce-message::before { left: 14px !important; }
    .woocommerce .woocommerce-message.sisli-add-toast,
    .woocommerce .woocommerce-message:has(.sisli-cart-notice-copy) {
        top: 76px;
        right: 12px;
        width: calc(100% - 24px);
        padding-right: 12px !important;
    }
    .woocommerce .woocommerce-message .button {
        min-height: 38px;
        padding: 9px 12px !important;
        font-size: 13px !important;
    }
    .sisli-cart-toast { right: 12px; bottom: 78px; width: calc(100% - 24px); max-width: none; }
    .woocommerce-cart .woocommerce-cart-form { padding: 6px 14px 14px; border-radius: 13px; }
    .woocommerce-cart table.shop_table_responsive thead { display: none; }
    .woocommerce-cart table.shop_table_responsive tr.cart_item {
        position: relative;
        display: grid !important;
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 0 12px;
        margin: 0 !important;
        padding: 16px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid var(--sisli-line, #d7e7e5) !important;
        border-radius: 0 !important;
        background: #fff !important;
    }
    .woocommerce-cart table.shop_table_responsive tr.cart_item td {
        display: flex !important;
        width: auto !important;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0 !important;
        border: 0 !important;
        background: #fff !important;
        text-align: right !important;
    }
    .woocommerce-cart table.shop_table_responsive tr.cart_item td::before {
        color: #6a7c7b;
        font-size: 12px;
        font-weight: 650;
    }
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-remove {
        position: absolute;
        z-index: 2;
        top: 10px;
        right: 0;
        display: block !important;
        width: 32px !important;
        min-width: 32px !important;
        height: 32px;
        left: auto !important;
        padding: 0 !important;
    }
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-thumbnail {
        display: block !important;
        grid-column: 1;
        grid-row: 1 / span 2;
        padding-top: 4px !important;
    }
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-thumbnail::before,
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-name::before { display: none; }
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-thumbnail img {
        width: 70px !important;
        height: 70px !important;
    }
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-name {
        grid-column: 2;
        padding: 4px 38px 6px 0 !important;
        text-align: left !important;
    }
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-price,
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-quantity,
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-subtotal {
        grid-column: 1 / -1;
    }
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-quantity { min-height: 60px; }
    .woocommerce-cart table.shop_table_responsive tr.cart_item .product-quantity .quantity { margin-left: auto; }
    .woocommerce-cart table.shop_table td.actions { padding-top: 14px !important; }
    .woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr:last-child {
        display: block !important;
        margin: 0 !important;
        padding: 14px 0 0 !important;
        border: 0 !important;
        background: #fff !important;
    }
    .woocommerce-cart table.shop_table td.actions .coupon {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        width: 100%;
        max-width: none;
        align-items: stretch;
        gap: 9px;
    }
    .woocommerce-cart table.shop_table td.actions .coupon .input-text {
        width: 100% !important;
        min-width: 0;
        min-height: 50px;
    }
    .woocommerce-cart table.shop_table td.actions .coupon button {
        min-width: 124px;
        min-height: 50px;
    }
    .woocommerce-cart .cart-collaterals { margin-top: 16px; }
    .woocommerce-cart .cart-collaterals .cart_totals { width: 100% !important; padding: 20px 18px; border-radius: 13px; }
    .woocommerce-cart .cart_totals h2 { font-size: 22px; }
    .woocommerce-cart .cart_totals table.shop_table tr {
        display: table-row !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: #fff !important;
    }
    .woocommerce-cart .cart_totals table.shop_table th,
    .woocommerce-cart .cart_totals table.shop_table td { display: table-cell !important; width: 50% !important; }
    .woocommerce-cart .cart_totals table.shop_table td::before { display: none !important; }
}

@media (max-width: 340px) {
    .woocommerce-cart table.shop_table td.actions .coupon { grid-template-columns: minmax(0, 1fr); }
    .woocommerce-cart table.shop_table td.actions .coupon button {
        display: flex;
        width: 100% !important;
        align-items: center;
        justify-content: center;
    }
    .woocommerce-cart .wc-proceed-to-checkout .checkout-button { font-size: 15px !important; }
}
