.hidden {
  display: none !important;
}

.woocommerce form .form-row#account_type_field .woocommerce-input-wrapper label {
  padding-left: 0.5em;
  margin-right: 2em;
  display: inline;
}

.woocommerce-checkout
  #payment
  ul.payment_methods
  li.wc_payment_method.payment_method_woocommerce-gateway-tillit {
  margin-bottom: 1em;
}

.woocommerce-checkout
  #payment
  ul.payment_methods
  li.wc_payment_method.payment_method_woocommerce-gateway-tillit
  .twoinc-subtitle {
  color: #777777;
  margin-left: 31px;
  font-size: 0.8em;
}

.woocommerce-checkout
  #payment
  ul.payment_methods
  li.wc_payment_method.payment_method_woocommerce-gateway-tillit
  .explain-details {
  font-size: 0.8em;
}

.woocommerce-checkout
  #payment
  ul.payment_methods
  li.wc_payment_method.payment_method_woocommerce-gateway-tillit
  img {
  max-height: 32px;
}

.twoinc-loader::before {
  width: 1em;
  height: 1em;
  display: block;
  position: relative;
  margin: auto;
  content: "";
  animation: spin 1s ease-in-out infinite;
  background: url(https://eroofing.co.uk/wp-content/plugins/tillit-payment-gateway//assets/images/loader.svg) center center;
  background-size: cover;
  line-height: 1;
  text-align: center;
  font-size: 2em;
  color: rgba(0, 0, 0, 0.75);
  opacity: 0.5;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

form.checkout.woocommerce-checkout .woocommerce-account-type-fields__field-wrapper,
#account_type_field {
  display: none;
}

form.checkout.woocommerce-checkout
  .woocommerce-account-type-fields__field-wrapper
  #account_type_field
  > label {
  position: unset;
  display: block;
}

form.checkout.woocommerce-checkout
  .woocommerce-account-type-fields__field-wrapper
  label[for="account_type_personal"],
form.checkout.woocommerce-checkout
  .woocommerce-account-type-fields__field-wrapper
  label[for="account_type_sole_trader"],
form.checkout.woocommerce-checkout
  .woocommerce-account-type-fields__field-wrapper
  label[for="account_type_business"] {
  position: unset;
  display: inline;
}

form.checkout.woocommerce-checkout
  .woocommerce-account-type-fields__field-wrapper
  input[name="account_type"] {
  height: unset;
  width: unset;
}

.twoinc-source,
.twoinc-target {
  display: none;
}

.iti.iti--allow-dropdown {
  width: 100%;
}

.iti--allow-dropdown .iti__flag-container,
.iti--separate-dial-code .iti__flag-container {
  width: unset;
  height: unset;
}

#abt-twoinc-link {
  width: 100%;
  padding-left: 31px;
}

#abt-twoinc-link a {
  float: right;
  font-size: 0.8em;
}

.abt-twoinc {
  position: relative;
  text-align: right;
  cursor: pointer;
  font-size: 0.83em;

  /* Indicate the icon is interactive */
}

.abt-twoinc-text {
  visibility: hidden;
  width: 190px;
  height: auto;
  background-color: rgb(34, 34, 34);
  color: #fff !important;
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
  bottom: 120%;
  /* Adjust this to move the tooltip above the question mark */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
  white-space: normal;
  line-height: 1.5;
}

.abt-twoinc-text a {
  text-decoration: none;
  text-align: right;
  cursor: pointer;
  padding: 5px 10px;
  margin: 20px 20px;
  border-radius: 5px;
  border: 1px solid gray;
  color: white;
  background-color: blue;
}

.abt-twoinc:hover .abt-twoinc-text {
  visibility: visible;
  opacity: 1;
}

#billing_company_display_field {
  position: relative;
  padding-bottom: 15px;
}

#billing_company_field {
  position: relative;
  padding-bottom: 15px;
}

.floating-company {
  position: absolute;
  right: 8px;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.floating-company-id {
  position: absolute;
  right: 24px;
  margin-top: 0.8px;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  color: #dddddd;
  white-space: nowrap;
}

#company_not_in_btn {
  cursor: pointer;
  color: #3043d1;
  margin: 4px 12px;
}

#search_company_btn {
  text-align: right;
  cursor: pointer;
  padding-top: 5px;
  color: #3043d1;
  position: absolute;
  right: 4px;
}

.account-type-wrapper {
  display: flex;
  flex-wrap: wrap;
  margin: auto;
  margin-bottom: 20px;
}

.account-type-wrapper h3 {
  width: 100%;
}

.account-type-wrapper.actp-col-2 {
  width: 60%;
}

.account-type-wrapper.actp-col-3 {
  width: 100%;
}

.account-type-wrapper.actp-col-2 .account-type-button {
  width: 48%;
  margin-right: 4%;
}

.account-type-wrapper.actp-col-3 .account-type-button {
  width: 32%;
  margin-right: 2%;
}

.account-type-wrapper .account-type-button {
  border: 2px solid #ebebeb;
  padding: 12px 20px;
  margin-right: 20px;
  display: flex;
  min-width: 160px;
}

.account-type-wrapper .account-type-button img {
  margin: auto 20px auto auto;
  width: 16px;
  height: 16px;
}

.account-type-wrapper .account-type-button span {
  margin: auto;
  margin-left: 0;
}

.account-type-wrapper .account-type-button.last {
  margin-left: auto;
  margin-right: 0;
}

.account-type-wrapper .account-type-button.selected {
  border-color: #000000;
  color: #000000;
}

.account-type-wrapper .account-type-button.selected img {
  filter: brightness(0);
}

.twoinc-payment-desc.payment-desc-no-funded {
  display: none;
}

@media (max-width: 639px) {
  .account-type-wrapper.actp-col-2 {
    width: 100%;
  }

  .account-type-wrapper.actp-col-2 .account-type-button,
  .account-type-wrapper.actp-col-3 .account-type-button {
    width: 100%;
    margin-right: 0;
  }

  .account-type-wrapper .account-type-button.last {
    margin: auto;
  }
}
