/* Small supplement to the existing MOZE Checkout UI form styles. */
/* The HTML hidden attribute takes effect immediately, before any CSS/JS. */
body.woocommerce-checkout #billing_company_field[hidden],
body.woocommerce-checkout #billing_cui_field[hidden] { display: none !important; }
body.woocommerce-checkout #billing_company_field,
body.woocommerce-checkout #billing_cui_field { display: none; }
body.woocommerce-checkout.moze-company-active #billing_company_field,
body.woocommerce-checkout.moze-company-active #billing_cui_field { display: block; }
body.woocommerce-checkout #billing_is_company_field { margin-top: 5px; margin-bottom: 14px; }
body.woocommerce-checkout #billing_is_company_field label.checkbox {
  display: inline-flex; gap: 10px; align-items: center; cursor: pointer;
  line-height: 1.45;
}
body.woocommerce-checkout #billing_is_company_field input[type="checkbox"] {
  position: static; opacity: 1; margin: 0; min-height: auto; width: 18px; height: 18px;
  flex: none; accent-color: #252525;
}
body.woocommerce-checkout.moze-company-active #billing_company_field > label:after,
body.woocommerce-checkout.moze-company-active #billing_cui_field > label:after {
  content: " *"; color: #bb4545;
}

/* Match standard form label rendering, avoiding the unsupported 500 font face
   which made Romanian 'ă' appear in a different weight. */
body.woocommerce-checkout form.checkout.woocommerce-checkout #billing_is_company_field > label.checkbox {
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  letter-spacing: normal !important;
}
/* The company checkbox is self-evidently optional; avoid a redundant suffix. */
body.woocommerce-checkout #billing_is_company_field .optional {
  display: none !important;
}
