/* =========================================
   CART PAGE — FULL REWRITE
   Works with current cart.php structure
   ========================================= */

/* ===== Base ===== */
body.woocommerce-cart .site-content,
body.woocommerce-cart .site-main {
  background: #f4f4f4;
}

body.woocommerce-cart .nv-single-page-wrap.col {
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 0 28px 48px !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .nv-content-wrap.entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

body.woocommerce-cart .bblt-cart-page {
  width: 100% !important;
  max-width: none !important;
  padding-top: 24px !important;
  box-sizing: border-box !important;
}

/* ===== Steps ===== */
body.woocommerce-cart .bblt-steps--cart {
  width: 100% !important;
  margin: 0 0 26px !important;
  padding: 16px 0 !important;
  border-top: 4px solid #111 !important;
  border-bottom: 4px solid #111 !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .bblt-steps--cart .bblt-steps__inner {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
  flex-wrap: wrap !important;
}

body.woocommerce-cart .bblt-steps--cart .bblt-step {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

body.woocommerce-cart .bblt-steps--cart .bblt-step__dot {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border: 1px solid #111 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #111 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

body.woocommerce-cart .bblt-steps--cart .bblt-step__title {
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #707070 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.woocommerce-cart .bblt-steps--cart .bblt-step.is-active .bblt-step__dot {
  background: #111 !important;
  color: #fff !important;
}

body.woocommerce-cart .bblt-steps--cart .bblt-step.is-active .bblt-step__title {
  color: #111 !important;
}

/* ===== Main layout =====
   Product full width on top
   Summary below, aligned right
*/
body.woocommerce-cart .bblt-cart-page > .woocommerce {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  gap: 0 !important;
}

body.woocommerce-cart .bblt-cart-page > .woocommerce > .woocommerce-notices-wrapper {
  width: 100% !important;
}

body.woocommerce-cart .bblt-cart-page > .woocommerce > .woocommerce-cart-form {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 34px 0 !important;
  float: none !important;
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.woocommerce-cart .bblt-cart-page > .woocommerce > .cart-collaterals {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
  display: flex !important;
  justify-content: flex-end !important;
  box-sizing: border-box !important;
}

body.woocommerce-cart .bblt-cart-page > .woocommerce > .cart-collaterals > .cart_totals {
  width: 540px !important;
  max-width: 540px !important;
  min-width: 540px !important;
  margin: 0 !important;
  float: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: static !important;
  overflow: visible !important;
}

/* ===== Cart table ===== */
body.woocommerce-cart table.shop_table.cart {
  width: 100% !important;
  max-width: 100% !important;
  border: 0 !important;
  border-collapse: collapse !important;
  table-layout: auto !important;
  margin: 0 !important;
  background: transparent !important;
}

body.woocommerce-cart table.shop_table.cart thead {
  display: table-header-group !important;
}

body.woocommerce-cart table.shop_table.cart tbody {
  display: table-row-group !important;
}

body.woocommerce-cart table.shop_table.cart tr {
  display: table-row !important;
}

body.woocommerce-cart table.shop_table.cart th,
body.woocommerce-cart table.shop_table.cart td {
  display: table-cell !important;
  border: 0 !important;
  border-bottom: 1px solid #111 !important;
  background: transparent !important;
  vertical-align: top !important;
  padding: 22px 12px !important;
  box-sizing: border-box !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

body.woocommerce-cart table.shop_table.cart thead th {
  padding: 10px 12px 20px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  color: #111 !important;
  text-align: left !important;
}

body.woocommerce-cart table.shop_table.cart tbody tr:first-child td {
  border-top: 0 !important;
}

body.woocommerce-cart table.shop_table_responsive tr td::before {
  display: none !important;
  content: none !important;
}

/* ===== Column sizing ===== */
body.woocommerce-cart .product-remove {
  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  text-align: center !important;
}

body.woocommerce-cart .product-thumbnail {
  width: 110px !important;
  min-width: 110px !important;
  max-width: 110px !important;
}

body.woocommerce-cart .product-price {
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
}

body.woocommerce-cart .product-quantity {
  width: 130px !important;
  min-width: 130px !important;
  max-width: 130px !important;
}

body.woocommerce-cart .product-subtotal {
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
}

body.woocommerce-cart .product-name,
body.woocommerce-cart td.product-name,
body.woocommerce-cart th.product-name {
  width: auto !important;
  min-width: 320px !important;
  max-width: none !important;
  padding-right: 26px !important;
}

/* ===== Remove button ===== */
body.woocommerce-cart .product-remove a.remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border: 0 !important;
  background: transparent !important;
  color: #111 !important;
  border-radius: 0 !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

body.woocommerce-cart .product-remove a.remove:hover {
  background: transparent !important;
  color: #111 !important;
}

/* ===== Thumbnail ===== */
body.woocommerce-cart .product-thumbnail a,
body.woocommerce-cart .product-thumbnail img {
  display: block !important;
}

body.woocommerce-cart .product-thumbnail img {
  width: 84px !important;
  height: 84px !important;
  object-fit: contain !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ===== Product name/meta ===== */
body.woocommerce-cart .product-name,
body.woocommerce-cart .product-name *,
body.woocommerce-cart .product-name a {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  letter-spacing: normal !important;
}

body.woocommerce-cart .product-name a {
  display: inline-block !important;
  min-width: 220px !important;
  color: #111 !important;
  text-decoration: underline !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
}

body.woocommerce-cart .product-name .stock,
body.woocommerce-cart .product-name .backorder_notification,
body.woocommerce-cart .product-name dl.variation,
body.woocommerce-cart .product-name .wc-item-meta {
  margin: 6px 0 0 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: #4f8a8b !important;
  font-weight: 400 !important;
}

/* ===== Price / subtotal ===== */
body.woocommerce-cart .product-price,
body.woocommerce-cart .product-subtotal {
  text-align: left !important;
  vertical-align: top !important;
}

body.woocommerce-cart .product-price .amount,
body.woocommerce-cart .product-subtotal .amount,
body.woocommerce-cart .product-price .woocommerce-Price-amount,
body.woocommerce-cart .product-subtotal .woocommerce-Price-amount {
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #111 !important;
  white-space: nowrap !important;
}

/* ===== Quantity ===== */
body.woocommerce-cart .product-quantity {
  vertical-align: top !important;
}

body.woocommerce-cart .product-quantity .quantity {
  display: inline-flex !important;
  align-items: center !important;
}

body.woocommerce-cart .product-quantity input.qty {
  width: 58px !important;
  min-width: 58px !important;
  height: 42px !important;
  min-height: 42px !important;
  border: 1px solid #cfcfcf !important;
  background: #fff !important;
  border-radius: 0 !important;
  padding: 8px 8px !important;
  font-size: 16px !important;
  text-align: center !important;
  box-shadow: none !important;
}

/* ===== Actions row ===== */
body.woocommerce-cart td.actions {
  padding: 22px 0 0 !important;
  border-bottom: 0 !important;
  text-align: left !important;
}

body.woocommerce-cart .actions {
  display: table-cell !important;
}

body.woocommerce-cart .coupon {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  vertical-align: middle !important;
}

body.woocommerce-cart .coupon .input-text {
  width: 180px !important;
  min-width: 180px !important;
  height: 44px !important;
  min-height: 44px !important;
  border: 1px solid #cfcfcf !important;
  background: #fff !important;
  border-radius: 0 !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  margin: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-cart .button,
body.woocommerce-cart button.button,
body.woocommerce-cart input.button {
  min-height: 44px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 10px 18px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-transform: none !important;
}

body.woocommerce-cart button[name="apply_coupon"] {
  background: #fff !important;
  color: #2f5bd3 !important;
  border: 2px solid #2f5bd3 !important;
}

body.woocommerce-cart button[name="update_cart"] {
  float: right !important;
  background: #bfc9df !important;
  color: #fff !important;
  border: 0 !important;
  margin-left: 18px !important;
}

/* ===== Summary title ===== */
body.woocommerce-cart .cart_totals h2 {
  margin: 0 0 22px !important;
  padding: 0 !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  text-align: center !important;
  color: #0b2d59 !important;
}

/* ===== Summary table ===== */
body.woocommerce-cart .cart_totals .shop_table {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
  background: transparent !important;
}

body.woocommerce-cart .cart_totals .shop_table tr th,
body.woocommerce-cart .cart_totals .shop_table tr td {
  padding: 18px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid #111 !important;
  background: transparent !important;
  vertical-align: top !important;
}

body.woocommerce-cart .cart_totals .shop_table th {
  text-align: left !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #111 !important;
}

body.woocommerce-cart .cart_totals .shop_table td {
  text-align: right !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #111 !important;
}

body.woocommerce-cart .cart_totals .shop_table td .amount,
body.woocommerce-cart .cart_totals .shop_table td .woocommerce-Price-amount {
  font-weight: 400 !important;
}

/* ===== Shipping ===== */
body.woocommerce-cart .woocommerce-shipping-methods {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: right !important;
}

body.woocommerce-cart .woocommerce-shipping-methods li {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 0 0 14px !important;
}

body.woocommerce-cart .woocommerce-shipping-methods label {
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
  color: #111 !important;
  text-align: right !important;
}

body.woocommerce-cart .woocommerce-shipping-methods input[type="radio"] {
  margin-top: 4px !important;
  accent-color: #111 !important;
}

body.woocommerce-cart .woocommerce-shipping-destination,
body.woocommerce-cart .shipping-calculator-button {
  display: block !important;
  margin-top: 10px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: #111 !important;
  text-align: right !important;
}

/* ===== Discount / tax / total ===== */
body.woocommerce-cart .cart-discount th,
body.woocommerce-cart .cart-discount td,
body.woocommerce-cart .tax-rate th,
body.woocommerce-cart .tax-rate td,
body.woocommerce-cart .tax-total th,
body.woocommerce-cart .tax-total td {
  font-size: 15px !important;
}

body.woocommerce-cart .order-total th,
body.woocommerce-cart .order-total td {
  font-size: 18px !important;
  font-weight: 700 !important;
}

body.woocommerce-cart .order-total small,
body.woocommerce-cart .order-total .includes_tax {
  display: inline !important;
  margin-top: 0 !important;
  font-size: 12px !important;
  color: #666 !important;
  font-weight: 400 !important;
  text-transform: none !important;
}

/* ===== Checkout button ===== */
body.woocommerce-cart .wc-proceed-to-checkout {
  padding: 18px 0 0 !important;
  margin: 0 !important;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  width: 100% !important;
  min-height: 56px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  text-align: center !important;
  padding: 14px 20px !important;
  margin: 0 !important;
}

/* ===== Hard overrides against theme weirdness ===== */
body.woocommerce-cart .shop_table,
body.woocommerce-cart .shop_table *,
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .woocommerce-cart-form * {
  box-sizing: border-box !important;
}

body.woocommerce-cart .shop_table,
body.woocommerce-cart .shop_table * {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  body.woocommerce-cart .bblt-cart-page > .woocommerce > .cart-collaterals {
    display: block !important;
  }

  body.woocommerce-cart .bblt-cart-page > .woocommerce > .cart-collaterals > .cart_totals {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.woocommerce-cart button[name="update_cart"] {
    float: none !important;
    margin-left: 12px !important;
  }
}

@media (max-width: 767px) {
  body.woocommerce-cart .nv-single-page-wrap.col {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.woocommerce-cart .bblt-steps--cart .bblt-steps__inner {
    gap: 14px !important;
  }

  body.woocommerce-cart .bblt-steps--cart .bblt-step__title {
    font-size: 11px !important;
  }

  body.woocommerce-cart table.shop_table.cart,
  body.woocommerce-cart table.shop_table.cart thead,
  body.woocommerce-cart table.shop_table.cart tbody,
  body.woocommerce-cart table.shop_table.cart tr,
  body.woocommerce-cart table.shop_table.cart td {
    display: block !important;
    width: 100% !important;
  }

  body.woocommerce-cart table.shop_table.cart thead {
    display: none !important;
  }

  body.woocommerce-cart table.shop_table.cart td {
    padding: 12px 0 !important;
    border-bottom: 0 !important;
  }

  body.woocommerce-cart table.shop_table.cart tr.cart_item {
    border-bottom: 1px solid #111 !important;
    padding: 12px 0 !important;
  }

  body.woocommerce-cart .coupon {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.woocommerce-cart .coupon .input-text,
  body.woocommerce-cart .coupon button,
  body.woocommerce-cart button[name="update_cart"] {
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
  }

  body.woocommerce-cart button[name="update_cart"] {
    float: none !important;
    margin-top: 10px !important;
  }

  body.woocommerce-cart .cart_totals h2 {
    font-size: 22px !important;
    text-align: left !important;
    letter-spacing: 1px !important;
  }

  body.woocommerce-cart .woocommerce-shipping-methods,
  body.woocommerce-cart .woocommerce-shipping-methods label,
  body.woocommerce-cart .woocommerce-shipping-destination,
  body.woocommerce-cart .shipping-calculator-button {
    text-align: left !important;
  }

  body.woocommerce-cart .woocommerce-shipping-methods li {
    justify-content: flex-start !important;
  }
}

body.woocommerce-cart .product-remove a.remove,
body.woocommerce-cart a.remove {
  font-size: 0 !important;
  position: relative !important;
}

body.woocommerce-cart .product-remove a.remove::before,
body.woocommerce-cart .product-remove a.remove::after,
body.woocommerce-cart a.remove::before,
body.woocommerce-cart a.remove::after {
  content: "" !important;
  position: absolute !important;
  width: 18px !important;
  height: 2px !important;
  background: #111 !important;
  top: 50% !important;
  left: 50% !important;
  margin-left: -9px !important;
  margin-top: -1px !important;
  display: block !important;
}

body.woocommerce-cart .product-remove a.remove::before,
body.woocommerce-cart a.remove::before {
  transform: rotate(45deg) !important;
}

body.woocommerce-cart .product-remove a.remove::after,
body.woocommerce-cart a.remove::after {
  transform: rotate(-45deg) !important;
}

/* ===== Align product row items in one line (centered) ===== */

body.woocommerce-cart table.shop_table.cart td {
  vertical-align: middle !important;
}

/* remove (X) */
body.woocommerce-cart .product-remove {
  vertical-align: middle !important;
}

body.woocommerce-cart .product-remove a.remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* thumbnail */
body.woocommerce-cart .product-thumbnail {
  vertical-align: middle !important;
}

body.woocommerce-cart .product-thumbnail a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
}

body.woocommerce-cart .product-thumbnail img {
  display: block !important;
  margin: 0 auto !important;
}

/* product name */
body.woocommerce-cart .product-name {
  vertical-align: middle !important;
}

/* price, qty, subtotal */
body.woocommerce-cart .product-price,
body.woocommerce-cart .product-quantity,
body.woocommerce-cart .product-subtotal {
  vertical-align: middle !important;
}

/* Omniva button fix */
.omniva-select-terminal,
.omniva-terminal-button {
    background: #ff6600;
    color: #fff;
    border-radius: 6px;
    padding: 10px 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.omniva-select-terminal:hover {
    background: #e05500;
}

/* Sakārto spacing */
.woocommerce-shipping-methods li {
    margin-bottom: 12px;
}