/* Checkout/cart: body has class .woocommerce-checkout — never lock page scroll */
html.woocommerce-checkout,
body.woocommerce-checkout,
body.woocommerce-cart,
body.woocommerce-page,
html body.dig_hideccode.woocommerce-checkout,
html body.dig_hideccode.woocommerce-cart {
  overflow: visible !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  max-height: none !important;
  position: relative !important;
}

/* بدنه صفحه کارت نیست */
body.woocommerce-checkout,
body.woocommerce-cart {
  background-color: #fafcfe !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

body.woocommerce-checkout .site-content,
body.woocommerce-checkout #content,
body.woocommerce-checkout .ast-container,
body.woocommerce-checkout .entry-content,
body.woocommerce-checkout .woocommerce,
body.woocommerce-cart .woocommerce {
  overflow: visible !important;
  max-height: none !important;
}

form.woocommerce-cart-form,
form.checkout.woocommerce-checkout,
.woocommerce form.checkout {
  background: #fff !important;
  border: 1px solid rgba(42, 51, 64, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 18px rgba(42, 51, 64, 0.06);
  overflow: visible !important;
  padding: 1.25rem;
  margin-block: 1.5rem;
}

body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-form-login-toggle,
body.woocommerce-checkout .woocommerce-form-login {
  max-width: 520px;
  margin: 1.25rem auto;
  padding: 1.25rem 1.5rem !important;
  border-radius: 18px !important;
  background: #fff !important;
  border: 1px solid rgba(42, 51, 64, 0.08) !important;
  box-shadow: 0 6px 18px rgba(42, 51, 64, 0.06);
  text-align: center;
}

body.woocommerce-checkout .woocommerce-info a {
  color: #5bb8e8 !important;
  font-weight: 700;
}

/* Digits modal overlays must not freeze page scroll when closed */
.htbuilder-overlay[style*="visibility: hidden"],
.bopobb-overlay[style*="visibility: hidden"],
.bopobb-popup[style*="visibility: hidden"] {
  pointer-events: none !important;
}
