/* BP cart 1.0.0 — same tokens as checkout v2 (body.bp-cart2). */
/* Colours: brand #3c6ab1, text #1f2a37, muted #5b6675, free #1b7a43, steps #fff8dc/#efd98a. */

.bp-cart2 .bp-muted { color: #5b6675; }
.bp-cart2 .bp-icon { flex: none; color: #3c6ab1; }

/* Drop the empty heading and large UX-builder gaps; hide the overflowing featured-box row (trust is next to the CTA). */
.bp-cart2 .ux-text h1:first-of-type:not(:last-of-type) { display: none; }
.bp-cart2 .gap-element { display: none; }
.bp-cart2 .featured-box { display: none !important; }

/* Product table: keep names readable, especially on a narrow column. */
.bp-cart2 table.cart td.product-name,
.bp-cart2 table.cart td.product-name a {
  color: #1f2a37;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.bp-cart2 table.cart img { border-radius: 6px; border: 1px solid #e1e6ee; }

@media (max-width: 549px) {
  .bp-cart2 table.cart.shop_table_responsive tr.cart_item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    grid-template-areas:
      "remove thumb name"
      "qty qty price";
    gap: 8px 12px;
    align-items: start;
    padding: 14px 0;
  }
  .bp-cart2 table.cart.shop_table_responsive tr.cart_item td {
    display: block;
    border: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }
  .bp-cart2 table.cart.shop_table_responsive tr.cart_item td::before { display: none !important; }
  .bp-cart2 table.cart.shop_table_responsive .product-remove { grid-area: remove; }
  .bp-cart2 table.cart.shop_table_responsive .product-thumbnail { grid-area: thumb; }
  .bp-cart2 table.cart.shop_table_responsive .product-thumbnail img { width: 64px; height: 64px; object-fit: cover; }
  .bp-cart2 table.cart.shop_table_responsive .product-name { grid-area: name; }
  .bp-cart2 table.cart.shop_table_responsive .product-quantity { grid-area: qty; }
  .bp-cart2 table.cart.shop_table_responsive .product-subtotal,
  .bp-cart2 table.cart.shop_table_responsive .product-price { grid-area: price; justify-self: end; font-weight: 700; }
  /* Hide the unit-price column on small screens if both price and subtotal exist; keep subtotal. */
  .bp-cart2 table.cart.shop_table_responsive .product-price { display: none !important; }
  .bp-cart2 table.cart thead { display: none; }
}

/* Totals + shipping note */
.bp-cart2 .cart_totals h2,
.bp-cart2 .cart_totals .widget-title,
.bp-cart2 .cart_totals .woocommerce-shipping-totals,
.bp-cart2 .cart_totals tr.shipping,
.bp-cart2 .cart_totals .woocommerce-shipping-calculator,
.bp-cart2 .cart_totals .shipping-calculator-button { display: none !important; }
.bp-cart2 .bp-cart-ship-note td { color: #5b6675; font-weight: 400; }

/* CTA: sentence-case brand button, not Flatsome all-caps red */
.bp-cart2 .bp-cart-cta { margin-top: 8px; }
.bp-cart2 a.bp-cart-cta__btn,
.bp-cart2 a.bp-cart-cta__btn.button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 14px !important;
  padding: 14px 18px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #3c6ab1 !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.3 !important;
  text-align: center;
  text-transform: none !important;
}
.bp-cart2 a.bp-cart-cta__btn:hover { background: #2f5a9e !important; color: #fff !important; }

.bp-cart2 .bp-pay-steps { padding: 14px 16px 8px; border: 1px solid #efd98a; border-radius: 10px; background: #fff8dc; color: #1f2a37; }
.bp-cart2 .bp-pay-steps__title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px !important; font-size: 15px; font-weight: 700; }
.bp-cart2 .bp-pay-steps__title .bp-icon { color: #1b7a43; }
.bp-cart2 .bp-pay-steps p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.45; color: #3d4756; }
.bp-cart2 .bp-trust { margin: 16px 0 0 !important; padding: 16px 0 0; border-top: 1px solid #e1e6ee; list-style: none; font-size: 13.5px; line-height: 1.45; }
.bp-cart2 .bp-trust li { display: flex; gap: 10px; margin: 0 !important; }
.bp-cart2 .bp-trust .bp-icon { width: 18px; height: 18px; margin-top: 1px; }

/* Secondary “Pirkti daugiau” / update: sentence case, not red */
.bp-cart2 button[name="update_cart"],
.bp-cart2 .continue-shopping .button {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* Sticky mobile bar: total + Tęsti. Gap on the right so Tidio does not cover the button. */
.bp-cart2 .bp-cart-sticky { display: none; }

@media (max-width: 849px) {
  .bp-cart2 .bp-cart-sticky {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 80px 10px 16px;
    border-top: 1px solid #e1e6ee;
    background: #fff;
    box-shadow: 0 -4px 16px rgba(31, 42, 55, 0.08);
  }
  .bp-cart2 .bp-cart-sticky__sum { font-weight: 700; color: #1f2a37; font-size: 15px; }
  .bp-cart2 a.bp-cart-sticky__btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background: #3c6ab1;
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .bp-cart2 { padding-bottom: 72px; }
}
