.b3-text-field {
  border: 1px solid var(--b3-theme-on-surface);
  border-radius: 4px;
  padding: 4px 8px;
  line-height: 20px;
  box-sizing: border-box;
  color: var(--b3-theme-on-background);
  transition: border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1), box-shadow 120ms 0ms cubic-bezier(0, 0, 0.2, 1);
  background-color: var(--b3-theme-background);

  &:hover {
    border-color: var(--b3-theme-on-background);
  }

  &:focus {
    border-color: var(--b3-theme-primary);
    box-shadow: 0 0 0 3px var(--b3-theme-primary-lightest);
  }

  &[type="color"] {
    padding: 0;
  }

  &--small {
    font-size: 12px;
    padding: 0 4px;
  }

  &--text {
    border: 0;

    &:focus {
      box-shadow: 0 0 0;
    }
  }
}
