/* Checkout final mobile/image polish v530 */
body.woocommerce-checkout .trutide-pay-bank-inline-trust {
  box-sizing: border-box !important;
  width: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

body.woocommerce-checkout .trutide-pay-bank-checkout-image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-label {
  align-items: baseline !important;
  min-height: 0 !important;
  line-height: 1.18 !important;
  transform: none !important;
  padding-top: 1px !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-label__qty,
body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-label__name,
body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-price__amount {
  line-height: 1.18 !important;
}

@media (min-width: 769px) {
  body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-row {
    align-items: center !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-label {
    align-items: center !important;
    padding-top: 0 !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-price {
    align-items: center !important;
    line-height: 1.18 !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-price__saving {
    margin-top: 0 !important;
  }
}

@media (max-width: 768px) {
  body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 0.78rem !important;
    min-height: 0 !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-label {
    padding-top: 2px !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-price {
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    gap: 0.34rem !important;
    min-height: 0 !important;
    line-height: 1.18 !important;
    text-align: right !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-price__saving {
    min-height: 22px !important;
  }

  body.woocommerce-checkout .trutide-pay-bank-inline-trust {
    width: calc(100% + 2rem) !important;
    max-width: none !important;
    margin: 0.72rem -1rem 0 !important;
  }

  body.woocommerce-checkout .trutide-pay-bank-checkout-image {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  body.woocommerce-checkout.trutide-checkout-sticky-cta-hidden {
    padding-bottom: 0 !important;
  }

  body.woocommerce-checkout .trutide-mobile-place-order-dock,
  body.woocommerce-checkout .trutide-mobile-place-order,
  body.woocommerce-checkout .trutide-mobile-place-order.trutide-mobile-place-order--docked {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Checkout reliability hotfix v574 - this file loads after frontend.css. */
@media (max-width: 768px) {
  body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
  body.woocommerce-checkout button.wc-block-components-checkout-place-order-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 56px !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

@media (max-width: 380px) {
  body.woocommerce-checkout .trutide-pay-bank-inline-trust {
    width: calc(100% + 1.5rem) !important;
    margin-right: -0.75rem !important;
    margin-left: -0.75rem !important;
  }
}

/* Cart cross-sell AJAX add cleanup v536 */
body.woocommerce-cart .wc-block-components-product-button a.added_to_cart,
body.woocommerce-cart .wc-block-components-product-button a.added_to_cart.wc-forward,
body.woocommerce-cart .wc-block-cart__main li.wc-block-product .wc-block-components-product-button a.added_to_cart,
body.woocommerce-cart .wc-block-cart__main li.wc-block-product .wc-block-components-product-button a.added_to_cart.wc-forward,
body.woocommerce-cart .wc-block-product .wp-block-button a.added_to_cart,
body.woocommerce-cart .wc-block-product .wp-block-button a.added_to_cart.wc-forward {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

body.woocommerce-cart .wc-block-components-product-button {
  gap: 0 !important;
}

/* Checkout summary item alignment v579.4 */
body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content !important;
  align-items: start !important;
  column-gap: 0.9rem !important;
  row-gap: 0.4rem !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-label {
  display: flex !important;
  align-items: baseline !important;
  gap: 0.24rem !important;
  min-width: 0 !important;
  max-width: 100% !important;
  transform: none !important;
  padding-top: 0 !important;
  white-space: normal !important;
  overflow: hidden !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-label__qty {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-label__name {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-price {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-width: max-content !important;
  max-width: none !important;
  white-space: nowrap !important;
  text-align: right !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-row--long {
  grid-template-columns: minmax(0, 1fr) max-content !important;
  column-gap: 0.55rem !important;
  row-gap: 0.18rem !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-row--long .trutide-summary-line-label {
  gap: 0.16rem !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-row--long .trutide-summary-line-label__qty,
body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-row--long .trutide-summary-line-label__name {
  font-size: 0.78rem !important;
  line-height: 1.22 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-row--long .trutide-summary-line-price {
  gap: 0.3rem !important;
  justify-content: flex-end !important;
  text-align: right !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-saving-total {
  display: block !important;
  margin: 0.3rem 0 0.1rem !important;
  padding: 0.42rem 0.58rem !important;
  border: 1px solid #b7e3cc !important;
  border-radius: 999px !important;
  background: #f0fbf5 !important;
  color: #17663c !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-price__saving {
  display: none !important;
}

@media (max-width: 390px) {
  body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout .trutide-summary-line-price {
    justify-content: flex-start !important;
    text-align: left !important;
  }
}
