.hh-cart-saving {
  margin: 0 0 1.2em;
  padding: 0.6em 0.8em;
  background: #f3f8ec;
  border: 1px solid #c5d4cb;
  border-radius: 8px;
  max-width: none;
}

.hh-cart-saving-row td,
.hh-cart-saving-row th {
  color: var(--hahishook-green);
  font-weight: 700;
}

.hh-cart-past-purchases {
  clear: both;
  padding-top: 1.5em;
}

.hh-cart-past-purchases h2 {
  margin-bottom: 0.3em;
}

.hh-cart-past-purchases__lead {
  margin: 0 0 1em;
  color: #4a4f45;
}

.hh-cart-table .product-volume {
  display: none !important;
}

.hh-cart-table .product-saving {
  color: var(--hahishook-green);
  font-weight: 700;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
.hh-cart-sticky-checkout .checkout-button {
  background: var(--hahishook-green) !important;
  border: 0 !important;
  color: #fff !important;
  border-radius: 999px;
  padding: 10px 22px;
}

.hh-cart-sticky-checkout {
  display: none;
}

@media (max-width: 767px) {
  /* tr { display:grid } is ignored while the table still uses table layout;
     cells then stack on top of each other and the remove link eats every click. */
  .hh-cart-table,
  .hh-cart-table thead,
  .hh-cart-table tbody {
    display: block;
    width: 100%;
  }

  .hh-cart-table thead {
    display: none;
  }

  .hh-cart-table tbody tr.cart_item {
    display: grid;
    grid-template-columns: 56px 1fr auto auto;
    grid-template-areas:
      "thumb name name remove"
      "thumb saving subtotal qty";
    gap: 2px 8px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
    width: 100%;
  }

  .hh-cart-table tbody tr.cart_item td {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: right;
    width: auto;
    float: none;
    clear: none;
  }

  .hh-cart-table tbody tr.cart_item td::before {
    display: none !important;
  }

  .hh-cart-table tbody tr.cart_item td.product-brutto,
  .hh-cart-table tbody tr.cart_item td.product-volume,
  .hh-cart-table tbody tr.cart_item td.product-price,
  .hh-cart-table tbody tr.cart_item td.product-saving.is-empty {
    display: none !important;
  }

  .hh-cart-table td.product-thumbnail {
    grid-area: thumb;
  }

  .hh-cart-table td.product-thumbnail img {
    max-width: 56px;
    margin: 0;
    padding: 0;
  }

  .hh-cart-table td.product-name {
    grid-area: name;
    font-size: 0.95em;
    line-height: 1.3;
  }

  .hh-cart-table td.product-remove {
    grid-area: remove;
    position: static;
    border: 0;
  }

  .hh-cart-table td.product-remove a.remove {
    position: static;
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.4em;
    height: 1.4em;
    font-size: 1.2em;
  }

  .hh-cart-table td.product-quantity {
    grid-area: qty;
  }

  .hh-cart-table td.product-quantity .qty {
    width: 3.2em;
    padding: 4px;
  }

  .hh-cart-table td.product-subtotal {
    grid-area: subtotal;
  }

  .hh-cart-table td.product-saving {
    grid-area: saving;
  }

  .hh-cart-sticky-checkout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 100001;
    background: #fff;
    border-top: 2px solid var(--hahishook-green);
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
  }

  .hh-cart-sticky-checkout__sums {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    font-weight: 700;
  }

.hh-cart-sticky-checkout__saving {
  color: var(--hahishook-green);
  font-size: 0.9em;
}

.hh-cart-sticky-checkout__sums .hh-cart-total-weight {
  font-weight: 400;
  font-size: 0.85em;
}

.hh-cart-sticky-checkout__sums .hh-our-price {
  color: var(--hahishook-green);
}

  .hh-cart-sticky-checkout .checkout-button {
    margin: 0;
    white-space: nowrap;
  }

  body.woocommerce-cart {
    padding-bottom: 100px;
  }

  body.woocommerce-cart .xoo-wsc-basket {
    display: none;
  }
}
