button.taxbit-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.5em 1em;
  font-size: 1em;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
}

button.taxbit-button:focus,
button.taxbit-button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

.taxbit-page {
  max-width: 600px;
  padding: 12px;
}

.taxbit-radio-button-option {
  .taxbit-radio-button-sub-option {
    font-size: 0.8em;
    opacity: 0.7;
    font-weight: 400;
    line-height: 1.25em;
  }
}

.taxbit-progress-status {
  font-size: 0.8em;
  font-weight: normal;
  opacity: 0.7;
}

.taxbit-page-header {
  display: flex;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: solid 1px #e4ebf6;
  margin-bottom: 12px;
}

.taxbit-page-title {
  margin: 0;
  font-size: 1.2em;
  line-height: 1.25em;
  font-weight: 600;
  color: #12263f;
  flex: 1 1 auto;
}

.taxbit-page-sub-title {
  font-size: 0.8em;
  opacity: 0.7;
  font-weight: 400;
  line-height: 1.25em;
}

.taxbit-section {
  margin: 20px 0;
  .taxbit-section-header {
    display: flex;
    align-items: center;
    padding-bottom: 4px;
    border-bottom: solid 1px #e4ebf6;
    margin-bottom: 8px;
  }
  .taxbit-section-header-title {
    opacity: 0.8;
  }
  .taxbit-section-header-sub-title {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: 400;
    line-height: 1.4em;
  }
  .taxbit-section-header-action {
    margin-inline-start: auto;
  }
}

.taxbit-form-text {
  margin-block-start: 8px;
  margin-block-end: 16px;
}

.taxbit-row {
  margin-bottom: 20px;
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  gap: 10px;
  &.taxbit-error > .taxbit-label {
    color: firebrick;
  }
  sup {
    font-size: 0.8em;
    line-height: 0;
  }
}

.taxbit-disabled {
  opacity: 0.6;
}

.taxbit-info-message {
  color: blue;
  font-size: 0.8em;
}
.taxbit-error-message {
  color: firebrick;
  font-size: 0.8em;
  line-height: 1.2em;
}
.taxbit-warning-message {
  color: goldenrod;
  font-size: 0.8em;
  line-height: 1.2em;
}
.taxbit-success-message {
  color: green;
  font-size: 0.8em;
  line-height: 1.2em;
}

.taxbit-row-actions {
  flex: 0 0 10%;
  display: flex;
  align-items: flex-start;
}
button.taxbit-row-action-button {
  font-size: 0.8em;
  padding: 0.2em 1em;
  flex: 0 0 auto;
}
button.taxbit-show-button,
button.taxbit-hide-button {
  padding: 0.5em 1em;
  font-size: 1em;
  height: 33px;
  flex: 0 0 auto;
}

.taxbit-label {
  flex: 0 0 40%;
  font-weight: 500;
}
.taxbit-sub-label {
  font-size: 0.9em;
  color: initial;
  opacity: 0.7;
  font-weight: 400;
  line-height: 1.25em;
}
.taxbit-sub-label p,
.taxbit-sub-label ol,
.taxbit-sub-label ul {
  margin: 0;
  margin-bottom: 5px;
}
.taxbit-input,
.taxbit-select {
  box-sizing: border-box;
  height: 33px;
  width: 100%;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #bfcde2;
  color: rgb(18, 38, 63);
}

.taxbit-select-language {
  border: 0;
  outline: none;
  opacity: 0.6;
  height: auto;
  width: auto;
  padding: 0;
}

.taxbit-select-language:focus {
  border-bottom: solid 1px #e4ebf6;
  opacity: 1;
}

.taxbit-country-code-select {
  max-width: 12em;
}

.taxbit-badge {
  font-weight: 700;
}
.taxbit-badge.valid {
  color: green;
}
.taxbit-badge.invalid {
  color: firebrick;
}
.taxbit-badge.pending {
  color: goldenrod;
}

.taxbit-input.taxbit-textarea {
  min-height: 33px;
  resize: vertical;
  height: 57px;
}

@media only screen and (max-width: 600px) {
  .taxbit-input,
  .taxbit-select {
    font-size: 100%;
  }
}

.taxbit-checkbox {
  margin: 5px;
}

.taxbit-radio-buttons {
  display: flex;
  flex-direction: column;
  .taxbit-radio-button {
    display: flex;
    align-items: flex-start;
  }
  .taxbit-radio-button input {
    margin-top: 6px;
  }
}

.taxbit-input-status {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.taxbit-placeholder {
  color: #aaa;
}

.taxbit-placeholder:focus-within {
  color: inherit;
}

.taxbit-input-status-footer {
  margin-top: 5px;
}

.taxbit-row-value,
.taxbit-input-group {
  display: flex;
  align-items: flex-start;
  flex: 1;
  gap: 10px;
}

.taxbit-row-content {
  display: flex;
  gap: 10px;
  width: 100%;
  flex: 1;
}

.taxbit-city {
  flex: 0 0 60%;
}
.taxbit-state {
  flex: 1;
}
.taxbit-postal-code {
  flex: 0 0 40%;
  margin-inline-end: 50%;
}

.taxbit-footer {
  padding-top: 5px;
  border-top: solid 1px #e4ebf6;
  margin-top: 12px;
}

.taxbit-step-actions {
  display: flex;
  margin-top: 5px;

  .taxbit-primary-actions {
    > button {
      background-color: rgb(0, 96, 223);
      color: #ffffff;
    }
    > button:hover {
      border-color: rgb(2, 80, 187);
      background-color: rgb(2, 80, 187);
    }
    > button.taxbit-button-disabled {
      cursor: default;
      background-color: rgb(170, 179, 187);
    }
    > button.taxbit-button-disabled:hover {
      border-color: rgb(170, 179, 187);
    }
  }

  .taxbit-secondary-actions {
    > button {
      background-color: #f9f9f9;
      color: #1a1a1a;
    }
    > button:hover {
      background-color: #e9e9e9;
      color: #000;
    }
  }

  .taxbit-primary-actions {
    text-align: end;
    > button:nth-child(2) {
      margin-inline-start: 10px;
    }
  }
  .taxbit-secondary-actions {
    text-align: start;
    > button:nth-child(2) {
      margin-inline-start: 10px;
    }
  }
  .taxbit-primary-actions,
  .taxbit-secondary-actions {
    flex: 1;
  }
}

.taxbit-file-selected {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
