/* Mini cart typography */

/*#shop-cart-sidebar {*/
/*    color: var(--mw-color-ink);*/
/*    font-family: inherit;*/
/*    font-size: 14px;*/
/*    line-height: 1.5;*/
/*}*/

#shop-cart-sidebar {
    color: var(--mw-color-ink);
    font-family: var(--mw-font-primary);
    font-size: var(--mw-font-base);
    line-height: 1.5;
}

#shop-cart-sidebar button,
#shop-cart-sidebar input,
#shop-cart-sidebar select,
#shop-cart-sidebar textarea {
    font-family: var(--mw-font-primary);
}

#shop-cart-sidebar .cart-sidebar-title {
    margin: 0;

    color: var(--mw-color-ink);

    font-size: 16px;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

#shop-cart-sidebar .shop-cart-count {
    /*color: var(--mw-color-text-muted);*/

    font-size: 12px;
}

#shop-cart-sidebar .cart-sidebar-content {
    color: var(--mw-color-text-muted);

    font-size: 14px;
    line-height: 1.5;
}

/* Hide product short description in cart */
.wp-block-woocommerce-cart
.wc-block-components-product-metadata__description {
    display: none !important;
}

#shop-cart-sidebar a {
    /*color: var(--mw-color-ink);*/
    text-decoration: none;
}

#shop-cart-sidebar a:hover {
    color: var(--mw-color-text-muted);
}

/* Mini cart - remove product */

#shop-cart-sidebar .mini_cart_item {
    position: relative;
    padding-right: 30px;
}

#shop-cart-sidebar .mini_cart_item > a.remove {
    position: absolute;
    top: 6px;
    right: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;
    padding: 0;

    font-size: 0;
    line-height: 1;

    color: var(--mw-color-text-faint);
    background: transparent;
    border: 0;
}

#shop-cart-sidebar .mini_cart_item > a.remove:hover {
    color: var(--mw-color-ink);
    background: transparent;
}

#shop-cart-sidebar .mini_cart_item > a.remove .woostify-svg-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

#shop-cart-sidebar .mini_cart_item > a.remove svg {
    display: block;
    width: 12px;
    height: 12px;
}

#shop-cart-sidebar .mini_cart_item > a.remove svg path {
    fill: currentColor;
}


/* Cart page - sale badge */

.wp-block-woocommerce-cart.wc-block-components-sale-badge {
    white-space: nowrap;
}

/* Mobile */
@media (max-width: 700px) {

    .wp-block-woocommerce-cart .wc-block-cart-item__total-price-and-sale-badge-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }

    .wp-block-woocommerce-cart .wc-block-components-sale-badge {
        min-width: 80px;
        padding: 3px 6px;

        white-space: normal;
        line-height: 1.25;
        text-align: center;
    }

    .wp-block-woocommerce-cart .wc-block-components-sale-badge .wc-block-formatted-money-amount {
        display: block;
    }
}