.tm-db-type {
  min-width: 0;
  margin: 0 0 23px;
  padding: 0;
  border: 0;
}

.tm-db-type[hidden] {
  display: none;
}

.tm-db-type legend {
  margin-bottom: 10px;
  padding: 0;
  color: #bac4cc;
  font-size: 12px;
  font-weight: 650;
}

.tm-db-type legend b {
  color: var(--teal);
}

.tm-db-options {
  display: grid;
  gap: 9px;
}

.tm-db-type .tm-db-choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 0;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 3px;
  background: rgba(4, 9, 14, 0.58);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tm-db-type .tm-db-choice:hover {
  border-color: rgba(18, 184, 196, 0.45);
}

.tm-db-type .tm-db-choice:has(input:checked) {
  border-color: rgba(18, 184, 196, 0.7);
  background: rgba(18, 184, 196, 0.07);
}

.tm-db-type .tm-db-choice:focus-within {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.tm-db-type input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.tm-db-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.tm-db-copy strong {
  color: #edf2f5;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.65;
}

.tm-db-copy > span {
  color: #97a8b3;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.tm-db-type.has-error .tm-db-choice {
  border-color: rgba(231, 123, 116, 0.66);
}

@media (max-width: 420px) {
  .tm-db-type .tm-db-choice {
    gap: 10px;
    padding: 14px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-db-type .tm-db-choice {
    transition: none;
  }
}
