
#pf-checkout-fields.pf-card, .pf-block-card{border:1px solid rgba(0,0,0,.08);border-radius:16px;padding:16px 18px;background:var(--wp--preset--color--base-2,#f7f7f7);margin:16px 0 24px;}
#pf-checkout-fields.pf-integrated{margin:16px 0 24px;}
#pf-checkout-fields h3{margin:0 0 12px;text-align:left !important;}
/* Eliminar TODAS las imágenes e íconos del h3 y su contenedor */
#pf-checkout-fields h3::before,
#pf-checkout-fields h3::after,
#pf-checkout-fields h3 > *:first-child:empty,
#pf-checkout-fields h3 img,
#pf-checkout-fields h3 svg,
#pf-checkout-fields h3 i,
#pf-checkout-fields::before img,
#pf-checkout-fields::before svg,
#pf-checkout-fields > img:first-child,
#pf-checkout-fields > svg:first-child,
#pf-checkout-fields h3 + img,
#pf-checkout-fields .pf-card::before img,
.pf-card > img:first-of-type,
.pf-card h3 img,
.pf-card h3 svg {
  display:none !important;
  content:none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}
/* Ocultar divs vacíos que desplazan contenido */
#pf-checkout-fields > div:empty,
#pf-checkout-fields .pf-row > div:first-child:empty,
.pf-row.full > div:first-child:empty {
  display: none !important;
}
.pf-block-card .pf-row{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}
.pf-block-card .pf-row.pf-row-inline{flex-direction:row;align-items:center;gap:0}
.pf-block-card .pf-row-inline label{margin-bottom:0;width:auto}
.pf-block-card .full{width:100%}
.pf-block-card label{display:block;font-weight:500;margin-bottom:6px;width:100%}
.pf-block-card input,.pf-block-card select{width:100%;padding:8px 10px;border:1px solid rgba(0,0,0,.15);border-radius:8px;background:#fff;box-sizing:border-box}
#pf-fields-empresa .form-row-first{grid-column:1/2}

/* Force left alignment for pFacturas fields */
#pf-checkout-fields .form-row, #pf-checkout-fields label, #pf-checkout-fields select { text-align: left; }


/* ---- pFacturas: force left alignment and vertical layout ---- */
#pf-checkout-fields,
#pf-checkout-fields .form-row,
#pf-checkout-fields .form-row label,
#pf-checkout-fields .form-row .woocommerce-input-wrapper,
#pf-checkout-fields .form-row select,
#pf-checkout-fields .form-row input {
  text-align: left !important;
}

/* Vertical layout: label arriba, campo abajo */
#pf-checkout-fields .form-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

#pf-checkout-fields .form-row label {
  order: 1 !important;
  margin-bottom: 6px !important;
  width: 100% !important;
}

#pf-checkout-fields .form-row .woocommerce-input-wrapper {
  order: 2 !important;
  width: 100% !important;
  margin-left: 0 !important;
}

#pf-checkout-fields .form-row select,
#pf-checkout-fields .form-row input {
  width: 100% !important;
}

/* Ensure the RUT question spans full width on the left */
#pf-checkout-fields .form-row.form-row-wide {
  grid-column: 1 / -1;
  margin-left: 0 !important;
  float: none !important;
}

/* ¿Factura con RUT? - label and select inline */
#pf-checkout-fields .form-row.pf-rut-inline {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  justify-content: flex-start !important;
}
#pf-checkout-fields .form-row.pf-rut-inline label {
  order: 1 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  width: auto !important;
  text-align: left !important;
}
#pf-checkout-fields .form-row.pf-rut-inline .woocommerce-input-wrapper {
  order: 2 !important;
  flex: 0 0 auto !important;
  max-width: 120px !important;
  margin-left: 0 !important;
}
#pf-checkout-fields .form-row.pf-rut-inline select {
  width: 120px !important;
  text-align: left !important;
}
