.hidden {
  display: none !important;
}

.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(../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);
  }
}

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

/* Payment terms chip selector (TWO-24751) */
.twoinc-term-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.twoinc-term-chips.hidden {
  display: none;
}
/*
 * Chip palette mirrors the Magento checkout (.two-term-chip): brand blue
 * text on a white fill for the unselected state, solid brand blue with
 * white text when selected. Set an explicit colour so the chip text never
 * inherits a theme's light-on-light foreground (white-on-white bug).
 */
.twoinc-term-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid #c4c9e8;
  border-radius: 16px;
  background: #fff;
  color: #3043d1;
  cursor: pointer;
  line-height: 1.3;
}
.twoinc-term-chip:hover {
  border-color: #3043d1;
}
.twoinc-term-chip--selected,
.twoinc-term-chip--selected:hover {
  border-color: #3043d1;
  background: #3043d1;
  color: #fff;
}
.twoinc-term-chip--single {
  cursor: default;
}
.twoinc-term-chip__days {
  font-weight: 500;
}
.twoinc-term-chip__fee {
  font-size: 0.85em;
  color: inherit;
  opacity: 0.85;
}

/* Sole trader toggle (TWO-24754) */
/*
 * Sole-trader mode chips + signup note. Palette mirrors the Magento
 * .mode_selector / .mode_item toggle: brand-blue text on white for the
 * unselected chip, solid brand blue with white text when selected.
 */
.twoinc-sole-trader-toggle {
  margin: 12px 0;
}
.twoinc-sole-trader-toggle.hidden {
  display: none;
}
.twoinc-mode-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.twoinc-mode-item {
  text-align: center;
  padding: 5px 12px;
  border-radius: 5px;
  border: 1px solid #c4c9e8;
  color: #3043d1;
  background-color: #fff;
  cursor: pointer;
  user-select: none;
}
.twoinc-mode-item--selected {
  color: #fff;
  background-color: #3043d1;
  border-color: #3043d1;
}
.twoinc-sole-trader-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #6b6b6b;
}
.twoinc-sole-trader-note.hidden {
  display: none;
}
.twoinc-sole-trader-note svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.twoinc-sole-trader-note__link {
  color: #3043d1;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.twoinc-sole-trader-toggle__error {
  flex-basis: 100%;
  color: #b00020;
}
