/**
 * 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;
}

.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;
}

/* Foreign-company instructions are plain help text, not a themed tooltip. */
#billing_foreign_invoice_data_field .description {
  display: block;
  clear: both;
  margin: 8px 0 0;
  padding: 0;
  background: transparent;
  color: #555;
  font-size: 13px;
  line-height: 1.45;
}
#billing_foreign_invoice_data_field .description::before,
#billing_foreign_invoice_data_field .description::after {
  display: none !important;
}

body.wc-el-inv-type-freelance #billing_customer_company_field,
body.wc-el-inv-type-freelance #billing_customer_company_address_field,
body.wc-el-inv-type-freelance #billing_customer_company_postcode_field {
  float: none !important;
  width: 100% !important;
}
body.wc-el-inv-type-freelance #billing_customer_name_field,
body.wc-el-inv-type-freelance #billing_customer_company_city_field {
  clear: both;
}

#billing_customer_company_role_field {
    display: none !important;
}

#billing_foreign_company_field .optional {
    display: none !important;
}

/* Allinea le select HRD agli input del checkout. */
#billing_born_state,
#billing_customer_company_state {
    width: 100%;
    height: 51px;
    min-height: 51px;
    padding: 0 44px 0 16px;
    border: 0;
    border-radius: 0;
    background-color: #f9fafa;
    color: #333;
    font-family: inherit;
    font-size: 16px;
    line-height: 51px;
}

/* WooCommerce usa Select2 per Paese e Provincia: il testo interno aveva
 * altezza e padding maggiori del contenitore, risultando fuori centro. */
#billing_country_field .select2-container .select2-selection--single,
#billing_state_field .select2-container .select2-selection--single {
    height: 51px;
    min-height: 51px;
    border: 0;
    border-radius: 0;
    background-color: #f9fafa;
}

#billing_country_field .select2-selection--single .select2-selection__rendered,
#billing_state_field .select2-selection--single .select2-selection__rendered {
    height: 51px;
    padding: 0 44px 0 16px;
    line-height: 51px;
}

#billing_country_field .select2-selection--single .select2-selection__arrow,
#billing_state_field .select2-selection--single .select2-selection__arrow {
    width: 44px;
    height: 51px;
}

