/**
 * Front Style
 */
/* Icons menu */
#wp-admin-bar-wc_el_inv_options > a.ab-item:before {
  background-image:    url('../images/invoice.svg') !important;
  background-position: center center;
  background-repeat:   no-repeat;
  background-size:     100%;
  content:             '';
  position:            relative;
  width:               30px;
  height:              24px;
  line-height:         24px;
}

#wp-admin-bar-wc_el_inv_options.active > a.ab-item,
#wp-admin-bar-wc_el_inv_options.active {
  background: #46b450 !important;
  color:      #fff !important;
}

#billing_choice_type_field select#billing_choice_type + .select2-container,
#billing_invoice_type_field select#billing_invoice_type + .select2-container {
  width: 100% !important;
}

#billing_invoice_type_field > label span,
#billing_invoice_type_field > label abbr {
  display: none !important;
}
#billing_invoice_type_field label .select-required {
  color: red;
}

/* Input */
input#billing_sdi_type,
input#billing_vat_number,
input#billing_tax_code {
  text-transform: uppercase !important;
}

.woocommerce-billing-fields #billing_invoice_type_field {
  display: inline-block;
  width: 100%;
  margin-top: 1em;
}

/* Optional invoice: hide every invoice reference until explicitly requested. */
body.wc-el-inv-invoice-not-requested #billing_invoice_type_field,
body.wc-el-inv-invoice-not-requested #billing_sdi_type_field,
body.wc-el-inv-invoice-not-requested #billing_vat_number_field,
body.wc-el-inv-invoice-not-requested #billing_tax_code_field,
body.wc-el-inv-invoice-not-requested #billing_customer_company_field,
body.wc-el-inv-invoice-not-requested #billing_customer_company_role_field,
body.wc-el-inv-invoice-not-requested #billing_customer_name_field,
body.wc-el-inv-invoice-not-requested #billing_customer_lastname_field,
body.wc-el-inv-invoice-not-requested #billing_customer_company_address_field,
body.wc-el-inv-invoice-not-requested #billing_customer_company_city_field,
body.wc-el-inv-invoice-not-requested #billing_customer_company_state_field,
body.wc-el-inv-invoice-not-requested #billing_customer_company_postcode_field {
  display: none !important;
}

