/* TPS: cart redesign v2 */
body.woocommerce-cart .cart-wrapper,
body.woocommerce-cart .woocommerce-cart-form {
  background: #fff !important;
  border: 1px solid #F3F4F6 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  padding: 12px 18px 18px !important;
}
body.woocommerce-cart .cart-sidebar,
body.woocommerce-cart .cart_totals {
  background: #fff !important;
  border: 1px solid #F3F4F6 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.03) !important;
  padding: 20px !important;
}
@media (min-width: 850px) {
  body.woocommerce-cart .cart-sidebar {
    position: sticky;
    top: 96px;
    align-self: flex-start;
    z-index: 5;
  }
}
body.woocommerce-cart table.cart thead tr {
  background: linear-gradient(90deg, #3cbe6a 0%, #008b4b 45%, #066a3a 100%) !important;
}
body.woocommerce-cart table.cart th {
  border: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-family: "Be Vietnam Pro", Montserrat, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
  text-transform: none !important;
  white-space: nowrap !important;
  padding: 14px 10px !important;
  vertical-align: middle !important;
  line-height: 1.3 !important;
}
body.woocommerce-cart table.cart thead th:first-child {
  border-radius: 10px 0 0 0;
}
body.woocommerce-cart table.cart thead th:last-child {
  border-radius: 0 10px 0 0;
}
body.woocommerce-cart table.cart th.product-name {
  text-align: left !important;
  width: auto;
  padding-left: 12px !important;
}
body.woocommerce-cart table.cart th.product-price {
  text-align: right !important;
  width: 110px;
  min-width: 100px;
}
body.woocommerce-cart table.cart th.product-quantity {
  text-align: center !important;
  width: 120px;
  min-width: 110px;
}
body.woocommerce-cart table.cart th.product-subtotal {
  text-align: right !important;
  width: 120px;
  min-width: 110px;
  white-space: nowrap !important;
}
body.woocommerce-cart table.cart th.product-remove {
  width: 48px;
  min-width: 44px;
  padding: 16px 8px !important;
}
body.woocommerce-cart table.cart td.product-price,
body.woocommerce-cart table.cart td.product-subtotal {
  text-align: right !important;
  white-space: nowrap !important;
}
body.woocommerce-cart table.cart td.product-quantity {
  text-align: center !important;
}
body.woocommerce-cart table.cart td {
  border-color: #F3F4F6 !important;
  padding: 22px 12px !important;
  vertical-align: middle !important;
}
body.woocommerce-cart table.cart .product-thumbnail {
  width: 84px;
  padding-right: 6px !important;
}
body.woocommerce-cart table.cart .product-thumbnail img {
  width: 72px !important;
  height: 72px !important;
  border-radius: 12px !important;
  object-fit: contain !important;
  background: #f8faf8;
}
body.woocommerce-cart table.cart .product-name {
  padding-left: 4px !important;
}
body.woocommerce-cart table.cart .product-name a {
  font-family: "Be Vietnam Pro", Montserrat, sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  color: #111827 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}
body.woocommerce-cart table.cart .product-name a:hover {
  color: #008b4b !important;
}
body.woocommerce-cart table.cart .product-price .amount,
body.woocommerce-cart table.cart .product-subtotal .amount,
body.woocommerce-cart .cart_totals .amount,
body.woocommerce-cart .cart_totals .woocommerce-Price-amount {
  color: #008b4b !important;
  font-family: Montserrat, "Be Vietnam Pro", sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  font-variant-numeric: tabular-nums;
}
body.woocommerce-cart .cart_totals .order-total .amount {
  font-size: 18px !important;
  font-weight: 700 !important;
}

/* Remove / trash at far right */
body.woocommerce-cart td.product-remove {
  width: 48px;
  text-align: right !important;
  padding-left: 8px !important;
}
body.woocommerce-cart a.remove {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  border: 1px solid #F3F4F6 !important;
  background: #fff !important;
  color: #9ca3af !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
body.woocommerce-cart a.remove svg {
  display: block;
}
body.woocommerce-cart a.remove:hover {
  color: #dc2626 !important;
  background: #fef2f2 !important;
  border-color: #fecaca !important;
}

/* Fix vertical crushed action buttons → underline links */
body.woocommerce-cart td.actions,
body.woocommerce-cart td.actions.tps-cart-actions {
  display: table-cell !important;
  padding: 18px 12px 8px !important;
  border: 0 !important;
}
body.woocommerce-cart td.actions .continue-shopping {
  display: inline-block !important;
  float: none !important;
  margin: 0 18px 0 0 !important;
  width: auto !important;
}
body.woocommerce-cart .button-continue-shopping,
body.woocommerce-cart td.actions button[name="update_cart"],
body.woocommerce-cart button[name="update_cart"] {
  display: inline-block !important;
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.4 !important;
  padding: 6px 2px !important;
  margin: 0 16px 0 0 !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #008b4b !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-transform: none !important;
}
body.woocommerce-cart .button-continue-shopping:hover,
body.woocommerce-cart button[name="update_cart"]:hover {
  color: #066a3a !important;
  background: transparent !important;
}

/* Coupon above checkout */
body.woocommerce-cart .cart-sidebar form.checkout_coupon,
body.woocommerce-cart .large-5 form.checkout_coupon {
  order: 1;
  margin: 0 0 14px !important;
}
body.woocommerce-cart .cart-sidebar .coupon,
body.woocommerce-cart form.checkout_coupon .coupon {
  margin: 0 !important;
  padding: 0 0 14px !important;
  border: 0 !important;
  border-bottom: 1px solid #F3F4F6 !important;
}
body.woocommerce-cart .coupon h3 {
  font-size: 14px !important;
  font-weight: 700 !important;
  margin: 0 0 10px !important;
  color: #111827 !important;
}
body.woocommerce-cart .coupon input.input-text {
  height: 44px !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 10px !important;
  margin-bottom: 8px !important;
}
body.woocommerce-cart .coupon input[type="submit"],
body.woocommerce-cart .coupon button[name="apply_coupon"],
body.woocommerce-cart form.checkout_coupon input[name="apply_coupon"],
body.woocommerce-cart form.checkout_coupon button[name="apply_coupon"] {
  height: 44px !important;
  border-radius: 10px !important;
  background: #C7351A !important;
  background-image: none !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(199,53,26,.30) !important;
}
body.woocommerce-cart .coupon input[type="submit"]:hover,
body.woocommerce-cart .coupon button[name="apply_coupon"]:hover,
body.woocommerce-cart form.checkout_coupon input[name="apply_coupon"]:hover {
  background: #A82B14 !important;
  color: #fff !important;
}
body.woocommerce-cart .wc-proceed-to-checkout {
  padding: 0 !important;
  margin: 0 !important;
}
body.woocommerce-cart a.checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout .button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  height: 52px !important;
  line-height: 1.2 !important;
  padding: 0 18px !important;
  background: #008b4b !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 20px rgba(0,139,75,.28) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease !important;
}
body.woocommerce-cart a.checkout-button:hover {
  background: #007a42 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(0,139,75,.34) !important;
  transform: translateY(-1px);
}
body.woocommerce-cart .tps-cart-cta-arrow {
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}
body.woocommerce-cart .cart_totals h2 {
  font-size: 17px !important;
  margin-bottom: 14px !important;
}
body.woocommerce-cart .cart_totals .shop_table th,
body.woocommerce-cart .cart_totals .shop_table td {
  padding: 10px 0 !important;
  font-size: 14px;
}
@media (max-width: 849px) {
  body.woocommerce-cart .cart-sidebar {
    position: static !important;
  }
  body.woocommerce-cart table.cart .product-name a {
    font-size: 15px !important;
  }
}

/* continue shopping outside white card */
body.woocommerce-cart .tps-continue-outside,
body.woocommerce-cart .col.large-7 > .continue-shopping {
  display: block !important;
  margin: 0 0 12px 2px !important;
  float: none !important;
  position: relative;
  z-index: 2;
}
body.woocommerce-cart .tps-continue-outside .button-continue-shopping,
body.woocommerce-cart .col.large-7 > .continue-shopping .button-continue-shopping {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #008b4b !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-transform: none !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
}
body.woocommerce-cart .tps-continue-outside .button-continue-shopping:hover {
  color: #066a3a !important;
}

/* hide update cart — qty +/- auto-submits */
body.woocommerce-cart button[name="update_cart"],
body.woocommerce-cart .tps-update-cart-hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body.woocommerce-cart tr.tps-actions-row-hidden,
body.woocommerce-cart td.actions.tps-cart-actions {
  display: none !important;
  padding: 0 !important;
  border: 0 !important;
  height: 0 !important;
}

/* shipping note instead of calculator */
body.woocommerce-cart .tps-ship-note {
  color: #6b7280 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}
body.woocommerce-cart tr.shipping .shipping-calculator-button,
body.woocommerce-cart .woocommerce-shipping-calculator {
  display: none !important;
}
/* coupon stays under totals, above CTA */
body.woocommerce-cart .cart-sidebar > form.checkout_coupon,
body.woocommerce-cart .tps-coupon-stable {
  display: block !important;
  margin: 14px 0 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
body.woocommerce-cart .cart-sidebar > .wc-proceed-to-checkout {
  margin-top: 4px !important;
}

/* TPS: cart outer gray darker */
body.woocommerce-cart #content,
body.woocommerce-cart .page-wrapper {
  background: #ebebeb !important;
}

/* TPS: cart "Bạn có thể thích" prices on one row */
body.woocommerce-cart .cross-sells .price,
body.woocommerce-cart .cross-sells .price-wrapper .price,
body.woocommerce-cart .upsells .price,
body.woocommerce-cart .related .price,
body.woocommerce-cart .cart-footer-content .price,
body.woocommerce-cart .after-cart-content .price,
body.woocommerce-cart .product-footer .price,
body.woocommerce-cart .woocommerce > .cross-sells .product-small .price,
body.woocommerce-cart .products .product-small .price {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
  line-height: 1.3 !important;
  width: 100% !important;
  text-align: center !important;
}
body.woocommerce-cart .cross-sells .price del,
body.woocommerce-cart .cross-sells .price-wrapper .price del,
body.woocommerce-cart .upsells .price del,
body.woocommerce-cart .related .price del,
body.woocommerce-cart .cart-footer-content .price del,
body.woocommerce-cart .after-cart-content .price del,
body.woocommerce-cart .products .product-small .price del,
body.woocommerce-cart .cross-sells .price ins,
body.woocommerce-cart .cross-sells .price-wrapper .price ins,
body.woocommerce-cart .upsells .price ins,
body.woocommerce-cart .related .price ins,
body.woocommerce-cart .cart-footer-content .price ins,
body.woocommerce-cart .after-cart-content .price ins,
body.woocommerce-cart .products .product-small .price ins {
  display: inline !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}
/* sale first, then strikethrough */
body.woocommerce-cart .cross-sells .price ins,
body.woocommerce-cart .upsells .price ins,
body.woocommerce-cart .related .price ins,
body.woocommerce-cart .products .product-small .price ins,
body.woocommerce-cart .cart-footer-content .price ins,
body.woocommerce-cart .after-cart-content .price ins {
  order: 1;
  color: #008b4b !important;
  font-family: Montserrat, "Be Vietnam Pro", sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
body.woocommerce-cart .cross-sells .price del,
body.woocommerce-cart .upsells .price del,
body.woocommerce-cart .related .price del,
body.woocommerce-cart .products .product-small .price del,
body.woocommerce-cart .cart-footer-content .price del,
body.woocommerce-cart .after-cart-content .price del {
  order: 2;
  color: #9ca3af !important;
  font-family: Montserrat, "Be Vietnam Pro", sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}
body.woocommerce-cart .cross-sells .price del .amount,
body.woocommerce-cart .products .product-small .price del .amount {
  color: #9ca3af !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}
body.woocommerce-cart .cross-sells .price ins .amount,
body.woocommerce-cart .products .product-small .price ins .amount {
  color: #008b4b !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

/* TPS: cart cross-sell inline price (strong) */
body.woocommerce-cart .cross-sells .box-text .price,
body.woocommerce-cart .cross-sells .box-text-products .price,
body.woocommerce-cart .tps-inline-price,
body.woocommerce-cart .cross-sells .product-small .price-wrapper,
body.woocommerce-cart .cross-sells .price-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  text-align: center !important;
}
body.woocommerce-cart .cross-sells .box-text .price del,
body.woocommerce-cart .cross-sells .box-text .price ins,
body.woocommerce-cart .tps-inline-price del,
body.woocommerce-cart .tps-inline-price ins {
  display: inline !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
}
body.woocommerce-cart .cross-sells .product-small .box-text {
  padding-bottom: 12px !important;
}

/* TPS: shop sidebar SAN PHAM MOI prices — Montserrat 16px, sale green; del gray incl. đ */
#shop-sidebar .widget_products .amount,
#shop-sidebar .widget_products .woocommerce-Price-amount,
#shop-sidebar .widget_products ins,
#shop-sidebar .widget_products ins .amount,
#shop-sidebar .widget_products ins .woocommerce-Price-currencySymbol,
#shop-sidebar .widget_products .price,
#shop-sidebar .widget_products li .amount,
.widget.woocommerce.widget_products .amount,
.widget.woocommerce.widget_products .woocommerce-Price-amount,
.widget.woocommerce.widget_products ins,
.widget.woocommerce.widget_products ins .amount,
.widget.woocommerce.widget_products ins .woocommerce-Price-currencySymbol,
.widget.woocommerce.widget_products .price {
  font-family: Montserrat, sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #008b4b !important;
}
#shop-sidebar .widget_products del,
#shop-sidebar .widget_products del .amount,
#shop-sidebar .widget_products del .woocommerce-Price-amount,
#shop-sidebar .widget_products del .woocommerce-Price-currencySymbol,
.widget.woocommerce.widget_products del,
.widget.woocommerce.widget_products del .amount,
.widget.woocommerce.widget_products del .woocommerce-Price-amount,
.widget.woocommerce.widget_products del .woocommerce-Price-currencySymbol {
  font-family: Montserrat, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #9ca3af !important;
}

/* TPS: cross-sell prices centered evenly */
body.woocommerce-cart .cross-sells .product-small {
  padding-left: 6px !important;
  padding-right: 6px !important;
}
body.woocommerce-cart .cross-sells .product-small .box-text,
body.woocommerce-cart .cross-sells .box-text-products {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.woocommerce-cart .cross-sells .product-small .title-wrapper,
body.woocommerce-cart .cross-sells .product-small .name,
body.woocommerce-cart .cross-sells .product-small .product-title {
  text-align: center !important;
  width: 100% !important;
}
body.woocommerce-cart .cross-sells .product-small .price-wrapper,
body.woocommerce-cart .cross-sells .price-wrapper,
body.woocommerce-cart .cross-sells .product-small .price,
body.woocommerce-cart .cross-sells .price,
body.woocommerce-cart .cross-sells .tps-inline-price {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
  text-align: center !important;
  overflow: visible !important;
}
body.woocommerce-cart .cross-sells .price .screen-reader-text,
body.woocommerce-cart .cross-sells .price .sr-only {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.woocommerce-cart .cross-sells .price del,
body.woocommerce-cart .cross-sells .price ins {
  display: inline-block !important;
  float: none !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  position: static !important;
}
body.woocommerce-cart .cross-sells .price del,
body.woocommerce-cart .cross-sells .price del .amount,
body.woocommerce-cart .cross-sells .price del bdi {
  font-family: Montserrat, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #9ca3af !important;
  line-height: 1.25 !important;
}
body.woocommerce-cart .cross-sells .price ins,
body.woocommerce-cart .cross-sells .price ins .amount,
body.woocommerce-cart .cross-sells .price ins bdi {
  font-family: Montserrat, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #008b4b !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
}
/* currency đ smaller than digits */
body.woocommerce-cart .cross-sells .price .woocommerce-Price-currencySymbol,
body.woocommerce-cart .cross-sells .price del .woocommerce-Price-currencySymbol,
body.woocommerce-cart .cross-sells .price ins .woocommerce-Price-currencySymbol {
  font-size: 0.78em !important;
  font-weight: 500 !important;
  vertical-align: 0.06em !important;
  line-height: 1 !important;
}
body.woocommerce-cart .cross-sells .price > .amount,
body.woocommerce-cart .cross-sells .price > .amount bdi {
  font-family: Montserrat, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #008b4b !important;
}
