.tf71436-billing-panel,
.tf71436-billing-readonly,
.tf71436-posting-billing {
  min-width: 0;
  margin: 8px 0 14px;
  padding: 14px;
  border: 1px solid #b9d6ca;
  border-radius: 12px;
  background: #f5fbf8;
}

.tf71436-billing-panel > legend,
.tf71436-existing-scope > legend {
  padding: 0 7px;
  color: #164e3d;
  font-weight: 900;
}

.tf71436-billing-method {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.tf71436-billing-method select {
  width: 100%;
  min-width: 0;
}

.tf71436-charge-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0;
}

.tf71436-charge-options[hidden] {
  display: none !important;
}

.tf71436-charge-options label,
.tf71436-existing-scope label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border: 1px solid #d1e1da;
  border-radius: 9px;
  background: #fff;
  font-weight: 700;
}

.tf71436-charge-options input,
.tf71436-existing-scope input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.tf71436-billing-summary {
  padding: 11px;
  border-radius: 9px;
  background: #e8f5ef;
}

.tf71436-billing-summary p,
.tf71436-billing-readonly p,
.tf71436-posting-billing p {
  margin: 8px 0 0;
  line-height: 1.4;
}

.tf71436-existing-scope {
  margin-top: 14px;
  padding: 12px;
  border: 2px solid #e3bd60;
  border-radius: 10px;
  background: #fffaf0;
}

.tf71436-existing-scope label + label {
  margin-top: 8px;
}

.tf71436-billing-badge,
.tf71436-source-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 4px 5px 4px 0;
  padding: 5px 8px;
  border-radius: 999px;
  white-space: normal;
  font-size: .79rem;
  font-weight: 900;
  line-height: 1.15;
}

.tf71436-billing-badge.tm,
.tf71436-source-badge.billable {
  background: #dff3e9;
  color: #096044;
}

.tf71436-billing-badge.quoted {
  background: #e5e7fb;
  color: #393e8d;
}

.tf71436-billing-badge.no-charge,
.tf71436-billing-badge.internal,
.tf71436-source-badge.internal {
  background: #fff0c9;
  color: #72500b;
}

.tf71436-card-billing {
  display: grid;
  gap: 3px;
  margin: 8px 0;
}

.tf71436-card-billing > span:last-child {
  color: #58675f;
  font-size: .86rem;
  line-height: 1.3;
}

.tf71436-posting-billing.internal {
  border-color: #e5c36c;
  background: #fffaf0;
}

.tf71436-source-badge {
  display: flex;
  margin-top: 6px;
}

.tf71436-invoice-notice {
  margin-bottom: 16px;
  border-color: #b9d6ca;
  background: #f5fbf8;
}

.tf71436-toast {
  z-index: 10050;
}

@media (max-width: 720px) {
  .tf71436-charge-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .tf71436-billing-panel,
  .tf71436-billing-readonly,
  .tf71436-posting-billing {
    padding: 12px;
  }

  .tf71436-existing-scope {
    padding: 10px;
  }

  .tf71436-billing-badge,
  .tf71436-source-badge {
    font-size: .74rem;
  }
}
