/* Himalaya.bd v1.31.7 — Distinct premium cart footer redesign.
   Loaded after CommerceFlow/mobile cart CSS so these rules win the cascade. */

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
  padding-bottom: 18px !important;
}

/* Deep-teal order total panel — deliberately different from previous pale card. */
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  width: 100% !important;
  margin: 18px 0 0 !important;
  padding: 22px 24px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg,#075b59 0%,#087a75 62%,#0b8c85 100%) !important;
  box-shadow: 0 18px 36px rgba(7,91,89,.19) !important;
}
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total::after {
  content: '' !important;
  position: absolute !important;
  right: -34px !important;
  top: -42px !important;
  width: 130px !important;
  height: 130px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.07) !important;
  pointer-events: none !important;
}
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total th,
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total td {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  line-height: 1.18 !important;
  vertical-align: middle !important;
}
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total th {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -.01em !important;
  text-align: left !important;
}
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total th::after {
  content: 'FINAL PAYABLE' !important;
  display: block !important;
  width: max-content !important;
  margin-top: 7px !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: rgba(242,122,26,.96) !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .12em !important;
}
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total td {
  text-align: right !important;
}
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total td,
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total td strong,
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total td .amount,
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total td .woocommerce-Price-amount,
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total td bdi {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 23px !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  white-space: nowrap !important;
}

/* Orange primary CTA to create a clearly new hierarchy. */
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout {
  width: 100% !important;
  margin: 0 !important;
  padding: 16px 0 0 !important;
}
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout a.button.checkout-button,
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout a.button.alt.checkout-button {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 11px !important;
  width: 100% !important;
  min-height: 62px !important;
  margin: 0 !important;
  padding: 0 22px !important;
  border: 1px solid #e96f0b !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg,#f47d17 0%,#ef6b0b 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(239,107,11,.20) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .065em !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  opacity: 1 !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout a.checkout-button::before {
  content: '' !important;
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  background: no-repeat center/18px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") !important;
}
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout a.checkout-button::after {
  content: '→' !important;
  display: inline-block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin-left: 2px !important;
  background: none !important;
  color: #fff !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout a.checkout-button:focus {
  transform: translateY(-1px) !important;
  box-shadow: 0 17px 34px rgba(239,107,11,.26) !important;
  filter: saturate(1.03) !important;
}

/* Delivery timing is now a compact neutral information strip, not another large card. */
body.woocommerce-cart .woocommerce .cart-collaterals .hb-cart-summary-note {
  display: grid !important;
  grid-template-columns: 42px minmax(0,1fr) !important;
  align-items: center !important;
  gap: 13px !important;
  width: 100% !important;
  margin: 14px 0 0 !important;
  padding: 13px 15px !important;
  border: 1px solid #e6ece9 !important;
  border-left: 4px solid #0b7b76 !important;
  border-radius: 12px !important;
  background: #f8faf9 !important;
  box-shadow: none !important;
  color: #5e6b68 !important;
}
body.woocommerce-cart .woocommerce .cart-collaterals .hb-cart-summary-note__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background: #e7f4f1 !important;
}
body.woocommerce-cart .woocommerce .cart-collaterals .hb-cart-summary-note__icon svg {
  display: block !important;
  width: 21px !important;
  height: 21px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  stroke: #0b7773 !important;
}
body.woocommerce-cart .woocommerce .cart-collaterals .hb-cart-summary-note__content {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.woocommerce-cart .woocommerce .cart-collaterals .hb-cart-summary-note__title {
  display: block !important;
  margin: 0 0 2px !important;
  color: #184c48 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
}
body.woocommerce-cart .woocommerce .cart-collaterals .hb-cart-summary-note__text {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #64716e !important;
  font-size: 11.5px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  text-align: left !important;
}

@media (max-width:760px) {
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total {
    gap: 10px !important;
    margin-top: 14px !important;
    padding: 18px 17px !important;
    border-radius: 18px !important;
  }
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total th {
    font-size: 16px !important;
  }
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total th::after {
    margin-top: 6px !important;
    padding: 3px 7px !important;
    font-size: 8px !important;
  }
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total td,
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total td strong,
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total td .amount,
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total td .woocommerce-Price-amount,
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table tr.order-total td bdi {
    font-size: 20px !important;
  }
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout {
    padding-top: 13px !important;
  }
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout a.checkout-button,
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout a.button.checkout-button,
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout a.button.alt.checkout-button {
    min-height: 58px !important;
    border-radius: 16px !important;
    padding: 0 15px !important;
    font-size: 13.5px !important;
    letter-spacing: .055em !important;
  }
  body.woocommerce-cart .woocommerce .cart-collaterals .hb-cart-summary-note {
    grid-template-columns: 38px minmax(0,1fr) !important;
    gap: 10px !important;
    margin-top: 12px !important;
    padding: 11px 12px !important;
    border-radius: 11px !important;
  }
  body.woocommerce-cart .woocommerce .cart-collaterals .hb-cart-summary-note__icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 9px !important;
  }
  body.woocommerce-cart .woocommerce .cart-collaterals .hb-cart-summary-note__icon svg {
    width: 19px !important;
    height: 19px !important;
  }
  body.woocommerce-cart .woocommerce .cart-collaterals .hb-cart-summary-note__title {
    font-size: 10.5px !important;
  }
  body.woocommerce-cart .woocommerce .cart-collaterals .hb-cart-summary-note__text {
    font-size: 11px !important;
    line-height: 1.5 !important;
  }
}


/* v1.31.8 — Free delivery threshold progress card */
body.woocommerce-cart .woocommerce .hb-free-delivery-progress {
  position: relative !important;
  width: 100% !important;
  margin: 16px 0 22px !important;
  padding: 16px 18px !important;
  overflow: hidden !important;
  border: 1px solid #dcebe7 !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg,#ffffff 0%,#f5fbf9 100%) !important;
  box-shadow: 0 10px 24px rgba(12,95,91,.07) !important;
}
body.woocommerce-cart .woocommerce .hb-free-delivery-progress::after {
  content: '' !important;
  position: absolute !important;
  right: -36px !important;
  top: -46px !important;
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  background: rgba(15,123,119,.055) !important;
  pointer-events: none !important;
}
body.woocommerce-cart .woocommerce .hb-free-delivery-progress__top {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
}
body.woocommerce-cart .woocommerce .hb-free-delivery-progress__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 13px !important;
  background: #e8f5f2 !important;
  color: #0b7773 !important;
}
body.woocommerce-cart .woocommerce .hb-free-delivery-progress__icon svg {
  width: 23px !important;
  height: 23px !important;
  stroke: currentColor !important;
}
body.woocommerce-cart .woocommerce .hb-free-delivery-progress__copy {
  min-width: 0 !important;
}
body.woocommerce-cart .woocommerce .hb-free-delivery-progress__copy strong {
  display: block !important;
  margin: 0 !important;
  color: #164d49 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
}
body.woocommerce-cart .woocommerce .hb-free-delivery-progress__copy strong .woocommerce-Price-amount,
body.woocommerce-cart .woocommerce .hb-free-delivery-progress__copy strong bdi {
  color: #0a7773 !important;
  font-weight: 900 !important;
}
body.woocommerce-cart .woocommerce .hb-free-delivery-progress__copy > span {
  display: block !important;
  margin-top: 3px !important;
  color: #70807c !important;
  font-size: 11.5px !important;
  line-height: 1.45 !important;
}
body.woocommerce-cart .woocommerce .hb-free-delivery-progress__amount {
  color: #0a6f73 !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
  text-align: right !important;
}
body.woocommerce-cart .woocommerce .hb-free-delivery-progress__amount small {
  color: #8a9995 !important;
  font-size: 10px !important;
  font-weight: 650 !important;
}
body.woocommerce-cart .woocommerce .hb-free-delivery-progress__track {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 8px !important;
  margin-top: 13px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: #e3eeeb !important;
}
body.woocommerce-cart .woocommerce .hb-free-delivery-progress__bar {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg,#0e7975 0%,#19a09a 100%) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset !important;
  transition: width .28s ease !important;
}
body.woocommerce-cart .woocommerce .hb-free-delivery-progress.is-unlocked {
  border-color: #b9dfd4 !important;
  background: linear-gradient(135deg,#f0faf6 0%,#e9f8f2 100%) !important;
}
body.woocommerce-cart .woocommerce .hb-free-delivery-progress.is-unlocked .hb-free-delivery-progress__icon {
  background: #0e7d78 !important;
  color: #ffffff !important;
}
body.woocommerce-cart .woocommerce .hb-free-delivery-progress.is-unlocked .hb-free-delivery-progress__copy strong {
  color: #08706c !important;
}
body.woocommerce-cart .woocommerce .hb-free-delivery-progress.is-unlocked .hb-free-delivery-progress__bar {
  background: linear-gradient(90deg,#0a716d 0%,#16a091 100%) !important;
}

@media (max-width:760px) {
  body.woocommerce-cart .woocommerce .hb-free-delivery-progress {
    margin: 14px 0 20px !important;
    padding: 14px !important;
    border-radius: 16px !important;
  }
  body.woocommerce-cart .woocommerce .hb-free-delivery-progress__top {
    grid-template-columns: 40px minmax(0,1fr) !important;
    gap: 10px !important;
  }
  body.woocommerce-cart .woocommerce .hb-free-delivery-progress__icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
  }
  body.woocommerce-cart .woocommerce .hb-free-delivery-progress__icon svg {
    width: 21px !important;
    height: 21px !important;
  }
  body.woocommerce-cart .woocommerce .hb-free-delivery-progress__copy strong {
    font-size: 13px !important;
  }
  body.woocommerce-cart .woocommerce .hb-free-delivery-progress__copy > span {
    font-size: 11px !important;
  }
  body.woocommerce-cart .woocommerce .hb-free-delivery-progress__amount {
    grid-column: 1 / -1 !important;
    padding-left: 50px !important;
    text-align: left !important;
    font-size: 12px !important;
  }
  body.woocommerce-cart .woocommerce .hb-free-delivery-progress__track {
    height: 7px !important;
    margin-top: 11px !important;
  }
}
