/* WC Form Builder – theme-independent frontend layout v1.4.7 */

.wcfb-product-form,
.wcfb-form-wrapper,
.wcfb-form-wrapper *{
  box-sizing:border-box;
}

.wcfb-product-form,
.wcfb-form-wrapper{
  width:100%;
  max-width:100%;
  clear:both;
}

.wcfb-form-wrapper h3{
  display:block;
  width:100%;
  margin:0 0 18px;
  line-height:1.2;
}

.wcfb-form-fields{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px 22px;
  width:100%;
  max-width:100%;
  margin:0;
  padding:0;
}

.wcfb-form-fields .wcfb-field{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  float:none !important;
  clear:none !important;
}

.wcfb-form-fields .wcfb-field-full,
.wcfb-form-fields .wcfb-field-textarea{
  grid-column:1 / -1;
}

.wcfb-form-fields label{
  display:block !important;
  width:100%;
  margin:0 0 8px !important;
  padding:0 !important;
  line-height:1.35;
  font-weight:600;
  opacity:1 !important;
  visibility:visible !important;
}

.wcfb-form-fields input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.wcfb-form-fields select,
.wcfb-form-fields textarea{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-height:42px;
  margin:0 !important;
  padding:10px 12px !important;
  border:1px solid #c8c8c8 !important;
  border-radius:4px;
  background:#fff !important;
  color:#111 !important;
  opacity:1 !important;
  visibility:visible !important;
  box-shadow:none !important;
  line-height:1.4;
  appearance:auto;
  -webkit-appearance:auto;
}

.wcfb-form-fields textarea{
  min-height:110px;
  resize:vertical;
}

.wcfb-required{
  color:#d63638;
  margin-left:4px;
}

@media (max-width:768px){
  .wcfb-form-fields{
    grid-template-columns:1fr;
  }
  .wcfb-form-fields .wcfb-field,
  .wcfb-form-fields .wcfb-field-full,
  .wcfb-form-fields .wcfb-field-textarea{
    grid-column:1 / -1;
  }
}


/* v1.4.7 hard fallback: protects controls from aggressive theme/WPBakery/WooCommerce CSS. */
.wcfb-form-wrapper .wcfb-control,
.wcfb-product-form .wcfb-control,
.wcfb-form-wrapper input.wcfb-input,
.wcfb-form-wrapper select.wcfb-select,
.wcfb-form-wrapper textarea.wcfb-textarea,
.wcfb-product-form input.wcfb-input,
.wcfb-product-form select.wcfb-select,
.wcfb-product-form textarea.wcfb-textarea{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  min-height:44px !important;
  height:auto !important;
  margin:0 !important;
  padding:10px 12px !important;
  border:1px solid #c8c8c8 !important;
  border-radius:4px !important;
  background:#fff !important;
  color:#111 !important;
  opacity:1 !important;
  visibility:visible !important;
  transform:none !important;
  position:relative !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  z-index:auto !important;
  line-height:1.4 !important;
  box-sizing:border-box !important;
  pointer-events:auto !important;
  -webkit-text-fill-color:#111 !important;
}

.wcfb-form-wrapper textarea.wcfb-textarea,
.wcfb-product-form textarea.wcfb-textarea{
  min-height:110px !important;
}
