/* WooCommerce cart page custom tweaks */
.woocommerce-cart .woocommerce-message {
    border-top: 0 !important;
}

.woocommerce-cart .site-main > .woocommerce,
.woocommerce-cart .site-main > .wp-block-woocommerce-cart {
    width: min(100% - 32px, 1200px);
    max-width: 1200px;
    margin-inline: auto;
    padding-block: clamp(34px, 6vw, 76px);
}

.ananeoo-cart-back {
    margin: 0 0 18px;
}

.ananeoo-cart-back__link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.4;
    padding: 0 16px;
    text-decoration: none;
    box-shadow: 0 10px 28px oklch(26% 0.03 232 / 0.07);
}

.ananeoo-cart-back__link::before {
    content: "<";
    margin-right: 8px;
    font-size: 1.08em;
    line-height: 1;
}

.ananeoo-cart-back__link:hover,
.ananeoo-cart-back__link:focus-visible {
    border-color: var(--teal);
    color: var(--teal);
}

body.woocommerce-cart .wc-block-cart-items__row .wc-block-cart-item__wrap a.wc-block-components-product-name,
body.woocommerce-cart a.wc-block-components-product-name {
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

body.woocommerce-cart .wc-block-components-product-price,
body.woocommerce-cart .wc-block-components-product-price del,
body.woocommerce-cart .wc-block-components-product-price ins {
    font-size: 24px;
    font-weight: 700;
}

body.woocommerce-cart del.wc-block-components-product-price__regular {
    color: #b42318;
}

body.woocommerce-cart .wc-block-cart-item__wrap {
    display: flex;
    flex-direction: column;
    gap: 10px !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector__input,
body.woocommerce-cart .wc-block-components-quantity-selector__button {
    font-size: 24px;
    font-weight: 700;
}

body.woocommerce-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
    padding: 0;
}

body.woocommerce-cart .wc-block-cart-item__remove-link {
    font-size: 22px;
    font-weight: 700;
}

.woocommerce-cart .wc-block-cart-items__header th {
    font-size: 25px;
    font-weight: bold;
}

.woocommerce-cart .wc-block-cart__totals-title {
    font-size: 25px;
    font-weight: bold;
}

body.woocommerce-cart a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained {
    background: var(--accent-gradient) !important;
    border: 1px solid #af8c47;
    border-radius: 10px;
    box-shadow: 0 2px 4px 0 rgba(45, 55, 72, 0.3);
    font-family: Poppins, Arial, sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 35px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 20px 50px;
    color: var(--blue);
    text-transform: capitalize;
}

body.woocommerce-cart .wc-block-grid__product-onsale {
    display: none;
}

body.woocommerce-cart span.wc-block-components-totals-item__label {
    text-transform: capitalize;
    font-size: 23px;
    font-weight: 600;
}

body.woocommerce-cart .wc-block-components-totals-shipping .wc-block-components-totals-item strong {
    letter-spacing: 0.3px;
}

body.woocommerce-cart .wc-block-components-main.wc-block-cart__main.wp-block-woocommerce-cart-items-block {
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 1024px) {
    body.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-main {
        width: 100%;
    }

    body.woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart.wp-block-woocommerce-filled-cart-block.is-large {
        flex-direction: column;
        gap: 30px;
    }

    body.woocommerce-cart .wc-block-components-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .woocommerce-cart .site-main > .woocommerce,
    .woocommerce-cart .site-main > .wp-block-woocommerce-cart {
        width: min(100% - 24px, 1200px);
        padding-block: 28px 54px;
    }
}
